maint.mk: catch more abuse of HAVE_DECL in syntax-check
[gnulib.git] / ChangeLog
1 2013-05-10  Eric Blake  <eblake@redhat.com>
2
3         maint.mk: catch more abuse of HAVE_DECL in syntax-check
4         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Relax regex.
5
6 2012-05-10  Stefano Lattarini  <stefano.lattarini@gmail.com>
7
8         deps: require Automake >= 1.9.6 in generated Makefile fragments
9
10         That is the same minimal version required in the DEPENDENCIES file.
11         Moreover, the old code generated a requirement of Automake >= 1.5,
12         and that is an insanely outdated version.
13
14         * gnulib-tool: Bump minimal version requirement in AUTOMAKE_OPTIONS.
15         * tests/havelib/rpathlx/Makefile.am: Likewise.
16         * tests/havelib/rpathly/Makefile.am: Likewise.
17         * tests/havelib/rpathlyx/Makefile.am: Likewise.
18         * tests/havelib/rpathlz/Makefile.am: Likewise.
19         * tests/havelib/rpathlzyx/Makefile.am: Likewise.
20         * tests/havelib/rpathx/Makefile.am: Likewise.
21         * tests/havelib/rpathy/Makefile.am: Likewise.
22         * tests/havelib/rpathz/Makefile.am: Likewise.
23
24 2013-05-08  Eric Blake  <eblake@redhat.com>
25
26         bootstrap: AC_INIT may have more than four parameters
27         * build-aux/bootstrap (extract_package_name): Correctly extract
28         non-empty tarname field.  Avoid range in regex.
29         Based on a report by Sami Kerola <kerolasa@iki.fi>.
30
31 2013-05-07  Paul Eggert  <eggert@cs.ucla.edu>
32
33         qacl: port to MS-Windows port of GNU Emacs
34         * lib/acl-errno-valid.c (acl_errno_valid) [ENOTSUP == ENOSYS]:
35         Omit the duplicate ENOTSUP case.  Needed for the MS-Windows
36         port of GNU Emacs.  Problem reported by Eli Zaretskii in
37         <http://bugs.gnu.org/14295#14>.
38
39 2013-05-07  Mike Frysinger  <vapier@gentoo.org>
40
41         acl: include quote.h
42         * lib/copy-acl.c: Include quote.h.
43         * lib/set-acl.c: Likewise.
44
45 2013-05-06  Mike Frysinger  <vapier@gentoo.org>
46
47         fchownat, renameat, unlinkat: update statat dependencies
48         These modules use statat and lstatat, not fstatat; so depend on
49         the statat module, which was split out recently from fstatat.
50         * modules/fchownat, modules/unlinkat: Change fstatat to statat.
51         * modules/renameat: Likewise.  Also delete fstat.
52         URL: http://bugs.gentoo.org/468790
53
54 2012-05-04  Stefano Lattarini  <stefano.lattarini@gmail.com>
55
56         Assume gnulib is checked out from Git, not CVS
57
58         In fact, access to the gnulib repository through CVS has been
59         disabled, or more precisely, got broken and was never restored; see:
60         <http://lists.gnu.org/archive/html/bug-gnulib/2013-05/msg00008.html>
61
62         Note that support for CVS is not removed completely and unthinkingly
63         by this change: only support for CVS checkouts of gnulib itself is
64         removed.  For example, the 'bootstrap' script still cater to .cvsingore
65         files and CVS directories, for the benefit of those poor gnulib clients
66         still stuck with CVS.  Ditto for the 'gnulib-tool' script itself.
67
68         * gnulib-tool: Simplify accordingly.
69         * posix-modules: Likewise.
70         * MODULES.html.sh: Likewise.
71         * doc/gnulib.texi: No longer mention the decommissioned CVS gnulib
72         repository.
73         * doc/gnulib-intro.texi: Likewise.
74         * doc/gnulib-readme.texi: Likewise.
75         * doc/gnulib-tool.texi: In the examples and explanations, refer to a
76         sample '.gitignore' file rather than a sample '.cvsignore'.
77         * NEWS: Update.
78         * m4/extensions.m4: While at it, remove a comment mistakenly referring
79         to "CVS Autoconf" rather than "git Autoconf".
80
81 2013-04-30  Paul Eggert  <eggert@cs.ucla.edu>
82
83         utimensat-tests, etc.: try to fix some races
84         Problem reported by Bernhard Voelker in
85         <http://lists.gnu.org/archive/html/bug-gnulib/2013-04/msg00071.html>.
86         I don't know whether this patch fixes that race condition, but it
87         fixes *some* race conditions, so it should be a win.
88         * modules/chown-tests (Depends-on):
89         * modules/fchownat-tests (Depends-on):
90         * modules/fdutimensat-tests (Depends-on):
91         * modules/futimens-tests (Depends-on):
92         * modules/lchown-tests (Depends-on):
93         * modules/stat-time-tests (Depends-on):
94         * modules/utimens-tests (Depends-on):
95         * modules/utimensat-tests (Depends-on):
96         Depend on nanosleep, not usleep.
97         * modules/chown-tests (test_chown_LDADD):
98         * modules/lchown-tests (test_lchown_LDADD):
99         * modules/stat-time-tests (test_stat_time_LDADD):
100         New macro.
101         * modules/fchownat-tests (test_fchownat_LDADD):
102         * modules/fdutimensat-tests (test_fdutimensat_LDADD):
103         * modules/futimens-tests (test_futimens_LDADD):
104         * modules/utimens-tests (test_utimens_LDADD):
105         * modules/utimensat-tests (test_utimensat_LDADD):
106         Add $(LIB_NANOSLEEP).
107         * modules/stat-time-tests (Files): Add tests/nap.h.
108         * tests/nap.h: Include <limits.h>, for INT_MAX.
109         (lt_mtime): Remove.
110         (diff_timespec): New function.
111         (get_stat): Rename from get_mtime.  All callers changed.
112         (nap_works): Determine the needed delay by inspecting the
113         file system's timestamp jumps; this should be more reliable.
114         Look at both mtime and ctime, and take the maximum of the two jumps.
115         (nap_works, guess_delay):
116         Return a nanosecond cound, not a microsecond count.
117         All callers changed.
118         (nap_works, nap): Use nanosleep, not usleep.  Check for nanosleep
119         failure.
120         (nap): Multiply the guess by 1.125, to accommodate the case where
121         the file system's clock is a bit slower than nanosleep's clock.
122         * tests/test-stat-time.c (BASE): New macro.
123         Include nap.h.
124         (nap): Remove; nap.h now defines this.  This removes a duplicate
125         implementation of 'nap'.
126
127         utimens, utimensat: work around Solaris UTIME_OMIT bug
128         Solaris 11.1 and Solaris 10 have the same UTIME_OMIT bug that
129         Linux kernel 2.6.32 does.  Work around it in the same way.
130         * doc/posix-functions/futimens.texi (futimens):
131         * doc/posix-functions/utimensat.texi (utimensat): Document the bug.
132         * lib/utimens.c (fdutimens, lutimens):
133         * lib/utimensat.c (rpl_utimensat): Work around the bug.
134
135         gettext: now it's your responsibility to add -I$(top_builddir)/intl
136         Formerly, it was your responsibility to do this for all Makefile.ams
137         other than Gnulib's.  Now it's your responsibility to do it for
138         Gnulib's Makefile.am, too.
139         * NEWS: Document this.
140         * modules/gettext (AM_CPPFLAGS): Don't append -$(top_builddir)/intl.
141
142         acl: include errno.h to get errno
143         Reported by Daiki Ueno in
144         <http://lists.gnu.org/archive/html/bug-gnulib/2013-04/msg00073.html>.
145         * lib/copy-acl.c, lib/set-acl.c: Include errno.h.
146
147 2013-04-29  Paul Eggert  <eggert@cs.ucla.edu>
148
149         tests: don't assume getdtablesize () <= 10000000
150         * modules/cloexec-tests:
151         * modules/dup2-tests:
152         * modules/dup3-tests:
153         * modules/nonblocking-tests:
154         * modules/posix_spawn_file_actions_addclose-tests:
155         * modules/posix_spawn_file_actions_adddup2-tests:
156         * modules/posix_spawn_file_actions_addopen-tests:
157         * modules/unistd-safer-tests:
158         Depend on the getdtablesize module.
159         * tests/test-cloexec.c:
160         * tests/test-dup-safer.c:
161         * tests/test-dup2.c:
162         * tests/test-dup3.c:
163         * tests/test-fcntl.c:
164         * tests/test-nonblocking.c:
165         * tests/test-posix_spawn_file_actions_addclose.c:
166         * tests/test-posix_spawn_file_actions_adddup2.c:
167         * tests/test-posix_spawn_file_actions_addopen.c:
168         Don't assume getdtablesize () <= 10000000.
169
170 2013-04-28  Paul Eggert  <eggert@cs.ucla.edu>
171
172         extern-inline: work around bug in Sun c99
173         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE):
174         Work around bug in Sun C 5.12 c99's implementation of 'inline'.
175
176 2013-04-27  Paul Eggert  <eggert@cs.ucla.edu>
177
178         qacl: new module, broken out from the acl module
179         This is for GNU Emacs, which wants the acl functions but does
180         not want 'error' invoked when they fail.
181         * lib/acl-internal.h: Do not include error.h, quote.h.
182         (ENOSYS, ENOTSUP): Remove; no longer needed.
183         (ACL_NOT_WELL_SUPPORTED): Remove; replaced by acl_errno_valid.
184         * lib/acl.h: Include <stdbool.h>.
185         (acl_errno_valid): New function.
186         * lib/copy-acl.c, lib/set-acl.c: Include errno,h, not acl-internal.h.
187         * lib/copy-acl.c (qcopy_acl): Move to lib/qcopy-acl.c.
188         * lib/set-acl.c: Rename from lib/set-mode-acl.c.
189         (chmod_or_fchmod, qset_acl): Move to lib/qset-acl.c.
190         (ACL_INTERNAL_INLINE): Remove; no longer needed.
191         * lib/file-has-acl.c (file_has_acl):
192         * lib/qcopy-acl.c (qcopy_acl):
193         * lib/qset-acl.c (qset_acl):
194         Use acl_errno_valid instead of ACL_NOT_WELL_SUPPORTED.
195         * modules/acl (Files): Move lib/acl.h, lib/acl-internal.h,
196         lib/acl_entries.c, lib/set-mode-acl.c (renamed to lib/set-acl.c),
197         lib/file-has-acl.c, m4/acl.m4 to qacl module.
198         Add lib/set-acl.c.
199         (Depends-on): Move extern-inline, fstat, sys_stat to qacl module.
200         Add qacl.
201         (configure.ac): Move gl_FUNC_ACL to qacl module.
202         (lib_SOURCES): Remove file-has-acl.c (moved to qacl module).
203         Rename set-mode-acl.c to set-acl.c.
204         * lib/acl-errno-valid.c: New file.
205         * lib/qcopy-acl.c: New file, moved from the old lib/copy-acl.c; the
206         copy_acl function remains in copy-acl.c.
207         * lib/qcopy-acl.c, lib/qset-acl.c: Do not include gettext.h.
208         (_): Remove; not needed.
209         * lib/qset-acl.c: New file, moved from the old lib/set-mode-acl.c; the
210         set_acl function remains in set-acl.c (renamed from set-mode-acl.c).
211         * modules/qacl: New file, moved from the old modules/acl.
212         (Files, lib_SOURCES): Add acl-errno-valid.c, qcopy-acl.c, qset-acl.c.
213         Remove set-mode-acl.c, copy-acl.c.
214         (Depends-on): Remove error, gettext-h, quote.  Add stdbool.
215
216         alignof, intprops, malloca: port better to IBM's C compiler
217         * lib/alignof.h (alignof_type) [__IBM_ALIGNOF__]: Use __alignof__.
218         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__IBM_TYPEOF__]: Now 1.
219         * lib/malloca.h (sa_alignof): [__IBM_ALIGNOF__]: Use __alignof__.
220
221 2013-04-25  Daiki Ueno  <ueno@gnu.org>
222
223         wctype-h: fix gettext link error on mingw
224         Reported by Josue Andrade Gomes and Takayuki Tsunakawa in
225         <https://lists.gnu.org/archive/html/bug-gettext/2013-03/msg00086.html>.
226         * lib/wctype.in.h [__MINGW32__]: Include <ctype.h> before defining
227         rpl_towupper and rpl_towupper.
228
229 2013-04-11  Dmitry V. Levin  <ldv@altlinux.org>
230
231         regex-tests, regex: allow glibc re_search behavior
232         * tests/test-regex.c (main): In test for glibc bug 15078, reformat
233         re_search input data to make the multi-character collating element
234         in it clearly visible, and treat re_search return code 0 as valid.
235         * m4/regex.m4 (gl_REGEX): Likewise.
236
237 2013-03-30  Paul Eggert  <eggert@cs.ucla.edu>
238
239         stdalign: doc fix
240         * doc/posix-headers/stdalign.texi (stdalign.h):
241         Gnulib doesn't support '_Alignof expr'.
242
243 2013-03-29  Paul Eggert  <eggert@cs.ucla.edu>
244
245         stdalign: port to stricter ISO C11
246         ISO C11 says that _Alignof's operand must be a parenthesized type.
247         Problem reported by Eli Zaretskii in
248         <http://lists.gnu.org/archive/html/emacs-devel/2013-03/msg00960.html>.
249         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
250         * m4/stdalign.m4 (gl_STDALIGN_H): Don't use _Alignof (expr).
251
252 2013-03-21  Paul Eggert  <eggert@cs.ucla.edu>
253
254         sys_select, sys_time: port 2013-01-30 Solaris 2.6 fix to Cygwin
255         Problem reported by Marco Atzeri in
256         <http://lists.gnu.org/archive/html/bug-gnulib/2013-03/msg00000.html>.
257         * lib/sys_select.in.h [HAVE_SYS_SELECT_H && _CYGWIN_SYS_TIME_H]:
258         Simply delegate to the system <sys/select.h> in this case too.
259         Also, pay attention to _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TIME_H only
260         if OSF/1, since otherwise Cygwin breaks, and it doesn't seem to
261         be needed on Solaris either.
262         * lib/sys_time.in.h [_CYGWIN_SYS_TIME_H]:
263         Simply delgate to the system <sys/time.h> in this case.
264
265 2013-03-19  Karl Berry  <karl@gnu.org>
266
267         * build-aux/gnupload: check for erroneous (with gnupload) use of
268         ftp-upload.gnu.org, tweak help.
269
270 2013-03-19  Paul Eggert  <eggert@cs.ucla.edu>
271
272         copy-file, rpmatch: fix problems found by cppcheck
273         Reported by Arno Onken in
274         <http://lists.gnu.org/archive/html/bug-gnulib/2013-03/msg00069.html>.
275         * lib/rpmatch.c (try): Fix memory leak.
276         * lib/copy-file.c: Include "ignore-value.h".
277         (qcopy_file_preserving): Ignore chown value.
278         * modules/copy-file (Depends-on): Add ignore-value.
279
280 2013-01-27  Jim Meyering  <jim@meyering.net>
281
282         prefix-gnulib-mk: give better diagnostics
283         * build-aux/prefix-gnulib-mk: Don't just "die".
284         Give better diagnostics upon failure.
285
286 2013-03-13  Paul Eggert  <eggert@cs.ucla.edu>
287
288         putenv: port to Solaris 10
289         * lib/putenv.c (_unsetenv, putenv): Use HAVE_DECL__PUTENV, not
290         HAVE__PUTENV.  Solaris 10 has a _putenv that's not declared and
291         is not what is wanted here.
292         * m4/putenv.m4 (gl_PREREQ_PUTENV): Check for _putenv's
293         declaration, not for its existence.
294
295 2013-03-12  Paul Eggert  <eggert@cs.ucla.edu>
296
297         mktime: fix configure typo
298         * m4/mktime.m4 (gl_FUNC_MKTIME): Fix typo in previous change.
299
300 2013-03-12  Eric Blake  <eblake@redhat.com>
301
302         regex-tests: skip UTF-8 test on mingw
303         * modules/regex-tests (Depends-on): Add localcharset.
304         * tests/test-regex.c (main): Use it to skip test on mingw.
305
306 2013-03-11  Eric Blake  <eblake@redhat.com>
307
308         tests: make it easier to bypass alarm time in debugger
309         * tests/test-file-has-acl.c (main): Allow gdb to override alarm.
310         * tests/test-memmem.c (main): Likewise.
311         * tests/test-passfd.c (main): Likewise.
312         * tests/test-ptsname.c (main): Likewise.
313         * tests/test-ptsname_r.c (main): Likewise.
314         * tests/test-strcasestr.c (main): Likewise.
315         * tests/test-strstr.c (main): Likewise.
316
317         regex: port to mingw's recent addition of undeclared alarm
318         * doc/posix-functions/alarm.texi (alarm): Document that alarm
319         exists but still doesn't work in newer mingw.
320         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm declaration,
321         not existence.  Ensure SIGALRM is not trapped.
322         * m4/mktime.m4 (gl_FUNC_MKTIME): Likewise.
323         * m4/regex.m4 (gl_REGEX): Likewise.
324         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): Likewise.
325         * tests/test-regex.c (main): Use correct probe for alarm.
326
327         putenv: avoid compilation warning on mingw
328         * lib/putenv.c (_unsetenv): Protect variable declaration.
329         (putenv): Fix indentation.
330
331 2013-03-11  Gary V. Vaughan  <gary@gnu.org>
332
333         unistd: don't prevent Tru64 Unix from using gnulib strtod.
334         * lib/unistd.in.h: be careful not to include un-needed system
335         stdlib.h from here, because that prevents gnulib stdlib.h from
336         defining rpl_strtod correctly.
337
338 2013-03-09  Gary V. Vaughan  <gary@gnu.org>
339
340         vasprintf-posix-tests: allow rounding 1.51 to 1, per the previous
341         changesets, but for the 'precision 0' test.
342         * tests/test-vasprintf-posix.c (test_function): Don't insist on
343         round-to-even, since POSIX says rounding is implementation-defined
344         and OS X 10.8.2 rounds 1.51 to 1 here.
345
346         vasprintf-posix-tests: allow rounding 1.5 to 1, per the previous
347         changeset.
348         * tests/test-vasprintf-posix.c (test_function): Don't insist on
349         round-to-even, since POSIX says rounding is implementation-defined
350         and OS X 10.8.2 rounds 1.5 to 1 here.
351
352 2013-03-08  Paul Eggert  <eggert@cs.ucla.edu>
353
354         vasnprintf-posix-tests: allow rounding 1.5 to 1
355         * tests/test-vasnprintf-posix.c (test_function): Don't insist on
356         round-to-even, since POSIX says rounding is implementation-defined
357         and OS X 10.8.2 rounds 1.5 to 1 here.  Reported by Gary V. Vaughan in
358         <http://lists.gnu.org/archive/html/bug-gnulib/2013-03/msg00019.html>.
359
360         bootstrap: port to FreeBSD
361         * build-aux/bootstrap (bootstrap_sync): Port sh -c usage to shells
362         that treat '--' differently.  Reported by Mats Erik Andersson in
363         <http://lists.gnu.org/archive/html/bug-gnulib/2013-03/msg00012.html>.
364
365 2013-03-08  Gary V. Vaughan  <gary@gnu.org>
366
367         regex: rename remaining __attribute calls to __attribute__.
368         2012-02-25 changed definition of __attribute, but left some uses
369         unchanged, preventing compilation of regex module on most non-gcc
370         environments.
371         * lib/regcomp.c (re_set_fastmap, seek_collating_symbol_entry)
372         (lookup_collation_sequence_value, build_range_exp)
373         (build_collating_symbol): Set attributes with newly renamed
374         __attribute__ decorator.
375         * lib/regex_internal.c (re_string_peek_byte_case)
376         (re_node_set_compare, re_node_set_contains): Likewise.
377         * lib/regexec.c (acquire_init_state_context): Likewise.
378
379 2013-03-06  Bruno Haible  <bruno@clisp.org>
380
381         execute: Revert last change, but use a different condition.
382         * lib/execute.c (nonintr_close, nonintr_open): Reintroduce, but only
383         on Windows.
384
385 2013-03-05  Eric Blake  <eblake@redhat.com>
386
387         execute: drop dead code
388         * lib/execute.c (nonintr_close, nonintr_open): Delete.
389
390 2013-03-04  Paul Eggert  <eggert@cs.ucla.edu>
391
392         non-recursive-gnulib-prefix-hack: port coreutils 8.21 to HP NonStop
393         * m4/non-recursive-gnulib-prefix-hack.m4
394         (gl_NON_RECURSIVE_GNULIB_PREFIX_HACK): Don't mess with ALLOCA.
395         Problem reported for HP NonStop + coreutils 8.21 by Joachim Schmitz in
396         <http://bugs.gnu.org/10305#237>.
397
398 2013-03-04  Eric Blake  <eblake@redhat.com>
399
400         test-getsockopt: avoid compiler warning
401         * tests/test-getsockopt.c (includes): Ensure close is declared.
402
403 2013-03-02  Bruno Haible  <bruno@clisp.org>
404
405         sys_types: Avoid autoconf warning about gl_SYS_TYPES_H.
406         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Define through AC_DEFUN_ONCE.
407
408 2013-03-02  Bruno Haible  <bruno@clisp.org>
409
410         gettext: Update to version 0.18.2.
411         * m4/intl.m4, m4/po.m4: Update from gettext-0.18.2. In particular:
412         2012-12-07  Stefano Lattarini  <stefano.lattarini@gmailcom>
413                 * intl.m4, po.m4: Bump requirement in AC_PREREQ to 2.60.
414
415 2013-02-25  Paul Eggert  <eggert@cs.ucla.edu>
416
417         regex: merge patches from libc
418
419         2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
420         * lib/regex_internal.h (__attribute__): Rename from __attribute.
421         All uses changed.
422         (bitset_not, bitset_merge, bitset_mask, re_string_char_size_at)
423         (re_string_wchar_at, re_string_elem_size_at):
424         Mark function as possibly unused.
425
426         2013-02-12  Andreas Schwab  <schwab@suse.de>  [BZ #11561]
427         * lib/regcomp.c (parse_bracket_exp) [_LIBC]: When looking up collating
428         elements compare against the byte sequence of it, not its name.
429
430 2013-02-21  Paul Eggert  <eggert@cs.ucla.edu>
431
432         putenv: port better to native Windows
433         * lib/putenv.c [(_WIN32 || __WIN32__) && ! __CYGWIN__]:
434         Define WIN32_LEAN_AND_MEAN and include <windows.h>.
435         (_unsetenv): Use _putenv if available.
436         (putenv): Temporarily set NAME=' ' rather than NAME='x' as that's
437         a bit less likely to cause damage.
438         (putenv) [(_WIN32 || __WIN32__) && ! __CYGWIN__]:
439         Fix the wrong value with SetEnvironmentVariable.
440         (putenv) [!HAVE__PUTENV]: Simplify and match the HAVE__PUTENV
441         code better.
442
443 2013-02-20  Paul Eggert  <eggert@cs.ucla.edu>
444
445         regex: ignore old-style-definition warnings
446         * lib/regex.c: Add pragma to ignore these warnings.
447         Problem reported for GNU tar by Pavel Raiskup.
448
449 2013-02-19  Paul Eggert  <eggert@cs.ucla.edu>
450
451         getcwd: support coreutils better
452         Like strtod, getcwd incorrectly referred to HAVE_RAW_DECL_GETCWD,
453         but this might not be correct in coreutils, which disables
454         the raw decl checks.  Problem reported by Nagendra in
455         <http://bugs.gnu.org/10305#192>.
456         * lib/getcwd.c (__getcwd): Do not depend on HAVE_RAW_DECL_GETCWD.
457         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
458         Test the getcwd function, not any macro, since getcwd.c wants the
459         function.
460         * m4/getcwd.m4 (gl_FUNC_GETCWD):
461         Don't define HAVE_MINIMALLY_WORKING_GETCWD if the code doesn't
462         compile, as might happen if there's a macro but no function.
463
464         strtod: support coreutils better
465         * lib/strtod.c (underlying_strtod): Just invoke the underlying strtod.
466         HAVE_RAW_DECL_STRTOD might not be correct in coreutils, which
467         disables the raw decl checks.  This assumes there is an underlying
468         strtod, but that's a safe assumption these days.
469         (HAVE_RAW_DECL_STRTOD): Remove; no longer used.
470
471         mountlist: port to HP NonStop
472         Reported by Joachim Schmitz in
473         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00084.html>.
474         * lib/mountlist.c (hasmntopt) [!HAVE_HASMNTOPT]: New function.
475         (MNT_IGNORE) [MNTOPT_IGNORE]: Use it.
476
477 2013-02-18  Paul Eggert  <eggert@cs.ucla.edu>
478
479         extern-inline: avoid compilation error with HP-UX cc
480         Reported by Richard Lloyd in
481         <http://lists.gnu.org/archive/html/bug-texinfo/2013-02/msg00030.html>.
482         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE):
483         Suppress extern inline with HP-UX cc.  This should be safe,
484         though it may hurt performance.  Perhaps someone with some HP-UX
485         experience can come up with a higher-performance fix.
486
487 2013-02-14  Paul Eggert  <eggert@cs.ucla.edu>
488
489         putenv: fix heap corruption with mixed putenv/_putenv
490         Problem reported by Michael Goffioul in
491         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00061.html>.
492         * lib/putenv.c (putenv) [HAVE__PUTENV]:
493         Rely on _putenv to allocate the new environment.
494         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
495         * modules/putenv (configure.ac): Use it.
496
497 2013-02-11  Paul Eggert  <eggert@cs.ucla.edu>
498
499         unsetenv etc.: port to Solaris 11 + GNU Emacs
500         * lib/canonicalize-lgpl.c, lib/getaddrinfo.c, lib/getdelim.c:
501         * lib/glob.c, lib/random_r.c, lib/setenv.c, lib/tsearch.c:
502         * lib/unsetenv.c (_GL_ARG_NONNULL): Define before including <config.h>.
503         GNU Emacs's <config.h> includes <stdlib.h> (which is not a great
504         idea but is too painful to fix right now), and without this gnulib
505         change <stdlib.h> was defining _GL_ARG_NONNULL incorrectly when
506         compiling unsetenv.c on Solaris 11.  Fix the problem for
507         unsetenv.c, and fix other similar occurrences.
508
509 2013-02-09  Paul Eggert  <eggert@cs.ucla.edu>
510
511         secure_getenv: fix C++ declaration typo
512         * lib/stdlib.in.h (secure_getenv): Fix typo with return type
513         in _GL_CXXALIAS_SYS macro.  Reported by John W. Eaton in
514         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00057.html>.
515
516 2013-02-08  Paul Eggert  <eggert@cs.ucla.edu>
517
518         careadlinkat: stop exporting careadlinkatcwd
519         Only Emacs used it directly, and Emacs no longer needs it.
520         * NEWS: Document this simplification.
521         * lib/areadlink.c (careadlinkatcwd): Move here from careadlinkat.c,
522         and make it static.  Include <stdlib.h>, for abort, and unistd.h,
523         for readlink.
524         * lib/careadlinkat.c (careadlinkatcwd): Move to areadlink.c.
525         Don't include stdlib.h; no longer needed.
526         * lib/careadlinkat.h (careadlinkatcwd): Remove decl.
527         * lib/relocwrapper.c: Adjust comment to match new dependencies.
528         * modules/areadlink (Depends-on): Add readlink.
529         (Maintainer): Add self.
530         * modules/careadlinkat (Depends-on): Remove readlink.
531
532         extensions: port better to HP-UX
533         This is merged from git Autoconf.
534         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
535         On hosts that need _XOPEN_SOURCE, define it when configuring, too,
536         so that it's compatible with the value used when compiling.
537
538         openpty: fix bug where HAVE_OPENPTY is mistakenly 1
539         Problem reported by Mats Erik Andersson in
540         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00051.html>.
541         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when the
542         openpty function exists, not merely when we intend to replace it.
543         This corrects the 2013-01-31 patch, which mistakenly defined
544         HAVE_OPENPTY even on hosts that lacked it.
545
546 2013-02-07  Paul Eggert  <eggert@cs.ucla.edu>
547
548         secure_getenv: fix include typo
549         * lib/secure_getenv.c: Include config.h.  Somehow I forgot!
550
551         secure_getenv: port better to FreeBSD and Solaris
552         * lib/secure_getenv.c [!HAVE___SECURE_GETENV]:
553         Include unistd.h if HAVE_ISSETUGID, otherwise define a dummy issetugid.
554         (secure_getenv) [!HAVE___SECURE_GETENV]: Use getenv if not issetugid.
555         This works better on BSDish platforms.
556         * m4/secure_getenv.m4 (gl_PREREQ_SECURE_GETENV):
557         Test for issetugid if __secure_getenv is missing.
558
559 2013-02-06  Paul Eggert  <eggert@cs.ucla.edu>
560
561         extensions: port better to MINIX 3, HP-UX, autoheader 2.62
562         Some of these changes are merged in from git Autoconf.
563         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
564         When deciding whether to define _XOPEN_SOURCE, inspect the
565         preprocessor macro __hpux instead of the more-heavyweight
566         operation of requiring AC_CANONICAL_HOST.  Define _NETBSD_HOST on
567         MINIX, for MINIX 3.  Use USE_SYSTEM_EXTENSIONS, not __EXTENSIONS__,
568         as the key for __EXTENSIONS__.
569
570         unistd: avoid namespace pollution on non-glibc systems
571         * lib/unistd.in.h: #define __need_getopt before including <getopt.h>.
572         This avoids namespace pollution on non-glibc systems, by causing
573         gnulib unistd.h to behave more like glibc unistd.h.  I also hope
574         that this fixes a bug on FreeBSD, reported by Mats Erik Andersson in
575         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00027.html>.
576
577 2013-02-04  Paul Eggert  <eggert@cs.ucla.edu>
578
579         tmpdir: use secure_getenv
580         * lib/tmpdir.c (__secure_getenv) [!LIBC]:
581         Define to secure_getenv, not getenv.
582         * m4/tmpdir.m4 (gt_TMPDIR): Don't check for __secure_getenv,
583         as that's now secure_getenv's job.
584         * modules/tmpdir (Depends-on): Add secure_getenv.
585
586         tempname: use secure_getenv
587         * lib/tempname.c (__secure_getenv) [!_LIBC]:
588         Define to secure_getenv, not getenv.
589         * modules/tempname (Depends-on):
590         Add secure_getenv.
591
592         secure_getenv: new module
593         * MODULES.html.sh (Extra functions based on ANSI C 89):
594         Add secure_getenv.
595         * doc/glibc-functions/secure_getenv.texi: New file.
596         * doc/gnulib.texi: Include it.
597         * lib/secure_getenv.c, m4/secure_getenv.m4, modules/secure_getenv:
598         New files.
599         * lib/stdlib.in.h (secure_getenv): New decl.
600         * m4/stdlib_h.m4 (gl_STDLIB_H, gl_STDLIB_H_DEFAULTS):
601         * modules/stdlib (stdlib.h):
602         Add secure_getenv checks.
603
604 2013-02-03  Paul Eggert  <eggert@cs.ucla.edu>
605
606         getcwd: break fdopendir + save_cwd recursive loop (Bug#13516)
607         Reported for OS X 10.8.2 by Assaf Gordon in
608         <http://bugs.gnu.org/13516>.
609         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Do not define if
610         !HAVE_OPENAT && !HAVE_FDOPENDIR.
611         * m4/getcwd-abort-bug.m4: Reformat to match test-getcwd.c
612         so that they can be kept in sync more easily.  Avoid PATH_MAX
613         test on the Hurd.  Sync from test-getcwd.c for errno tests after
614         mkdir or chdir failure.
615         * tests/test-getcwd.c (HAVE_OPENAT_SUPPORT): New macro, from
616         lib/getcwd.c.
617         (test_abort_bug): Do not test for the deep directory bug unless we
618         have openat support.  Avoid PATH_MAX test on the Hurd.
619
620         regex-tests, regex: fix bug: memset undeclared
621         * tests/test-regex.c: Don't include regex.h twice.  Include
622         string.h, to declare memset.  Christensen's report also mentioned
623         this issue.
624         * m4/regex.m4 (gl_REGEX): Keep test program more in sync with
625         test-regex.c, to avoid future problems like this.  Remove
626         AC_INCLUDES_DEFAULT.  Include <string.h>.  Don't include <regex.h>
627         twice.
628
629         regex-tests: fix link errors on older Solaris
630         These need to link with @LIBINTL@ to get libintl_gettext.
631         Problem reported by Tom G. Christensen in
632         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00003.html>.
633         * modules/regex-tests (test_regex_LDADD): New macro.
634
635 2013-01-31  Paul Eggert  <eggert@cs.ucla.edu>
636
637         regex-tests: new module
638         * modules/regex-tests, tests/test-regex.c: New files.
639
640         regex: fix off-by-one error in configure test
641         * m4/regex.m4 (gl_REGEX): Test should return 21, not 20.
642
643 2013-01-31  Eric Blake  <eblake@redhat.com>
644
645         regex: avoid infinite configure test
646         * m4/regex.m4 (gl_REGEX): Add an alarm escape hatch.
647
648 2013-01-31  Reuben Thomas  <rrt@sc3d.org>
649
650         openpty: fix bug where HAVE_OPENPTY wasn't defined
651         See the thread starting at:
652         http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00185.html
653         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when the
654         openpty function exists, not merely when we intend to replace it.
655
656 2013-01-30  Paul Eggert  <eggert@cs.ucla.edu>
657
658         sys_time: port to Solaris 2.6
659         There is a circularity problem on Solaris 2.6, where <time.h> includes
660         <sys/time.h> for struct timespec.  The include nesting is gnulib
661         <time.h>, system <time.h>, gnulib <sys/time.h>, system
662         <sys/time.h>, gnulib <sys/types.h>, system <sys/types.h>, gnulib
663         <sys/select.h>, gnulib <signal.h>, system <sys/signal.h>, system
664         <sys/siginfo.h>; the last, innermost file needs struct
665         timestruc_t, which is defined in <sys/time.h>, which has not been
666         fully parsed.  Problem reported by Tom G. Christensen in
667         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00113.html>.
668         * lib/sys_select.in.h: Treat Solaris 2.6's problem with
669         <sys/time.h> and <sys/types.h> like OSF/1's similar problem.
670         * lib/sys_time.in.h: Redo to resemble sys_select.in.h, which
671         uses split double-inclusion guards.
672
673 2013-01-29  Paul Eggert  <eggert@cs.ucla.edu>
674
675         regex: test for buffer overrun
676         * m4/regex.m4 (gl_REGEX): Add test case, by Andreas Schwab,
677         for the just-fixed regex bug.
678
679 2013-01-29  Andreas Schwab  <schwab@suse.de>
680
681         regex: fix buffer overrun in regexp matcher [BZ #15078]
682         * lib/regexec.c (extend_buffers): Add parameter min_len.
683         (check_matching): Pass minimum needed length.
684         (clean_state_log_if_needed): Likewise.
685         (get_subexp): Likewise.
686
687 2013-01-28  Pádraig Brady  <P@draigBrady.com>
688
689         mountlist: don't consider "devtmpfs" as dummy
690         * lib/mountlist.c (ME_DUMMY_0): Remove "devtmpfs"
691         as there is storage associcated with it.
692
693 2013-01-27  Paul Eggert  <eggert@cs.ucla.edu>
694
695         futimens-tests, utimens-tests: Depend on gettext.
696         This works around a problem introduced in my 2013-01-12 patch,
697         which added @LIBINTL@ to these modules.
698         * modules/futimens-tests (Depends-on):
699         * modules/utimens-tests (Depends-on): Add gettext.
700
701 2013-01-26  Eric Blake  <eblake@redhat.com>
702
703         test-getpeername: fix typo
704         * tests/test-getpeername.c: Fix typo introduced in fd cleanup.
705
706 2013-01-20  Bernhard Voelker  <mail@bernhard-voelker.de>
707
708         bootstrap: remove the need for a sorted .gitignore file
709         * build-aux/bootstrap (insert_sorted_if_absent): Adjust and
710         rename to insert_if_absent(), so that we don't need or generate
711         a sorted .gitignore file.  We do require a .gitignore with no
712         existing duplicate entries and enforce that.
713         (sort_patterns): Remove this function as we now use the simpler
714         technigue of inserting blacklist entries at the top of the file,
715         assuming gnulib won't be inserting !whitelist entries.
716
717 2013-01-23  Paul Eggert  <eggert@cs.ucla.edu>
718
719         readlinkat: don't depend on gl_FUNC_OPENAT
720         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Don't require gl_FUNC_OPENAT.
721         Perhaps a similar change needs to be made for linkat.m4, mkfifoat.m4,
722         renameat.m4, symlinkat.m4; but one thing at a time.
723
724         statat: new module, split out from fstatat
725         GNU Emacs needs the POSIX-specified fstatat, but not the
726         gnulib-specified statat and lstat.  Split the latter two into a
727         new module 'statat'.
728         * lib/openat.h: Depend on GNULIB_STATAT, not GNULIB_FSTATAT.
729         * lib/openat.h, lib/statat.c (STATAT_INLINE):
730         Rename from FSTATAT_INLINE. All uses changed.
731         * modules/fstatat (Files): Remove lib/statat.c.
732         (gl_MODULE_INDICATOR([fstatat])): Remove.
733         (lib_SOURCES): Remove.
734         (Maintainer): Add self.
735         * modules/statat, modules/statat-tests, tests/test-statat.c: New files.
736         * tests/test-fstatat.c (BASE): Don't define if already defined.
737         (do_stat, do_lstat) [!TEST_STATAT]: Test fstatat instead.
738
739 2013-01-22  Paul Eggert  <eggert@cs.ucla.edu>
740
741         tests: don't assume fd 99 is closed
742         * tests/test-accept.c, tests/test-accept4.c, tests/test-bind.c:
743         * tests/test-close.c, tests/test-connect.c, tests/test-dprintf.c:
744         * tests/test-dup.c, tests/test-dup2.c, tests/test-faccessat.c:
745         * tests/test-fchdir.c, tests/test-fchmod.c, tests/test-fchmodat.c:
746         * tests/test-fchown.c, tests/test-fchownat.c, tests/test-fclose.c:
747         * tests/test-fdatasync.c, tests/test-fdopen.c, tests/test-fdopendir.c:
748         * tests/test-fflush.c, tests/test-fgetc.c, tests/test-fputc.c:
749         * tests/test-fread.c, tests/test-freopen.c, tests/test-fseeko4.c:
750         * tests/test-fstat.c, tests/test-fstatat.c, tests/test-fsync.c:
751         * tests/test-ftello4.c, tests/test-ftruncate.c, tests/test-futimens.h:
752         * tests/test-fwrite.c, tests/test-getpeername.c:
753         * tests/test-getsockname.c, tests/test-getsockopt.c:
754         * tests/test-grantpt.c, tests/test-ioctl.c, tests/test-isatty.c:
755         * tests/test-linkat.c, tests/test-listen.c, tests/test-lseek.c:
756         * tests/test-mkdirat.c, tests/test-mkfifoat.c, tests/test-openat.c:
757         * tests/test-pread.c, tests/test-pwrite.c, tests/test-read.c:
758         * tests/test-readlinkat.c, tests/test-recv.c, tests/test-recvfrom.c:
759         * tests/test-renameat.c, tests/test-select.h, tests/test-send.c:
760         * tests/test-sendto.c, tests/test-setsockopt.c, tests/test-shutdown.c:
761         * tests/test-symlinkat.c, tests/test-ttyname_r.c:
762         * tests/test-unlinkat.c, tests/test-unlockpt.c:
763         * tests/test-utimensat.c, tests/test-vdprintf.c, tests/test-write.c:
764         Close file descriptor 99, instead of assuming it's already closed.
765
766 2013-01-21  Paul Eggert  <eggert@cs.ucla.edu>
767
768         stpncpy: port to OS X 10.8
769         * lib/stpncpy.c (__stpncpy): Parenthesize name when defining function.
770         Problem reported by Assaf Gordon in <http://bugs.gnu.org/13495>.
771
772 2013-01-16  Paul Eggert  <eggert@cs.ucla.edu>
773
774         unistd: port to recent mingw
775         * lib/unistd.in.h: Remove special invocation convention for mingw,
776         which breaks for the latest mingw version.  See John W. Eaton in
777         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00100.html>.
778
779         largefile: port better to Mac OS X 10.5
780         This patch is backported from Autoconf git.
781         * m4/largefile.m4 (AC_SYS_LARGEFILE): Use AC_DEFINE, not
782         AH_VERBATIM, to define _DARWIN_USE_64_BIT_INODE, to avoid problems
783         with ino_t size being different for configuration time versus
784         build/run time.  Problem reported by PHO in
785         <http://lists.gnu.org/archive/html/bug-autoconf/2013-01/msg00040.html>.
786
787 2013-01-15  Paul Eggert  <eggert@cs.ucla.edu>
788
789         doc: clarify -Werror
790         * doc/warnings.texi (warnings): -Werror is not always a bad idea;
791         clarify that it's intended for developers, not for ordinary builds,
792         and mention --enable-gcc-warnings as one possible use.
793
794 2013-01-15  Andoni Morales Alastruey  <ylatuya@gmail.com>  (tiny change)
795
796         stdint: fix build with Android's Bionic fox x86
797         * lib/stdint.in.h: fix check to test if included-fixed/sys/types.h
798         was already included as _SSIZE_T_DEFINED_ might also be defined
799         in include/machine/_types.h, which is included by stdio.h
800
801 2013-01-13  Paul Eggert  <eggert@cs.ucla.edu>
802
803         net_if-tests: port to Solaris 7 + GCC 3.4.6
804         Problem reported by Tom G. Christensen in
805         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00091.html>.
806         * tests/test-net_if.c (ni): Move to next the code that uses it,
807         so that it's declared only if needed.
808
809 2013-01-12  Paul Eggert  <eggert@cs.ucla.edu>
810
811         net_if-tests: port to older Solaris
812         Problem reported by Tom G. Christensen in
813         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00086.html>.
814         * modules/net_if-tests (NET_IF_LIB): New substitution.
815         (test_net_if_LDADD): New makefile macro, which uses NET_IF_LIB.
816         (HAVE_IF_NAMEINDEX): New C macro.
817         * tests/test-net_if.c: Bypass most of the test if !HAVE_IF_NAMEINDEX.
818
819         system-quote-tests: port to older Solaris
820         Problem reported by Tom G. Christensen in
821         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00086.html>.
822         * tests/test-system-quote-child.c (fopen, fread): Undef.
823
824         c-xvasprintf etc.: fix link errors on older Solaris
825         These need to link with @LIBINTL@ to get libintl_gettext.
826         Problem reported by Tom G. Christensen in
827         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00086.html>.
828         * modules/c-xvasprintf-tests (test_c_xvasprintf_LDADD):
829         * modules/readtokens-tests (test_readtokens_LDADD): New macros.
830         * modules/futimens-tests (test_futimens_LDADD):
831         * modules/utimens-tests (test_utimens_LDADD): Add @LIBINTL@.
832
833 2013-01-10  Paul Eggert  <eggert@cs.ucla.edu>
834
835         locale: port to Solaris 2.6 and 7 + GNU gettext
836         * lib/locale.in.h: Just include_next <locale.h> when
837         being invoked recursively.  This prevents problems on Solaris 2.6 and 7
838         when combining the localename module with GNU gettext 0.18.2.
839         Problem reported by Tom G. Christensen in
840         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00084.html>.
841
842 2013-01-09  Paul Eggert  <eggert@cs.ucla.edu>
843
844         stdlib: port to Solaris 2.6
845         Also, the code worked on Solaris 7 through 9 only by accident.
846         Problem reported by Tom G. Christensen in
847         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00059.html>.
848         * lib/stdlib.in.h: If __need_system_stdlib_h is defined,
849         simply include the system stdlib.h.
850         * lib/getopt.in.h (__need_system_stdlib_h):
851         * lib/pthread.in.h (__need_system_stdlib_h):
852         * lib/unistd.in.h (__need_system_stdlib_h) [!__GLIBC__]:
853         Define when including <stdlib.h>, to avoid problems at least for
854         the pthread case on Solaris 2.6 and 7.  These .h files can get by
855         with the system stdlib.h.
856
857 2013-01-06  Paul Eggert  <eggert@cs.ucla.edu>
858
859         doc: update main copyright year
860         * doc/gnulib.texi: Update copyright date.
861
862         doc: improve ISO 8601 discussion
863         * doc/parse-datetime.texi (Combined date and time of day items):
864         Specify more carefully what formats are supported and what is
865         done with excess precision.
866
867 2013-01-05  Paul Eggert  <eggert@cs.ucla.edu>
868
869         doc: avoid small caps
870         * doc/parse-datetime.texi, doc/regex.texi: Don't use small caps;
871         they're more trouble than they're worth.  Suggested by Karl Berry
872         in <http://bugs.gnu.org/13360>.
873
874         regex: conform to strict C
875         * lib/regcomp.c (parse_bracket_exp): Add cast to conform to strict C.
876         From Aharon Robbins.
877
878         gnulib-tool: fix incompatibility with autopoint 0.18.2
879         * gnulib-tool: Don't indent AM_GNU_GETTEXT_VERSION line.
880         Problem reported by Tom G. Christensen in
881         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00053.html>.
882
883 2013-01-04  Paul Eggert  <eggert@cs.ucla.edu>
884
885         fprintftime: bring back and reword fwrite comment
886         * lib/strftime.c (cpy) [FPRINTFTIME]: Re-add reworded comment.
887
888         stdio: remove now-unnecessary stdio.c
889         Since stdio.in.h no longer uses inline functions, we no longer
890         need to compile the extern versions.
891         * lib/stdio.c: Remove.
892         * modules/stdio (Files): Remove lib/stdio.c.
893         (lib_SOURCES): Remove.
894
895         unicodeio: depend on stdio, not ignore-value
896         * lib/unicodeio.c: Do not include ignore-value.h.
897         (fwrite_success_callback): Use plain fwrite, not ignore_value + fwrite.
898         * modules/unicodeio (Depends-on): Depend on stdio, not ignore-value.
899
900         fprintftime: depend on stdio, not ignore-value
901         * lib/strftime.c [FPRINTFTIME]: Do not include ignore-value.h.
902         (cpy) [FPRINTFTIME]: Use plain fwrite, not ignore_value of fwrite,
903         since the stdio module arranges to silence that warning now.
904         * modules/fprintftime (Depends-on): Depend on stdio, not ignore-value.
905
906 2012-10-04  Simon Josefsson  <simon@josefsson.org>
907
908         stdint-tests: Fix expanded-before-required-warning.
909         * modules/stdint-tests (Depends-on): Use AC_REQUIRE.
910
911 2013-01-03  Paul Eggert  <eggert@cs.ucla.edu>
912
913         fwrite: silence __wur only for older glibc versions
914         * lib/stdio.in.h (fwrite): Limit workaround to glibc 2.4 through 2.15.
915         This will help us remove this workaround some time in the far future.
916
917 2013-01-03  Eric Blake  <eblake@redhat.com>
918
919         fwrite: silence __wur without using inline
920         * lib/stdio.in.h (fwrite): Limit warn_unused_result workaround to
921         just gcc, and in a way that avoids inline issues.
922         * modules/stdio (Depends-on): Drop extern-inline.
923
924 2013-01-03  Jim Meyering  <jim@meyering.net>
925
926         update-copyright: avoid copyright notice date corruption
927         Given a sequence of copyright year numbers in which the final
928         one was a two-digit number that happened to be a substring of
929         a preceding four-digit year number, we would mistakenly update
930         the substring (from two- to four-digit) rather than the two-digit
931         number at the end, which, combined with the addition of the current
932         4-digit year number would yield two 5-digit year numbers, e.g.,
933         here, it would convert the first "99" to "1999, 2013" rather than
934         the final one:
935           1991, 99
936           11999, 20131, 1999
937         * build-aux/update-copyright: Tighten a regexp.
938         * tests/test-update-copyright.sh: Add a test case to trigger the bug.
939         Reported by Joseph Myers in
940         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/32281
941
942 2013-01-01  Paul Eggert  <eggert@cs.ucla.edu>
943
944         regex: omit needless signed-pointer casts
945         * lib/regcomp.c (build_charclass, build_charclass_op):
946         Use char *, not unsigned char *, for class name and extra.
947         The char values are always nonnegative so there's no need to
948         insist on unsigned char * here, and using char * removes the need
949         for casts.  Reported by Aharon Robbins in
950         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
951
952         regex: support Gawk, which never uses alloca
953         * lib/regex_internal.h [!_LIBC && !HAVE_ALLOCA]:
954         Do not include in this case.  Gawk doesn't supply a substitute
955         alloca.h and doesn't need one.
956
957         regex: port __libc_lock_define usage to C89
958         * lib/regex_internal.h (__libc_lock_define) [!_LIBC]: Remove.
959         (struct re_dfa_t): Use #ifdef instead.  '__libc_lock_define (, lock)'
960         does not conform to C89, as it has an empty macro argument.
961         Reported by Aharon Robbins in
962         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
963
964 2013-01-01  Eric Blake  <eblake@redhat.com>
965
966         maint: update all copyright year number ranges
967         Run "make update-copyright".
968
969         version-etc: bump copyright year reported in --version
970         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2013.
971
972 2012-12-31  Eric Blake  <eblake@redhat.com>
973
974         sigprocmask-tests: skip test if pid is unexpectedly large
975         * tests/test-sigprocmask.c (main): Add range check.
976
977         git-version-gen: avoid test -z portability glitch
978         * build-aux/git-version-gen: Prefer portable test spelling, since
979         git-version-gen is run on more than just developer machines.
980
981 2012-12-31  Peter Rosin  <peda@lysator.liu.se>  (tiny change)
982
983         git-version-gen: add --fallback option to use if git is not present
984         * build-aux/git-version-gen: Add support for the new option --fallback,
985         which comes into play when there is no $tarball_version_file and
986         git is not working.
987         (scriptversion): Update.
988
989         maint.mk: handle missing git with more grace
990         * top/maint.mk (no-submodule-changes, public-submodule-commit):
991         Quietly proceed if git is not present.
992
993 2012-12-31  Eric Blake  <eblake@redhat.com>
994
995         dup2: work around cygwin bug
996         * m4/dup2.m4 (gl_FUNC_DUP2): Flush out cygwin core dump.
997         * lib/dup2.c (rpl_dup2): Work around it.
998         * doc/posix-functions/dup2.texi (dup2): Document it.
999
1000 2012-12-30  Paul Eggert  <eggert@cs.ucla.edu>
1001
1002         regex: remove unnecessary dependency on localcharset.h
1003         * lib/regex_internal.h [!_LIBC]: Don't include localcharset.h;
1004         hasn't been needed for years.
1005         * modules/regex (Depends-on): Remove localcharset.
1006
1007         regex: revert single-byte change
1008         * lib/regexec.c (check_node_accept_bytes): Revert previous change
1009         to this function.  This was alredy fixed in a different way, at
1010         bdb56bacd57070eced9998569ffe3f3c37ef5964 in the glibc git; see
1011         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=510219> and
1012         <http://sourceware.org/bugzilla/show_bug.cgi?id=9697>.
1013
1014         regex: simplify based on Gawk version
1015         * lib/regex_internal.c (re_dfa_add_node): Simplify.
1016         Reported by Aharon Robbins in
1017         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
1018
1019 2012-12-29  Paul Eggert  <eggert@cs.ucla.edu>
1020
1021         regex: check that pattern char is single-byte
1022         Reported by Aharon Robbins in
1023         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
1024         * lib/regexec.c (check_node_accept_bytes):
1025         Return 0 if the pattern string has a multibyte character here.
1026
1027         regex: implement rational ranges
1028         Reported by Aharon Robbins in
1029         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
1030         * lib/regcomp.c (build_range_exp) [!_LIBC]:
1031         * lib/regexec.c (check_node_accept_bytes) [!_LIBC]:
1032         Implement rational ranges.
1033
1034         regex: avoid redefining __wctype
1035         Reported by Aharon Robbins in
1036         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
1037         * lib/regex_internal.h (__wctype, __iswctype) [!_LIBC]:
1038         #undef before defining.
1039
1040         regex: port to hosts where malloc (0) == NULL
1041         Reported by Aharon Robbins in
1042         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
1043         * lib/regex_internal.c (re_node_set_alloc):
1044         Don't assume that malloc (0) yields nonnull.
1045         * lib/regex_internal.h (MALLOC_0_IS_NONNULL): New macro.
1046         * m4/regex.m4 (gl_PREREQ_REGEX): Require gl_EEMALLOC.
1047         * modules/regex (Files): Add m4/eealloc.m4.
1048
1049         regex: port to C89
1050         Reported by Aharon Robbins in
1051         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
1052         * lib/regcomp.c (init_word_char): Declaration before statement.
1053
1054         regex: merge glibc changes
1055         Also, copy the license wording from glibc.  This simplifies
1056         merging changes.  gnulib-tool will change the wording to GPL as
1057         appropriate, when importing it to other packages.  The only
1058         glibc change made since the last merge, which needs merging, is:
1059         2012-05-24 Andreas Schwab <schwab@linux-m68k.org>
1060         * lib/regex_internal.h (gettext): Remove use of INTUSE.
1061
1062         * users.txt: Add Emacs.
1063
1064         doc: omit mention of version when not needed
1065         * doc/gnulib-intro.texi (Portability and Application Code):
1066         * doc/gnulib.texi (Brief Overview, Legacy Function Substitutes):
1067         Don't mention particular dates or versions when not necessary, so
1068         that the documentation won't go out of date so quickly.
1069
1070         * doc/intprops.texi (Integer Properties): Fix Texinfo typo.
1071
1072 2012-12-28  Akim Demaille  <akim@lrde.epita.fr>
1073
1074         bootstrap: pass --force to autoreconf.
1075         * build-aux/bootstrap (AUTORECONFFLAGS): New.
1076         Add "--force" so that Automake's ylwrap and other such tools
1077         be updated at each bootstrap invocation.
1078         Use it.
1079
1080 2012-12-27  Paul Eggert  <eggert@cs.ucla.edu>
1081
1082         argp: fix port of port new 'inline' approach to Sun C 5.12 + Solaris 10
1083         The earlier patch forgot to update one of the #if conditions, causing
1084         a problem on Debian testing i386 reported by Mats Erik Andersson
1085         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00124.html>.
1086         * lib/argp-fmtstream.h (__argp_fmtstream_putc, argp_fmtstream_putc)
1087         (__argp_fmtstream_puts, argp_fmtstream_puts)
1088         (__argp_fmtstream_write, argp_fmtstream_write)
1089         [!_LIBC && !__OPTIMIZE__]: Declare as ARGP_FS_EI, not as extern.
1090
1091         * doc/gnulib-readme.texi: Minor fixups.
1092         (Portability guidelines): Modernize URLs.  Remove some repetition.
1093         (Indent with spaces not TABs): Reword to avoid too-long lines.
1094         Remove some '@ifset standalone' stuff that isn't used.
1095
1096         * doc/gnulib-readme.texi (Portability guidelines):
1097         ctype.h, not ctime.h.
1098
1099         Correct name of POSIX.1-2001.
1100         * doc/posix-functions/fgetc.texi (fgetc):
1101         * doc/posix-functions/fgets.texi (fgets):
1102         * doc/posix-functions/fread.texi (fread):
1103         * doc/posix-functions/fscanf.texi (fscanf):
1104         * doc/posix-functions/getc.texi (getc):
1105         * doc/posix-functions/getchar.texi (getchar):
1106         * doc/posix-functions/scanf.texi (scanf):
1107         POSIX.1-2001, not POSIX-2001.
1108
1109         doc: move README into manual
1110         * README: Move contents to new file doc/gnulib-readme.texi.
1111         Replace with a one-line summary.
1112         * doc/gnulib.texi (Brief Overview): New section,
1113         with old intro preface.  Include gnulib-readme.texi for contents.
1114         (Philosophy): Rename from "Introduction", since this
1115         section no longer introduces the rest.  Write a new preface.
1116         * doc/gnulib-readme.texi: New file, with the old contents of
1117         README texinfo-ized.  This way, the README info appears
1118         in the online and printed manual.
1119
1120 2012-12-25  Ben Pfaff  <blp@cs.stanford.edu>
1121
1122         c-xvasprintf: Fix "implicit declaration of function" GCC warning.
1123         * lib/c-xvasprintf.c: Add missing #include "c-vasprintf.h", for
1124         c_vasprintf() prototype.
1125
1126 2012-12-24  Ben Pfaff  <blp@cs.stanford.edu>
1127
1128         c-vasprintf: Fix "empty declaration" warning reported by GCC.
1129         * lib/c-vasprintf.h: Remove stray semicolon.
1130
1131 2012-12-23  Paul Eggert  <eggert@cs.ucla.edu>
1132
1133         gettext: avoid obsolete macro AM_PROG_MKDIR_P
1134         It is obsolete and is planned to be removed from Automake 1.14; see
1135         <http://lists.gnu.org/archive/html/automake/2012-12/msg00029.html>.
1136         * build-aux/po/Makefile.in.in (install-data, install-data-yes)
1137         (installdirs-data, installdirs-data-yes):
1138         Use $(MKDIR_P), not $(mkdir_p).
1139         * m4/intl.m4 (AM_INTL_SUBDIR):
1140         * m4/po.m4 (AM_PO_SUBDIRS):
1141         Require AC_PROG_MKDIR_P, not AM_PROG_MKDIR_P.
1142
1143 2012-12-22  Paul Eggert  <eggert@cs.ucla.edu>
1144
1145         argp: port new 'inline' approach to Sun C 5.12 + Solaris 10
1146         On this platform, we are not optimizing but we are using
1147         the substitute for extern inlines, so compile as if
1148         C99-style extern inline, or a substitute, is available.
1149         * lib/argp-fmtstream.h (argp_fmtstream_set_lmargin)
1150         (__argp_fmtstream_set_lmargin, argp_fmtstream_set_rmargin)
1151         (__argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin)
1152         (__argp_fmtstream_set_wmargin, argp_fmtstream_point)
1153         (__argp_fmtstream_point) [!_LIBC && !__OPTIMIZE__]:
1154         Declare as ARGP_FS_EI, not as extern.
1155         * lib/argp.h (argp_usage, __argp_usage, _option_is_short)
1156         (__option_is_short, _option_is_end, __option_is_end)
1157         [!_LIBC && __USE_EXTERN_INLINES]:
1158         Declare as ARGP_EI, not as extern.
1159
1160 2012-12-21  Paul Eggert  <eggert@cs.ucla.edu>
1161
1162         AC_PROG_MKDIR_P: port workaround to pre-2.62 Autoconf
1163         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P, AC_C_RESTRICT):
1164         Use m4_ifndef([AC_AUTOCONF_VERSION], ...), not
1165         m4_if(m4_version_compare(m4_defn([AC_AUTOCONF_VERSION]),[2.62]),[-1],
1166         ...), as the latter is fatal with older Autoconfs.
1167         Problem reported and fix suggested by Eric Blake in thread starting at
1168         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00097.html>.
1169
1170 2012-12-20  Paul Eggert  <eggert@cs.ucla.edu>
1171
1172         AC_PROG_MKDIR_P: don't workaround if not buggy
1173         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P):
1174         Define only for Autoconf versions before 2.62.
1175         (AC_C_RESTRICT): Use documented AC_AUTOCONF_VERSION, not
1176         undocumented m4_PACKAGE_VERSION, for consistency with the
1177         abovementioned change to AC_PROG_MKDIR_P.  This should suffice
1178         since we're checking for 2.62 or later, and AC_AUTOCONF_VERSION
1179         was introduced in 2.62.
1180
1181 2012-12-15  Ben Pfaff  <blp@cs.stanford.edu>
1182
1183         New 'c-*printf' modules for formatted output in C locale.
1184
1185         New module 'c-vasnprintf'.
1186         * modules/c-vasnprintf: New file.
1187         * lib/c-vasnprintf.c: New file.
1188         * lib/c-vasnprintf.h: New file.
1189
1190         New module 'c-snprintf'.
1191         * modules/c-snprintf: New file.
1192         * modules/c-snprintf-tests: New file.
1193         * lib/c-snprintf.c: New file.
1194         * lib/c-snprintf.h: New file.
1195         * tests/test-c-snprintf.c: New file.
1196         * tests/test-c-snprintf.sh: New file.
1197
1198         New module 'c-vsnprintf'.
1199         * modules/c-vsnprintf: New file.
1200         * modules/c-vsnprintf-tests: New file.
1201         * lib/c-vsnprintf.c: New file.
1202         * lib/c-vsnprintf.h: New file.
1203         * tests/test-c-vsnprintf.c: New file.
1204         * tests/test-c-vsnprintf.sh: New file.
1205
1206         New module 'c-vasprintf'.
1207         * modules/c-vasprintf: New file.
1208         * modules/c-vasprintf-tests: New file.
1209         * lib/c-asprintf.c: New file.
1210         * lib/c-vasprintf.c: New file.
1211         * lib/c-vasprintf.h: New file.
1212         * tests/test-c-vasprintf.c  +: New file.
1213         * tests/test-c-vasprintf.sh: New file.
1214
1215         New module 'c-xvasprintf'.
1216         * modules/c-xvasprintf: New file.
1217         * modules/c-xvasprintf-tests: New file.
1218         * lib/c-xasprintf.c: New file.
1219         * lib/c-xvasprintf.c: New file.
1220         * lib/c-xvasprintf.h: New file.
1221         * tests/test-c-xvasprintf.c: New file.
1222         * tests/test-c-xvasprintf.sh: New file.
1223
1224 2012-12-18  Paul Eggert  <eggert@cs.ucla.edu>
1225
1226         argp: better 'inline'
1227         Use extern-inline module to declare extern inline functions.
1228         This avoids some bogus warning diagnostics.  Problem discovered
1229         when modifying GNU tar to use the manywarnings module.
1230         * lib/argp.h, lib/argp-xinl.c (ARGP_EI) [!_LIBC]:
1231         * lib/argp-fmtstream.h, lib/argp-fs-xinl.c (ARGP_FS_EI) [!_LIBC]:
1232         Define based on extern-inline.
1233         * modules/argp (Depends-on): Add extern-inline.
1234
1235 2012-12-17  Paul Eggert  <eggert@cs.ucla.edu>
1236
1237         filemode, sys_stat: Handle MPX files a la AIX.
1238         * lib/filemode.c (ftypelet): Report 'm' for MPX files.
1239         * lib/sys_stat.in.h (S_ISMPX): New macro.
1240         * tests/test-sys_stat.c: Add tests for MPX files.
1241
1242 2012-12-16  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
1243
1244         x-to-1: honor $PERL
1245         * build-aux/x-to-1.in: Run $HELP2MAN via $PERL so that the user gets
1246         a chance to use his preferred version of Perl.  This is typically
1247         required by Darwin users whose default /usr/bin/perl does not have all
1248         the libraries required by help2man, and who need to use their MacPorts
1249         installation of Perl instead.
1250
1251 2012-12-16  Akim Demaille  <akim@lrde.epita.fr>
1252
1253         gnu-web-doc-update: add all the new files, even in new directories
1254         See http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00057.html
1255         * build-aux/gnu-web-doc-update (--dry-run, $dryrun): New.
1256         Use it.
1257         (main): Don't use cvsutils to get the list of unknown files,
1258         just add all the existing files and directories.
1259
1260 2012-12-16  Akim Demaille  <akim@lrde.epita.fr>
1261
1262         gnu-web-doc-update: improve --help
1263         * build-aux/gnu-web-doc-update: Move comments into --help.
1264
1265 2012-12-07  Eric Wong  <normalperson@yhbt.net>
1266
1267         mountlist: recognize more "dummy" file systems
1268         * lib/mountlist.c (ME_DUMMY_0):
1269         Add these dummy FS names to the list:
1270         - "debugfs" virtual filesystem for kernel debugging
1271         - "devpts" PTY slave filesystem
1272         - "devtmpfs" device filesystem on top of tmpfs/ramfs
1273         - "fusectl" control filesystem for FUSE
1274         - "mqueue" enumerates POSIX message queues
1275         - "rpc_pipefs" kernel <-> userspace bridge for NFS
1276         - "sysfs" is for exporting kernel objects
1277         - "devfs" device filesystem for Linux 2.4 and FreeBSD
1278
1279 2012-12-11  Paul Eggert  <eggert@cs.ucla.edu>
1280
1281         extern-inline: avoid incompatibility with Darwin Libc
1282         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE): Do not use
1283         extern inline if __APPLE__.  Use _GL_UNUSED in the non-inline branch.
1284         Problem reported by Akim Demaille in
1285         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00023.html>.
1286
1287 2012-12-11  Simon Josefsson  <simon@josefsson.org>
1288
1289         gnupload: Work with GnuPG using gpg-agent (for smartcards).
1290         * build-aux/gnupload: If GnuPG is configured to use gpg-agent,
1291         let it handle password prompting.
1292
1293 2012-12-10  Eli Zaretskii  <eliz@gnu.org>
1294
1295         canonicalize, canonicalize-lgpl: Microsoft Windows prefix fixes
1296         * lib/canonicalize.c (canonicalize_filename_mode):
1297         * lib/canonicalize-lgpl.c (__realpath): Recompute prefix_len after
1298         fetching the current directory.  Don't overrun the beginning of
1299         rpath if there's no slashes after the MS-Windows drive letter.
1300
1301 2012-12-08  Stefano Lattarini  <stefano.lattarini@gmail.com>
1302
1303         maint.mk: avoid extra forks
1304         * top/maint.mk (_cfg_mk): The GNU make manual documents that
1305         "$(wildcard FILE)" expands to empty if FILE doesn't exist.
1306         So use that instead of "$(shell test -f FILE && echo FILE)".
1307
1308 2012-12-07  Paul Eggert  <eggert@cs.ucla.edu>
1309
1310         vasnprintf: fix ASCII_ONLY typo
1311         * lib/unistdio/u8-vasnprintf.c (FCHAR_T_ONLY_ASCII):
1312         * lib/unistdio/u16-vasnprintf.c (FCHAR_T_ONLY_ASCII):
1313         * lib/unistdio/u32-vasnprintf.c (FCHAR_T_ONLY_ASCII):
1314         New macro, replacing ASCII_ONLY.  This fixes a typo.  See thread at
1315         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00021.html>.
1316
1317 2012-12-05  Paul Eggert  <eggert@cs.ucla.edu>
1318
1319         list, oset, xlist, xoset: fix extern inline issue with C99
1320         This was introduced by my recent changes for 'inline'.
1321         Problem reported for gettext by Daiki Ueno in
1322         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00000.html>.
1323         * lib/gl_list.h (gl_list_nx_create_empty, gl_list_create)
1324         (gl_list_nx_create, gl_list_size, gl_list_node_value)
1325         (gl_list_node_set_value, gl_list_node_nx_set_value, gl_list_next_node)
1326         (gl_list_previous_node, gl_list_get_at)
1327         (gl_list_nx_set_at, gl_list_search, gl_list_search_from)
1328         (gl_list_search_from_to, gl_list_indexof, gl_list_indexof_from)
1329         (gl_list_indexof_from_to, gl_list_nx_add_first, gl_list_nx_add_last)
1330         (gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at)
1331         (gl_list_remove_node, gl_list_remove_at, gl_list_remove, gl_list_free)
1332         (gl_list_iterator, gl_list_iterator_from_to, gl_list_iterator_next)
1333         (gl_list_iterator_free, gl_sortedlist_search)
1334         (gl_sortedlist_search_from_to, gl_sortedlist_indexof)
1335         (gl_sortedlist_indexof_from_to, gl_sortedlist_add, gl_sortedlist_nx_add)
1336         (gl_sortedlist_remove):
1337         * lib/gl_oset.h (go_oset_nx_create_empty, gl_oset_size, gl_oset_search)
1338         (gl_oset_search_atleast, gl_oset_nx_add, gl_oset_remove, gl_oset_free)
1339         (gl_oset_iterator, gl_oset_iterator_next, gl_oset_iterator_free):
1340         * lib/gl_xlist.h (gl_list_create_empty, gl_list_create)
1341         (gl_list_node_set_value, gl_list_set_at, gl_list_add_first)
1342         (gl_list_add_last, gl_list_add_before, gl_list_add_after)
1343         (gl_list_add_at, gl_sortedlist_add):
1344         * lib/gl_xoset.h (gl_oset_create_empty, gl_oset_add):
1345         Wrap these extern decls inside "#if 0", because they are implemented
1346         as inline functions, and extern inline is not what's wanted here.
1347         It would simplify these .h files to remove the extern decls entirely,
1348         although a downside would be less-clear separation between
1349         specification and implementation.
1350
1351 2012-11-29  Paul Eggert  <eggert@cs.ucla.edu>
1352
1353         sys_stat: no 'static inline'
1354         * lib/sys_stat.in.h (rpl_mkdir): Now static, not static inline.
1355         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Do not require AC_C_INLINE.
1356
1357         extern-inline: no 'static inline'
1358         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
1359         Do not require AC_C_INLINE.
1360         (_GL_INLINE, _GL_EXTERN_INLINE): Define as 'static', not as
1361         'static inline', for older compilers.
1362
1363         snippet/warn-on-use: no 'static inline'
1364         * build-aux/snippet/warn-on-use.h:
1365         Remove unnecessary 'inline' in comment.
1366
1367         rbtree-list, rbtreehash-list: no 'static inline'
1368         * lib/gl_anyrbtree_list2.h (rotate_left, rotate_right):
1369         * lib/gl_anytree_list2.h (node_at):
1370         * lib/gl_anytreehash_list1.h (hash_resize_after_add)
1371         (gl_oset_first, add_nodes_to_buckets):
1372         Now static, not static inline.
1373
1374         regex: no 'static inline'
1375         * lib/regex_internal.c (calc_state_hash):
1376         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain)
1377         (bitset_empty, bitset_set_all, bitset_copy, bitset_not, bitset_merge)
1378         (bitset_mask, re_string_char_size_at, re_string_wchar_at):
1379         Now static, not static inline.
1380         (inline) [__GNUC__ < 3 && _LIBC]:
1381         Remove macro; no longer needed.
1382
1383         xvasprintf: no 'static inline'
1384         * lib/xvasprintf.c (xstrcat):
1385         Now static, not static inline.
1386         * m4/xvasprintf.m4 (gl_XVASPRINTF):
1387         Do not require AC_C_INLINE.
1388
1389         parse-datetime, parse-duration: no 'static inline'
1390         * lib/parse-datetime.y (to_uchar):
1391         * lib/parse-duration.c (str_const_to_ul, str_const_to_l)
1392         (scale_n_add):
1393         Now static, not static inline.
1394         * m4/parse-datetime.m4 (gl_PARSE_DATETIME):
1395         * modules/parse-duration (configure.ac):
1396         Do not require AC_C_INLINE.
1397
1398         getaddrinfo: no 'static inline'
1399         * lib/getaddrinfo.c (validate_family):
1400         Now static, not static inline.
1401         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO):
1402         Do not require AC_C_INLINE.
1403
1404         ftruncate, fts, lstat, openat, raise: no 'static inline'
1405         * lib/ftruncate.c (chsize_nothrow):
1406         * lib/fts.c (opendirat, diropen):
1407         * lib/lstat.c (orig_lstat):
1408         * lib/openat.c (orig_openat):
1409         * lib/raise.c (raise_nothrow):
1410         Now static, not static inline.
1411         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE):
1412         * m4/fts.m4 (gl_FUNC_FTS_CORE):
1413         * m4/lstat.m4 (gl_PREREQ_LSTAT):
1414         * m4/openat.m4 (gl_PREREQ_OPENAT):
1415         * m4/raise.m4 (gl_PREREQ_RAISE):
1416         Do not require AC_C_INLINE.
1417
1418         fflush, stat: no 'static inline'
1419         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
1420         (clear_ungetc_buffer, disable_seek_optimization)
1421         (restore_seek_optimization, update_fpos_cache):
1422         * lib/stat.c (orig_stat):
1423         Now static, not static inline.
1424         * lib/fflush.c (disable_seek_optimization, restore_seek_optimization)
1425         (update_fpos_cache):
1426         Define only if ! (defined _IO_ftrylockfile || __GNU_LIBRARY__ == 1).
1427         * m4/fflush.m4 (gl_PREREQ_FFLUSH):
1428         * m4/stat.m4 (gl_PREREQ_STAT):
1429         Do not require AC_C_INLINE.
1430
1431         error, filevercmp: no 'static inline'
1432         * lib/error.c (is_open, flush_stdout):
1433         * lib/filevercmp.c (order):
1434         Now static, not static inline.
1435         * m4/error.m4 (gl_PREREQ_ERROR):
1436         * modules/filevercmp (configure.ac):
1437         Do not require AC_C_INLINE.
1438
1439         dup, execute, fatal-signal, etc.: no 'static inline'
1440         * lib/dup.c (dup_nothrow):
1441         * lib/execute.c (nonintr_close, nonintr_open):
1442         * lib/fatal-signal.c (uninstall_handlers, install_handlers):
1443         * lib/fopen.c (orig_fopen):
1444         * lib/freadseek.c (freadptrinc):
1445         * lib/freopen.c (orig_freopen):
1446         * lib/fstat.c (orig_fstat, fstat_nothrow):
1447         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit)
1448         (get_rusage_as_via_iterator):
1449         * lib/get-rusage-data.c (get_rusage_data_via_setrlimit):
1450         * lib/getdtablesize.c (_setmaxstdio_nothrow):
1451         * lib/isatty.c (_isatty_nothrow):
1452         * lib/open.c (orig_open):
1453         * lib/read.c (read_nothrow):
1454         * lib/sigprocmask.c (signal_nothrow):
1455         * lib/spawn-pipe.c (nonintr_close, nonintr_open):
1456         * lib/vasnprintf.c (MAX_ROOM_NEEDED):
1457         * lib/wait-process.c (unregister_slave_subprocess):
1458         * lib/write.c (write_nothrow):
1459         Now static, not static inline.
1460         * lib/spawn-pipe.c (nonintr_open): Define only if
1461         (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__.
1462         * m4/dup.m4 (gl_PREREQ_DUP):
1463         * m4/execute.m4 (gl_EXECUTE):
1464         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL):
1465         * m4/fopen.m4 (gl_PREREQ_FOPEN):
1466         * m4/freadseek.m4 (gl_FUNC_FREADSEEK):
1467         * m4/freopen.m4 (gl_PREREQ_FREOPEN):
1468         * m4/fstat.m4 (gl_PREREQ_FSTAT):
1469         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE):
1470         * m4/isatty.m4 (gl_PREREQ_ISATTY):
1471         * m4/open.m4 (gl_PREREQ_OPEN):
1472         * m4/read.m4 (gl_PREREQ_READ):
1473         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK):
1474         * m4/spawn-pipe.m4 (gl_SPAWN_PIPE):
1475         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF):
1476         * m4/wait-process.m4 (gl_WAIT_PROCESS):
1477         * m4/write.m4 (gl_PREREQ_WRITE):
1478         * modules/get-rusage-as, modules/get-rusage-data (configure.ac):
1479         Do not require AC_C_INLINE.
1480
1481         c-strtod, memcoll, readutmp: no 'static inline'
1482         * lib/c-strtod.c (c_locale):
1483         * lib/memcoll.c (strcoll_loop):
1484         * lib/readutmp.c (desirable_utmp_entry):
1485         Now static, not static inline.
1486         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD):
1487         * m4/memcoll.m4 (gl_MEMCOLL):
1488         * m4/readutmp.m4 (gl_READUTMP):
1489         Do not require AC_C_INLINE.
1490
1491         arctwo, md4, md5, sha1, sha256, sha512: no 'static inline'
1492         * lib/arctwo.c (to_uchar):
1493         * lib/md4.c (set_uint32):
1494         * lib/md5.c (set_uint32):
1495         * lib/sha1.c (set_uint32):
1496         * lib/sha256.c (set_uint32):
1497         * lib/sha512.c (set_uint64):
1498         Now static, not static inline.  This is a bit simpler, and doesn't
1499         affect performance with GCC and default optimization.
1500         * m4/arctwo.m4 (gl_ARCTWO):
1501         * m4/md4.m4 (gl_MD4):
1502         * m4/md5.m4 (gl_MD5):
1503         * m4/sha1.m4 (gl_SHA1):
1504         * m4/sha256.m4 (gl_SHA256):
1505         * m4/sha512.m4 (gl_SHA512):
1506         Do not require AC_C_INLINE.
1507
1508         cond, lock, thread: better 'inline'
1509         * lib/glthread/cond.c, lib/glthread/cond.h (_GLTHREAD_COND_INLINE):
1510         * lib/glthread/thread.c, lib/glthread/thread.h (_GLTHREAD_THREAD_INLINE):
1511         New macros.  Use them instead of static inline, for header functions.
1512         * lib/glthread/cond.c (gl_waitqueue_init, gl_waitqueue_remove)
1513         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
1514         * lib/glthread/lock.c (gl_waitqueue_init)
1515         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
1516         * lib/glthread/thread.c (get_current_thread_handle):
1517         Change 'static inline' to 'inline'.
1518         * lib/glthread/cond.h, lib/glthread/thread.h:
1519         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1520         * m4/cond.m4 (gl_COND):
1521         * m4/lock.m4 (gl_PREREQ_LOCK):
1522         * m4/thread.m4 (gl_THREAD):
1523         Do not require AC_C_INLINE.
1524         * modules/cond, modules/thread (Depends-on): Add extern-inline.
1525
1526         chdir-long, cycle-check, savewd: better 'inline'
1527         * lib/chdir-long.c (cdb_init, cdb_fchdir, cdb_free)
1528         (find_non_slash):
1529         * lib/cycle-check.c (is_zero_or_power_of_two):
1530         * lib/savewd.c (savewd_delegating):
1531         Change 'static inline' to 'inline'.
1532         * lib/savewd.c, lib/savewd.h (SAVEWD_INLINE): New macro.
1533         Replace all remaining uses of 'static inline' with it.
1534         * lib/savewd.h:
1535         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1536         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG):
1537         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
1538         * m4/savewd.m4 (gl_SAVEWD):
1539         Do not require AC_C_INLINE.
1540         * modules/savewd (Depends-on): Add extern-inline.
1541
1542         base32, base64: no need for 'inline'
1543         * lib/base32.c (to_uchar, get_8, decode_8):
1544         * lib/base64.c (to_uchar, get_4, decode_4):
1545         Change 'static inline' to 'inline'.
1546         * m4/base32.m4 (gl_PREREQ_BASE32):
1547         * m4/base64.m4 (gl_PREREQ_BASE64):
1548         Do not require AC_C_INLINE.
1549
1550         array-oset, linkedhash-list, rbtree-oset: no need for 'inline'
1551         * lib/gl_array_oset.c (gl_array_nx_add_at):
1552         (gl_array_remove_at):
1553         * lib/gl_linkedhash_list.c (hash_resize_after_add)
1554         (add_to_bucket, remove_from_bucket):
1555         * lib/gl_rbtree_oset.c (rotate_left, rotate_right):
1556         Change 'static inline' to 'static', as it's simpler to omit
1557         'inline' unless there's a significant performance advantage.
1558
1559         list, oset, xlist, xoset, xsublist: simplify via extern inline
1560         * lib/gl_list.h, lib/gl_list.c (GL_LIST_INLINE):
1561         * lib/gl_oset.c, lib/gl_oset.h (GL_OSET_INLINE):
1562         * lib/gl_xlist.c, lib/gl_xlist.h (GL_XLIST_INLINE):
1563         * lib/gl_xoset.c, lib/gl_xoset.h (GL_XOSET_INLINE):
1564         * lib/gl_xsublist.c, lib/gl_xsublist.h (GL_XSUBLIST_INLINE):
1565         New macro.  Replace all uses of 'static inline' with it.
1566         [HAVE_INLINE]: Implement functions as *_INLINE functions,
1567         instead of as macros FOO that are defined to static inline
1568         functions FOO_inline.
1569         * lib/gl_list.c, lib/gl_oset.c, lib/gl_xlist.c, lib/gl_xoset.c:
1570         * lib/gl_xsublist.c:
1571         Reimplement from scratch, by defining the corresponding *_INLINE
1572         macro and including the corresponding .h file.  This is simpler.
1573         * modules/list, modules/oset, modules/xlist, modules/xoset:
1574         (Files): Remove m4/gl_list.m4.
1575         (configure.ac): Remove gl_LIST.
1576         * m4/gl_list.m4: Remove.
1577         * modules/list, modules/oset, modules/xlist, modules/xoset:
1578         * modules/xsublist:
1579         (Depends-on): Depend on extern-inline, not inline.
1580
1581         xalloc: better 'inline'
1582         * lib/xmalloc.c, lib/xalloc.h (XALLOC_INLINE):
1583         New macro.  Replace all uses of 'static inline' with it.
1584         (static_inline): Remove.
1585         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
1586         Let 'extern inline' do the work automatically, instead of doing
1587         it by hand.
1588         * m4/xalloc.m4 (gl_PREREQ_XALLOC, gl_PREREQ_XMALLOC):
1589         Remove.  All uses removed.
1590         * modules/xalloc (Depends-on): Remove 'inline'.  Add 'extern-inline'.
1591
1592         gethrxtime: better 'inline'
1593         * lib/xtime.c: New file.
1594         * lib/gethrxtime.c, lib/gethrxtime.h (GETHRXTIME_INLINE):
1595         * lib/xtime.h (XTIME_INCLUDE):
1596         New macros.  Replace all uses of 'static inline' with them.
1597         * lib/gethrxtime.c (gethrxtime): Define only if
1598         ! (HAVE_ARITHMETIC_HRTIME_T && HAVE_DECL_GETHRTIME), since
1599         this source file is now always compiled, because of the extern inline.
1600         * lib/gethrxtime.h, lib/xtime.h:
1601         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1602         * m4/gethrxtime.m4 (gl_GETHRXTIME): Do not check for clock macros
1603         if gethrtime works, as they're not needed in that case.
1604         (gl_XTIME): Do not require AC_C_INLINE.
1605         (gl_PREREQ_GETHRXTIME): Remove; all uses removed, as it's always
1606         compiled now.  Move the check into gl_GETHRXTIME.
1607         * modules/gethrxtime (Files, lib_SOURCES): Add lib/xtime.c.
1608         (Depends-on): Add extern-inline.
1609         (configure.ac): gethrxtime is always compiled now.
1610         (lib_SOURCES): Add gethrxtime.c.
1611
1612         wctype-h: better 'inline'
1613         * lib/wctype-h.c: New file.
1614         * lib/wctype.in.h (_GL_WCTYPE_INLINE):
1615         New macro.  Replace all uses of 'static inline' with it.
1616         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1617         * m4/wctype_h.m4 (gl_WCTYPE_H): Do not require AC_C_INLINE.
1618         * modules/wctype-h (Files, lib_SOURCES): Add lib/wctype-h.c.
1619         (Depends-on): Add extern-inline.
1620
1621         unistd: better 'inline'
1622         * lib/unistd.c: New file.
1623         * lib/unistd.in.h (_GL_UNISTD_INLINE):
1624         New macro.  Replace all uses of 'static inline' with it.
1625         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1626         * m4/unistd_h.m4 (gl_UNISTD_H): Do not require AC_C_INLINE.
1627         * modules/unistd (Files, lib_SOURCES): Add lib/unistd.c.
1628         (Depends-on): Add extern-inline.
1629
1630         sys_socket: better 'inline'
1631         * lib/sys_socket.c: New file.
1632         * lib/sys_socket.in.h (_GL_SYS_SOCKET_INLINE):
1633         New macro.  Replace all uses of 'static inline' with it.
1634         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1635         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Do not require AC_C_INLINE.
1636         * modules/sys_socket (Files, lib_SOURCES): Add lib/sys_socket.c.
1637         (Depends-on): Add extern-inline.
1638
1639         stdio: better 'inline'
1640         * lib/stdio.c: New file.
1641         * lib/stdio.in.h (_GL_STDIO_INLINE):
1642         New macro.  Replace all uses of 'static inline' with it.
1643         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1644         * m4/stdio_h.m4 (gl_STDIO_H): Do not require AC_C_INLINE.
1645         * modules/stdio (Files, lib_SOURCES): Add lib/stdio.c.
1646         (Depends-on): Add extern-inline.
1647
1648         sigaction: better 'inline'
1649         * lib/sig-handler.c: New file.
1650         * lib/sig-handler.h (SIG_HANDLER_INLINE):
1651         New macro.  Replace all uses of 'static inline' with it.
1652         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1653         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): Do not require AC_C_INLINE.
1654         * modules/sigaction (Files, lib_SOURCES): Add lib/sig-handler.c.
1655         (Depends-on): Add extern-inline.
1656
1657         selinux-h: better 'inline'
1658         * lib/se-context.c, lib/se-selinux.c: New files.
1659         * lib/getfilecon.c (map_to_failure): Omit 'inline' for static function.
1660         * lib/se-context.in.h (SE_CONTEXT_INLINE):
1661         New macro.  Replace all uses of 'static inline' with it.
1662         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1663         * lib/se-selinux.in.h (SE_SELINUX_INLINE):
1664         New macro.  Replace all uses of 'static inline' with it.
1665         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1666         * modules/selinux-h (Files, lib_SOURCES):
1667         Add lib/se-context.c, lib/se-selinux.c.
1668         (Depends-on): Add extern-inline.
1669         (configure.ac): Do not require AC_C_INLINE.
1670
1671         pthread: better 'inline'
1672         * lib/pthread.c: New file.
1673         * lib/pthread.in.h (_GL_PTHREAD_INLINE):
1674         New macro.  Replace all uses of 'static inline' with it.
1675         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1676         * m4/pthread.m4 (gl_PTHREAD_CHECK):
1677         Add AC_LIBOBJ([pthread]).  Do not require AC_C_INLINE.
1678         * modules/pthread (Files): Add lib/pthread.c.
1679         (Depends-on): Add extern-inline.
1680
1681         math: better 'inline'
1682         * lib/math.c: New file.
1683         * lib/math.in.h (_GL_MATH_INLINE):
1684         New macro.  Replace all uses of 'static inline' with it.
1685         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1686         * m4/math_h.m4 (gl_MATH_H):
1687         Do not require AC_C_INLINE.
1688         * modules/math (Files, lib_SOURCES):
1689         Add lib/math.c.
1690         (Depends-on): Add extern-inline.
1691
1692         count-one-bits: better 'inline'
1693         * lib/count-one-bits.c: New file.
1694         * lib/count-one-bits.h (COUNT_ONE_BITS_INLINE):
1695         New macro.  Replace all uses of 'static inline' with it.
1696         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1697         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS):
1698         Do not require AC_C_INLINE.
1699         * modules/count-one-bits (Files, lib_SOURCES):
1700         Add lib/count-one-bits.c.
1701         (Depends-on): Add extern-inline.
1702
1703         count-leading-zeros: better 'inline'
1704         * lib/count-leading-zeros.c: New file.
1705         * lib/count-leading-zeros.h (COUNT_LEADING_ZEROS_INLINE):
1706         New macro.  Replace all uses of 'static inline' with it.
1707         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1708         * m4/count-leading-zeros.m4 (gl_COUNT_LEADING_ZEROS):
1709         Do not require AC_C_INLINE.
1710         * modules/count-leading-zeros (Files, lib_SOURCES):
1711         Add lib/count-leading-zeros.c.
1712         (Depends-on): Add extern-inline.
1713
1714         bitrotate: better 'inline'
1715         * lib/bitrotate.c: New file.
1716         * lib/bitrotate.h (BITROTATE_INLINE):
1717         New macros.
1718         Replace all uses of 'static inline' with them.
1719         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1720         * modules/bitrotate (Files, lib_SOURCES): Add lib/bitrotate.c.
1721         (Depends-on): Add extern-inline.
1722         (configure.ac): Do not require AC_C_INLINE.
1723
1724 2012-11-20  Theophile Ranquet <ranquet@lrde.epita.fr>
1725
1726         maint.mk: avoid gratuitous failure
1727         Reported by Stefano Lattarini in
1728         <http://lists.gnu.org/archive/html/bug-bison/2012-11/msg00022.html>
1729         * top/maint.mk (public-submodule-commit): Quote more safely.
1730
1731 2012-11-20  Eli Zaretskii  <eliz@gnu.org>
1732
1733         canonicalize, canonicalize-lgpl: support MS-Windows file names
1734         See <http://lists.gnu.org/archive/html/bug-gnulib/2012-11/msg00074.html>
1735         for test cases, which it'd be nice to add at some point.
1736         * lib/canonicalize.c, lib/canonicalize-lgpl.c: Include dosname.h.
1737         * lib/canonicalize.c (canonicalize_filename_mode):
1738         * lib/canonicalize-lgpl.c (__realpath):
1739         Use FILE_SYSTEM_PREFIX_LEN instead of assuming that the first
1740         slash is at the beginning of the file name.  Use ISSLASH, instead
1741         of a literal '/'.  Use IS_ABSOLUTE_FILE_NAME instead of comparing
1742         the first character with '/'.  Test for
1743         DOUBLE_SLASH_IS_DISTINCT_ROOT only if the file name does not begin
1744         with a drive letter.
1745         * lib/canonicalize.c (SLASHES): New macro.
1746         (canonicalize_filename_mode): Use SLASHES instead of a literal "/".
1747
1748 2012-11-17  Dmitry V. Levin  <ldv@altlinux.org>
1749
1750         fts: introduce FTS_VERBATIM
1751         * lib/fts_.h (FTS_VERBATIM): New bit flag.
1752         (FTS_OPTIONMASK, FTS_NAMEONLY, FTS_STOP): Adjust.
1753         * lib/fts.c (fts_open): Honor it.
1754
1755 2012-11-09  Pádraig Brady  <P@draigBrady.com>
1756
1757         getlogin-tests: allow errno == ENXIO
1758         * tests/test-getlogin.c (main): Skip tests if getlogin fails
1759         with errno == ENXIO (No controlling tty).
1760         getlogin_r-tests: Likewise. Also allow errno == ENOENT
1761         * tests/test-getlogin_r.c (main): Skip tests if getlogin_r fails
1762         with errno == ENOENT.  This was reported to happen in various
1763         situations on GNU/Linux.
1764
1765 2012-11-09  Paul Eggert  <eggert@cs.ucla.edu>
1766
1767         getlogin-tests: allow errno == ENOENT
1768         * tests/test-getlogin.c (main): Skip tests if getlogin fails
1769         with errno == ENOENT.  This happened to me on Ubuntu 12.04.1 x86,
1770         when running a test in an Emacs shell buffer.
1771
1772 2012-11-08  Jim Meyering  <jim@meyering.net>
1773
1774         tests/nap.h: avoid warning about unused variable
1775         * tests/nap.h (nap_works): Remove now-unused declaration of "result".
1776
1777         prefix-gnulib-mk: avoid overzealous "lib/"-prefix addition
1778         * build-aux/prefix-gnulib-mk (prefix): Tighten a regexp to require
1779         white space before each of the special-cased file names, to avoid
1780         adding "lib/" after $(libdir)/.  Reported by Matias A. fonzo
1781         in http://bugs.gnu.org/12830.
1782
1783 2012-11-08  Paul Eggert  <eggert@cs.ucla.edu>
1784
1785         fcntl-h: default O_SEARCH, O_EXEC back to O_RDONLY
1786         O_PATH doesn't work with Linux kernel 3.6.5, as fchmod (fd, ...)
1787         fails with errno == EBADF when fd is opened with O_PATH.
1788         Reported by Jim Meyering in
1789         <http://lists.gnu.org/archive/html/bug-gnulib/2012-11/msg00026.html>.
1790         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
1791         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default back to O_RDONLY.
1792
1793 2012-11-07  Paul Eggert  <eggert@cs.ucla.edu>
1794
1795         test-utimens: speed up by taking shorter naps
1796         * tests/nap.h (lt_mtime, get_mtime, nap_works, guess_delay):
1797         New functions.
1798         (nap): Use them, to do a better job of guessing the delay.
1799         On Fedora 17 with ext4 atop md atop hard disks, this made
1800         test-utimens run 10x faster, because the test napped for
1801         1 ms at a time rather than 20 ms.  Reported by Stefano Lattarini in
1802         <http://bugs.gnu.org/12820#11>.
1803
1804 2012-11-07  Jim Meyering  <jim@meyering.net>
1805
1806         mountlist.c: fix a compilation failure
1807         * lib/mountlist.c (read_file_system_list): Fix a compilation failure
1808         I introduced while transforming commit v0.0-7683-g613bcb6
1809
1810 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
1811
1812         errno: port to LynxOS 178 2.2.2
1813         Problem reported by Joel Brobecker in
1814         <http://lists.gnu.org/archive/html/bug-gnulib/2012-10/msg00088.html>.
1815         * doc/posix-headers/errno.texi (errno.h): Document this.
1816         * lib/errno.in.h (EILSEQ, GNULIB_defined_EILSEQ) [!EILSEQ]: New macros.
1817         * lib/strerror-override.c, lib/strerror-override.h (strerror_override):
1818         Supply a string for EILSEQ.
1819         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Check for EILSEQ.
1820
1821 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
1822
1823         fcntl-h: default O_SEARCH, O_EXEC to O_PATH if available
1824         Linux kernel 2.6.39 introduced O_PATH (see
1825         <http://lwn.net/Articles/433854/>) and this is a better fallback
1826         for O_SEARCH and O_EXEC than O_RDONLY, if O_PATH is available.
1827         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
1828         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default to O_PATH.
1829         * lib/fcntl.in.h (O_ACCMODE):
1830         * tests/test-fcntl-h.c (main):
1831         Do not reject O_ACCMODE merely because it has more than the
1832         minimal number of bits, as POSIX allows extensions here.
1833
1834 2012-11-04  Andrew Warshall  <warshall@99main.com>  (tiny change)
1835
1836         mountlist: do not classify a bind-mounted dir entry as "dummy"
1837         * lib/mountlist.c (ME_DUMMY_0): Rename from ME_DUMMY, but omit
1838         the "none"-testing clause.
1839         (ME_DUMMY) [MOUNTED_GETMNTENT1]: New macro to encapsulate the
1840         exception for bind-mounted directories.
1841
1842 2012-11-01  Akim Demaille  <akim@lrde.epita.fr>
1843
1844         quote: provide a means to escape strings with nul characters
1845         * lib/quote.h, lib/quotearg.c (quote_mem, quote_n_mem): New functions.
1846         (quote, quote_n): Rename formal arguments for consistency with
1847         quotearg.
1848
1849 2012-10-30  Paul Eggert  <eggert@cs.ucla.edu>
1850
1851         test-raise: don't assume 199 is an invalid signal
1852         * tests/test-raise.c (main): Don't assume 199 is not a signal number.
1853
1854         sh-quote-tests: port to Solaris 9
1855         * modules/sh-quote-tests (test_sh_quote_LDADD): Add @LIBINTL@.
1856         Problem reported by Dagobert Michelsen in
1857         <http://lists.gnu.org/archive/html/bug-gnulib/2012-10/msg00114.html>.
1858
1859 2012-10-28  Jim Meyering  <jim@meyering.net>
1860
1861         maint.mk: rename a new configurable variable
1862         * top/maint.mk (_gl_translatable_string_re): Rename from
1863         translation-markers: _gl_ prefix to insulate from user Makefile code,
1864         and the _re suffix to inform that it's a regular expression.
1865
1866 2012-10-26  Eric Blake  <eblake@redhat.com>
1867
1868         maint.mk: let packages tweak sc_po_check pattern
1869         * top/maint.mk (sc_po_check): Add translation-markers, to allow
1870         finding files with other translation markers.
1871
1872 2012-10-16  Paul Eggert  <eggert@cs.ucla.edu>
1873
1874         euidaccess: speed up 'configure' on GNU hosts
1875         * m4/euidaccess.m4 (gl_FUNC_NONREENTRANT_EUIDACCESS):
1876         Check for setregid here, not in gl_PREREQ_EUIDACCESS, since
1877         it's needed only in this case.  Use AC_CHECK_DECLS, not
1878         AC_CHECK_DECLS_ONCE.
1879         (gl_PREREQ_EUIDACCESS): Do not use AC_CHECK_HEADERS_ONCE libgen.h
1880         or AC_REQUIRE for AC_FUNC_GETGROUPS.
1881
1882         * lib/regexec.c (re_search_internal): Fix grammar in comment.
1883
1884 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
1885
1886         fchmodat, fchownat, fstatat: port to non-inlining compilers
1887         Problem reported for FreeBSD 9 by Jim Meyering in
1888         <http://lists.gnu.org/archive/html/bug-gnulib/2012-10/msg00070.html>.
1889         * lib/chmodat.c, lib/chownat.c, lib/statat.c:
1890         New files, which define FCHMODAT_INLINE etc.
1891         * lib/fchmodat.c (FCHMODAT_INLINE):
1892         * lib/fchownat.c (FCHOWNAT_INLINE):
1893         * lib/fstatat.c (FSTATAT_INLINE):
1894         Remove, as chmodat.c etc. now do this.
1895         * modules/fchmodat (Files): Add lib/chmodat.c.
1896         * modules/fchownat (Files): Add lib/chownat.c.
1897         * modules/fstatat (Files): Add lib/statat.c.
1898
1899 2012-10-15  Jim Meyering  <jim@meyering.net>
1900
1901         fchmodat.c, fchownat.c: compile-impeding typos
1902         * lib/fchmodat.c (FCHMODAT_INLINE): Fix typo: s/#include/#define/
1903         * lib/fchownat.c (FCHOWNAT_INLINE): Likewise.
1904         Introduced in commit v0.0-7636-gd202279.
1905
1906 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
1907
1908         fcntl-h: support GNU flags like O_IGNORE_CTTY
1909         * doc/posix-headers/fcntl.texi (fcntl.h): Support O_IGNORE_CTTY,
1910         O_NOLINK, and O_NOTRANS.  These flags are nonzero on GNU/Hurd
1911         systems.  Discovered when using fcntl-h with GNU Emacs, which uses
1912         O_IGNORE_CTTY.  Fix misspelling of F_SETLKW.
1913         * lib/fcntl.in.h (O_IGNORE_CTTY, O_NOLINK, O_NOTRANS):
1914         Define to 0 if not already defined.
1915         * tests/test-fcntl-h.c: Test these new flags.
1916
1917 2012-10-14  Paul Eggert  <eggert@cs.ucla.edu>
1918
1919         faccessat, etc.: support AT_FDCWD-only use
1920         * lib/at-func.c: If GNULIB_SUPPORT_ONLY_AT_FDCWD, then support
1921         this function only if its first argument is AT_FDCWD.
1922         Emacs wants faccessat for AT_EACCESS but not for any first-arg
1923         values other than AT_FDCWD, so it doesn't want all the openat
1924         machinery with fchdir etc.
1925         * modules/faccessat, modules/fchmodat, modules/fchownat (Files):
1926         * modules/fstatat, modules/mkdirat, modules/openat (Files):
1927         * modules/unlinkat (Files):
1928         Remove lib/openat-priv.h, as at-internal supplies this file.
1929         Removing this file here allows us to support programs like Emacs
1930         that avoid at-internal.
1931
1932         faccessat: speed up 'configure' on mainstream hosts
1933         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT):
1934         Use AT_CHECK_FUNCS for 'access', not AC_CHECK_FUNCS_ONCE,
1935         since it's only on unusual platforms that we need to check for
1936         'access', and it's better not to slow 'configure' down on all
1937         platforms.
1938
1939         faccessat: port to Solaris 10
1940         * lib/faccessat.c: Include <fcntl.h>, for AT_EACCESS.
1941         Needed on Solaris 10, which doesn't have AT_EACCESS,
1942         so we need the Gnulib fcntl.h, which defines it.
1943
1944 2012-10-14  Pádraig Brady  <P@draigBrady.com>
1945         canonicalize: fix C89 compilation
1946         * lib/canonicalize.c (canonicalize_filename_mode): Swap order of
1947         declarations so C89 is supported.  Also remove the comment
1948         referencing memorty allocation as the suggested feature could
1949         not be implemented as suggested.
1950         Reported by Michael Goffioul.
1951
1952 2012-10-12  Paul Eggert  <eggert@cs.ucla.edu>
1953
1954         group-member: omit unnecessary dependencies
1955         This is for Emacs, which has its own allocator and where we
1956         don't want to use xalloc.
1957         * lib/group-member.c: Include xalloc-oversized.h, not xalloc.h,
1958         since we no longer use xmalloc.  Do not include stdbool.h, since
1959         the changes below happen to remove the only use of bool.
1960         (GROUPBUF_SIZE): New constant.
1961         (struct group_info): Remove n_groups member.  Add groupbuf member.
1962         This lets us get the groups without using malloc, usually.
1963         (free_group_info, get_group_info): Adjust to this.
1964         (get_group_info): Return the number of groups found, or -1 on error.
1965         Use plain malloc not xmalloc, and treat its failure as if there
1966         are no groups, as the user already loses in case of error.
1967         (group_member): Simplify, based on changes to get_group_info.
1968         * modules/group-member (Depends-on): Remove dependencies on
1969         xalloc and stdbool.  Add dependency on xalloc-oversized.
1970
1971 2012-10-08  Alexandre Duret-Lutz  <adl@lrde.epita.fr>  (tiny change)
1972
1973         gethrxtime: port to C++
1974         * lib/gethrxtime.h, lib/xtime.h [__cplusplus]: Add extern "C".
1975
1976 2012-10-04  Paul Eggert  <eggert@cs.ucla.edu>
1977
1978         ptsname: fix macro-name typo
1979         * lib/stdlib.in.h (ptsname): Fix misspelling of GNULIB_NAMESPACE.
1980
1981 2012-10-03  Simon Josefsson  <simon@josefsson.org>
1982
1983         inttostr: Relax license.
1984         * modules/inttostr (License): Change from LGPL to LGPLv2+.
1985
1986 2012-10-03  Eric Blake  <eblake@redhat.com>
1987
1988         ptsname_r: support ptys returned by FreeBSD posix_openpt
1989         * lib/ptsname_r.c (__ptsname_r): Don't munge name if it already
1990         lives in /dev/pts/.
1991
1992 2012-10-02  Eric Blake  <eblake@redhat.com>
1993
1994         pselect: reject invalid file descriptors
1995         * m4/pselect.m4 (gl_FUNC_PSELECT): Probe for FreeBSD bug.
1996         * lib/pselect.c (rpl_pselect) [!win32]: Work around it.
1997         * modules/pselect (Depends-on): Add dup2.
1998         * doc/posix-functions/pselect.texi (pselect): Document this.
1999
2000         select: reject invalid file descriptors
2001         * m4/select.m4 (gl_FUNC_SELECT): Probe for FreeBSD bug.
2002         * lib/select.c (rpl_select) [!win32]: Work around it.
2003         * modules/select (Depends-on): Add dup2.
2004         * doc/posix-functions/select.texi (select): Document this.
2005
2006         select: enhance test
2007         * tests/test-select.h (do_select_bad_nfd_nowait, test_bad_nfd):
2008         New functions.
2009         (test_function): Enhance test.
2010         (do_select_bad_fd): Avoid any stale errno values.
2011
2012         ptsname: reject invalid file descriptors
2013         http://www.austingroupbugs.net/view.php?id=503
2014         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Probe for FreeBSD bug.
2015         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add new witness.
2016         * modules/stdlib (Makefile.am): Replace witness.
2017         * lib/stdlib.in.h (ptsname): Allow for replacement.
2018         * modules/ptsname (configure.ac): Trigger replacement.
2019         * doc/posix-functions/ptsname.texi (ptsname): Document this.
2020
2021 2012-10-02:  Nikos Mavrogiannopoulos  <nmav@gnutls.org>  (tiny change)
2022
2023         hash-pjw-bare: new module
2024         * lib/hash-pjw-bare.c: New file, very much like hash-pjw.c.
2025         * lib/hash-pjw-bare.h: Likewise.
2026         * modules/hash-pjw-bare: New file.
2027         * MODULES.html.sh (Misc): Add it.
2028
2029 2012-10-02  Eric Blake  <eblake@redhat.com>
2030
2031         manywarnings: cater to more gcc infelicities
2032         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add test for
2033         -Wuninitialized without -O.
2034
2035 2012-10-01  Ed Maste  <emaste@freebsd.org>  (tiny change)
2036
2037         select, poll tests: Make setsockopt invocation effective.
2038         * tests/test-poll.c (open_server_socket): Move setsockopt() call before
2039         the bind() call.
2040         * tests/test-select.h (open_server_socket): Likewise.
2041
2042 2012-09-30  Paul Eggert  <eggert@cs.ucla.edu>
2043
2044         sockets, sys_stat: restore AC_C_INLINE
2045         This undoes the 2012-09-22 patch.
2046         * m4/sockets.m4 (gl_SOCKETS):
2047         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
2048         Restore AC_C_INLINE, since MSVC requires __inline or _inline
2049         and does not support plain 'inline'.  Reported by Bruno Haible in
2050         <http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00183.html>.
2051
2052 2012-09-30  Bruno Haible  <bruno@clisp.org>
2053
2054         localeconv tests: Avoid test failure on OpenIndiana.
2055         * tests/test-localeconv.c (main): On OpenIndiana (a Solaris 11 variant)
2056         skip the 'grouping' and 'mon_grouping' tests.
2057         Reported by Jim Meyering.
2058
2059 2012-09-30  Bruno Haible  <bruno@clisp.org>
2060
2061         havelib: Follow libtool developments.
2062         * m4/lib-ld.m4: Rebase on libtool.m4 from libtool-2.4.
2063         Suggested by Simon Josefsson.
2064
2065 2012-09-29  Jim Meyering  <meyering@redhat.com>
2066
2067         fstatat.c: fix a compile-impeding typo
2068         * lib/fstatat.c (FSTATAT_INLINE): Fix typo: s/#include/#define/
2069         Introduced in commit v0.0-7636-gd202279.
2070         Mats Erik Andersson reported the resulting OpenBSD compilation failure.
2071
2072 2012-09-28  Akim Demaille  <akim@lrde.epita.fr>
2073
2074         extern-inline: provide a -Wundef safe config.h
2075         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Protect
2076         "#if __GNUC_STDC_INLINE__" with "defined __GNUC_STDC_INLINE__"
2077         to produce a -Wundef warning free config.h.
2078
2079 2012-09-26  Paul Eggert  <eggert@cs.ucla.edu>
2080
2081         hash-pjw: relax license to LGPLv2+
2082         * modules/hash-pjw (License): Relax, with consent of author.
2083
2084 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
2085
2086         maint.mk: fix strict vs. lazy variable issues with RELEASE
2087         * top/maint.mk (_equal): New function.
2088         (member_check): Strip the result to avoid spurious spaces.
2089         (url_dir_list): Do not use ifeq, which is strict, as it will
2090         require RELEASE_TYPE to be defined.
2091         (announcement_Cc_, announcement_mail_headers_): Likewise: instead
2092         of relying on ifeq, use $(release_type) to dispatch (lazily) onto...
2093         (announcement_Cc_alpha,announcement_mail_headers_alpha)
2094         (announcement_Cc_beta,announcement_mail_headers_beta)
2095         (announcement_Cc_stable,announcement_mail_headers_stable): these.
2096         (release): Do not depend on $(release-type), as it forces its
2097         evaluation.  Bounce to it.
2098
2099 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
2100
2101         maint.mk: formatting changes
2102         * top/maint.mk: Indent bodies of if's.
2103
2104 2012-09-21  Akim Demaille  <akim@lrde.epita.fr>
2105
2106         maint.mk: factor the validation of RELEASE_TYPE
2107         With help from Jim Meyering.
2108         http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00132.html
2109         * top/maint.mk (_empty, _sp): Move their definition earlier.
2110         (member-check, release-type): New.
2111         Use the latter instead of $(RELEASE_TYPE).
2112         Remove now useless local checks.
2113
2114 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
2115
2116         maint.mk: provide "make upload" to ease uploading
2117         See
2118         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00028.html>.
2119         Do not depend simply on the current $(VERSION), as there may have been
2120         new commits since the tarball generation.  Rather, rely on $(RELEASE),
2121         as "make release-commit" already does.
2122
2123         For consistency, add "make release RELEASE='X.Y TYPE'" as an alias for
2124         "make TYPE".
2125
2126         * top/maint.mk (upload_command, upload, release): New.
2127         (RELEASE_TYPE): If undefined, default to the second word of $(RELEASE).
2128         (VERSION): first word of $(RELEASE) is always right.
2129         (emit_upload_commands): Adjust.
2130         * top/README-release: Update.
2131
2132 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
2133
2134         maint.mk: silent rules
2135         With help from Stefano Lattarini.
2136         * top/maint.mk (writable-files): Use $(AM_V_GEN).
2137         (announcement): Use $(AM_V_at).
2138
2139 2012-09-24  Paul Eggert  <eggert@cs.ucla.edu>
2140
2141         localename: port gl_locale_name_thread_unsafe to FreeBSD
2142         * lib/localename.c (gl_locale_name_thread_unsafe): Port to FreeBSD,
2143         and use the simpler FreeBSD implementation on Mac OS X as well.
2144         Original idea suggested by Ed Maste in
2145         <http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00094.html>.
2146
2147 2012-09-22  Paul Eggert  <eggert@cs.ucla.edu>
2148
2149         binary-io, eealloc, mbfile, mbiter, mbutil, xsize: better 'inline'
2150         * lib/binary-io.c, lib/eealloc.c, lib/mbfile.c, lib/mbiter.c:
2151         * lib/mbuiter.c, lib/xsize.c: New files.
2152         * lib/binary-io.h (BINARY_IO_INLINE):
2153         * lib/eealloc.h (EEALLOC_INLINE):
2154         * lib/mbfile.h (MBFILE_INLINE):
2155         * lib/mbiter.h (MBITER_INLINE):
2156         * lib/mbuiter.h (MBUITER_INLINE):
2157         * lib/xsize.h (XSIZE_INLINE):
2158         New macros.
2159         Replace all uses of 'static inline' with them.
2160         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2161         * m4/eealloc.m4 (gl_EEALLOC):
2162         * m4/mbfile.m4 (gl_MBFILE):
2163         * m4/mbiter.m4 (gl_MBITER):
2164         * m4/xsize.m4 (gl_XSIZE):
2165         Do not require AC_C_INLINE.
2166         * modules/binary-io (Files, lib_SOURCES): Add lib/binary-io.c
2167         * modules/eealloc (Files, lib_SOURCES): Add lib/eealloc.c.
2168         * modules/mbfile (Files, lib_SOURCES): Add lib/mbfile.c.
2169         * modules/mbiter (Files, lib_SOURCES): Add lib/mbiter.c.
2170         * modules/mbuiter (Files, lib_SOURCES): Add lib/mbuiter.c.
2171         * modules/xsize (Files, lib_SOURCES): Add lib/xsize.c.
2172         * modules/binary-io, modules/eealloc, modules/mbfile:
2173         * modules/mbiter, modules/mbuiter:
2174         (Depends-on): Add extern-inline.
2175
2176         pipe-filter-gi, pipe-filter-ii: better use of 'inline'
2177         * lib/pipe-filter-aux.c: New file.
2178         * lib/pipe-filter-aux.h (PIPE_FILTER_AUX_INLINE): New macro.
2179         Replace all uses of 'static inline' with it.
2180         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2181         * lib/pipe-filter-gi.c (filter_init, filter_cleanup)
2182         (filter_retcode): No real need for inline here.
2183         * modules/pipe-filter-gi, modules/pipe-filter-ii:
2184         (Files): Add lib/pipe-filter-aux.c.
2185         (Depends-on): Add extern-inline.
2186         (configure.ac): Do not require AC_C_INLINE.
2187         (lib_SOURCES): Add pipe-filter-aux.c.
2188
2189         fdutimensat: omit unnecessary AC_C_INLINE
2190         * modules/fdutimensat (configure.ac): Remove AC_C_INLINE.
2191
2192         fchmodat, fchownat, fstatat: use extern-inline
2193         * lib/fchmodat.c, lib/openat.h (FCHMODAT_INLINE):
2194         * lib/fchownat.c, lib/openat.h (FCHOWNAT_INLINE):
2195         * lib/fstatat.c, lib/openat.h (FSTATAT_INLINE):
2196         New macros.
2197         * lib/openat.h:
2198         Replace all uses of 'static inline' with them.
2199         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2200         * modules/fchmodat, modules/fchownat, modules/fstatat:
2201         * modules/openat-h:
2202         (Depends-on):
2203         Add extern-inline.
2204         (configure.ac): Remove AC_C_INLINE.
2205
2206         acl, mbchar, priv-set: use extern-inline
2207         * lib/set-mode-acl.c, lib/acl-internal.h (ACL_INTERNAL_INLINE):
2208         * lib/mbchar.c, lib/mbchar.h (MBCHAR_INLINE):
2209         * lib/priv-set.c, lib/priv-set.h (PRIV_SET_INLINE):
2210         New macros.
2211         * lib/acl-internal.h, lib/mbchar.h, lib/priv-set.h:
2212         Replace all uses of 'static inline' with it.
2213         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2214         * m4/acl.m4 (gl_FUNC_ACL):
2215         * m4/mbchar.m4 (gl_MBCHAR):
2216         * m4/priv-set.m4 (gl_PRIV_SET):
2217         Remove AC_C_INLINE, since 'inline' is no longer used directly.
2218         * modules/acl, modules/mbchar, modules/priv-set (Depends-on):
2219         Add extern-inline.
2220
2221         sockets, sys_stat: remove AC_C_INLINE in MSVC-only cases
2222         * m4/sockets.m4 (gl_SOCKETS):
2223         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
2224         Remove AC_C_INLINE.  Here, 'inline' is used only in MSVC
2225         environments where it's already guaranteed to work, so we needn't
2226         check for it at 'configure'-time.
2227
2228         tls-tests: omit unnecessary 'inline'
2229         * tests/test-tls.c (perhaps_yield): No longer inline.
2230         Simplicity and portability trump efficiency in test cases.
2231
2232         utimens-tests: avoid unnecessary 'inline'
2233         * modules/fdutimensat-tests (configure.ac):
2234         * modules/futimens-tests (configure.ac):
2235         * modules/utimens-tests (configure.ac):
2236         * modules/utimensat-tests (configure.ac):
2237         Remove AC_C_INLINE.
2238         * tests/test-utimens-common.h (ctime_compare):
2239         No longer inline.  Simplicity and portability trump efficiency here.
2240
2241         misc: don't limit commentary to inline functions
2242         * lib/binary-io.h, lib/malloca.h, lib/safe-alloc.c:
2243         * lib/xalloc-oversized.h, lib/xsize.h:
2244         Contrast macros to functions in general, not just to inline functions,
2245         when the commentary does not apply only to inline functions.
2246
2247 2012-09-20  Jim Meyering  <meyering@redhat.com>
2248
2249         non-recursive-gnulib-prefix-hack: new module
2250         * build-aux/prefix-gnulib-mk: Copied from coreutils, derived from
2251         the file that originated in Bison.
2252         * m4/non-recursive-gnulib-prefix-hack.m4: Likewise, this code is
2253         largely copied from a snippet that resided in bison's configure.ac.
2254         * modules/non-recursive-gnulib-prefix-hack: New file.
2255         * MODULES.html.sh (Support for maintaining and releasing projects):
2256         Add it.
2257
2258 2012-09-18  Jim Meyering  <meyering@redhat.com>
2259
2260         maint.mk: generalize _gl_tight_scope for non-recursive make
2261         * top/maint.mk (_gl_tight_scope): Remove a hard-coded assumption
2262         that *.h would describe additional .h files in the directory
2263         specified by $(_gl_TS_dir).  I.e., add this...
2264         (_gl_TS_other_headers): New variable.
2265
2266         maint.mk: exempt trailing blanks found in "binary" files
2267         * top/maint.mk (sc_trailing_blank): Filter out any matches found in
2268         "binary" files, as reported by grep.  Suggested by Richard W.M. Jones
2269         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
2270
2271 2012-09-17  Jim Meyering  <meyering@redhat.com>
2272
2273         maint.mk: sc_prohibit_path_max_allocation: don't FP for UNIX_PATH_MAX
2274         * top/maint.mk (sc_prohibit_path_max_allocation): Avoid false-positive
2275         match for symbols like UNIX_PATH_MAX. Reported by Richard W.M. Jones
2276         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
2277
2278 2012-09-17  Jim Meyering  <meyering@redhat.com>
2279
2280         maint.mk: teach sc_prohibit_magic_number_exit to accept 77
2281         * top/maint.mk (sc_prohibit_magic_number_exit): Do not complain about
2282         uses like "exit (77)".  "77" is automake's "skip this test" exit code.
2283         It is not in the same category as "exit (0)" or "exit (1)", and
2284         besides, I know of no symbolic name for that 77.  Reported by
2285         Richard W.M. Jones in
2286         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
2287
2288 2012-09-17  Jim Meyering  <meyering@redhat.com>
2289
2290         maint.mk: relax sc_prohibit_strcmp, to avoid a false positive
2291         * top/maint.mk (sc_prohibit_strcmp): Relax regexp, so as to match
2292         all uses of #define, not just those that start in column 1.
2293         Richard W.M. Jones reported a false positive in
2294         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
2295
2296 2012-09-16  Paul Eggert  <eggert@cs.ucla.edu>
2297
2298         localcharset: work around Mac OS X bug with UTF-8 and MB_CUR_MAX
2299         * lib/localcharset.c (locale_charset) [DARWIN7]:
2300         Return "ASCII" if the system reports "UTF-8" and MB_CUR_MAX <= 1,
2301         as these two values are incompatible.  Problem reported by Max Horn.
2302         For more discussion, please see
2303         <http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00061.html>.
2304
2305         doc: document sticky-EOF issue
2306         * doc/posix-functions/fgetc.texi (fgetc):
2307         * doc/posix-functions/fgets.texi (fgets):
2308         * doc/posix-functions/fread.texi (fread):
2309         * doc/posix-functions/fscanf.texi (fscanf):
2310         * doc/posix-functions/getc.texi (getc):
2311         * doc/posix-functions/getchar.texi (getchar):
2312         * doc/posix-functions/scanf.texi (scanf):
2313         Mention that glibc and default Solaris do not conform to
2314         C99 and POSIX-2001 or later, with respect to how getchar
2315         etc. behave when feof reports nonzero.
2316
2317 2012-09-13  Joachim Schmitz <jojo@schmitz-digital.de>  (tiny change)
2318
2319         poll: fix poll(0, NULL, msec)
2320         * lib/poll.c: don't exit early if NULL is the 1st arg to poll(),
2321         but nfd is 0.  In that case poll should behave like select.
2322
2323 2012-09-13  Joachim Schmitz <jojo@schmitz-digital.de>  (tiny change)
2324             Paolo Bonzini <bonzini@gnu.org>
2325
2326         poll: fix for systems that can't recv() on a non-socket
2327         * lib/poll.c: if recv returns ENOTSOCK, assume the descriptor
2328         is readable.  In this case POLLHUP will not be supported.
2329         * doc/posix-functions/poll.texi: Document this.
2330
2331 2012-09-13  Paolo Bonzini  <bonzini@gnu.org>
2332
2333         poll/select: document portability problems not fixed by Gnulib.
2334         * doc/posix-functions/poll.texi: poll does not work well on
2335         pipes under Windows.  It has the same limitations as select on
2336         BeOS.
2337         * doc/posix-functions/select.texi: select does not work well
2338         on pipes under Windows.
2339
2340 2012-09-10  Paul Eggert  <eggert@cs.ucla.edu>
2341
2342         fcntl-h: check for AIX 7.1 bug with O_NOFOLLOW and O_CREAT
2343         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Check for AIX 7.1 bug
2344         that caused a GNU tar test failure.  Problem reported by Jez Wain; see
2345         <http://lists.gnu.org/archive/html/bug-tar/2012-07/msg00018.html>.
2346
2347 2012-09-06  Eric Blake  <eblake@redhat.com>
2348
2349         net_if: give more details about the bug being fixed
2350         * doc/posix-headers/net_if.texi: Add clarification.
2351
2352 2012-09-05  Eric Blake  <eblake@redhat.com>
2353
2354         net_if: new module
2355         * modules/net_if: New module, borrowing ideas from netinet_in.
2356         * m4/net_if_h.m4: New file.
2357         * lib/net_if.in.h: Likewise.
2358         * doc/posix-headers/net_if.texi (net/if.h): Document it.
2359         * MODULES.html.sh (lacking POSIX:2008): Likewise.
2360         * tests/test-net_if.c: Make function checks conditional.
2361         Reported by Jasper Lievisse Adriaanse <jasper@humppa.nl>.
2362
2363 2012-09-05  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
2364
2365         readutmp: fix non-portable UT_PID use
2366         * lib/readutmp.c (desirable_utmp_entry) <READ_UTMP_CHECK_PIDS>:
2367         Use `UT_PID (u) > 0' as absolute condition.
2368
2369 2012-09-04  Jim Meyering  <meyering@redhat.com>
2370
2371         fts: reduce two or more trailing spaces to just one, usually
2372         * lib/fts.c (fts_open): Upon initialization, if a name ends in two
2373         or more slashes, trim all but the final one.  But if a name consists
2374         solely of two slashes, don't modify it.  If it consists solely of
2375         three or more slashes, strip all but one.
2376
2377         This is part of the solution to a minor problem with rm:
2378         it would print a bogus ELOOP diagnostic when failing to remove
2379         the slash-decorated name of a symlink-to-directory:
2380
2381             $ mkdir d && ln -s d s && env rm -r s/
2382             rm: cannot remove 's': Too many levels of symbolic links
2383
2384         With the change below and a trivial don't-trim-trailing-slashes
2385         adjustment to remove.c, it does this:
2386
2387             $ env rm -r s/
2388             rm: cannot remove 's/': Not a directory
2389
2390         Improved by: Eric Blake
2391
2392         fts: when there is no risk of overlap, use memcpy, not memmove
2393         * lib/fts.c (fts_alloc): Fix unjustified memcopy: s/memmove/memcpy/
2394
2395 2012-08-29  Paul Eggert  <eggert@cs.ucla.edu>
2396
2397         stdbool: be more compatible with mixed C/C++ compiles
2398         * lib/stdbool.in.h (_Bool, true, false) [__cplusplus]:
2399         Define to bool, true, false, respectively, as GCC's builtin
2400         stdbool.h does.  Problem reported by Michael Goffioul in
2401         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00143.html>.
2402
2403 2012-08-28  Jim Meyering  <meyering@redhat.com>
2404
2405         revert last change: it was not needed
2406         * tests/test-vc-list-files-git.sh: There's already a test for
2407         a working git, just below.
2408
2409 2012-08-28  Jim Meyering  <meyering@redhat.com>
2410
2411         tests: test-vc-list-files-git.sh: skip if git is not available
2412         * tests/test-vc-list-files-git.sh: Skip this test when git is
2413         not available.
2414
2415 2012-08-26  Bruno Haible  <bruno@clisp.org>
2416
2417         gnulib-tool: Remove no-op option --no-changelog.
2418         * gnulib-tool (func_usage): Don't mention --no-changelog.
2419         (do_changelog): Remove variable.
2420         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
2421
2422 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
2423
2424         doc: remove fdl-1.2.texi
2425         It is no longer used or maintained, and its use of @acronym
2426         is problematic.  See the thread containing
2427         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00134.html>.
2428         * config/srclist.txt: Remove doc/old-licenses/fdl-1.2.texi.
2429         * doc/old-licenses/fdl-1.2.texi: Remove.
2430
2431         execinfo: port to FreeBSD
2432         * m4/execinfo.m4 (gl_EXECINFO_H): Set LIB_EXECINFO to -lexecinfo
2433         if needed, as in FreeBSD.  Reported by Bastien Roucariès in
2434         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00113.html>.
2435         * modules/execinfo (Link): Add $(LIB_EXECINFO).
2436
2437 2012-08-23  Jim Meyering  <meyering@redhat.com>
2438
2439         xstrtol.h: avoid "_Noreturn is not at beginning of declaration" warning
2440         * lib/xstrtol.h: Put "_Noreturn" before "void" in declaration,
2441         to placate gcc's -Wold-style-declaration.
2442
2443 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
2444
2445         doc: do not use @acronym
2446         * doc/inet_ntoa.texi (inet_ntoa):
2447         * doc/parse-datetime.texi (Seconds since the Epoch)
2448         (Specifying time zone rules):
2449         * doc/posix-functions/inet_ntoa.texi (inet_ntoa):
2450         Don't use @acronym.  Problem reported by John Darlington in
2451         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00124.html>.
2452
2453 2012-08-23  Paul Eggert  <eggert@cs.ucla.edu>
2454
2455         stdnoreturn: port to newer GCCs
2456         * m4/stdnoreturn.m4 (gl_STDNORETURN_H): Avoid problems with
2457         bleeding-edge GCC that complains about 'int _Noreturn foo (void);'.
2458         Problem reported by Jim Meyering in
2459         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00121.html>.
2460         Also, rename the 'test' function to a void a clash with the
2461         already-supplied 'main' function; this fixes a bug that incorrectly
2462         rejected GCC 4.7.1's <stdnoreturn.h>.
2463         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h):
2464         Document GCC problem.
2465
2466 2012-08-22  Reuben Thomas  <rrt@sc3d.org>
2467
2468         pipe-filter: fix comment typo
2469         * lib/pipe-filter.h: Mention correct function.
2470
2471 2012-08-22  Paul Eggert  <eggert@cs.ucla.edu>
2472
2473         execinfo: new module
2474         This is for Emacs.  Currently, it provides a no-effect stub
2475         on all platforms where it does not already work.
2476         It already works on glibc-based systems, and on Solaris 11.
2477         * lib/execinfo.c, lib/execinfo.in.h, m4/execinfo.m4, modules/execinfo:
2478         New files.
2479         * doc/glibc-headers/execinfo.texi (execinfo.h):
2480         * MODULES.html.sh (Misc): Document it.
2481
2482 2012-08-20  Paul Eggert  <eggert@cs.ucla.edu>
2483
2484         extern-inline: support old GCC 'inline'
2485         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Use pre-C99 GCC 'inline'
2486         if available.  This applies to GCC versions 2.7 through 4.2, or
2487         when newer GCC is using -fgnu89-inline.  The goal is to address
2488         some of the performance issues mentioned by Bruno Haible in
2489         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00097.html>.
2490
2491 2012-08-20  Eric Blake  <eblake@redhat.com>
2492
2493         maint.mk: avoid redundant file name in message
2494         * top/maint.mk (sc_prohibit_strcmp, sc_unmarked_diagnostics)
2495         (sc_prohibit_defined_have_decl_tests, sc_const_long_option)
2496         (sc_makefile_path_separator_check): Remove bogus $(ME).
2497
2498 2012-08-20  Mike Frysinger <vapier@gentoo.org>
2499
2500         timer-time: fix link order when static linking on glibc
2501         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
2502         _after_ -lrt so that it's significant.
2503
2504 2012-08-19  Paul Eggert  <eggert@cs.ucla.edu>
2505
2506         timespec: omit unnecessary AC_C_INLINE
2507         * m4/timespec.m4 (gl_TIMESPEC): Do not require AC_C_INLINE.
2508
2509         stat-time: omit unnecessary AC_C_INLINE
2510         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
2511         Do not require AC_C_INLINE.
2512
2513         ignore-value: omit unnecessary AC_C_INLINE
2514         * modules/ignore-value (configure.ac): Do not require AC_C_INLINE.
2515
2516         sys_select: avoid 'static inline'
2517         * lib/sys_select.in.h (rpl_fd_isset): Now static, not static inline.
2518
2519         mktime: avoid 'static inline'
2520         * lib/mktime.c (leapyear, ydhms_diff): Now static, not static inline.
2521         * m4/mktime.m4 (gl_PREREQ_MKTIME): Do not require AC_C_INLINE.
2522
2523 2012-08-19  Bruno Haible  <bruno@clisp.org>
2524
2525         gnulib-tool: Improve coding style.
2526         * gnulib-tool (func_emit_tests_Makefile_am): Set perhapsLT, like in
2527         func_emit_lib_Makefile_am.
2528         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
2529
2530 2012-08-19  Bruno Haible  <bruno@clisp.org>
2531
2532         gnulib-tool: Fix indentation.
2533         * gnulib-tool (func_import): Fix indentation.
2534
2535 2012-08-19  Bruno Haible  <bruno@clisp.org>
2536
2537         gnulib-tool: Remove old file names from .cvsignore, .gitignore.
2538         * gnulib-tool (func_update_ignorelist): Don't use 'join -v 1' command
2539         on the list of removed files.
2540
2541 2012-08-17  Paul Eggert  <eggert@cs.ucla.edu>
2542
2543         test-parse-datetime: avoid glibc leap-second glitch
2544         * tests/test-parse-datetime.c (main): Set TZ to US Eastern time
2545         with the 2012 rules.  Problem reported by Bruce Dubbs in
2546         <http://bugs.gnu.org/12206>.
2547
2548 2012-08-14  Bruno Haible  <bruno@clisp.org>
2549
2550         gnulib-tool: Fix indentation of generated gnulib-comp.m4 file.
2551         * gnulib-tool (func_emit_autoconf_snippet): Initialize indentation
2552         from argument.
2553         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
2554
2555 2012-08-14  Eric Blake  <eblake@redhat.com>
2556
2557         ldexp: relax license
2558         * modules/ldexp (License): Trivial relax, since the module only
2559         provides a permissively licensed m4 file.
2560
2561 2012-08-13  Bruno Haible  <bruno@clisp.org>
2562
2563         gnulib-tool: Fix persistence of --witness-c-macro option.
2564         * gnulib-tool (func_import): Fix typo in emit of gl_WITNESS_C_MACRO.
2565         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
2566
2567 2012-08-11  Eric Blake  <eblake@redhat.com>
2568
2569         count-leading-zeros: use a lookup table on non-gcc compilers
2570         * lib/count-leading-zeros.h (count_leading_zeros_32): Use an
2571         alternate implementation, suggested by Jim Meyering.
2572
2573 2012-08-10  Eric Blake  <eblake@redhat.com>
2574
2575         count-leading-zeros: new module
2576         * modules/count-leading-zeros: New module.
2577         * m4/count-leading-zeros.m4: New file.
2578         * lib/count-leading-zeros.h: Likewise.
2579         * modules/count-leading-zeros-tests: New test.
2580         * tests/test-count-leading-zeros.c: New file.
2581         * MODULES.html.sh (Integer arithmetic functions): Document it.
2582
2583 2012-08-07  Simon Josefsson  <simon@josefsson.org>
2584             Jim Meyering  <meyering@redhat.com>
2585
2586         maintainer-makefile: Fix syntax error with dash.
2587         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): Quote arguments.
2588         (sc_vulnerable_makefile_CVE-2012-3386): Likewise.
2589
2590 2012-08-05  Jim Meyering  <meyering@redhat.com>
2591
2592         extern-inline: also ignore -Wmissing-declarations
2593         * m4/extern-inline.m4: Also ignore -Wmissing-declarations,
2594         required with gcc-4.8.0-to-be.
2595
2596         maint.mk: sc_prohibit_magic_number_exit: avoid new false positives
2597         * top/maint.mk (sc_prohibit_magic_number_exit): Also filter out matches
2598         for /error ?([^,]*)/.  This avoids false-positives for strings like
2599         "Unknown error (252)", introduced via commit v0.0-7538-g92875a6.
2600
2601 2012-08-02  Stefano Lattarini  <stefano.lattarini@gmail.com>
2602
2603         gnumakefile: better interaction with Automake-NG
2604         * modules/gnumakefile [Makefile.am]: The makefiles generated by
2605         Automake-NG always contain a definition of VPATH, even in non-VPATH
2606         builds (its value being simply '.' in that case).  So, in the
2607         'clean-GNUmakefile' rule, to determine whether running under a
2608         VPATH setup, compare '$(srcdir)' to '.' rather than checking whether
2609         '$(VPATH)' expands to the empty string.
2610
2611 2012-08-02  Carlo de Falco  <carlo.defalco@polimi.it>  (tiny change)
2612
2613         base64: Use extern C scope in header file, for C++.
2614         * lib/base64.h: Add C++ namespace protection.
2615
2616 2012-08-02  Paul Eggert  <eggert@cs.ucla.edu>
2617
2618         stat-time, timespec, u64: support naive out-of-dir builds
2619         * lib/stat-time.c, lib/timespec.c, lib/u64.c:
2620         Use '#include "foo.h"', not '#include <foo.h>', when including
2621         one's own interface.  This works better when configuring with
2622         out-of-directory builds, since packages need not add an
2623         otherwise-unnecessary -I$(topdir_src)/lib to DEFAULT_INCLUDES.
2624
2625 2012-08-01  Paul Eggert  <eggert@cs.ucla.edu>
2626
2627         utimens: use extern-inline
2628         * lib/utimens.c (_GL_UTIMENS_INLINE): Define when including utimens.h.
2629         * lib/utimens.h: Add copyright notice, since this is now large enough
2630         to copyright.  Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2631         (_GL_UTIMENS_INLINE): New macro.  Use it instead of 'static inline'.
2632         * modules/utimens (Depends-on): Add extern-inline.
2633
2634         u64: use extern-inline
2635         * lib/u64.c: New file.
2636         * lib/u64.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2637         (_GL_U64_INLINE): New macro.  Use it instead of 'static inline'.
2638         * modules/u64 (Files): Add lib/u64.c.
2639         (Depends-on): Add extern-inline.
2640         (configure.ac): No need to require AC_C_INLINE, since extern-inline
2641         does that now.
2642         (lib_SOURCES): Add u64.c.
2643
2644         timespec: use extern-inline
2645         * lib/timespec.c: New file.
2646         * lib/timespec.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2647         (_GL_TIMESPEC_INLINE): New macro.  Use it instead of 'static inline'.
2648         * modules/timespec (Files): Add lib/timespec.c.
2649         (Depends-on): Add extern-inline.
2650         (lib_SOURCES): Add timespec.c.
2651
2652         stat-time: use extern-inline
2653         * lib/stat-time.c: New file.
2654         * lib/stat-time.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2655         (_GL_STAT_TIME_INLINE): New macro.  Use it instead of 'static inline'.
2656         * modules/stat-time (Files): Add lib/stat-time.c.
2657         (Depends-on): Add extern-inline.
2658         (lib_SOURCES): Add stat-time.c.
2659
2660         extern-inline: new module
2661         * modules/extern-inline, m4/extern-inline.m4: New files.
2662         This is for better support of 'extern inline' a la ISO C99,
2663         with a portable alternative on compilers that do not support
2664         C99-style 'extern inline'.  Using 'extern inline' shrinks the size
2665         of the Emacs executable, when compiled with debugging disabled,
2666         which is a typical way that Emacs is built while developing.
2667
2668 2012-08-01  Akim Demaille  <akim@lrde.epita.fr>
2669
2670         maint.mk: a "release-commit" wrapper to do-release-commit-and-tag
2671         * build-aux/do-release-commit-and-tag: Move variable definitions
2672         together.
2673         ($branch): Instead of defaulting to "master", default to the current
2674         branch (as gnu-web-doc-update does).
2675         (help): Display the current values of the option arguments.
2676         * top/maint.mk (release-commit): New.
2677         * top/README-release: Simplify the corresponding step.
2678
2679 2012-07-30  Eric Blake  <eblake@redhat.com>
2680
2681         passfd: fix comment on recvfd
2682         * lib/passfd.c (recvfd): Fix comment.
2683         Reported by Jann Horn <jannhorn@googlemail.com>.
2684
2685 2012-07-30  Jim Meyering  <meyering@redhat.com>
2686
2687         maint.mk: avoid a sub-shell
2688         * top/maint.mk (release-prep): Remove unneeded sub-shell.
2689
2690 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
2691
2692         maint.mk: use silent-rules support from Automake
2693         * top/maint.mk (news-check, vc-diff-check, announcement)
2694         (no-submodule-changes, alpha beta stable, release-prep)
2695         (web-manual, update-copyright): Use $(AM_V_GEN) and $(AM_V_at).
2696
2697 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
2698
2699         maint.mk: provide a web-manual-update target
2700         * top/maint.mk: here.
2701         * top/README-release: Use it to simplify the web manual update step.
2702
2703 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
2704
2705         README-release: shorten the circuit to post a news
2706         * top/README-release: Point directly to the news submission form.
2707
2708 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
2709
2710         gnu-web-doc-update: fix --help
2711         * build-aux/gnu-web-doc-update: The information "top level" was written
2712         twice.
2713
2714 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
2715
2716         maint.mk: absolute VPATH issue
2717         * top/maint.mk (release-prep): Help Git find .git/.
2718         From Jim Meyering.
2719
2720 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
2721
2722         gitlog-to-changelog: fix previous change
2723         * build-aux/gitlog-to-changelog: Fix condition.
2724         Add missing ";".
2725
2726 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
2727
2728         gitlog-to-changelog: don't expect .git to be in $srcdir
2729         Reported by Bruno Haible.
2730         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00265.html>
2731         * build-aux/gitlog-to-changelog (&git_dir_option): New.
2732         Use it.
2733
2734 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
2735
2736         maint.mk: absolute VPATH build fix
2737         * top/maint.mk (gpg_key_ID): Help git find .git when, for instance,
2738         $(srcdir) is not a parent of $(builddir).
2739
2740 2012-07-28  John Darrington  <john@darrington.wattle.id.au>
2741
2742         clean-temp: Fix memory leak.
2743         * lib/clean-temp.c (cleanup_temp_dir): Free also the 'subdirs' and
2744         'files' members of tmpdir.
2745
2746 2012-07-27  Jim Meyering  <meyering@redhat.com>
2747
2748         maint.mk: new rule: refresh-gnulib-patches
2749         I noticed that 8 of coreutils' 9 gl/**/*.diff files were stale.
2750         Use this rule to refresh them.
2751         * top/maint.mk (refresh-gnulib-patches): New rule.
2752
2753 2012-07-24  Bruno Haible  <bruno@clisp.org>
2754
2755         gnulib-tool: Fix handling of inctests variable.
2756         * gnulib-tool: Canonicalize $inctests also in 'update' mode.
2757         Reported by Nick Bowler <nbowler@elliptictech.com>.
2758
2759 2012-07-22  Bruno Haible  <bruno@clisp.org>
2760
2761         getpass: Assume AC_CHECK_DECLS_ONCE invocation, like in getpass.m4.
2762         * lib/getpass.h: Assume HAVE_DECL_GETPASS is defined.
2763         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
2764         Remove exemption for getpass.h.
2765         Suggested by Eric Blake.
2766
2767 2012-07-20  Eric Blake  <eblake@redhat.com>
2768
2769         verify: document conflict with -Wnested-externs
2770         * lib/verify.h: Give hint about usage when gcc warnings are enabled.
2771
2772         maint.mk: forbid exit(-1)
2773         * top/maint.mk (sc_prohibit_magic_number_exit): Detect negatives.
2774
2775 2012-07-20  Paul Eggert  <eggert@cs.ucla.edu>
2776
2777         fsusage: port back to Solaris
2778         * lib/fsusage.c (get_fs_usage): Fix busted logic causing compile-time
2779         error (fsd not declared) on Solaris 10.  Reported privately by
2780         Andrew Borodin.
2781
2782 2012-07-19  Akim Demaille  <akim@lrde.epita.fr>
2783
2784         gnu-web-doc-update: fix error messages
2785         * build-aux/gnu-web-doc-update: Don't pass $ME to die.
2786
2787         gnu-web-doc-update: check the requirements.
2788         * build-aux/gnu-web-doc-update (find_tool): Import from bootstrap.
2789         ($CVS, $CVSU, $GIT, $RSYNC, $XARGS): New.
2790         * build-aux/bootstrap (find_tool): Comment change.
2791
2792 2012-07-17  Akim Demaille  <akim@lrde.epita.fr>
2793
2794         maint.mk: minor simplication.
2795         * top/maint.mk (_sc_excl): Use $(or...) instead of $(if...)
2796         for default values.
2797
2798 2012-07-15  Akim Demaille  <akim@lrde.epita.fr>
2799
2800         gitlog-to-changelog: VPATH build issues
2801         If builddir is not a subdirectory of srcdir, running git from it will
2802         fail.
2803         * build-aux/gitlog-to-changelog (--srcdir): New option.
2804
2805 2012-07-15  Bruno Haible  <bruno@clisp.org>
2806
2807         fpending: Assume AC_CHECK_DECLS_ONCE invocation, like in fpending.m4.
2808         * lib/fpending.h: Assume HAVE_DECL___FPENDING is defined.
2809         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests)
2810         Remove exemption for fpending.h.
2811         Suggested by Eric Blake.
2812
2813 2012-07-15  Paul Eggert  <eggert@cs.ucla.edu>
2814
2815         pthread_sigmask: fix bug on FreeBSD 9
2816         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_INEFFECTIVE]:
2817         Include string.h.
2818         (pthread_sigmask) [PTHREAD_SIGMASK_INEFFECTIVE]:
2819         When calling pthread_sigmask (1729, NEW, OLD), specify non-null NEW;
2820         this avoids a bug on FreeBSD 9, where pthread_sigmask is effective
2821         but pthread_sigmask (1729, NULL, NULL) returns zero.
2822         See <http://bugs.gnu.org/11884>.
2823         Avoid the need to call pthread_sigmask (1729, ...) in most cases,
2824         by inspecting whether the main call changed the old mask.
2825
2826 2012-07-15  Reuben Thomas  <rrt@sc3d.org>
2827
2828         README-release: make it more legible
2829         * top/README-release: Improve typography slightly.
2830
2831 2012-07-15  Jim Meyering  <meyering@redhat.com>
2832
2833         maint: require that each sc_... command start with "@"
2834         * Makefile (sc_prohibit_sc_omitted_at): New rule so that
2835         "make sc_maint" helps us avoid this nit.
2836
2837 2012-07-15  Jim Meyering  <meyering@redhat.com>
2838
2839         maint.mk: add leading "@" to quiet new "make syntax-check" rule
2840         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Add "@".
2841
2842 2012-07-13  Eric Blake  <eblake@redhat.com>
2843
2844         maint.mk: new syntax check for HAVE_DECL checks
2845         * top/maint.mk (sc_prohibit_defined_have_decl_tests): New rule.
2846         * cfg.mk
2847         (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
2848         Exempt some false positives.
2849         Based on a report by Karel Zak.
2850
2851         argp: make HAVE_DECL usage consistent
2852         * lib/argp-parse.c (__argp_parse): Check contents of HAVE_DECL
2853         macros, not whether they are defined.
2854         * m4/argp.m4 (gl_ARGP): Always define HAVE_DECL_* macros, per
2855         convention with other declaration checks.
2856         Reported by Karel Zak, with suggestions from Paul Eggert.
2857
2858         stat-time: relax license to LGPLv2+
2859         * modules/stat-time (License): Relax, with consent of all authors.
2860
2861         strndup: fix m4 usage error
2862         * m4/strndup.m4 (gl_FUNC_STRNDUP): HAVE_DECL_STRNDUP is always
2863         defined, to either 0 or 1.
2864         Reported by Karel Zak.
2865
2866 2012-07-11  Jim Meyering  <meyering@redhat.com>
2867
2868         maint: enable the sc_avoid_if_before_free syntax-check rule
2869         * cfg.mk (local-checks-to-skip): Enable sc_avoid_if_before_free.
2870         (if_before_free_offenders_): Define.
2871         (if_before_free_basename_re_): Define.
2872         Exempt current files with useless if-before-free.
2873
2874 2012-07-11  Paul Eggert  <eggert@cs.ucla.edu>
2875
2876         gettext: do not assume '#define ... defined ...' behavior
2877         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS):
2878         Do not use '#define FOO ... defined BAR ...', as the C standard says
2879         it's not portable to expect that this works after macro expansion.
2880         Problem reported for gzip by Steven M. Schweda in
2881         <http://lists.gnu.org/archive/html/bug-gzip/2012-07/msg00000.html>.
2882
2883 2012-07-10  Paul Eggert  <eggert@cs.ucla.edu>
2884
2885         getloadavg: clean out old Emacs and Autoconf cruft
2886         See Glenn Morris in <http://bugs.gnu.org/11905>.
2887         * lib/getloadavg.c: Include <config.h>, <stdbool.h> always.
2888         Include <sys/param.h> if HAVE_SYS_PARAM_H, not if unix or __unix.
2889         (LDAV_CVT): Remove no-longer-used LOAD_AVE_CVT hook.
2890         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Check for <sys/param.h>.
2891
2892 2012-07-10  Akim Demaille  <akim@lrde.epita.fr>
2893
2894         bootstrap: let warn be like tests/init.sh's warn_
2895         Reported by Jim Meyering.
2896         * build-aux/bootstrap (warn): Remove, replaced by...
2897         (warnf_, warn_): these.
2898         Adjust callers.
2899         Shorten messages that no longer fit in 80 columns.
2900
2901 2012-07-09  Bruno Haible  <bruno@clisp.org>
2902
2903         getopt: Simplify after Emacs changed.
2904         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Inline gl_GETOPT_IFELSE.
2905         (gl_GETOPT_IFELSE): Remove macro.
2906
2907 2012-07-09  Jim Meyering  <meyering@redhat.com>
2908
2909         maint.mk: add sc_vulnerable_makefile_CVE-2012-3386
2910         * top/maint.mk (sc_vulnerable_makefile_CVE-2012-3386): New rule.
2911
2912         maint.mk: _sc_search_regexp, sc_vulnerable_makefile_CVE-2009-4029: fix
2913         Bugs in both of those conspired to make the
2914         sc_vulnerable_makefile_CVE-2009-4029 rule 99% useless.
2915         _sc_search_regexp's handling of non-empty $in_files would filter
2916         out any offending file names.  sc_vulnerable_makefile_CVE-2009-4029's
2917         choice of in_files value meant there would be no match in most
2918         projects, due to the presence of two or more Makefile.in files.
2919         * top/maint.mk (_sc_search_regexp) [in_vc_files,in_files]: Clarify.
2920         Fix a bug in how a non-empty $$in_files was processed:
2921         (sc_vulnerable_makefile_CVE-2009-4029): Fix erroneous use of in_files:
2922         in spite of the name, it's a regexp, not a list of file names.
2923
2924 2012-07-09  Paul Eggert  <eggert@cs.ucla.edu>
2925
2926         getloadavg, getopt: fix commentary re configure.in
2927         Autoconf is deprecating the name 'configure.in', so change it to
2928         to the new name 'configure.ac' in a couple of places.
2929         * lib/getloadavg.c: configure.in -> configure.ac, in comment.
2930         * m4/getopt.m4 (gl_GETOPT_IFELSE, gl_GETOPT_SUBSTITUTE_HEADER)
2931         (gl_PREREQ_GETOPT): Remove obsolete commentary re Emacs configure.in.
2932         Emacs has renamed it to configure.ac, and it no longer refers
2933         to these macros anyway.
2934
2935         timespec: mark functions with const attributes
2936         * lib/timespec.h (timespec_add, timespec_sub, dtotimespec):
2937         Mark with _GL_ATTRIBUTE_CONST.
2938
2939 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
2940
2941         canonicalize[-lgpl]: handle "guessing" values when cross-building
2942         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
2943         (gl_CANONICALIZE_LGPL): Check whether $gl_cv_func_realpath_works
2944         matches "*yes" instead of just "yes".  Regression introduced in commit
2945         e0bcf6626cde8dad4bfbdc4045c744f0cd8b9e24.
2946
2947 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
2948             Bruno Haible  <bruno@clisp.org>
2949
2950         canonicalize: make the right guess when cross-compiling to GNU
2951         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Match also "gnu*" to
2952         determine whether cross-compiling to glibc systems, so as to
2953         include GNU/Hurd.
2954
2955 2012-07-06  Paul Eggert  <eggert@cs.ucla.edu>
2956
2957         timespec-sub: avoid duplicate include
2958         * lib/timespec-sub.c: Do not include <config.h> twice.
2959         Reported by Juanma Barranquero.
2960
2961 2012-07-06  Akim Demaille  <akim@lrde.epita.fr>
2962
2963         bootstrap: use a more consistent error reporting scheme
2964         * build-aux/bootstrap (warn, die): New.
2965         Use them.
2966
2967 2012-07-05  Paul Eggert  <eggert@cs.ucla.edu>
2968
2969         sys_time: allow too-wide tv_sec
2970         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Allow struct
2971         timeval even if tv_sec is wider than time_t.  This allows
2972         OpenBSD 5.1 amd64 and fixes an Emacs porting glitch with utimens.c,
2973         as without this patch gnulib replaces struct timeval
2974         and OpenBSD futimes therefore has a type mismatch.
2975         * doc/posix-headers/sys_time.texi: Mention this.
2976
2977         pthread: check for both pthread_create and pthread_join
2978         * m4/pthread.m4 (gl_PTHREAD_CHECK): Revert previous change, but
2979         alter the check so that it tests for both pthread_create and
2980         pthread_join.  This should be more portable to hosts like OSF/1 5.1.
2981         Suggested by Bruno Haible and Richard Yao in
2982         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00048.html>.
2983
2984         parse-datetime: doc tuneup
2985         * doc/parse-datetime.texi: Index "leap seconds" and fix minor
2986         spacing issues.
2987
2988 2012-07-05  Akim Demaille  <akim@lrde.epita.fr>
2989
2990         do-release-commit-and-tag: fix the previous commit
2991         * build-aux/do-release-commit-and-tag: Actually the test was right,
2992         but the comment and the error message were misleading.
2993         Fix comment, and improve error message.
2994         Perform check first, so that NEWS is not modified uselessly.
2995
2996         do-release-commit-and-tag: fix typo
2997         * build-aux/do-release-commit-and-tag: Be sure that NEWS does
2998         _not_ start with a stub.
2999
3000 2012-07-04  Paul Eggert  <eggert@cs.ucla.edu>
3001
3002         pthread: check for pthread_create, not pthread_join
3003         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_create, not
3004         pthread_join.  On FreeBSD 9, pthread_create is in libpthread but
3005         pthread_join in libc.  I hope this removes the need for all the
3006         OSF/1 5.1 pthread_join business.  Reported by Richard Yao in
3007         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00042.html>.
3008
3009 2012-07-04  Jim Meyering  <meyering@redhat.com>
3010
3011         parse-datetime: fix failure to diagnose invalid input
3012         date -d "$(printf '\xb0')" would print 00:00:00 with today's date
3013         rather than diagnosing the invalid input.  Now it reports this:
3014         date: invalid date '\260'
3015         * lib/parse-datetime.y (to_uchar): Define.
3016         (yylex): Don't sign-extend "other" bytes.
3017         * m4/parse-datetime.m4: Require AC_C_INLINE for first use of "inline".
3018         Thanks to Bruno Haible for the patch to this file.
3019         * tests/test-parse-datetime.c (main): Add a test to trigger the bug.
3020         Peter Evans reported the bug in GNU date: http://bugs.gnu.org/11843
3021
3022 2012-07-03  Jim Meyering  <meyering@redhat.com>
3023
3024         bootstrap: do not require now-removed build-aux/missing
3025         Now that build-aux/missing is, er, missing, bootstrap would
3026         silently fail.
3027         * build-aux/bootstrap (gnulib_extra_files): Remove $build_aux/missing
3028         from the list, now that (since commit v0.0-7489-gd0f486f) the file is
3029         no longer part of gnulib.
3030         Diagnose the failure.
3031
3032 2012-07-03  Paul Eggert  <eggert@cs.ucla.edu>
3033
3034         alloca: add support for HP NonStop TNS/E native
3035         * lib/alloca.in.h (alloca): Support the new host.
3036         From a suggestion by Joachim Schmitz in
3037         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00355.html>.
3038
3039 2012-07-02  Pádraig Brady  <P@draigBrady.com>
3040
3041         fsusage: remove code not needed on non GNU/Linux systems.
3042
3043         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
3044         Don't include headers no longer needed in this case.
3045         * lib/fsusage.c [STAT_STATVFS &&
3046         ! (__linux__ && (__GLIBC__||__UCLIBC__))]: Undefine
3047         STAT_STATFS2_FRSIZE to exclude code not used in this case.
3048
3049 2012-07-02  Paul Eggert  <eggert@cs.ucla.edu>
3050
3051         fsusage: include files needed for glibc 2.6 fallback
3052         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
3053         Include <sys/param.h>, <sys/mount.h>, <sys/vfs.h>
3054         as they are needed for the 2.6 < glibc/Linux < 2.6.36 fallback.
3055         Problem reported by Ludovic Courtès in
3056         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00005.html>.
3057
3058         fsusage: avoid needless check on GNU/Linux
3059         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Omit STAT_STATFS3_OSF1 check
3060         on GNU/Linux systems, since it can't possibly work.
3061
3062 2012-07-01  Bruno Haible  <bruno@clisp.org>
3063
3064         log: Fix an autoconf >= 2.64 warning.
3065         * modules/log (configure.ac): Require, not invoke, gl_FUNC_LOG.
3066         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
3067
3068 2012-06-28  Bruno Haible  <bruno@clisp.org>
3069
3070         log10f: Fix possible configuration problem.
3071         * m4/log10f.m4 (gl_FUNC_LOG10F): Augment LIBS by $LOG10F_LIBM, not
3072         $LOGF_LIBM.
3073         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
3074
3075 2012-06-28  Bruno Haible  <bruno@clisp.org>
3076
3077         remove: No longer override on all platforms. Fixes bug from 2010-03-20.
3078         * m4/remove.m4 (gl_FUNC_REMOVE): Test gl_cv_func_unlink_honors_slashes,
3079         not gl_cv_func_unlink_works.
3080         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
3081
3082 2012-06-27  Eric Blake  <eblake@redhat.com>
3083
3084         config: drop scripts that automake says are not independent
3085         * config/srclist.txt: Drop elisp-comp, missing, and ylwrap.
3086         * build-aux/elisp-comp: Delete.
3087         * build-aux/missing: Likewise.
3088         * build-aux/ylwrap: Likewise.
3089         * modules/elisp-comp: Likewise.
3090         * MODULES.html.sh: Drop mention of elisp-comp.
3091         * NEWS: Mention this.
3092
3093 2012-06-26  Paul Eggert  <eggert@cs.ucla.edu>
3094
3095         root-uid: new module
3096         This is for portability to Tandem's NonStop Kernel.
3097         * lib/root-uid.h, modules/root-uid: New files.
3098         * lib/euidaccess.c, lib/pt_chown.c, lib/unlinkdir.c:
3099         * lib/write-any-file.c, tests/test-sethostname2.c:
3100         Include "root-uid.h".
3101         * lib/euidaccess.c (euidaccess):
3102         * lib/pt_chown.c (main):
3103         * lib/unlinkdir.c (cannot_unlink_dir):
3104         * lib/write-any-file.c (can_write_any_file):
3105         * m4/mknod.m4 (gl_FUNC_MKNOD):
3106         * tests/test-sethostname2.c (geteuid, main):
3107         Don't assume ROOT_UID == 0.
3108         * modules/euidaccess (Depends-on):
3109         * modules/pt_chown (Depends-on):
3110         * modules/sethostname-tests (Depends-on):
3111         * modules/unlinkdir (Depends-on):
3112         * modules/write-any-file (Depends-on):
3113         Add root-uid.
3114
3115         regex: use locale-independent comparison for codeset name
3116         See Bruno Haible's comment in <http://bugs.gnu.org/10305#120>.
3117         * lib/regcomp.c (init_dfa): Use just ASCII case comparison
3118         for codeset name.
3119         * lib/regex_internal.h: Do not include <strings.h>, since we
3120         no longer use strcasecmp.
3121         * modules/regex (Depends-on): Remove strcase.
3122
3123 2012-06-23  Bruno Haible  <bruno@clisp.org>
3124
3125         getopt-posix: No longer guarantee that option processing is resettable.
3126         * doc/posix-functions/getopt.texi: Drop description of problem with
3127         internal state. Fix info about mingw and msvc9.
3128         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't require a resettable
3129         option processing by getopt(). Run three test programs instead of one.
3130         Simplify cross-compilation guess.
3131         * NEWS: Mention the change.
3132         Reported by Rich Felker <dalias@aerifal.cx>.
3133
3134 2012-06-26  Bruno Haible  <bruno@clisp.org>
3135
3136         argp, regex: Ensure strcasecmp gets declared.
3137         * lib/argp-help.c: Include <strings.h>.
3138         * lib/regex_internal.h: Likewise.
3139         Reported and suggested by Joachim Schmitz <jojo@schmitz-digital.de>.
3140
3141 2012-06-24  Bruno Haible  <bruno@clisp.org>
3142
3143         ptsname_r: Make it consistent with ptsname on AIX.
3144         * lib/ptsname_r.c (__ptsname_r): For AIX, use nearly the same
3145         implementation as for OSF/1.
3146         * tests/test-ptsname_r.c (main) [AIX]: Use the modern way of opening
3147         a pty master.
3148
3149         ptsname_r: Make it consistent with ptsname on OSF/1.
3150         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
3151         OSF/1.
3152
3153 2012-06-24  Bruno Haible  <bruno@clisp.org>
3154
3155         ttyname_r: Fix result on OSF/1, Solaris.
3156         * lib/ttyname_r.c (ttyname_r): Produce a NUL-terminated result.
3157
3158 2012-06-24  Bruno Haible  <bruno@clisp.org>
3159
3160         ptsname_r: Add support for Solaris.
3161         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
3162         Solaris.
3163
3164         ptsname_r: Fix test failure on native Windows.
3165         * modules/ptsname_r (Depends-on): Add isatty.
3166
3167         ptsname_r: Fix test failures on IRIX, Solaris.
3168         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Test whether isatty sets
3169         errno when it fails. Define ISATTY_FAILS_WITHOUT_SETTING_ERRNO
3170         accordingly.
3171         * lib/ptsname_r.c: Include <fcntl.h>.
3172         (__ptsname_r): When isatty returned false, then on IRIX, Solaris
3173         set errno if fd is invalid.
3174         * tests/test-isatty.c (main): Update comments.
3175
3176 2012-06-24  Bruno Haible  <bruno@clisp.org>
3177
3178         ptsname test: Extend test.
3179         * tests/test-ptsname.c: Include <errno.h>.
3180         (main): Test behaviour with invalid file descriptor.
3181
3182 2012-06-23  Paul Eggert  <eggert@cs.ucla.edu>
3183
3184         time: fix obsolete comment
3185         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Remove obsolete
3186         reference to HAVE_STRUCT_TIMESPEC in comment.
3187
3188 2012-06-23  Bruno Haible  <bruno@clisp.org>
3189
3190         getopt-gnu: Handle suboptimal getopt_long's abbreviation handling.
3191         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): If getopt_long exists but
3192         does not handle abbreviated long options with equivalent
3193         disambiguations, set gl_replace_getopt to yes.
3194         * doc/posix-functions/getopt.texi: Mention the OpenBSD 5.0 problem.
3195
3196 2012-06-22  Paul Eggert  <eggert@cs.ucla.edu>
3197
3198         time_r: fix typo that always overrode localtime_r decl
3199         * m4/time_r.m4 (gl_TIME_R): Use AC_CHECK_DECLS, not
3200         AC_CHECK_DECLS_ONCE, since localtime_r is declared in <time.h>,
3201         not in a standard include.
3202
3203 2012-06-22  Bruno Haible  <bruno@clisp.org>
3204
3205         Write "Mac OS X" instead of "MacOS X".
3206         * README: Write "Mac OS X" instead of "MacOS X".
3207         * build-aux/bootstrap: Likewise.
3208         * build-aux/install-reloc: Likewise.
3209         * lib/acl-internal.h: Likewise.
3210         * lib/acl_entries.c: Likewise.
3211         * lib/argp-ba.c: Likewise.
3212         * lib/argp-pv.c: Likewise.
3213         * lib/config.charset: Likewise.
3214         * lib/copy-acl.c: Likewise.
3215         * lib/csharpexec.c: Likewise.
3216         * lib/euidaccess.c: Likewise.
3217         * lib/fbufmode.c: Likewise.
3218         * lib/fflush.c: Likewise.
3219         * lib/file-has-acl.c: Likewise.
3220         * lib/filemode.h: Likewise.
3221         * lib/fpurge.c: Likewise.
3222         * lib/freadable.c: Likewise.
3223         * lib/freadahead.c: Likewise.
3224         * lib/freading.c: Likewise.
3225         * lib/freadptr.c: Likewise.
3226         * lib/freadseek.c: Likewise.
3227         * lib/fseeko.c: Likewise.
3228         * lib/fseterr.c: Likewise.
3229         * lib/fsusage.c: Likewise.
3230         * lib/fwritable.c: Likewise.
3231         * lib/fwriting.c: Likewise.
3232         * lib/get-rusage-as.c: Likewise.
3233         * lib/get-rusage-data.c: Likewise.
3234         * lib/getdomainname.c: Likewise.
3235         * lib/idpriv-drop.c: Likewise.
3236         * lib/idpriv-droptemp.c: Likewise.
3237         * lib/localcharset.c: Likewise.
3238         * lib/locale.in.h: Likewise.
3239         * lib/localename.c: Likewise.
3240         * lib/mbsrtowcs-state.c: Likewise.
3241         * lib/nproc.c: Likewise.
3242         * lib/passfd.c: Likewise.
3243         * lib/posix_openpt.c: Likewise.
3244         * lib/printf-parse.c: Likewise.
3245         * lib/progreloc.c: Likewise.
3246         * lib/safe-read.h: Likewise.
3247         * lib/safe-write.h: Likewise.
3248         * lib/sched.in.h: Likewise.
3249         * lib/set-mode-acl.c: Likewise.
3250         * lib/signal.in.h: Likewise.
3251         * lib/stdint.in.h: Likewise.
3252         * lib/stdio-impl.h: Likewise.
3253         * lib/stdlib.in.h: Likewise.
3254         * lib/strtod.c: Likewise.
3255         * lib/sys_select.in.h: Likewise.
3256         * lib/tcgetsid.c: Likewise.
3257         * lib/unistd.in.h: Likewise.
3258         * lib/unlockpt.c: Likewise.
3259         * lib/vasnprintf.c: Likewise.
3260         * lib/vma-iter.c: Likewise.
3261         * lib/wcsrtombs-state.c: Likewise.
3262         * m4/acl.m4: Likewise.
3263         * m4/acosl.m4: Likewise.
3264         * m4/asinl.m4: Likewise.
3265         * m4/atanl.m4: Likewise.
3266         * m4/c-stack.m4: Likewise.
3267         * m4/cosl.m4: Likewise.
3268         * m4/expl.m4: Likewise.
3269         * m4/extensions.m4: Likewise.
3270         * m4/fdatasync.m4: Likewise.
3271         * m4/fmal.m4: Likewise.
3272         * m4/frexp.m4: Likewise.
3273         * m4/frexpf.m4: Likewise.
3274         * m4/frexpl.m4: Likewise.
3275         * m4/fsusage.m4: Likewise.
3276         * m4/getdomainname.m4: Likewise.
3277         * m4/getloadavg.m4: Likewise.
3278         * m4/getopt.m4: Likewise.
3279         * m4/gettext.m4: Likewise.
3280         * m4/gnulib-common.m4: Likewise.
3281         * m4/intdiv0.m4: Likewise.
3282         * m4/intlmacosx.m4: Likewise.
3283         * m4/largefile.m4: Likewise.
3284         * m4/ldexpl.m4: Likewise.
3285         * m4/link-follow.m4: Likewise.
3286         * m4/locale-ar.m4: Likewise.
3287         * m4/locale-fr.m4: Likewise.
3288         * m4/locale-ja.m4: Likewise.
3289         * m4/locale-tr.m4: Likewise.
3290         * m4/locale-zh.m4: Likewise.
3291         * m4/locale_h.m4: Likewise.
3292         * m4/lock.m4: Likewise.
3293         * m4/logl.m4: Likewise.
3294         * m4/mathfunc.m4: Likewise.
3295         * m4/minus-zero.m4: Likewise.
3296         * m4/mktime.m4: Likewise.
3297         * m4/mmap-anon.m4: Likewise.
3298         * m4/multiarch.m4: Likewise.
3299         * m4/nanosleep.m4: Likewise.
3300         * m4/nocrash.m4: Likewise.
3301         * m4/poll.m4: Likewise.
3302         * m4/printf-frexpl.m4: Likewise.
3303         * m4/printf.m4: Likewise.
3304         * m4/signbit.m4: Likewise.
3305         * m4/sinl.m4: Likewise.
3306         * m4/sqrtl.m4: Likewise.
3307         * m4/strerror_r.m4: Likewise.
3308         * m4/tanl.m4: Likewise.
3309         * m4/threadlib.m4: Likewise.
3310         * m4/ttyname_r.m4: Likewise.
3311         * m4/unlink.m4: Likewise.
3312         * m4/visibility.m4: Likewise.
3313         * m4/wcwidth.m4: Likewise.
3314         * tests/minus-zero.h: Likewise.
3315         * tests/test-alloca-opt.c: Likewise.
3316         * tests/test-copy-acl.sh: Likewise.
3317         * tests/test-copy-file.sh: Likewise.
3318         * tests/test-fdatasync.c: Likewise.
3319         * tests/test-file-has-acl.sh: Likewise.
3320         * tests/test-flock.c: Likewise.
3321         * tests/test-fsync.c: Likewise.
3322         * tests/test-localename.c: Likewise.
3323         * tests/test-malloca.c: Likewise.
3324         * tests/test-nonblocking-pipe.h: Likewise.
3325         * tests/test-nonblocking-socket.h: Likewise.
3326         * tests/test-openpty.c: Likewise.
3327         * tests/test-posix_openpt.c: Likewise.
3328         * tests/test-ptsname.c: Likewise.
3329         * tests/test-ptsname_r.c: Likewise.
3330         * tests/test-sameacls.c: Likewise.
3331         * tests/test-select.h: Likewise.
3332         * tests/test-set-mode-acl.sh: Likewise.
3333         * tests/test-snprintf-posix.h: Likewise.
3334         * tests/test-sprintf-posix.h: Likewise.
3335         * tests/test-strtod.c: Likewise.
3336         * tests/test-time.c: Likewise.
3337         * tests/test-vasnprintf-posix.c: Likewise.
3338         * tests/test-vasprintf-posix.c: Likewise.
3339         * doc/acl-resources.txt: Likewise.
3340         * doc/**/*.texi: Likewise.
3341         Reported by Max Horn <max@quendi.de>.
3342
3343 2012-06-22  Bruno Haible  <bruno@clisp.org>
3344
3345         grantpt: Relax requirement regarding invalid file descriptors.
3346         * lib/grantpt.c: Don't include <fcntl.h>.
3347         (grantpt): Don't verify the validity of the file descriptor.
3348         * modules/grantpt (Depends-on): Remove fcntl-h.
3349         * tests/test-grantpt.c (main): Allow grantpt to succeed for invalid
3350         file descriptors.
3351         * doc/posix-functions/grantpt.texi: Document more platforms on which
3352         grantpt succeeds for invalid file descriptors.
3353         Reported by Rich Felker <dalias@aerifal.cx>.
3354
3355 2012-06-22  Bruno Haible  <bruno@clisp.org>
3356
3357         fbufmode test: Don't test unportable behaviour.
3358         * tests/test-fbufmode.c (test_mode): New function, extracted from main.
3359         (main): Invoke it three times.
3360         Reported by Szabolcs Nagy <nsz@port70.net>
3361         and Rich Felker <dalias@aerifal.cx>.
3362
3363 2012-06-21  Bruno Haible  <bruno@clisp.org>
3364
3365         gnulib-tool: Refactor inctests variable.
3366         * gnulib-tool: Normalize inctests to 'true' or 'false', not ''.
3367         (func_modules_transitive_closure,
3368         func_modules_transitive_closure_separately,
3369         func_import, func_create_testdir): Update.
3370
3371         gnulib-tool: --create-[mega]testdir, --[mega]test implies --with-tests.
3372         * gnulib-tool: Accept option --without-tests.
3373         (func_usage): Document --without-tests option. Rearrange.
3374         (inctests): Normalize according to the mode.
3375         * NEWS: Mention the change.
3376         Suggested by Simon Josefsson.
3377
3378 2012-06-21  Bruce Korb  <bkorb@gnu.org>
3379
3380         parse-duration test: Avoid spurious output.
3381         * tests/test-parse-duration.sh: Reindent with leading tabs.
3382
3383 2012-06-21  Jim Meyering  <meyering@redhat.com>
3384
3385         maint: disable the strncpy prohibition
3386         * cfg.mk: Do not prohibit strncpy here.
3387
3388 2012-06-21  Bruno Haible  <bruno@clisp.org>
3389
3390         nonblocking: Avoid compilation error on mingw64.
3391         * m4/stdio_h.m4 (gl_STDIO_H): Invoke gl_MODULE_INDICATOR for scanf,
3392         fscanf.
3393         * modules/vscanf (configure.ac): Invoke gl_MODULE_INDICATOR.
3394         * modules/vfscanf (configure.ac): Likewise.
3395         * lib/stdio-read.c (scanf, fscanf, vscanf, vfscanf): Enable function
3396         definition only if stdio.h has prepared it.
3397         Reported by Daniel P. Berrange <berrange@redhat.com>.
3398
3399 2012-06-20  Bernd Jendrissek  <bernd.jendrissek@gmail.com>  (tiny change)
3400
3401         gnulib-tool: Use readlink if it is available.
3402         * gnulib-tool (func_readlink): Choose function more appropriately.
3403
3404 2012-06-21  Paul Eggert  <eggert@cs.ucla.edu>
3405
3406         posixtm-tests: port to buggy compiler
3407         Problem reported by Simon Josefsson in
3408         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00246.html>.
3409         * modules/posixtm-tests (Depends-on): Add stdint.
3410         * tests/test-posixtm.c (struct posixtm_test.t_expected):
3411         Now of type int_least64_t, not int64_t, both because that's
3412         what INT64_C returns and because int_least64_t works even
3413         on 72-bit hosts.
3414         (T): Use INT64_C on constants outside the traditional int range,
3415         to work around compiler bug noted by Simon.
3416
3417         mktime: fix integer overflow in 'configure'-time test
3418         * m4/mktime.m4 (gl_FUNC_MKTIME): Do not rely on undefined behavior
3419         after integer overflow.  Problem reported by Rich Felker in
3420         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00257.html>.
3421         Also, don't look for further instances of a bug if we've already
3422         found one instance; this helps 'configure' run faster.
3423
3424 2012-06-20  John Darrington  <john@darrington.wattle.id.au>  (tiny change)
3425
3426         tmpfile, clean-temp: Fix invocation of GetVersionEx.
3427         * lib/tmpfile.c (supports_delete_on_close): Initialize parameter for
3428         GetVersionEx correctly.
3429         * lib/clean-temp.c (supports_delete_on_close): Likewise.
3430
3431 2012-06-20  Bruno Haible  <bruno@clisp.org>
3432
3433         fdopen: Allow implementations that don't reject invalid fd arguments.
3434         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Let the test pass if fdopen(-1,...)
3435         succeeds.
3436         Reported by Rich Felker <dalias@aerifal.cx>.
3437
3438 2012-06-20  Simon Josefsson  <simon@josefsson.org>
3439
3440         * modules/parse-duration-tests (test_parse_duration_LDADD): Don't
3441         bring in LIBINTL.
3442
3443 2012-06-20  Paul Eggert  <eggert@cs.ucla.edu>
3444
3445         init.sh: do not rely on autoupated PWD
3446         This addresses symptoms of the problem reported by Nelson H.F. Beebe in
3447         <http://lists.gnu.org/archive/html/bug-gzip/2012-06/msg00008.html>.
3448         Although Nelson's bug was not necessarily fixed by this patch,
3449         it seems wise to make the change for safety.
3450         * tests/init.sh (path_prepend_): Do not rely on PWD updating
3451         automagically after 'cd'; this is not reliable on older shells.
3452         (setup_): Fail if we cannot cd to temporary directory.
3453
3454 2012-06-19  Bruno Haible  <bruno@clisp.org>
3455
3456         stat, fstat: Avoid warnings on mingw64.
3457         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Undefine before
3458         redefining.
3459         * lib/fstat.c (stat, fstat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Likewise.
3460         Reported by Daniel P. Berrange <berrange@redhat.com>.
3461
3462 2012-06-19  Bruno Haible  <bruno@clisp.org>
3463
3464         stdioext: Add support for musl libc.
3465
3466         * m4/fbufmode.m4 (gl_FUNC_FBUFMODE): Test whether __fbufsize exists.
3467         * lib/fbufmode.c (fbufmode): Add conditional code for musl.
3468
3469         * m4/fseterr.m4: New file.
3470         * lib/fseterr.h (fseterr): Define as an alias of __fseterr if that
3471         function exists.
3472         * modules/fseterr (Files): Add m4/fseterr.m4.
3473         (configure.ac): Invoke gl_FUNC_FSETERR. Compile fseterr.c if
3474         __fseterr does not exist.
3475         (Makefile.am): Remove fseterr.c from lib_SOURCES.
3476
3477         * lib/freadable.h: Update comment.
3478
3479         * lib/fwritable.h: Update comment.
3480
3481         * lib/freading.h: Update comment.
3482
3483         * lib/fwriting.h: Update comment.
3484
3485         * m4/freadahead.m4: New file.
3486         * lib/freadahead.h (freadahead): Define as an alias of __freadahead if
3487         that function exists.
3488         * modules/freadahead (Files): Add m4/freadahead.m4.
3489         (configure.ac): Invoke gl_FUNC_FREADAHEAD. Compile freadahead.c if
3490         __freadahead does not exist.
3491         (Makefile.am): Remove freadahead.c from lib_SOURCES.
3492
3493         * m4/freadptr.m4: New file.
3494         * lib/freadptr.h (freadptr): Define as an alias of __freadptr if that
3495         function exists.
3496         * modules/freadptr (Files): Add m4/freadptr.m4.
3497         (configure.ac): Invoke gl_FUNC_FREADPTR. Compile freadptr.c if
3498         __freadptr does not exist.
3499         (Makefile.am): Remove freadptr.c from lib_SOURCES.
3500
3501         * m4/freadseek.m4: New file.
3502         * lib/freadseek.c (freadptrinc): Use __freadptrinc if that function
3503         exists.
3504         * modules/freadseek (Files): Add m4/freadseek.m4.
3505         (configure.ac): Invoke gl_FUNC_FREADSEEK.
3506
3507         * lib/fpurge.c (fpurge): Update comment.
3508
3509         Reported by and with help from Rich Felker <dalias@aerifal.cx>.
3510
3511 2012-06-19  Bruno Haible  <bruno@clisp.org>
3512
3513         *printf-posix: Put more info into config.log.
3514         * m4/printf.m4 (gl_PRINTF_ENOMEM): Emit conftest's error output and
3515         exit code into config.log.
3516
3517 2012-06-19  Bruno Haible  <bruno@clisp.org>
3518
3519         getopt-gnu: Fix exit code overflow in autoconf test.
3520         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Squash exit code values,
3521         to keep them below < 128.
3522
3523 2012-06-17  Jim Meyering  <meyering@redhat.com>
3524
3525         maint.mk: fix typo in code to derive GPG key at release time
3526         * top/maint.mk (gpg_key_ID): Fix typo: $3 -> $$3
3527
3528 2012-06-17  Paul Eggert  <eggert@cs.ucla.edu>
3529
3530         regex: avoid warning when pointers are not long
3531         * lib/regcomp.c (parse_dup_op, mark_opt_subexp): Cast between void *
3532         and uintptr_t, not long, for portability to hosts where pointers and
3533         long have different sizes.  Issue noted by Daniel P. Berrange in
3534         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00122.html>
3535         and fix suggested by Bruno Haible in
3536         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00128.html>.
3537
3538 2012-06-17  Bruno Haible  <bruno@clisp.org>
3539
3540         dummy: Relicense into the public domain.
3541         * modules/dummy (License): Set to "public domain".
3542         Suggested by Reuben Thomas.
3543
3544 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
3545
3546         announce-gen: VPATH issues
3547         * build-aux/announce-gen (--srcdir): New option, used to trim the
3548         $srcdir part of the path from $builddir to NEWS.
3549         * top/maint.mk (announcement): Adjust.
3550
3551 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
3552
3553         gnu-web-doc-update: VPATH builds
3554         * build-aux/gnu-web-doc-update (--builddir): New option.
3555         Revamp the handling of options.
3556         Prefer $(...) to `...`.
3557         Don't pass --tmpdir=. to mktemp, it is useless given that we specify
3558         the template, and it is GNU mktemp specific.
3559         Prefer set -e to long series of &&.
3560         Restore the initial git branch, not "master".
3561         Properly initialize submodules (don't rely only on bootstrap).
3562         Do not reconfigure blindly, use config.status.
3563         * top/README-release: Update instructions for gnu-web-doc-update.
3564
3565 2012-06-11  Jim Meyering  <meyering@redhat.com>
3566
3567         maint.mk: revert most of the previous change re "all these"
3568         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Remove that pair.
3569         For rationale, see the discussion at
3570         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30912
3571
3572 2012-06-10  Karl Berry  <karl@gnu.org>
3573
3574         * build-aux/gnupload: with --dry-run, do not ask for gpg pw.
3575
3576         * build-aux/gnupload: implement --replace, ftp-upload protocol v1.2.
3577
3578 2012-06-10  Bruce Korb  <bkorb@gnu.org>
3579
3580         parse-duration: Relicense under LGPLv2+.
3581         * modules/parse-duration (License): Change to LGPLv2+.
3582
3583 2012-06-10  Jim Meyering  <meyering@redhat.com>
3584
3585         maint.mk: prohibit common grammar error: "all these"
3586         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Add "all these" to
3587         the list of prohibited word sequences.  It should be "all of these".
3588         * lib/tempname.c (__gen_tempname): Fix one of them.
3589
3590 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
3591
3592         do-release-commit-and-tag: support VPATH builds
3593         * build-aux/do-release-commit-and-tag: Prefer $(...) to `...`.
3594         (noteworthy): Defined earlier to factor its value.
3595         (noteworthy_stub): New.
3596         Use it to factor.
3597         (help_version): Split into...
3598         (help, version): these.
3599         Adjust the option processing part.
3600         Support "--option=value" in addition to "--option value".
3601         (builddir): New.
3602         (--builddir): New option.
3603         * top/README-release: Document this.
3604         Reword slightly so that the reader cannot understand that he
3605         has to do these steps before calling do-release-commit-and-tag.
3606
3607 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
3608
3609         readme-release: also require announce-gen and maintainer-makefile
3610         * modules/readme-release (Depends-on): here.
3611         * modules/announce-gen, modules/do-release-commit-and-tag,
3612         modules/gnu-web-doc-update, modules/maintainer-makefile
3613         (Description): Point to readme-release.
3614
3615 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
3616
3617         maint.mk: fix VPATH issues.
3618         * top/maint.mk (news-check): GNU Make understand $< very well.
3619         (release-prep): NEWS is in $(srcdir).
3620
3621 2012-06-05  Akim Demaille  <akim@lrde.epita.fr>
3622
3623         readme-release: require the promoted modules.
3624         * modules/readme-release (Depends-on): Add
3625         do-release-commit-and-tag, gnupload, and gnu-web-doc-update, used
3626         in this text.
3627
3628 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
3629             Bruno Haible  <bruno@clisp.org>
3630
3631         error, strerror-override: Support mingw64 from Fedora 17.
3632         * lib/errno.in.h (GNULIB_defined_ESTREAMS): Use a different indicator
3633         for ETXTBSY, ENODATA, ENOSR, ENOSTR, ETIME, EOTHER, compared to
3634         EINPROGRESS.
3635         * lib/strerror-override.h (strerror_override): Test it.
3636         * lib/strerror-override.c (strerror_override): Likewise.
3637         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also ETXTBSY.
3638
3639 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
3640             Bruno Haible  <bruno@clisp.org>
3641
3642         error, strerror-override: Support mingw64 from Fedora 17.
3643         * lib/errno.in.h (GNULIB_defined_ENOTRECOVERABLE): Use a different
3644         indicator for ENOTRECOVERABLE, compared to EOWNERDEAD.
3645         * lib/strerror-override.h (strerror_override): Test it.
3646         * lib/strerror-override.c (strerror_override): Likewise.
3647
3648 2012-06-03  Bruno Haible  <bruno@clisp.org>
3649
3650         error, strerror-override: Support new errno values from POSIX:2008.
3651         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also EOWNERDEAD and
3652         ENOTRECOVERABLE.
3653         * lib/errno.in.h (EOWNERDEAD, ENOTRECOVERABLE): Define on all
3654         platforms.
3655         * lib/strerror-override.c (strerror_override): Conditionalize the
3656         EOWNERDEAD, ENOTRECOVERABLE handling on GNULIB_defined_EOWNERDEAD.
3657         * lib/strerror-override.h (strerror_override): Declare also if
3658         GNULIB_defined_EOWNERDEAD is defined.
3659         * tests/test-errno.c (e130, e131): New variables.
3660         * doc/posix-headers/errno.texi: Mention the status for EOWNERDEAD,
3661         ENOTRECOVERABLE.
3662         Reported by Paolo Bonzini.
3663
3664 2012-05-31  Jim Meyering  <meyering@redhat.com>
3665
3666         savewd: add missing dependency on sys_wait module
3667         * modules/savewd (Depends-on): Add sys_wait, needed at least
3668         for MSVC.  Report and suggested change by Michael Goffioul.
3669
3670 2012-05-29  Paul Eggert  <eggert@cs.ucla.edu>
3671
3672         system-quote-tests: port to CentOS 5
3673         Problem reported by Tom G. Christensen in
3674         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00255.html>.
3675         * tests/test-system-quote-child.c (fclose, fprintf): Undef.
3676
3677 2012-05-29  Jim Meyering  <meyering@redhat.com>
3678
3679         maint: fix typos in comments and ChangeLog
3680         Culprits identified and fixed mostly automatically using these commands:
3681         git ls-files | misspellings -f - |grep -v '^ERROR:' |perl -pe \
3682         's/^(.*?)\[(\d+)\]: (\w+) -> "(.*?)"$/sed -i '\''${2}s!$3!$4!'\'' $1/'
3683         using http://github.com/lyda/misspell-check
3684         * ChangeLog: Fix typos.
3685         * doc/solaris-versions: Likewise.
3686         * lib/regexec.c (re_search_stub): Likewise.
3687         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
3688
3689 2012-05-27  Paul Eggert  <eggert@cs.ucla.edu>
3690
3691         manywarnings: remove duplicate -Wmultichar entry
3692         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Remove duplicate
3693         entry for -Wmultichar.  -Wno-multichar is in the GCC 4.7.0 manual,
3694         so keep the entry marked as documented.
3695
3696 2012-05-27  Karl Berry  <karl@gnu.org>
3697
3698         * config/srclist.txt (mktime.c): remove last libc sync,
3699         perhaps just temporarily.
3700
3701 2012-05-26  Paul Eggert  <eggert@cs.ucla.edu>
3702
3703         regex: don't assume uint64_t or uint32_t
3704         * lib/regcomp.c (init_word_char): Don't assume that the types
3705         uint64_t and uint32_t exist.  The C standard doesn't guarantee
3706         them, and on some 32-bit compilers there is no uint64_t.
3707         Problem reported by Gianluigi Tiesi in
3708         <http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00154.html>.
3709
3710 2012-05-25  Jim Meyering  <meyering@redhat.com>
3711
3712         maint.mk: add strncpy-prohibiting syntax-check rule
3713         * top/maint.mk (sc_prohibit_strncpy): New rule, from coreutils.
3714
3715 2012-05-24  Jim Meyering  <meyering@redhat.com>
3716
3717         maint.mk: compute $(gpg_key_ID) more portably
3718         * top/maint.mk (gpg_key_ID): Use awk in place of sed '{...;...;}'.
3719         That use of sed is not portable to some fringe systems.
3720         Reported by Paul Eggert in
3721         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30793/focus=30802
3722
3723 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
3724
3725         mktime: sync from glibc
3726         * config/srclist.txt: Uncomment mktime.c.
3727         * lib/mktime.c: Sync from glibc master.  This incorporates 3 changes.
3728         First, indent with tabs, since glibc uses tabs and doesn't want to
3729         change and we'd rather be identical to glibc.  Also, two small
3730         coding changes:
3731         (isdst_differ): Use &&, not &, as && is the usual style.
3732         (__mktime_internal): Rename local var from abs_diff to approx_abs_diff
3733         for clarity.
3734
3735 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
3736
3737         announce-gen: du -h is more portable than du --human
3738         * build-aux/announce-gen (sizes): Invoke du with -h instead
3739         of --human.  Accept leading white space in its output.
3740
3741 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
3742
3743         announce-gen: Improve diagnostics.
3744         * build-aux/announce-gen: When parsing command line options,
3745         prefer "announce-gen: option --release-type requires an argument"
3746         to "Option release-type requires an argument".
3747
3748 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
3749
3750         maint.mk: gpg_key_ID: use sed more portably
3751         * top/maint.mk (gpg_key_ID): End sed block with a semicolon before
3752         the closing brace.
3753         (refresh-po): Fuse two sed invocations into one.
3754
3755 2012-05-15  Akim Demaille  <akim@lrde.epita.fr>
3756
3757         gitlog-to-changelog: support the log message format used in Bison.
3758         * build-aux/gitlog-to-changelog: Support --strip-tab and
3759         --strip-cherry-picked.
3760
3761 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
3762
3763         poll/select: prevent busy-waiting.  SwitchToThread() only gives away
3764         the rest of the current time slice to another thread in the current
3765         process. So if the thread that feeds the file decscriptor we're
3766         polling is not in the current process, we get busy-waiting.
3767         * lib/poll.c: Use SleepEx(1, TRUE) instead of SwitchToThread().
3768         Patch from Theodore Leblond.
3769         * lib/select.c: Split polling out of the loop that sets the output
3770         fd_sets.  Check for zero result and loop if the wait timeout is
3771         infinite.
3772
3773 2012-05-21  Simon Josefsson  <simon@josefsson.org>
3774
3775         select: Fix build error on IRIX 6.5.
3776         * lib/select.c: Include stddef.h for NULL.
3777
3778 2012-05-21  Simon Josefsson  <simon@josefsson.org>
3779
3780         gc: fix libgcrypt detection on older machines.
3781         * m4/gc.m4: Reject libgcrypt earlier than 1.4.4.  Collapse
3782         copyright years because the file has been distributed every year
3783         since it was created.
3784
3785 2012-05-18  Paul Eggert  <eggert@cs.ucla.edu>
3786
3787         crypto: fix bug in large buffer handling
3788         Problem reported by Serge Belyshev for glibc in
3789         <http://sourceware.org/bugzilla/show_bug.cgi?id=14090> and for gnulib in
3790         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00226.html>.
3791         * lib/md4.c (md4_process_block):
3792         * lib/md5.c (md5_process_block):
3793         * lib/sha1.c (sha1_process_block):
3794         * lib/sha256.c (sha256_process_block):
3795         Don't assume the buffer length is less than 2**32.
3796         * lib/sha512.c (sha512_process_block): Likewise.
3797         Here, the bug is present only in the rare case where the host does
3798         not support uint64_t or where size_t is wider than 64 bits.
3799         Use u64size to work around the problems.
3800         * lib/u64.h (u64size): New macro.
3801
3802 2012-05-15  Pádraig Brady  <P@draigBrady.com>
3803
3804         fsusage: fix block size returned on older Linux 2.6
3805
3806         * lib/fsusage.c: Fall back to (struct statfs).f_frsize
3807         which is available since Linux 2.6.
3808         * m4/fsusage.m4 (STAT_STATFS2_FRSIZE): Always define
3809         when the member is available so it can be used as a fallback.
3810         * doc/posix-functions/statvfs.texi: Mention the hang issue
3811         on Linux < 2.6.36.
3812
3813 2012-05-14  Paul Eggert  <eggert@cs.ucla.edu>
3814
3815         bootstrap: suppress stderr chatter
3816         * build-aux/bootstrap (insert_sorted_if_absent, main program):
3817         Omit unnecessary chatter to stderr.  The main program chatter
3818         was there only inadvertantly.
3819
3820         bootstrap: .gitignore files created by autopoint, libtool
3821         I ran into this problem when bootstrapping the latest diffutils.
3822         After './bootstrap', 'git status' reported lots of untracked files
3823         m4/codeset.m4, m4/gettext.m4, etc.  These files were created by
3824         autopoint and do not need to be version-controlled.
3825         * build-aux/bootstrap: Put into .gitignore the files that
3826         autopoint and libtool create, by keeping track of files that exist
3827         after but not before these programs are run.
3828         (version_controlled_file): Move up.  2nd arg is now full file
3829         name, not base name; this is more convenient.  Put CVS at the end,
3830         as it's now somewhat deprecated.
3831
3832 2012-05-14  Jim Meyering  <meyering@redhat.com>
3833
3834         ignore-value.h: remove unused _GL_ATTRIBUTE_DEPRECATED definition
3835         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Remove now-unused
3836         definition.  Reported by Bruno Haible.
3837
3838 2012-05-13  Bruno Haible  <bruno@clisp.org>
3839             Paul Eggert  <eggert@cs.ucla.edu>
3840
3841         binary-io: Define set_binary_mode function.
3842         * lib/binary-io.h (set_binary_mode): New function.
3843         (SET_BINARY): Define in terms of set_binary_mode.
3844         * modules/binary-io (configure.ac): Require AC_C_INLINE.
3845         * tests/test-binary-io.c (main): Accept an argument, and test either
3846         set_binary_mode or SET_BINARY depending on the argument.
3847         * tests/test-binary-io.sh: Invoke test-binary-io twice, with an
3848         argument. Clean up also t-bin-out0.tmp.
3849
3850 2012-05-13  Stefano Lattarini  <stefano.lattarini@gmail.com>
3851
3852         bootstrap: take advantage of POSIX shell features
3853
3854         The 'bootstrap' script offered by Gnulib script already uses POSIX
3855         shell features (like $((...)) arithmetic expansions) that are not
3856         supported by legacy Bourne shells like Solaris 10 /bin/sh.  This
3857         means that bootstrap must already be run using a proper POSIX shell,
3858         which will thus provide more features, like ${var#pattern} parameter
3859         expansion or inversion of a command exit status with '!'.  We can
3860         thus use these features to improve the clarity and the performances
3861         of the bootstrap script.
3862
3863         Suggested by Eric Blake.
3864
3865         * build-aux/bootstrap: Prefer xpg4 parameter expansions over use
3866         of sed/expr plus command substitutions, to save some forks.  While
3867         we are at it, prefer the POSIX $(...) form of command substitution,
3868         rather than the legacy form `...` (since the former is visually
3869         clearer and interacts better with quoting), and prefer the idiom:
3870           "if ! CMD; then ACTION ..."
3871         over the idiom:
3872           "if CMD; then :; else ACTION ..."
3873         which was required by legacy Bourne shells not supporting '!'.
3874
3875 2012-05-12  Bruno Haible  <bruno@clisp.org>
3876
3877         system-quote: Add more comments.
3878         * lib/system-quote.h: Add more comments about wilcards and limitations.
3879         Suggested by Eli Zaretskii <eliz@gnu.org>.
3880
3881         sh-quote, system-quote: Add comments about wildcards.
3882         * lib/sh-quote.h: Clarify what happens with wildcard characters.
3883         * lib/system-quote.h: Likewise.
3884         Reported by Eli Zaretskii <eliz@gnu.org>.
3885
3886 2012-05-11  Paul Eggert  <eggert@cs.ucla.edu>
3887
3888         fsusage: check for GNU/Linux statvfs problem dynamically
3889         * lib/fsusage.c [STAT_STATVFS && __linux__ && (__GLIBC__||__UCLIBC__)]:
3890         Define STAT_STATFS2_BSIZE too, since in this case the code now
3891         checks dynamically whether statvfs is reliable, falling back on
3892         Linux-style statfs otherwise.
3893         (statvfs_works): New function, for dynamically testing statvfs.
3894         (get_fs_usage) [STAT_STATVFS]: Use it.
3895         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Remove static check for
3896         statvfs on GNU/Linux hosts, since it's now done dynamically.
3897
3898 2012-05-10  Bruno Haible  <bruno@clisp.org>
3899
3900         system-quote, execute, spawn-pipe: Escape '?' on Windows.
3901         * lib/system-quote.c (SHELL_SPECIAL_CHARS, CMD_SPECIAL_CHARS): Add the
3902         '?' character.
3903         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Likewise.
3904         * tests/test-system-quote-main.c (check_all): Check also strings like
3905         "??????????".
3906         Reported by Eli Zaretskii <eliz@gnu.org>.
3907
3908 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
3909
3910         _Noreturn: port config.h to gcc -Wundef
3911         * m4/gnulib-common.m4 (gl_COMMON_BODY): Check that __STDC_VERSION__ is
3912         defined before using it, for gcc -Wundef.  Reported by Akim Demaille in
3913         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00147.html>.
3914
3915 2012-05-10  Bruno Haible  <bruno@clisp.org>
3916
3917         system-quote: Refactor.
3918         * lib/system-quote.h (system_quote_copy): Fix comment.
3919         * lib/system-quote.c (windows_createprocess_quote, windows_cmd_quote):
3920         New functions, extracted from system_quote_copy.
3921         (system_quote_length, system_quote_copy): Use these functions.
3922         Reported by Paul Eggert.
3923
3924 2012-05-08  Bruno Haible  <bruno@clisp.org>
3925
3926         execute, spawn-pipe: Escape '*' characters in arguments on Windows.
3927         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Add the '*' character.
3928
3929 2012-05-08  Bruno Haible  <bruno@clisp.org>
3930
3931         Tests for module 'system-quote'.
3932         * modules/system-quote-tests: New file.
3933         * tests/test-system-quote.sh: New file.
3934         * tests/test-system-quote-main.c: New file.
3935         * tests/test-system-quote-child.c: New file.
3936
3937         New module 'system-quote'.
3938         * lib/system-quote.h: New file.
3939         * lib/system-quote.c: New file.
3940         * modules/system-quote: New file.
3941
3942 2012-05-08  Bruno Haible  <bruno@clisp.org>
3943
3944         sh-quote: Make C++ safe and allow multiple inclusion.
3945         * lib/sh-quote.h: Add double-inclusion guard. For C++, wrap function
3946         declarations in extern "C".
3947
3948 2012-05-08  Bruno Haible  <bruno@clisp.org>
3949
3950         sh-quote tests: Make tests stricter.
3951         * tests/test-sh-quote.c (check_one): Check the return value of
3952         shell_quote_copy.
3953         (main): Check a string with a CR character. Check a string that
3954         contains UCHAR_MAX.
3955
3956 2012-05-08  Akim Demaille  <akim@lrde.epita.fr>
3957
3958         warnings.m4: provide a means to specify the program to compile.
3959         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): New, extracted from...
3960         (gl_WARN_ADD): here.
3961         Use gl_AS_VAR_APPEND.
3962         Support an argument to specify the program to compile.
3963         (gl_WARN_ADD): Accept an argument to specify the program to compile.
3964         AC_SUBST the WARN_CFLAGS when they are used.
3965         * modules/warnings (configure.ac): Don't AC_SUBST WARN_CFLAGS,
3966         leave this to gl_WARN_ADD.
3967
3968 2012-05-08  Eric Blake  <eblake@redhat.com>
3969
3970         doc: recommendations on gettext version
3971         * doc/gnulib-tool.texi (gettextize and autopoint): Document the
3972         choice between versions.
3973         * DEPENDENCIES (gettext): Cover both approaches.
3974
3975 2012-05-08  Jim Meyering  <meyering@redhat.com>
3976
3977         init.sh: explain why EXEEXT support uses aliases rather than functions
3978         * tests/init.sh: Add a comment.
3979
3980         init.sh: don't let bash aliases interfere with tests
3981         * tests/init.sh: Undefine any pre-defined aliases if the selected shell
3982         is bash.  This avoids problems for those who alias standard commands to
3983         non-conforming uses, like those reported in http://bugs.gnu.org/11256.
3984         Suggested by Tim Mooney <Tim.Mooney@ndsu.edu>.
3985
3986 2012-05-07  Paul Eggert  <eggert@cs.ucla.edu>
3987
3988         stdint: be more consistent with glibc, SunOS libc
3989         * lib/stdint.in.h (gl_int_fast8_t, gl_uint_fast8_t)
3990         (gl_int_fast16_t, gl_uint_fast16_t)
3991         (gl_int_fast32_t, gl_uint_fast32_t)
3992         (INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX)
3993         (INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX)
3994         (INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
3995         Be consistent with glibc by default, and with SunOS 5.10 and later
3996         if __sun is defined.  This lessens the likelihood of clashes if
3997         code compiled for older hosts is combined with code compiled for
3998         newer ones.  Problem reported by Niels Möller in
3999         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00074.html>.
4000
4001 2012-05-07  Eric Blake  <eblake@redhat.com>
4002
4003         isatty: relax license to LGPLv2+
4004         * modules/isatty (License): Relax license.
4005
4006 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
4007
4008         stat-size: comment fix
4009         * lib/stat-size.h: Remove obsolete comment about indenting.
4010
4011 2012-05-06  Bruno Haible  <bruno@clisp.org>
4012
4013         Tests for module 'sh-quote'.
4014         * modules/sh-quote-tests: New file.
4015         * tests/test-sh-quote.c: New file.
4016
4017 2012-05-06  Bruno Haible  <bruno@clisp.org>
4018
4019         sh-quote: Improve shell_quote_argv's signature.
4020         * lib/sh-quote.h (shell_quote_argv): Make argument array a 'const *'.
4021         * lib/sh-quote.c (shell_quote_argv): Likewise.
4022
4023 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
4024
4025         stdint: document issues with int_fast8_t etc.
4026         * doc/posix-headers/stdint.texi (stdint.h): Say that other
4027         stdint.h substitutes may define these types differently.  See
4028         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00071.html>.
4029
4030 2012-05-05  Bruno Haible  <bruno@clisp.org>
4031
4032         nanosleep: Avoid guessing wrong when cross-compiling to Linux.
4033         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require AC_CANONICAL_HOST. When
4034         cross-compiling, set gl_cv_func_nanosleep to either 'guessing no'
4035         or 'guessing no (mishandles large arguments)'.
4036
4037 2012-05-05  Bruno Haible  <bruno@clisp.org>
4038
4039         link-follow: Avoid guessing wrong when cross-compiling to glibc/Linux.
4040         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Require
4041         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
4042         set gl_cv_func_link_follows_symlink to "guessing no".
4043
4044 2012-05-05  Bruno Haible  <bruno@clisp.org>
4045
4046         tzset: Avoid guessing wrong when cross-compiling to glibc systems.
4047         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require AC_CANONICAL_HOST. When
4048         cross-compiling to a glibc platform, set gl_cv_func_tzset_clobber to
4049         "guessing no".
4050         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Update.
4051
4052 2012-05-05  Bruno Haible  <bruno@clisp.org>
4053
4054         d-ino: Avoid guessing "no" when cross-compiling to glibc/Linux systems.
4055         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Require
4056         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
4057         set gl_cv_struct_dirent_d_ino to "guessing yes".
4058
4059 2012-05-05  Bruno Haible  <bruno@clisp.org>
4060
4061         fseeko-tests, ftello-tests: Avoid "guessing no" when cross-compiling.
4062         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Require AC_CANONICAL_HOST. When
4063         cross-compiling to a glibc platform, set gl_cv_func_ungetc_works to
4064         "guessing yes".
4065
4066 2012-05-05  Bruno Haible  <bruno@clisp.org>
4067
4068         signbit: Avoid "guessing no" when cross-compiling to glibc systems.
4069         * m4/signbit.m4 (gl_SIGNBIT): Require AC_CANONICAL_HOST. When cross-
4070         compiling to a glibc system, set gl_cv_func_signbit and
4071         gl_cv_func_signbit_gcc to "guessing yes".
4072
4073 2012-05-05  Bruno Haible  <bruno@clisp.org>
4074
4075         strerror: Avoid "guessing no" when cross-compiling to glibc systems.
4076         * m4/strerror.m4 (gl_FUNC_STRERROR): Require AC_CANONICAL_HOST. When
4077         cross-compiling to a glibc platform, set gl_cv_func_working_strerror
4078         to "guessing yes".
4079         (gl_FUNC_STRERROR_0): Require AC_CANONICAL_HOST. When cross-compiling
4080         to a glibc platform, set gl_cv_func_strerror_0_works to "guessing yes".
4081
4082 2012-05-05  Bruno Haible  <bruno@clisp.org>
4083
4084         canonicalize[-lgpl]: Avoid "guessing no" when cross-compiling to glibc.
4085         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Require
4086         AC_CANONICAL_HOST. When cross-compiling to a glibc system, set
4087         gl_cv_func_realpath_works to "guessing yes".
4088
4089 2012-05-05  Bruno Haible  <bruno@clisp.org>
4090
4091         gettimeofday: Avoid bad guess when cross-compiling to glibc systems.
4092         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require
4093         AC_CANONICAL_HOST. When cross-compiling, guess no on glibc platforms.
4094
4095 2012-05-04  Bruno Haible  <bruno@clisp.org>
4096
4097         Tweak last commit.
4098         * m4/off_t.m4 (gl_TYPE_OFF_T): Tweak comments.
4099         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
4100
4101 2012-05-04  Paul Eggert  <eggert@cs.ucla.edu>
4102
4103         unistd_h: make it easier to avoid sys_types_h
4104         This is useful for Emacs, which has its own method of porting to
4105         Windows, and which therefore does not need the sys_types_h module.
4106         * m4/off_t.m4: New file, defining gl_TYPE_OFF_T, which contains
4107         code moved here from gl_SYS_TYPES_H.
4108         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Require it instead of
4109         using the code directly.
4110         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_TYPE_OFF_T, not
4111         gl_SYS_TYPES_H.
4112         * modules/sys_types (Files):
4113         * modules/unistd (Files): Add m4/off_t.m4.
4114
4115 2012-05-03  Bruno Haible  <bruno@clisp.org>
4116
4117         lstat: Avoid "guessing no" when cross-compiling to glibc systems.
4118         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): When cross-
4119         compiling, set gl_cv_func_lstat_dereferences_slashed_symlink to
4120         "guessing yes" or "guessing no".
4121         (gl_FUNC_LSTAT): Update.
4122         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Update.
4123         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
4124         * m4/unlinkat.m4 (gl_FUNC_UNLINKAT): Update.
4125
4126 2012-05-03  Bruno Haible  <bruno@clisp.org>
4127
4128         *alloc-gnu, eealloc: Avoid "guessing no" when cross-compiling to glibc.
4129         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Override in autoconf < 2.70.
4130         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Override in autoconf < 2.70.
4131         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Require AC_CANONICAL_HOST. When
4132         cross-compiling, choose the first alternative on glibc systems.
4133         * modules/eealloc (Files): Add m4/malloc.m4, m4/realloc.m4.
4134
4135 2012-05-03  Bruno Haible  <bruno@clisp.org>
4136
4137         getgroups: Avoid "guessing no" when cross-compiling to glibc systems.
4138         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Override in autoconf < 2.70.
4139         (gl_FUNC_GETGROUPS): Adapt to change of ac_cv_func_getgroups_works.
4140
4141 2012-05-03  Bruno Haible  <bruno@clisp.org>
4142
4143         chown: Avoid "guessing no" when cross-compiling to glibc systems.
4144         * m4/chown.m4 (AC_FUNC_CHOWN): Override in autoconf < 2.70.
4145
4146 2012-05-03  Bruno Haible  <bruno@clisp.org>
4147
4148         Avoid "guessing no" guesses when cross-compiling to glibc systems.
4149         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Require AC_CANONICAL_HOST. When cross-
4150         compiling to glibc systems, set gl_cv_func_cbrtl_ieee to "guessing yes".
4151         * m4/ceil.m4 (gl_FUNC_CEIL): Require AC_CANONICAL_HOST. When cross-
4152         compiling to glibc systems, set gl_cv_func_ceil_ieee to "guessing yes".
4153         * m4/ceilf.m4 (gl_FUNC_CEILF): Require AC_CANONICAL_HOST. When cross-
4154         compiling to glibc systems, set gl_cv_func_ceilf_ieee to "guessing yes".
4155         * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST. When cross-
4156         compiling to glibc systems, set gl_cv_func_ceill_ieee to "guessing yes".
4157         * m4/chown.m4 (gl_FUNC_CHOWN): Require AC_CANONICAL_HOST. When cross-
4158         compiling to glibc systems, set gl_cv_func_chown_slash_works,
4159         gl_cv_func_chown_ctime_works to "guessing yes".
4160         * m4/lchown.m4 (gl_FUNC_LCHOWN): Update.
4161         * m4/exp2l.m4 (gl_FUNC_EXP2L): Require AC_CANONICAL_HOST. When cross-
4162         compiling to glibc systems, set gl_cv_func_exp2l_ieee to "guessing yes".
4163         * m4/expm1.m4 (gl_FUNC_EXPM1): Require AC_CANONICAL_HOST. When cross-
4164         compiling to glibc systems, set gl_cv_func_expm1_ieee to "guessing yes".
4165         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require AC_CANONICAL_HOST. When cross-
4166         compiling to glibc systems, set gl_cv_func_open_directory_works to
4167         "guessing yes".
4168         * m4/fstat.m4 (gl_FUNC_FSTAT): Update.
4169         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require AC_CANONICAL_HOST. When
4170         cross-compiling to glibc systems, set gl_cv_func_fdopendir_works to
4171         "guessing yes".
4172         * m4/floor.m4 (gl_FUNC_FLOOR): Require AC_CANONICAL_HOST. When cross-
4173         compiling to glibc systems, set gl_cv_func_floor_ieee to "guessing yes".
4174         * m4/floorf.m4 (gl_FUNC_FLOORF): Require AC_CANONICAL_HOST. When cross-
4175         compiling to glibc systems, set gl_cv_func_floorf_ieee to
4176         "guessing yes".
4177         * m4/fmod.m4 (gl_FUNC_FMOD): Require AC_CANONICAL_HOST. When cross-
4178         compiling to glibc systems, set gl_cv_func_fmod_ieee to "guessing yes".
4179         * m4/fmodf.m4 (gl_FUNC_FMODF): Require AC_CANONICAL_HOST. When cross-
4180         compiling to glibc systems, set gl_cv_func_fmodf_ieee to "guessing yes".
4181         * m4/fmodl.m4 (gl_FUNC_FMODL): Require AC_CANONICAL_HOST. When cross-
4182         compiling to glibc systems, set gl_cv_func_fmodl_ieee to "guessing yes".
4183         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Require AC_CANONICAL_HOST. When
4184         cross-compiling to glibc systems, set gl_cv_func_getgroups_works to
4185         "guessing yes".
4186         * m4/hypot.m4 (gl_FUNC_HYPOT): Require AC_CANONICAL_HOST. When cross-
4187         compiling to glibc systems, set gl_cv_func_hypot_ieee to "guessing yes".
4188         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Require AC_CANONICAL_HOST. When cross-
4189         compiling to glibc systems, set gl_cv_func_hypotf_ieee to
4190         "guessing yes".
4191         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Require AC_CANONICAL_HOST. When cross-
4192         compiling to glibc systems, set gl_cv_func_hypotl_ieee to
4193         "guessing yes".
4194         * m4/link.m4 (gl_FUNC_LINK): Require AC_CANONICAL_HOST. When cross-
4195         compiling to glibc systems, set gl_cv_func_link_works to "guessing yes".
4196         * m4/log.m4 (gl_FUNC_LOG): Require AC_CANONICAL_HOST. When cross-
4197         compiling to glibc systems, set gl_cv_func_log_ieee to "guessing yes".
4198         * m4/logf.m4 (gl_FUNC_LOGF): Require AC_CANONICAL_HOST. When cross-
4199         compiling to glibc systems, set gl_cv_func_logf_ieee to "guessing yes".
4200         * m4/log10.m4 (gl_FUNC_LOG10): Require AC_CANONICAL_HOST. When cross-
4201         compiling to glibc systems, set gl_cv_func_log10_ieee to "guessing yes".
4202         * m4/log10f.m4 (gl_FUNC_LOG10F): Require AC_CANONICAL_HOST. When cross-
4203         compiling to glibc systems, set gl_cv_func_log10f_ieee to
4204         "guessing yes".
4205         * m4/log1p.m4 (gl_FUNC_LOG1P): Require AC_CANONICAL_HOST. When cross-
4206         compiling to glibc systems, set gl_cv_func_log1p_ieee to "guessing yes".
4207         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Require AC_CANONICAL_HOST. When cross-
4208         compiling to glibc systems, set gl_cv_func_log1pf_ieee to
4209         "guessing yes".
4210         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Require AC_CANONICAL_HOST. When cross-
4211         compiling to glibc systems, set gl_cv_func_log1pl_ieee to
4212         "guessing yes".
4213         * m4/log2.m4 (gl_FUNC_LOG2): Require AC_CANONICAL_HOST. When cross-
4214         compiling to glibc systems, set gl_cv_func_log2_ieee to "guessing yes".
4215         * m4/log2f.m4 (gl_FUNC_LOG2F): Require AC_CANONICAL_HOST. When cross-
4216         compiling to glibc systems, set gl_cv_func_log2f_ieee to "guessing yes".
4217         * m4/mkdir.m4 (gl_FUNC_MKDIR): Require AC_CANONICAL_HOST. When cross-
4218         compiling to glibc systems, set gl_cv_func_mkdir_trailing_slash_works,
4219         gl_cv_func_mkdir_trailing_dot_works to "guessing yes".
4220         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Require AC_CANONICAL_HOST. When cross-
4221         compiling to glibc systems, set gl_cv_func_mkfifo_works to
4222         "guessing yes".
4223         * m4/mknod.m4 (gl_FUNC_MKNOD): Require AC_CANONICAL_HOST. When cross-
4224         compiling to glibc systems, set gl_cv_func_mknod_works to
4225         "guessing yes".
4226         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_CANONICAL_HOST. When
4227         cross-compiling to glibc systems, set gl_cv_func_working_mkstemp to
4228         "guessing yes".
4229         * m4/modf.m4 (gl_FUNC_MODF): Require AC_CANONICAL_HOST. When cross-
4230         compiling to glibc systems, set gl_cv_func_modf_ieee to "guessing yes".
4231         * m4/modff.m4 (gl_FUNC_MODFF): Require AC_CANONICAL_HOST. When cross-
4232         compiling to glibc systems, set gl_cv_func_modff_ieee to "guessing yes".
4233         * m4/modfl.m4 (gl_FUNC_MODFL): Require AC_CANONICAL_HOST. When cross-
4234         compiling to glibc systems, set gl_cv_func_modfl_ieee to "guessing yes".
4235         * m4/putenv.m4 (gl_FUNC_PUTENV): Require AC_CANONICAL_HOST. When cross-
4236         compiling to glibc systems, set gl_cv_func_svid_putenv to
4237         "guessing yes".
4238         * m4/readlink.m4 (gl_FUNC_READLINK): Require AC_CANONICAL_HOST. When
4239         cross-compiling to glibc systems, set gl_cv_func_readlink_works to
4240         "guessing yes".
4241         * m4/remainder.m4 (gl_FUNC_REMAINDER): Require AC_CANONICAL_HOST. When
4242         cross-compiling to glibc systems, set gl_cv_func_remainder_ieee to
4243         "guessing yes".
4244         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Require AC_CANONICAL_HOST.
4245         When cross-compiling to glibc systems, set gl_cv_func_remainderf_ieee
4246         to "guessing yes".
4247         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Require AC_CANONICAL_HOST.
4248         When cross-compiling to glibc systems, set gl_cv_func_remainderl_ieee
4249         to "guessing yes".
4250         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require AC_CANONICAL_HOST. When cross-
4251         compiling to glibc systems, set gl_cv_func_rmdir_works to
4252         "guessing yes".
4253         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. When cross-
4254         compiling to glibc systems, set gl_cv_func_unlink_honors_slashes,
4255         gl_cv_func_unlink_parent_fails to "guessing yes".
4256         * m4/remove.m4 (gl_FUNC_REMOVE): Update.
4257         * m4/rename.m4 (gl_FUNC_RENAME): Require AC_CANONICAL_HOST. When cross-
4258         compiling to glibc systems, set gl_cv_func_rename_slash_dst_works,
4259         gl_cv_func_rename_slash_src_works, gl_cv_func_rename_link_works,
4260         gl_cv_func_rename_dest_works to "guessing yes".
4261         * m4/round.m4 (gl_FUNC_ROUND): Require AC_CANONICAL_HOST. When cross-
4262         compiling to glibc systems, set gl_cv_func_round_ieee to "guessing yes".
4263         * m4/roundf.m4 (gl_FUNC_ROUNDF): Require AC_CANONICAL_HOST. When cross-
4264         compiling to glibc systems, set gl_cv_func_roundf_ieee to
4265         "guessing yes".
4266         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require AC_CANONICAL_HOST. When cross-
4267         compiling to glibc systems, set gl_cv_func_roundl_ieee to
4268         "guessing yes".
4269         * m4/setenv.m4 (gl_FUNC_SETENV): Require AC_CANONICAL_HOST. When cross-
4270         compiling to glibc systems, set gl_cv_func_setenv_works to
4271         "guessing yes".
4272         (gl_FUNC_UNSETENV): Require AC_CANONICAL_HOST. When cross-
4273         compiling to glibc systems, set gl_cv_func_unsetenv_works to
4274         "guessing yes".
4275         * m4/sleep.m4 (gl_FUNC_SLEEP): Require AC_CANONICAL_HOST. When cross-
4276         compiling to glibc systems, set gl_cv_func_sleep_works to
4277         "guessing yes".
4278         * m4/stat.m4 (gl_FUNC_STAT): Require AC_CANONICAL_HOST. When cross-
4279         compiling to glibc systems, set gl_cv_func_stat_file_slash to
4280         "guessing yes".
4281         * m4/symlink.m4 (gl_FUNC_SYMLINK): Require AC_CANONICAL_HOST. When
4282         cross-compiling to glibc systems, set gl_cv_func_symlink_works to
4283         "guessing yes".
4284         * m4/trunc.m4 (gl_FUNC_TRUNC): Require AC_CANONICAL_HOST. When cross-
4285         compiling to glibc systems, set gl_cv_func_trunc_ieee to "guessing yes".
4286         * m4/truncf.m4 (gl_FUNC_TRUNCF): Require AC_CANONICAL_HOST. When cross-
4287         compiling to glibc systems, set gl_cv_func_truncf_ieee to
4288         "guessing yes".
4289         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require AC_CANONICAL_HOST. When cross-
4290         compiling to glibc systems, set gl_cv_func_truncl_ieee to
4291         "guessing yes".
4292         * m4/usleep.m4 (gl_FUNC_USLEEP): Require AC_CANONICAL_HOST. When cross-
4293         compiling to glibc systems, set gl_cv_func_usleep_works to
4294         "guessing yes".
4295         * m4/utimens.m4 (gl_UTIMENS): Require AC_CANONICAL_HOST. When cross-
4296         compiling to glibc systems, set gl_cv_func_futimesat_works to
4297         "guessing yes".
4298
4299 2012-05-03  Bruno Haible  <bruno@clisp.org>
4300
4301         Say "guessing yes" or "guessing no" when cross-compiling.
4302         * m4/dup2.m4 (gl_FUNC_DUP2): When cross-compiling, set
4303         gl_cv_func_dup2_works to "guessing yes" or "guessing no".
4304         * m4/getdelim.m4 (gl_FUNC_GETDELIM): When cross-compiling, set
4305         gl_cv_func_working_getdelim to "guessing yes" or "guessing no".
4306         * m4/getline.m4 (gl_FUNC_GETLINE): When cross-compiling, set
4307         am_cv_func_working_getline to "guessing yes" or "guessing no".
4308         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, set
4309         gl_cv_func_memmem_works_always to "guessing yes" or "guessing no".
4310         (gl_FUNC_MEMMEM): When cross-compiling, set
4311         gl_cv_func_memmem_works_fast to "guessing yes" or "guessing no".
4312         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): When cross-compiling, set
4313         gl_cv_func_stpncpy to "guessing yes" or "guessing no".
4314         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): When cross-compiling,
4315         set gl_cv_func_strcasestr_works_always to "guessing yes" or
4316         "guessing no".
4317         (gl_FUNC_STRCASESTR): When cross-compiling, set
4318         gl_cv_func_strcasestr_linear to "guessing yes" or "guessing no".
4319         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): When cross-compiling, set
4320         gl_cv_func_strstr_works_always to "guessing yes" or "guessing no".
4321         (gl_FUNC_STRSTR): When cross-compiling, set
4322         gl_cv_func_strstr_linear to "guessing yes" or "guessing no".
4323         * m4/strtod.m4 (gl_FUNC_STRTOD): When cross-compiling, set
4324         gl_cv_func_strtod_works to "guessing yes" or "guessing no".
4325         * m4/wctype_h.m4 (gl_WCTYPE_H): When cross-compiling, set
4326         gl_cv_func_iswcntrl_works to "guessing yes" or "guessing no".
4327
4328 2012-05-01  Bruno Haible  <bruno@clisp.org>
4329
4330         relocatable-prog: Enable ELF ORIGIN trick also on GNU/kFreeBSD.
4331         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Treat kFreeBSD like Linux.
4332         * build-aux/reloc-ldflags: Likewise.
4333         Suggested by Steven Chamberlain <steven@pyro.eu.org>.
4334
4335 2012-05-01  Bruno Haible  <bruno@clisp.org>
4336
4337         gnulib-tool: Remove transitional code.
4338         * gnulib-tool: Don't warn about --import with 0 arguments any more.
4339         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
4340
4341 2012-05-01  Bruno Haible  <bruno@clisp.org>
4342
4343         getcwd: Fix misindentation.
4344         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Fix indentation.
4345
4346 2012-04-29  Paul Eggert  <eggert@cs.ucla.edu>
4347
4348         exclude: process exclude and include directives in order
4349         This restores the pre-2009 behavior, and is part of a fix of a
4350         grep bug reported by Quentin Arce in
4351         <http://lists.gnu.org/archive/html/bug-grep/2012-04/msg00056.html>.
4352         * lib/exclude.c (struct exclude): Remove 'tail' member.
4353         (new_exclude_segment): Prepend the new segment instead of appending.
4354         Return void, since that's now more convenient.
4355         (file_pattern_matches): Renamed from excluded_file_pattern_p.
4356         (file_name_matches): Renamed from excluded_file_name_p.
4357         (file_pattern_matches, file_name_matches):
4358         Return true if the pattern matches, not if it excludes.
4359         All callers changed.
4360         (excluded_file_name): Process the list in reverse order;
4361         since the list is now reversed this restores the pre-2009 behavior.
4362         (add_exclude): Adjust to new reversed-order list.  Use local var
4363         rather than macro, for clarity.
4364         * tests/test-exclude7.sh: Adjust to corrected behavior.
4365
4366         exclude: handle wildcards with FNM_NOESCAPE and with trailing \
4367         * lib/exclude.c (unescape_pattern): Don't worry about unescaped [;
4368         it's not possible here.  Handle the case of \ at end of pattern
4369         without dumping core.
4370         (add_exclude): Do not unescape the pattern if FNM_NOESCAPE is used.
4371
4372         _Noreturn: future-proof non-GNU and non-MSVC compilers
4373         * build-aux/snippet/_Noreturn.h (_Noreturn):
4374         * m4/gnulib-common.m4 (gl_COMMON_BODY):
4375         Do not define _Noreturn if __STDC_VERSION__ indicates this is
4376         C11 or later.  This is more likely to work with random future C
4377         compilers that are neither GNUish nor MSVCish.  See Vincent Lefevre in
4378         <http://lists.gnu.org/archive/html/bug-gnulib/2012-04/msg00195.html>.
4379
4380         exclude: handle wildcards with FNM_EXTMATCH
4381         * lib/exclude.c (fnmatch_pattern_has_wildcards): Also treat '+(',
4382         '+@', '!(' as wildcards, if FNM_EXTMATCH.  Make it clear in a
4383         comment that "has wildcards" really means "has or may have
4384         wildcards".  Simplify by avoiding the need to call strcspn.
4385
4386 2012-04-29  Bruno Haible  <bruno@clisp.org>
4387
4388         gnulib-tool: Fix list of authors.
4389         * gnulib-tool (func_version): Add Paul Eggert to list of authors.
4390
4391 2012-04-26  Stefano Lattarini  <stefano.lattarini@gmail.com>
4392
4393         bootstrap: support Automake-NG in $buildreq
4394         * bootstrap (check_versions): Handle automake and aclocal from
4395         Automake-NG specially.  They can be specified as respectively
4396         the "automake-ng" and "aclocal-ng" requirements.
4397
4398 2012-04-25  Eric Blake  <eblake@redhat.com>
4399
4400         bootstrap: only force latest Makefile.in.in for gettext module
4401         * build-aux/bootstrap (with_gettext): Only install latest
4402         Makefile.in.in for projects requesting bleeding edge gettext.
4403
4404 2012-04-22  Bruno Haible  <bruno@clisp.org>
4405
4406         doc: Mention reason for replacement on glibc/Linux systems.
4407         * doc/posix-functions/dprintf.texi: Mention the problem with special
4408         'long double' values.
4409         * doc/posix-functions/fprintf.texi: Likewise.
4410         * doc/posix-functions/printf.texi: Likewise.
4411         * doc/posix-functions/snprintf.texi: Likewise.
4412         * doc/posix-functions/sprintf.texi: Likewise.
4413         * doc/posix-functions/vdprintf.texi: Likewise.
4414         * doc/posix-functions/vfprintf.texi: Likewise.
4415         * doc/posix-functions/vprintf.texi: Likewise.
4416         * doc/posix-functions/vsnprintf.texi: Likewise.
4417         * doc/posix-functions/vsprintf.texi: Likewise.
4418         * doc/posix-functions/fcntl.texi: Add glibc/Linux to the list of
4419         platforms with F_DUPFD_CLOEXEC problems.
4420         * doc/posix-functions/glob.texi: Mention which platforms are affected
4421         by the problem with symbolic links.
4422         * doc/posix-functions/linkat.texi: Mention the problem with
4423         AT_SYMLINK_FOLLOW on Linux.
4424
4425 2012-04-22  Bruno Haible  <bruno@clisp.org>
4426
4427         pwrite: Don't replace on all platforms.
4428         * m4/pwrite.m4 (gl_FUNC_PWRITE): Fix syntax error in test program.
4429
4430 2012-04-22  Bruno Haible  <bruno@clisp.org>
4431
4432         rint* tests: Avoid gcc warnings.
4433         * tests/test-rint.c (INFINITY, NAN): Undefine before redefining.
4434         * tests/test-rintf.c (INFINITY, NAN): Likewise.
4435         * tests/test-rintl.c (INFINITY, NAN): Likewise.
4436
4437 2012-04-21  Bruno Haible  <bruno@clisp.org>
4438
4439         users.txt: Update.
4440         * users.txt: Add freedink, wdiff. Update URLs for projects that have
4441         switched from CVS to git, bzr, or svn.
4442
4443 2012-04-21  Bruno Haible  <bruno@clisp.org>
4444
4445         Large File Support for native Windows platforms.
4446
4447         * m4/largefile.m4 (gl_LARGEFILE): New macro.
4448         * modules/largefile (configure.ac): Require gl_LARGEFILE.
4449
4450         * lib/sys_types.in.h (off_t) [WINDOWS_64_BIT_OFF_T]: Define to a 64-bit
4451         type.
4452         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_64_BIT_OFF_T.
4453         * modules/sys_types (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T.
4454         * doc/posix-headers/sys_types.texi: Mention the effect of the
4455         'largefile' module.
4456
4457         * lib/fcntl.in.h: Add comments about off_t.
4458         * modules/fcntl-h (Depends-on): Add sys_types.
4459
4460         * lib/unistd.in.h [WINDOWS_64_BIT_OFF_T]: Include <sys/types.h>.
4461         (ftruncate): Replace it if REPLACE_FTRUNCATE is 1.
4462         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_SYS_TYPES_H.
4463         (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_FTRUNCATE.
4464         * modules/unistd (Depends-on): Add sys_types.
4465         (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T, REPLACE_FTRUNCATE.
4466
4467         * lib/lseek.c (rpl_lseek) [_GL_WINDOWS_64_BIT_OFF_T]: Use _lseeki64
4468         instead of lseek.
4469         * m4/lseek.m4 (gl_FUNC_LSEEK): Require gl_SYS_TYPES_H. Set
4470         REPLACE_LSEEK if WINDOWS_64_BIT_OFF_T is 1.
4471         * modules/lseek (Depends-on): Add sys_types.
4472
4473         * lib/ftruncate.c: Put under GPLv3+. Include <windows.h>,
4474         msvc-nothrow.h.
4475         (SetFileSize): New function.
4476         (ftruncate) [_GL_WINDOWS_64_BIT_OFF_T]: New implementation.
4477         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Set REPLACE_FTRUNCATE on Windows
4478         if Large File Support is requested.
4479         * modules/ftruncate (configure.ac): Consider REPLACE_FTRUNCATE.
4480         (Depends-on): Add sys_types, msvc-nothrow. Update conditions.
4481
4482         * lib/stdio.in.h: Add comments about off_t.
4483         * modules/stdio (Depends-on): Add sys_types.
4484
4485         * lib/ftello.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _ftelli64 or ftello64
4486         instead of ftello.
4487         * m4/ftello.m4 (gl_FUNC_FTELLO): Require gl_SYS_TYPES_H. Set
4488         REPLACE_FTELLO if WINDOWS_64_BIT_OFF_T is 1.
4489         (gl_PREREQ_FTELLO): New macro.
4490         * modules/ftello (Depends-on): Add sys_types.
4491         (configure.ac): Incoke gl_PREREQ_FTELLO.
4492
4493         * lib/fseeko.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _fseeki64 or fseeko64
4494         instead of fseeko.
4495         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require gl_SYS_TYPES_H. Set
4496         REPLACE_FSEEKO if WINDOWS_64_BIT_OFF_T is 1.
4497         (gl_PREREQ_FSEEKO): New macro.
4498         * modules/fseeko (Depends-on): Add sys_types.
4499         (configure.ac): Invoke gl_PREREQ_FSEEKO.
4500
4501         * lib/sys_stat.in.h: Add comments about off_t.
4502         (stat, fstat) [WINDOWS_64_BIT_ST_SIZE]: Define to variants that use a
4503         64-bit integer for st_size in 'struct stat'.
4504         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_64_BIT_ST_SIZE.
4505         Define _GL_WINDOWS_64_BIT_ST_SIZE.
4506         * modules/sys_stat (Depends-on): Add sys_types.
4507         (Makefile.am): Substitute WINDOWS_64_BIT_ST_SIZE.
4508
4509         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Define to _stati64
4510         instead of stat or _stat.
4511
4512         * lib/fstat.c [_GL_WINDOWS_64_BIT_ST_SIZE]: Use _fstati64 and
4513         'struct _stati64' instead of fstat and 'struct stat'.
4514         * m4/fstat.m4 (gl_FUNC_FSTAT): Require gl_HEADER_SYS_STAT_H. Set
4515         REPLACE_FSTAT if WINDOWS_64_BIT_ST_SIZE is 1.
4516
4517         Reported by Ray Satiro <raysatiro@yahoo.com>.
4518
4519 2012-04-19  Eric Blake  <eblake@redhat.com>
4520
4521         bootstrap: accommodate older libtool
4522         * build-aux/bootstrap (use_libtool): Cater to libtool 1.5.22.
4523         Reported by Daniel P. Berrange.
4524
4525 2012-04-19  Jim Meyering  <meyering@redhat.com>
4526
4527         announce-gen: avoid failure due to lack of Digest::SHA1
4528         Even with the preferred Digest::SHA available, this script
4529         would fail when the backup module, Digest::SHA1, was not installed.
4530         * build-aux/announce-gen: Quote the conditional use of "use".
4531         Reported by Reuben Thomas in:
4532         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30444
4533
4534         bootstrap: don't let a user's CDPATH setting affect this script
4535         When CDPATH is set, cd will sometimes generate output.
4536         When "cd" is run in a subshell whose output matters, that
4537         surprising-to-some output can cause malfunction.
4538         Unsetting CDPATH turns off this shell "feature."
4539         * build-aux/bootstrap (CDPATH): Unset.
4540         Reported by Reuben Thomas in:
4541         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30435
4542         and inspired by his patch here:
4543         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30440
4544
4545 2012-04-16  Akim Demaille  <akim@lrde.epita.fr>
4546         and Jim Meyering  <meyering@redhat.com>
4547
4548         maint.mk: catch "see @xref{}" and similar
4549         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
4550         prohibit "See also @xref{", "Also see @pxref{", and similar.
4551
4552 2012-04-16  Jim Meyering  <meyering@redhat.com>
4553
4554         bootstrap: really use gnulib's po/Makefile.in.in
4555         * build-aux/bootstrap: Correct the source file name in previous change.
4556         Reported by Akim Demaille.
4557
4558         configmake: correct minor inconsistency in Makefile rule
4559         * modules/configmake (Makefile.am): All other rules like this one
4560         run the final "mv -f ..." in the same backslash-continued command
4561         as the one that does everything else.  This one put the mv -f ...
4562         command on a separate, non-backslash-continued line.
4563         Make it like the others.
4564
4565         bootstrap: use gnulib's po/Makefile.in.in, not the one from gettext
4566         * build-aux/bootstrap: Use gnulib's po/Makefile.in.in, not
4567         the one from gettext.  Reported by Akim Demaille.
4568
4569 2012-04-16  Joel E. Denny  <joeldenny@joeldenny.org>
4570
4571         Fix recursion of install-* into po directories.
4572         Bison's install-pdf bug reported by Hans Aberg at
4573         <http://lists.gnu.org/archive/html/bug-bison/2011-05/msg00008.html>.
4574         * build-aux/po/Makefile.in.in (install-dvi, install-html)
4575         (install-info, install-pdf, install-ps): New targets.
4576
4577 2012-04-16  Jim Meyering  <meyering@redhat.com>
4578
4579         maint: avoid spurious "make sc_maint" failure
4580         * cfg.mk (exclude_file_name_regexp--sc_trailing_blank): Also
4581         exempt all *.class file names, for lib/javaversion.class.
4582
4583 2012-04-15  Bruno Haible  <bruno@clisp.org>
4584
4585         lseek: Make configure test independent of environment.
4586         * m4/lseek.m4 (gl_FUNC_LSEEK): Require AC_CANONICAL_HOST. On native
4587         Windows, we know that lseek() on pipes is broken; skip the runtime
4588         test.
4589
4590 2012-04-14  Bruno Haible  <bruno@clisp.org>
4591
4592         stat: Bypass buggy override in mingw64.
4593         * m4/stat.m4 (gl_FUNC_STAT): Update comments.
4594         * lib/stat.c (stat) [mingw64]: Define to _stat.
4595         * doc/posix-functions/stat.texi: Mention mingw64 bug.
4596
4597 2012-04-14  Bruno Haible  <bruno@clisp.org>
4598
4599         pathmax: Fix compilation error on MSVC 9.
4600         * modules/pathmax (Depends-on): Add unistd.
4601
4602 2012-04-12  Paul Eggert  <eggert@cs.ucla.edu>
4603
4604         README: document pointer comparison assumption
4605         * README (Portability guidelines): Document assumption about
4606         pointer comparisons, in response to a recent bug-gnulib comment by
4607         Jeffrey Kegler.
4608
4609 2012-04-12  Bruno Haible  <bruno@clisp.org>
4610
4611         Tests for module 'getrusage'.
4612         * modules/getrusage-tests: New file.
4613         * tests/test-getrusage.c: New file.
4614
4615         New module 'getrusage'.
4616         * lib/sys_resource.in.h: Include arg-nonnull.h, c++defs.h,
4617         warn-on-use.h.
4618         (getrusage): New declaration.
4619         * lib/getrusage.c: New file.
4620         * m4/getrusage.m4: New file.
4621         * m4/sys_resource_h.m4 (gl_HEADER_SYS_RESOURCE): Test whether getrusage
4622         is declared.
4623         (gl_SYS_RESOURCE_H_DEFAULTS): Initialize GNULIB_GETRUSAGE,
4624         HAVE_GETRUSAGE.
4625         * modules/sys_resource (Depends-on): Add snippet/arg-nonnull,
4626         snippet/c++defs, snippet/warn-on-use.
4627         (Makefile.am): Update generation of sys/resource.h. Substitute
4628         GNULIB_GETRUSAGE, HAVE_GETRUSAGE.
4629         * modules/getrusage: New file.
4630         * doc/posix-functions/getrusage.texi: Mention the new module.
4631
4632 2012-04-12  Bruno Haible  <bruno@clisp.org>
4633
4634         Tests for module 'sys_resource'.
4635         * modules/sys_resource-tests: New file.
4636         * tests/test-sys_resource.c: New file.
4637
4638         New module 'sys_resource'.
4639         * lib/sys_resource.in.h: New file.
4640         * m4/sys_resource_h.m4: New file.
4641         * modules/sys_resource: New file.
4642         * doc/posix-headers/sys_resource.texi: Mention the new module.
4643
4644 2012-04-12  LRN  <lrn1986@gmail.com>  (tiny change)
4645
4646         ioctl: Fix compilation error on mingw.
4647         * lib/ioctl.c: Include <windows.h>.
4648         Also reported by Ray Satiro <raysatiro@yahoo.com>.
4649
4650 2012-04-04  Jim Meyering  <meyering@redhat.com>
4651
4652         regex: correct #pragma guard expression
4653         * lib/regex.c: -Wsuggest-attribute=pure was introduced in gcc-4.6,
4654         not 4.3.  Correct its cpp guard expression.
4655
4656 2012-04-04  Paul Eggert  <eggert@cs.ucla.edu>
4657
4658         regex: remove unnecessary type punning
4659         Problem reported by Vladimir Serbinenko in
4660         <http://lists.gnu.org/archive/html/bug-gnulib/2012-04/msg00006.html>.
4661         * lib/regex.h (struct re_pattern_buffer): Change the type of
4662         __REPB_PREFIX(buffer) from unsigned char * to struct re_dfa_t *.
4663         Fix comment to match code.
4664         * lib/regcomp.c (re_compile_fastmap, re_compile_fastmap_iter, regfree)
4665         (re_compile_internal, free_workarea_compile, analyze, lower_subexp)
4666         (parse, parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
4667         * lib/regexec.c (regexec, re_search_stub, re_search_internal)
4668         (set_regs):
4669         Omit no-longer-necessary casts.
4670
4671 2012-04-03  Bruno Haible  <bruno@clisp.org>
4672
4673         Tests for module 'ilogbl'.
4674         * modules/ilogbl-tests: New file.
4675         * tests/test-ilogbl.c: New file.
4676
4677         New module 'ilogbl'.
4678         * lib/math.in.h (ilogbl): New declaration.
4679         * lib/ilogbl.c: New file.
4680         * m4/ilogbl.m4: New file.
4681         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbl is declared.
4682         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBL, HAVE_ILOGBL.
4683         * modules/math (Makefile.am): Substitute GNULIB_ILOGBL, HAVE_ILOGBL.
4684         Split sed invocation, to avoid the limit of 100 substitutions of
4685         HP-UX 'sed'.
4686         * modules/ilogbl: New file.
4687         * tests/test-math-c++.cc: Check the declaration of ilogbl.
4688         * doc/posix-functions/ilogbl.texi: Mention the new module.
4689
4690 2012-04-03  Bruno Haible  <bruno@clisp.org>
4691
4692         Tests for module 'ilogbf'.
4693         * modules/ilogbf-tests: New file.
4694         * tests/test-ilogbf.c: New file.
4695
4696         New module 'ilogbf'.
4697         * lib/math.in.h (ilogbf): New declaration.
4698         * lib/ilogbf.c: New file.
4699         * m4/ilogbf.m4: New file.
4700         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbf is declared.
4701         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBF, HAVE_ILOGBF,
4702         REPLACE_ILOGBF.
4703         * modules/math (Makefile.am): Substitute GNULIB_ILOGBF, HAVE_ILOGBF,
4704         REPLACE_ILOGBF.
4705         * modules/ilogbf: New file.
4706         * tests/test-math-c++.cc: Check the declaration of ilogbf.
4707         * doc/posix-functions/ilogbf.texi: Mention the new module.
4708
4709 2012-04-03  Bruno Haible  <bruno@clisp.org>
4710
4711         Tests for module 'ilogb'.
4712         * modules/ilogb-tests: New file.
4713         * tests/test-ilogb.c: New file.
4714         * tests/test-ilogb.h: New file, based on tests/test-logb.h and
4715         tests/test-logb-ieee.h.
4716
4717         New module 'ilogb'.
4718         * lib/math.in.h (ilogb): New declaration.
4719         * lib/ilogb.c: New file.
4720         * m4/ilogb.m4: New file.
4721         * m4/math_h.m4 (gl_MATH_H): Test whether ilogb is declared.
4722         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGB, HAVE_ILOGB,
4723         REPLACE_ILOGB.
4724         * modules/math (Makefile.am): Substitute GNULIB_ILOGB, HAVE_ILOGB,
4725         REPLACE_ILOGB.
4726         * modules/ilogb: New file.
4727         * tests/test-math-c++.cc: Check the declaration of ilogb.
4728         * doc/posix-functions/ilogb.texi: Mention the new module.
4729
4730 2012-04-03  Bruno Haible  <bruno@clisp.org>
4731
4732         math: Provide FP_ILOGB0 and FP_ILOGBNAN.
4733         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Define fallback.
4734         * tests/test-math.c: Check that FP_ILOGB0, FP_ILOGBNAN are defined.
4735         (main): Check their values.
4736         * doc/posix-headers/math.texi: Mention the FP_ILOGB0, FP_ILOGBNAN
4737         problem.
4738
4739 2012-04-03  Bruno Haible  <bruno@clisp.org>
4740
4741         Tests for module 'logbl-ieee'.
4742         * modules/logbl-ieee-tests: New file.
4743         * tests/test-logbl-ieee.c: New file.
4744
4745         New module 'logbl-ieee'.
4746         * modules/logbl-ieee: New file.
4747
4748         Tests for module 'logb-ieee'.
4749         * modules/logb-ieee-tests: New file.
4750         * tests/test-logb-ieee.c: New file.
4751
4752         New module 'logb-ieee'.
4753         * modules/logb-ieee: New file.
4754
4755         Tests for module 'logbf-ieee'.
4756         * modules/logbf-ieee-tests: New file.
4757         * tests/test-logbf-ieee.c: New file.
4758         * tests/test-logb-ieee.h: New file.
4759
4760         New module 'logbf-ieee'.
4761         * modules/logbf-ieee: New file.
4762
4763 2012-04-03  Bruno Haible  <bruno@clisp.org>
4764
4765         Tests for module 'logbl'.
4766         * modules/logbl-tests: New file.
4767         * tests/test-logbl.c: New file.
4768
4769         New module 'logbl'.
4770         * lib/math.in.h (logbl): New declaration.
4771         * lib/logbl.c: New file.
4772         * m4/logbl.m4: New file.
4773         * m4/math_h.m4 (gl_MATH_H): Test whether logbl is declared.
4774         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBL, HAVE_LOGBL,
4775         REPLACE_LOGBL.
4776         * modules/math (Makefile.am): Substitute GNULIB_LOGBL, HAVE_LOGBL,
4777         REPLACE_LOGBL.
4778         * modules/logbl: New file.
4779         * tests/test-math-c++.cc: Check the declaration of logbl.
4780         * doc/posix-functions/logbl.texi: Mention the new module.
4781
4782 2012-04-02  Bruno Haible  <bruno@clisp.org>
4783
4784         Tests for module 'logbf'.
4785         * modules/logbf-tests: New file.
4786         * tests/test-logbf.c: New file.
4787
4788         New module 'logbf'.
4789         * lib/math.in.h (logbf): New declaration.
4790         * lib/logbf.c: New file.
4791         * m4/logbf.m4: New file.
4792         * m4/math_h.m4 (gl_MATH_H): Test whether logbf is declared.
4793         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBF, HAVE_LOGBF,
4794         REPLACE_LOGBF.
4795         * modules/math (Makefile.am): Substitute GNULIB_LOGBF, HAVE_LOGBF,
4796         REPLACE_LOGBF.
4797         * modules/logbf: New file.
4798         * tests/test-math-c++.cc: Check the declaration of logbf.
4799         * doc/posix-functions/logbf.texi: Mention the new module.
4800
4801 2012-04-02  Bruno Haible  <bruno@clisp.org>
4802
4803         logb tests: More tests.
4804         * tests/test-logb.h: New file, based on tests/test-logb.c and
4805         tests/test-frexp.h.
4806         * tests/test-logb.c: Include minus-zero.h, test-logb.h.
4807         (main): Just invoke test_function.
4808         * modules/logb-tests (Files): Add tests/test-logb.h,
4809         tests/minus-zero.h, tests/randomd.c.
4810         (Makefile.am): Add randomd.c to test_logb_SOURCES.
4811
4812         logb: Provide replacement and workarounds.
4813         * lib/math.in.h (logb): Ensure declaration. Replace if REPLACE_LOGB
4814         is 1.
4815         * lib/logb.c: New file.
4816         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): New macro.
4817         (gl_FUNC_LOGB): Invoke it. Set HAVE_LOGB, REPLACE_LOGB.
4818         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGB.
4819         * modules/math (Makefile.am): Substitute REPLACE_LOGB.
4820         * modules/logb (Files): Add lib/logb.c.
4821         (Depends-on): Add isfinite, frexp, isnand.
4822         (configure.ac): Compile the replacement code logb.c if needed.
4823         * tests/test-math-c++.cc: Check the declaration of logb.
4824         * doc/posix-functions/logb.texi: Mention the replacement and the bug
4825         with subnormal numbers.
4826
4827 2012-04-02  Bruno Haible  <bruno@clisp.org>
4828
4829         log10* tests: Speed up.
4830         * tests/test-log10.h (test_function): Reduce amount of random numbers
4831         to test.
4832
4833 2012-04-01  Bruno Haible  <bruno@clisp.org>
4834
4835         logf-ieee: Fix test whether logf works.
4836         * m4/logf.m4 (gl_FUNC_LOGF): Fix typo in test program.
4837
4838 2012-04-01  Bruno Haible  <bruno@clisp.org>
4839
4840         log10l: Work around log10l-ieee test failure on IRIX 6.5.
4841         * lib/log10l.c: Include <float.h>
4842         (log10l): On IRIX, normalize the +Infinity value.
4843         * modules/log10l (Depends-on): Add 'float'.
4844         * doc/posix-functions/log10l.texi: Mention the IRIX problem with
4845         +Infinity.
4846
4847         log10f-ieee: Work around test failure on NetBSD 5.1.
4848         * m4/log10f-ieee.m4: New file.
4849         * m4/log10f.m4 (gl_FUNC_LOG10F): If gl_FUNC_LOG10F_IEEE is present,
4850         test whether log10f works with a negative argument. Replace it if not.
4851         * lib/log10f.c (log10f): For negative arguments, return NaN.
4852         * modules/log10f-ieee (Files): Add m4/log10f-ieee.m4.
4853         (configure.ac): Invoke gl_FUNC_LOG10F_IEEE.
4854         * doc/posix-functions/log10f.texi: Mention the log10f-ieee module.
4855
4856         log10f-ieee: Work around test failure on Solaris 9.
4857         * modules/log10f-ieee (Depends-on): Add log10-ieee.
4858         (configure.ac): Require gl_FUNC_LOG10F.
4859
4860         log10-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
4861         * m4/log10-ieee.m4: New file.
4862         * m4/log10.m4 (gl_FUNC_LOG10): If gl_FUNC_LOG10_IEEE is present, test
4863         whether log10 works with a negative argument. Replace it if not.
4864         * lib/log10.c (log10): For negative arguments, return NaN.
4865         * modules/log10-ieee (Files): Add m4/log10-ieee.m4.
4866         (configure.ac): Invoke gl_FUNC_LOG10_IEEE.
4867         * doc/posix-functions/log10.texi: Mention the log10-ieee module.
4868
4869         Tests for module 'log10l-ieee'.
4870         * modules/log10l-ieee-tests: New file.
4871         * tests/test-log10l-ieee.c: New file.
4872
4873         New module 'log10l-ieee'.
4874         * modules/log10l-ieee: New file.
4875
4876         Tests for module 'log10-ieee'.
4877         * modules/log10-ieee-tests: New file.
4878         * tests/test-log10-ieee.c: New file.
4879
4880         New module 'log10-ieee'.
4881         * modules/log10-ieee: New file.
4882
4883         Tests for module 'log10f-ieee'.
4884         * modules/log10f-ieee-tests: New file.
4885         * tests/test-log10f-ieee.c: New file.
4886         * tests/test-log10-ieee.h: New file.
4887
4888         New module 'log10f-ieee'.
4889         * modules/log10f-ieee: New file.
4890
4891 2012-04-01  Bruno Haible  <bruno@clisp.org>
4892
4893         log10l: Work around AIX 5.1, IRIX 6.5, OSF/1 5.1 bug.
4894         * lib/math.in.h (log10l): Override if REPLACE_LOG10L is 1.
4895         * lib/log10l.c (log10l): If log10l exists, use it and provide just the
4896         workaround.
4897         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): New macro.
4898         (gl_FUNC_LOG10L): Invoke it. Set REPLACE_LOG10L.
4899         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10L.
4900         * modules/math (Makefile.am): Substitute REPLACE_LOG10L.
4901         * modules/log10l (configure.ac): Consider REPLACE_LOG10L.
4902         (Depends-on): Update conditions.
4903         * doc/posix-functions/log10l.texi: Mention the MSVC9, AIX 5.1,
4904         IRIX 6.5, OSF/1 5.1 problems.
4905
4906 2012-04-01  Bruno Haible  <bruno@clisp.org>
4907
4908         log10f: Work around OSF/1 5.1 bug.
4909         * lib/math.in.h (log10f): Override if REPLACE_LOG10F is 1.
4910         * lib/log10f.c (log10f): If logf exists, use it and provide just the
4911         workaround.
4912         * m4/log10f.m4 (gl_FUNC_LOG10F_WORKS): New macro.
4913         (gl_FUNC_LOG10F): Invoke it. Set REPLACE_LOG10F.
4914         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10F.
4915         * modules/math (Makefile.am): Substitute REPLACE_LOG10F.
4916         * modules/log10f (configure.ac): Consider REPLACE_LOG10F.
4917         (Depends-on): Update conditions.
4918         * doc/posix-functions/log10f.texi: Mention the OSF/1 5.1 problem.
4919
4920 2012-04-01  Bruno Haible  <bruno@clisp.org>
4921
4922         log10: Work around OSF/1 5.1 bug.
4923         * lib/math.in.h (log10): New declaration.
4924         * lib/log10.c: New file.
4925         * m4/log10.m4 (gl_FUNC_LOG10_WORKS): New macro.
4926         (gl_FUNC_LOG10): Invoke it. Set REPLACE_LOG10.
4927         * m4/math_h.m4 (gl_MATH_H): Test whether log10 is declared.
4928         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10, REPLACE_LOG10.
4929         * modules/math (Makefile.am): Substitute GNULIB_LOG10, REPLACE_LOG10.
4930         * modules/log10 (Files): Add lib/log10.c.
4931         (Depends-on): Add math.
4932         (configure.ac): If REPLACE_LOG10 is 1, compile an override.
4933         * tests/test-math-c++.cc: Check the declaration of log10.
4934         * doc/posix-functions/log10.texi: Mention the OSF/1 5.1 problem.
4935
4936 2012-03-31  Bruno Haible  <bruno@clisp.org>
4937
4938         log10l tests: More tests.
4939         * modules/log10l-tests (Files): Add tests/test-log10l.h,
4940         tests/minus-zero.h, tests/randoml.c.
4941         (Makefile.am): Add randoml.c to test_log10l_SOURCES.
4942         * tests/test-log10l.c: Include <float.h>, minus-zero.h, test-log10l.h.
4943         (main): Invoke test_function.
4944
4945         log10f tests: More tests.
4946         * modules/log10f-tests (Files): Add tests/test-log10.h,
4947         tests/minus-zero.h, tests/randomf.c.
4948         (Makefile.am): Add randomf.c to test_log10f_SOURCES.
4949         * tests/test-log10f.c: Include <float.h>, minus-zero.h, test-log10.h.
4950         (main): Invoke test_function.
4951
4952         log10 tests: More tests.
4953         * tests/test-log10.h: New file.
4954         * modules/log10-tests (Files): Add tests/test-log10.h,
4955         tests/minus-zero.h, tests/randomd.c.
4956         (Makefile.am): Add randomd.c to test_log10_SOURCES.
4957         * tests/test-log10.c: Include <float.h>, minus-zero.h, test-log10.h.
4958         (main): Invoke test_function.
4959
4960 2012-03-31  Simon Josefsson  <simon@josefsson.org>
4961
4962         fflush: Fix syntax error.
4963         * lib/fflush.c: Include unused-parameter.h, needed for
4964         _GL_UNUSED_PARAMETER.
4965         * modules/fflush (Depends-on): Add snippet/unused-parameter.
4966
4967 2012-03-30  Paul Eggert  <eggert@cs.ucla.edu>
4968
4969         regex: pacify GCC when compiling GRUB
4970         * lib/regcomp.c (init_dfa): Make a pointer 'const', to avoid
4971         a diagnostic.  Reported by Vladimir Serbinenko in
4972         <http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00163.html>.
4973
4974 2012-03-29  Eric Blake  <eblake@redhat.com>
4975
4976         stdio: don't assume gets any more
4977         * m4/stdio_h.m4 (gl_STDIO_H, gl_STDIO_H_DEFAULTS): Drop gets
4978         support.
4979         * modules/stdio (Makefile.am): Likewise.
4980         * lib/stdio-read.c (gets): Likewise.
4981         * tests/test-stdio-c++.cc: Likewise.
4982         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix comment.
4983         * lib/stdio.in.h (gets): Make warning occur in more places.
4984         * doc/posix-functions/gets.texi (gets): Update documentation.
4985         Reported by Christer Solskogen.
4986
4987         maint.mk: fix syntax checks without exclusions
4988         * top/maint.mk (_sc_search_regexp): Allow for empty variable.
4989         Reported by Daniel P. Berrange.
4990
4991         strerror_r: avoid compiler warning
4992         * lib/strerror_r.c (strerror_r): Hoist extern declaration to top
4993         level.
4994
4995         fflush: avoid compiler warning
4996         * lib/fflush.c (update_fpos_cache): Mark variables that are
4997         potentially unused.
4998
4999 2012-03-25  Bruno Haible  <bruno@clisp.org>
5000
5001         Tests for module 'localeconv'.
5002         * modules/localeconv-tests: New file.
5003         * tests/test-localeconv.c: New file.
5004
5005         New module 'localeconv'.
5006         * lib/locale.in.h (localeconv): New declaration.
5007         * lib/localeconv.c: New file.
5008         * m4/localeconv.m4: New file.
5009         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALECONV,
5010         REPLACE_LOCALECONV.
5011         * modules/locale (Makefile.am): Substitute GNULIB_LOCALECONV,
5012         REPLACE_LOCALECONV.
5013         * modules/localeconv: New file.
5014         * modules/nl_langinfo (Depends-on): Add localeconv.
5015         * modules/human (Depends-on): Likewise.
5016         * doc/posix-functions/localeconv.texi: Mention the new module.
5017
5018 2012-03-25  Bruno Haible  <bruno@clisp.org>
5019
5020         locale: Provide a complete 'struct lconv'.
5021         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
5022         'struct lconv' does not contain int_p_cs_precedes.
5023         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
5024         * doc/posix-headers/locale.texi: Update.
5025
5026         locale: Provide a complete 'struct lconv' on Solaris 10, 11.
5027         * m4/locale_h.m4 (gl_LOCALE_H): On Solaris, define _LCONV_C99.
5028         * doc/posix-headers/locale.texi: Update.
5029
5030         locale: Provide a working 'struct lconv'.
5031         * lib/locale.in.h (lconv): Override if REPLACE_STRUCT_LCONV is 1.
5032         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
5033         'struct lconv' does not even contain decimal_point.
5034         (gl_LOCALE_H_DEFAULTS): Initialize REPLACE_STRUCT_LCONV.
5035         * modules/locale (Makefile.am): Substitute REPLACE_STRUCT_LCONV.
5036         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
5037         * doc/posix-headers/locale.texi: Mention the problems with
5038         'struct lconv'.
5039         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
5040
5041 2012-03-24  Bruno Haible  <bruno@clisp.org>
5042
5043         Enable common subexpression optimization in GCC.
5044         * lib/unitypes.in.h (_UC_ATTRIBUTE_CONST, _UC_ATTRIBUTE_PURE): New
5045         macros.
5046         * lib/unicase.in.h (uc_toupper, uc_tolower, uc_totitle): Declare with
5047         GCC attribute 'const'.
5048         (uc_locale_language): Declare with GCC attribute 'pure'.
5049         * lib/unicase/caseprop.h (uc_is_cased, uc_is_case_ignorable): Declare
5050         with GCC attribute 'const'.
5051         * lib/unictype.in.h (uc_is_general_category_withtable,
5052         uc_combining_class, uc_combining_class_name,
5053         uc_combining_class_long_name, uc_bidi_class_name,
5054         uc_bidi_category_name, uc_bidi_class_long_name, uc_bidi_class,
5055         uc_bidi_category, uc_is_bidi_class, uc_is_bidi_category,
5056         uc_decimal_value, uc_digit_value, uc_numeric_value,
5057         uc_joining_type_name, uc_joining_type_long_name, uc_joining_type,
5058         uc_joining_group_name, uc_joining_group, uc_is_property_*, uc_script,
5059         uc_block, uc_is_c_whitespace, uc_is_java_whitespace,
5060         uc_c_ident_category, uc_java_ident_category, uc_is_alnum, uc_is_alpha,
5061         uc_is_cntrl, uc_is_digit, uc_is_graph, uc_is_lower, uc_is_print,
5062         uc_is_punct, uc_is_space, uc_is_upper, uc_is_xdigit, uc_is_blank):
5063         Declare with GCC attribute 'const'.
5064         (uc_general_category_name, uc_general_category_long_name,
5065         uc_general_category_byname, uc_general_category,
5066         uc_is_general_category, uc_combining_class_byname,
5067         uc_bidi_class_byname, uc_bidi_category_byname, uc_joining_type_byname,
5068         uc_joining_group_byname, uc_script_byname, uc_is_script, uc_is_block):
5069         Declare with GCC attribute 'pure'.
5070         * lib/unigbrk.in.h (uc_graphemeclusterbreak_property,
5071         uc_is_grapheme_break, u8_grapheme_next, u16_grapheme_next,
5072         u32_grapheme_next, u8_grapheme_prev, u16_grapheme_prev,
5073         u32_grapheme_prev, lib/uniname.in.h (unicode_name_character): Declare
5074         with GCC attribute 'pure'.
5075         * lib/uninorm.in.h (uc_composition): Declare with GCC attribute
5076         'const'.
5077         (uninorm_decomposing_form): Declare with GCC attribute 'pure'.
5078         * lib/unistr.in.h (): Declare with GCC attribute 'const'.
5079         (u8_check, u16_check, u32_check, u8_mblen, u16_mblen, u32_mblen,
5080         u8_cmp, u16_cmp, u32_cmp, u8_cmp2, u16_cmp2, u32_cmp2, u8_chr, u16_chr,
5081         u32_chr, u8_mbsnlen, u16_mbsnlen, u32_mbsnlen, u8_strmblen,
5082         u16_strmblen, u32_strmblen, u8_strlen, u16_strlen, u32_strlen,
5083         u8_strnlen, u16_strnlen, u32_strnlen, u8_strcmp_gnu, u8_strcmp,
5084         u16_strcmp, u32_strcmp, u8_strncmp, u16_strncmp, u32_strncmp,
5085         u8_strchr, u16_strchr, u32_strchr, u8_strrchr, u16_strrchr,
5086         u32_strrchr, u8_strcspn, u16_strcspn, u32_strcspn, u8_strspn,
5087         u16_strspn, u32_strspn, u8_strpbrk, u16_strpbrk, u32_strpbrk,
5088         u8_strstr, u16_strstr, u32_strstr, u8_startswith, u16_startswith,
5089         u32_startswith, u8_endswith, u16_endswith, u32_endswith): Declare with
5090         GCC attribute 'pure'.
5091         * lib/uniwbrk.in.h (uc_wordbreak_property): Declare with GCC attribute
5092         'const'.
5093         * lib/uniwidth.in.h (uc_width): Simplify declaration.
5094         (u8_width, u16_width, u32_width, u8_strwidth, u16_strwidth,
5095         u32_strwidth): Declare with GCC attribute 'pure'.
5096
5097         Enable common subexpression optimization in GCC.
5098         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
5099         (alphasort): Declare with GCC attribute 'pure'.
5100         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
5101         (atoll): Declare with GCC attribute 'pure'.
5102         * lib/string.in.h (mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
5103         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
5104         mbsspn, strverscmp): Declare with GCC attribute 'pure'.
5105         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
5106         (btowc, wctob, wcwidth, wmemchr, wmemcmp, wcslen, wcsnlen, wcscmp,
5107         wcsncmp, wcscasecmp, wcsncasecmp, wcschr, wcsrchr, wcscspn, wcsspn,
5108         wcspbrk, wcsstr, wcswidth): Declare with GCC attribute 'pure'.
5109
5110 2012-03-24  Bruno Haible  <bruno@clisp.org>
5111
5112         gnulib-tool: Avoid unintended error output from 'cmp'.
5113         * gnulib-tool (func_add_file, func_update_file, func_import): Use
5114         "cmp -s", not "cmp > /dev/null".
5115
5116 2012-03-23  Stefano Lattarini  <stefano.lattarini@gmail.com>
5117
5118         gnulib-tool: fix imprecise comments w.r.t. an automake bug
5119
5120         It's not just Automake versions < 1.9b that creates an empty
5121         pkgdatadir at installation time if pkgdata_DATA is specified
5122         to empty; modern automake versions do this as well, at least
5123         until automake 1.11.4 (not yet released at the moment of writing,
5124         but soon to appear).  That behaviour was generally considered a
5125         feature rather than a bug, at least until this discussion:
5126         <http://lists.gnu.org/archive/html/automake/2012-03/msg00014.html>
5127
5128         See also automake bugs #10997 and #11030.
5129
5130         * gnulib-tool (func_emit_lib_Makefile_am): Adjust comments.  Add
5131         reference to relevant automake bug numbers.
5132         (func_emit_tests_Makefile_am): Likewise.
5133
5134 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
5135
5136         announce-gen: use Digest::SHA when possible
5137         * build-aux/announce-gen: Use Digest::SHA when possible, falling
5138         back to Digest::SHA1 if necessary.
5139
5140 2012-03-20  Jim Meyering  <meyering@redhat.com>
5141
5142         tests: avoid gcc warnings about argv vs. const initializers
5143         * tests/test-posix_spawn1.c (main): Cast to "(char *)" to avoid two
5144         warnings about discarding 'const' qualifier from pointer target type.
5145         * tests/test-posix_spawn2.c (main): Likewise.
5146
5147 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
5148
5149         README-release: simplify slightly
5150         * top/README-release: Run "git checkout master" only once.
5151
5152 2012-03-15  Mark Wielaard  <mark@klomp.org>
5153
5154         git-merge-changelog: add specific example on how to use with hg.
5155         * lib/git-merge-changelog.c: Add example on how to use in .hgrc.
5156
5157 2012-03-18  Mark Wielaard  <mark@klomp.org>
5158
5159         lib/git-merge-changelog.c (status): Report bugs to bug-gnulib@gnu.org.
5160
5161 2012-03-18  Andreas Oberritter  <obi@opendreambox.org>
5162
5163         git-version-gen: don't let "prefix" envvar cause trouble
5164         * build-aux/git-version-gen (prefix): Initialize properly,
5165         so as not to use a value specified via the environment.
5166         Details here: http://thread.gmane.org/gmane.comp.gnu.parted.bugs/10810
5167
5168 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
5169
5170         regex: diagnose too-large repeat counts in EREs
5171         Previously, the code did not diagnose the too-large repeat count
5172         in EREs like 'b{1000000000}'; instead, it silently treated the ERE
5173         as if it were 'b\{1000000000}', which is unexpected.
5174         * lib/regcomp.c (parse_dup_op): Fail with REG_ESIZE if a repeat count
5175         is too large.  REG_ESIZE is used nowhere else, and the diagnostic
5176         is a reasonable one for this problem.  Another option would be to
5177         create a new REG_OVERFLOW error for repeat counts that are too large.
5178         (fetch_number): Return RE_DUP_MAX + 1, not REG_ERROR, if the repeat
5179         count is too large, so that the caller can distinguish the two cases.
5180         * lib/regex.h (_REG_ESIZE): Document that this is now a generic
5181         "Too large" return code, and that repeat counts are one example of this.
5182
5183 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
5184
5185         doc: some glibc x32 integer width issues
5186         * doc/posix-headers/sys_types.texi (sys/types.h):
5187         * doc/posix-headers/time.texi (time.h):
5188         Mention that glibc x32 does not conform to POSIX in a couple of
5189         areas related to integer widths.
5190
5191 2012-03-15  Bruno Haible  <bruno@clisp.org>
5192
5193         fmal: Avoid test failure on OpenBSD 5.1/SPARC64.
5194         * lib/fma.c (VOLATILE): New macro.
5195         (FUNC): Use it to work around a GCC compiler bug.
5196
5197 2012-03-13  Bruno Haible  <bruno@clisp.org>
5198
5199         hypotl: Bypass broken implementation in OpenBSD 5.1/SPARC.
5200         * m4/hypotl.m4 (gl_FUNC_HYPOTL_WORKS): New macro.
5201         (gl_FUNC_HYPOTL): Invoke it. If the function does not work, set
5202         REPLACE_HYPOTL to 1.
5203         * doc/posix-functions/hypotl.texi: Mention the OpenBSD 5.1/SPARC bug.
5204
5205 2012-03-13  Bruno Haible  <bruno@clisp.org>
5206
5207         remainderl: Bypass broken implementation in OpenBSD 5.1/SPARC.
5208         * m4/remainderl.m4 (gl_FUNC_REMAINDERL_WORKS): New macro.
5209         (gl_FUNC_REMAINDERL): Invoke it. If the function does not work, set
5210         REPLACE_REMAINDERL to 1.
5211         * doc/posix-functions/remainderl.texi: Mention the OpenBSD 5.1/SPARC
5212         bug.
5213
5214 2012-03-13  Bruno Haible  <bruno@clisp.org>
5215
5216         sqrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
5217         * lib/math.in.h (sqrtl): Replace it if REPLACE_SQRTL is 1.
5218         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): New macro.
5219         (gl_FUNC_SQRTL): Invoke it. Set REPLACE_SQRTL to 1 if sqrtl() produces
5220         too big rounding errors.
5221         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_SQRTL.
5222         * modules/math (Makefile.am): Substitute REPLACE_SQRTL.
5223         * modules/sqrtl (configure.ac): Consider REPLACE_SQRTL.
5224         (Depends-on): Update conditions.
5225         * tests/test-sqrtl.c (my_ldexpl): New function.
5226         (main): Add test of a particular value.
5227         * doc/posix-functions/sqrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
5228
5229 2012-03-13  Pádraig Brady  <P@draigBrady.com>
5230
5231         doc: Update timer_* platform portability notes.
5232         * doc/posix-functions/timer_create.texi: Add platforms (OpenBSD 4.9)
5233         that always return ENOSYS.
5234         * doc/posix-functions/timer_delete.texi: Likewise.
5235         * doc/posix-functions/timer_gettime.texi: Likewise.
5236         * doc/posix-functions/timer_settime.texi: Likewise.
5237
5238 2012-03-13  Bruno Haible  <bruno@clisp.org>
5239
5240         cbrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
5241         * m4/cbrtl.m4 (gl_FUNC_CBRTL_WORKS): New macro.
5242         (gl_FUNC_CBRTL): Invoke it. If the function does not work, set
5243         REPLACE_CBRTL to 1.
5244         * doc/posix-functions/cbrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
5245
5246 2012-03-13  Bruno Haible  <bruno@clisp.org>
5247
5248         remainderl: Avoid compilation error on AIX >= 5.2.
5249         * lib/math.in.h (remainderl): Undefine macro from the system header.
5250
5251 2012-03-13  Bruno Haible  <bruno@clisp.org>
5252
5253         Avoid compilation errors with MSVC option -fp:strict.
5254         * lib/cbrt.c: Use MSVC specific pragma fenv_access.
5255         * lib/cbrtf.c: Likewise.
5256         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
5257
5258 2012-03-12  Bruno Haible  <bruno@clisp.org>
5259
5260         uninorm: Don't crash in out-of-memory conditions.
5261         * lib/uninorm/u-normalize-internal.h (FUNC): Handle malloc() failure
5262         gracefully.
5263         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Likewise.
5264         Based on a report and patch by Stephen Gallagher <sgallagh@redhat.com>.
5265
5266 2012-03-13  Akim Demaille  <akim@lrde.epita.fr>
5267
5268         quote: fix syntax-check
5269         * top/maint.mk (sc_prohibit_quote_without_use): quote.h
5270         also exports quote_quoting_options.
5271
5272 2012-03-12  Simon Josefsson  <simon@josefsson.org>
5273
5274         Collapse list of copyright years to ranges.  See
5275         <https://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00051.html>.
5276         * build-aux/bootstrap.conf, build-aux/csharpcomp.sh.in,
5277         build-aux/csharpexec.sh.in, build-aux/gnupload,
5278         build-aux/install-reloc, build-aux/javacomp.sh.in,
5279         build-aux/javaexec.sh.in, build-aux/ldd.sh.in,
5280         build-aux/move-if-change, build-aux/reloc-ldflags,
5281         build-aux/relocatable.sh.in, build-aux/x-to-1.in: Fix copyright.
5282
5283 2012-03-11  Bruno Haible  <bruno@clisp.org>
5284
5285         log2f-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
5286         * m4/log2f-ieee.m4: New file.
5287         * m4/log2f.m4 (gl_FUNC_LOG2F): If gl_FUNC_LOG2F_IEEE is present, test
5288         whether log2f works with a minus zero argument. Replace it if not.
5289         * modules/log2f-ieee (Files): Add m4/log2f-ieee.m4.
5290         (Depends-on): Add log2-ieee.
5291         (configure.ac): Invoke gl_FUNC_LOG2F_IEEE.
5292         * doc/posix-functions/log2f.texi: Mention the log2f-ieee module.
5293
5294         log2-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
5295         * m4/log2-ieee.m4: New file.
5296         * m4/log2.m4 (gl_FUNC_LOG2): If gl_FUNC_LOG2_IEEE is present, test
5297         whether log2 works with a minus zero argument. Replace it if not.
5298         * modules/log2-ieee (Files): Add m4/log2-ieee.m4.
5299         (configure.ac): Invoke gl_FUNC_LOG2_IEEE.
5300         * doc/posix-functions/log2.texi: Mention the log2-ieee module.
5301
5302         Tests for module 'log2l-ieee'.
5303         * modules/log2l-ieee-tests: New file.
5304         * tests/test-log2l-ieee.c: New file.
5305
5306         New module 'log2l-ieee'.
5307         * modules/log2l-ieee: New file.
5308
5309         Tests for module 'log2-ieee'.
5310         * modules/log2-ieee-tests: New file.
5311         * tests/test-log2-ieee.c: New file.
5312
5313         New module 'log2-ieee'.
5314         * modules/log2-ieee: New file.
5315
5316         Tests for module 'log2f-ieee'.
5317         * modules/log2f-ieee-tests: New file.
5318         * tests/test-log2f-ieee.c: New file.
5319         * tests/test-log2-ieee.h: New file.
5320
5321         New module 'log2f-ieee'.
5322         * modules/log2f-ieee: New file.
5323
5324 2012-03-11  Bruno Haible  <bruno@clisp.org>
5325
5326         Tests for module 'log2l'.
5327         * modules/log2l-tests: New file.
5328         * tests/test-log2l.c: New file.
5329
5330         New module 'log2l'.
5331         * lib/math.in.h (log2l): New declaration.
5332         * lib/log2l.c: New file.
5333         * m4/log2l.m4: New file.
5334         * m4/math_h.m4 (gl_MATH_H): Test whether log2l is declared.
5335         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2L, HAVE_DECL_LOG2L,
5336         REPLACE_LOG2L.
5337         * modules/math (Makefile.am): Substitute GNULIB_LOG2L, HAVE_DECL_LOG2L,
5338         REPLACE_LOG2L.
5339         * modules/log2l: New file.
5340         * tests/test-math-c++.cc: Check the declaration of log2l.
5341         * doc/posix-functions/log2l.texi: Mention the new module and the IRIX
5342         and OSF/1 problems.
5343
5344 2012-03-11  Bruno Haible  <bruno@clisp.org>
5345
5346         Tests for module 'log2f'.
5347         * modules/log2f-tests: New file.
5348         * tests/test-log2f.c: New file.
5349
5350         New module 'log2f'.
5351         * lib/math.in.h (log2f): New declaration.
5352         * lib/log2f.c: New file.
5353         * m4/log2f.m4: New file.
5354         * m4/math_h.m4 (gl_MATH_H): Test whether log2f is declared.
5355         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2F, HAVE_DECL_LOG2F,
5356         REPLACE_LOG2F.
5357         * modules/math (Makefile.am): Substitute GNULIB_LOG2F, HAVE_DECL_LOG2F,
5358         REPLACE_LOG2F.
5359         * modules/log2f: New file.
5360         * tests/test-math-c++.cc: Check the declaration of log2f.
5361         * doc/posix-functions/log2f.texi: Mention the new module and the IRIX
5362         and OSF/1 and Cygwin problems.
5363
5364 2012-03-11  Bruno Haible  <bruno@clisp.org>
5365
5366         Tests for module 'log2'.
5367         * modules/log2-tests: New file.
5368         * tests/test-log2.c: New file.
5369         * tests/test-log2.h: New file.
5370
5371         New module 'log2'.
5372         * lib/math.in.h (log2): New declaration.
5373         * lib/log2.c: New file.
5374         * m4/log2.m4: New file.
5375         * m4/math_h.m4 (gl_MATH_H): Test whether log2 is declared.
5376         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2, HAVE_DECL_LOG2,
5377         REPLACE_LOG2.
5378         * modules/math (Makefile.am): Substitute GNULIB_LOG2, HAVE_DECL_LOG2,
5379         REPLACE_LOG2.
5380         * modules/log2: New file.
5381         * tests/test-math-c++.cc: Check the declaration of log2.
5382         * doc/posix-functions/log2.texi: Mention the new module and the IRIX
5383         and OSF/1 and Cygwin problems.
5384
5385 2012-03-11  Bruno Haible  <bruno@clisp.org>
5386
5387         exp2* tests: More tests.
5388         * tests/test-exp2.h (test_function): Test all integral arguments that
5389         don't need to overflow or denormalized numbers.
5390         * tests/test-exp2.c (MAX_EXP, MIN_EXP): New macros.
5391         * tests/test-exp2f.c (MAX_EXP, MIN_EXP): Likewise.
5392         * tests/test-exp2l.c (MAX_EXP, MIN_EXP): Likewise.
5393
5394 2012-03-10  Bruno Haible  <bruno@clisp.org>
5395
5396         log1pl-ieee: Work around test failure on AIX 7.1.
5397         * modules/log1pl-ieee (Depends-on): Add log1p-ieee.
5398
5399         log1pl-ieee: Work around test failure on IRIX 6.5.
5400         * m4/log1pl-ieee.m4: New file.
5401         * m4/log1pl.m4 (gl_FUNC_LOG1PL): If gl_FUNC_LOG1PL_IEEE is present,
5402         test whether log1pl works with a minus zero argument. Replace it if
5403         not.
5404         * lib/math.in.h (log1pl): Override if REPLACE_LOG1PL is 1.
5405         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1PL.
5406         * modules/math (Makefile.am): Substitute REPLACE_LOG1PL.
5407         * modules/log1pl (configure.ac): Consider REPLACE_LOG1PL.
5408         (Depends-on): Update conditions.
5409         * modules/log1pl-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
5410         m4/signbit.m4.
5411         (configure.ac): Invoke gl_FUNC_LOG1PL_IEEE.
5412         * doc/posix-functions/log1pl.texi: Mention the log1pl-ieee module.
5413
5414         log1pf-ieee: Work around test failure on OpenBSD 4.9 and AIX 7.1.
5415         * m4/log1pf-ieee.m4: New file.
5416         * m4/log1pf.m4 (gl_FUNC_LOG1PF): If gl_FUNC_LOG1PF_IEEE is present,
5417         test whether log1pf works with a minus zero argument. Replace it if
5418         not.
5419         * modules/log1pf-ieee (Files): Add m4/log1pf-ieee.m4, m4/minus-zero.m4,
5420         m4/signbit.m4.
5421         (configure.ac): Invoke gl_FUNC_LOG1PF_IEEE.
5422         * doc/posix-functions/log1pf.texi: Mention the log1pf-ieee module.
5423
5424         log1pf-ieee: Work around test failure on AIX 5.1 and HP-UX 11.
5425         * modules/log1pf-ieee (Depends-on): Add log1p-ieee.
5426         (configure.ac): Require gl_FUNC_LOG1PF.
5427
5428         log1p-ieee: Work around test failure on AIX 7.1 and HP-UX 11.
5429         * m4/log1p-ieee.m4: New file.
5430         * m4/log1p.m4 (gl_FUNC_LOG1P): If gl_FUNC_LOG1P_IEEE is present, test
5431         whether log1p works with a minus zero argument. Replace it if not.
5432         * lib/math.in.h (log1p): Override if REPLACE_LOG1P is 1.
5433         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1P.
5434         * modules/math (Makefile.am): Substitute REPLACE_LOG1P.
5435         * modules/log1p (configure.ac): Consider REPLACE_LOG1P.
5436         (Depends-on): Update conditions.
5437         * modules/log1p-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
5438         m4/signbit.m4.
5439         (configure.ac): Invoke gl_FUNC_LOG1P_IEEE.
5440         * doc/posix-functions/log1p.texi: Mention the log1p-ieee module.
5441
5442         Tests for module 'log1pl-ieee'.
5443         * modules/log1pl-ieee-tests: New file.
5444         * tests/test-log1pl-ieee.c: New file.
5445
5446         New module 'log1pl-ieee'.
5447         * modules/log1pl-ieee: New file.
5448
5449         Tests for module 'log1p-ieee'.
5450         * modules/log1p-ieee-tests: New file.
5451         * tests/test-log1p-ieee.c: New file.
5452
5453         New module 'log1p-ieee'.
5454         * modules/log1p-ieee: New file.
5455
5456         Tests for module 'log1pf-ieee'.
5457         * modules/log1pf-ieee-tests: New file.
5458         * tests/test-log1pf-ieee.c: New file.
5459         * tests/test-log1p-ieee.h: New file.
5460
5461         New module 'log1pf-ieee'.
5462         * modules/log1pf-ieee: New file.
5463
5464 2012-03-10  Bruno Haible  <bruno@clisp.org>
5465
5466         Tests for module 'log1pl'.
5467         * modules/log1pl-tests: New file.
5468         * tests/test-log1pl.c: New file.
5469
5470         New module 'log1pl'.
5471         * lib/math.in.h (log1pl): New declaration.
5472         * lib/log1pl.c: New file.
5473         * m4/log1pl.m4: New file.
5474         * m4/math_h.m4 (gl_MATH_H): Test whether log1pl is declared.
5475         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PL, HAVE_LOG1PL.
5476         * modules/math (Makefile.am): Substitute GNULIB_LOG1PL, HAVE_LOG1PL.
5477         * modules/log1pl: New file.
5478         * tests/test-math-c++.cc: Check the declaration of log1pl.
5479         * doc/posix-functions/log1pl.texi: Mention the new module.
5480
5481 2012-03-10  Bruno Haible  <bruno@clisp.org>
5482
5483         Tests for module 'log1pf'.
5484         * modules/log1pf-tests: New file.
5485         * tests/test-log1pf.c: New file.
5486
5487         New module 'log1pf'.
5488         * lib/math.in.h (log1pf): New declaration.
5489         * lib/log1pf.c: New file.
5490         * m4/log1pf.m4: New file.
5491         * m4/math_h.m4 (gl_MATH_H): Test whether log1pf is declared.
5492         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PF, HAVE_LOG1PF,
5493         REPLACE_LOG1PF.
5494         * modules/math (Makefile.am): Substitute GNULIB_LOG1PF, HAVE_LOG1PF,
5495         REPLACE_LOG1PF.
5496         * modules/log1pf: New file.
5497         * tests/test-math-c++.cc: Check the declaration of log1pf.
5498         * doc/posix-functions/log1pf.texi: Mention the new module.
5499
5500 2012-03-10  Bruno Haible  <bruno@clisp.org>
5501
5502         log1p tests: More tests.
5503         * tests/test-log1p.h: New file.
5504         * modules/log1p-tests (Files): Add tests/test-log1p.h, tests/randomd.c.
5505         (Makefile.am): Add randomd.c to test_log1p_SOURCES.
5506         * tests/test-log1p.c: Include <float.h> and test-log1p.h.
5507         (main): Invoke test_function.
5508
5509         log1p: Provide replacement for Minix and MSVC.
5510         * lib/math.in.h (log1p): New declaration.
5511         * lib/log1p.c: New file.
5512         * m4/log1p.m4: New file.
5513         * m4/math_h.m4 (gl_MATH_H): Test whether log1p is declared.
5514         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1P, HAVE_LOG1P.
5515         * modules/math (Makefile.am): Substitute GNULIB_LOG1P, HAVE_LOG1P.
5516         * modules/log1p (Files): Add lib/log1p.c, m4/log1p.m4.
5517         (Depends-on): Add math, isnand, log, round.
5518         (configure.ac): Invoke gl_FUNC_LOG1P. Arrange to compile replacement if
5519         HAVE_LOG1P is 0.
5520         * tests/test-math-c++.cc: Check the declaration of log1p.
5521         * doc/posix-functions/log1p.texi: Mention the replacement.
5522
5523 2012-03-10  Bruno Haible  <bruno@clisp.org>
5524
5525         math tests: Small simplification.
5526         * tests/test-exp.h (test_function): Use the same err_bound for
5527         'double' on platforms with sizeof (long double) == sizeof (double)
5528         than on platforms with sizeof (long double) > sizeof (double).
5529         * tests/test-exp2.h (test_function): Likewise.
5530         * tests/test-expm1.h (test_function): Likewise.
5531         * tests/test-log.h (test_function): Likewise.
5532
5533 2012-03-10  Bruno Haible  <bruno@clisp.org>
5534
5535         Fix some comments.
5536         * lib/expl.c: Fix an ambiguous comment.
5537         * lib/expm1.c: Likewise.
5538         * lib/expm1l.c: Likewise.
5539         * lib/exp2.c: Likewise.
5540         * lib/exp2l.c: Likewise.
5541
5542 2012-03-10  Paul Eggert  <eggert@cs.ucla.edu>
5543
5544         regex: allow inclusion of <regex.h> before <limits.h>
5545         Without this patch, portable programs had to include <limits.h> before
5546         <regex.h> if they wanted a consistent value for RE_DUP_MAX.
5547         I ran into this problem with a test version of GNU grep on Solaris 8.
5548         * lib/regex.h: Include <limits.h> if _REGEX_INCLUDE_LIMITS_H.
5549         This is done conditionally so that this change can be merged
5550         back to glibc.
5551         * m4/regex.m4 (gl_REGEX): Define _REGEX_INCLUDE_LIMITS_H if
5552         using the included regex.
5553
5554         fts: depend on fdopendir
5555         * modules/fts (Depends-on): Depend on fdopendir.  This is needed
5556         on Solaris 8, at least, since it lacks fdopendir.  Evidently the
5557         problem was introduced when fdopendir was split out.
5558
5559 2012-03-10  Bruno Haible  <bruno@clisp.org>
5560
5561         Remove unused variables.
5562         * m4/fmodf.m4 (gl_FUNC_FMODF): Remove unused variable 'i'.
5563         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
5564
5565 2012-03-10  Bruno Haible  <bruno@clisp.org>
5566
5567         isnanf-nolibm: Fix last commit.
5568         * lib/isnanf-nolibm.h [IRIX]: Don't include <ieeefp.h>. Declare isnanf.
5569
5570         isnanf-nolibm: Make it work on IRIX 6.5 with cc.
5571         * lib/isnanf-nolibm.h [IRIX]: Include <ieeefp.h>.
5572
5573 2012-03-10  Bruno Haible  <bruno@clisp.org>
5574
5575         logf-ieee: Work around test failure on NetBSD 5.1.
5576         * m4/logf-ieee.m4: New file.
5577         * m4/logf.m4 (gl_FUNC_LOGF): If gl_FUNC_LOGF_IEEE is present, test
5578         whether logf works with a negative argument. Replace it if not.
5579         * lib/logf.c (logf): For negative arguments, return NaN.
5580         * modules/logf-ieee (Files): Add m4/logf-ieee.m4.
5581         (configure.ac): Invoke gl_FUNC_LOGF_IEEE.
5582         * doc/posix-functions/logf.texi: Mention the logf-ieee module.
5583
5584         logf-ieee: Work around test failure on Solaris 9.
5585         * modules/logf-ieee (Depends-on): Add log-ieee.
5586         (configure.ac): Require gl_FUNC_LOGF.
5587
5588         log-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
5589         * m4/log-ieee.m4: New file.
5590         * m4/log.m4 (gl_FUNC_LOG): If gl_FUNC_LOG_IEEE is present, test whether
5591         log works with a negative argument. Replace it if not.
5592         * lib/log.c (log): For negative arguments, return NaN.
5593         * modules/log-ieee (Files): Add m4/log-ieee.m4.
5594         (configure.ac): Invoke gl_FUNC_LOG_IEEE.
5595         * doc/posix-functions/log.texi: Mention the log-ieee module.
5596
5597         Tests for module 'logl-ieee'.
5598         * modules/logl-ieee-tests: New file.
5599         * tests/test-logl-ieee.c: New file.
5600
5601         New module 'logl-ieee'.
5602         * modules/logl-ieee: New file.
5603
5604         Tests for module 'log-ieee'.
5605         * modules/log-ieee-tests: New file.
5606         * tests/test-log-ieee.c: New file.
5607
5608         New module 'log-ieee'.
5609         * modules/log-ieee: New file.
5610
5611         Tests for module 'logf-ieee'.
5612         * modules/logf-ieee-tests: New file.
5613         * tests/test-logf-ieee.c: New file.
5614         * tests/test-log-ieee.h: New file.
5615
5616         New module 'logf-ieee'.
5617         * modules/logf-ieee: New file.
5618
5619 2012-03-10  Bruno Haible  <bruno@clisp.org>
5620
5621         log: Fix bug introduced on 2012-03-09.
5622         * m4/log.m4 (gl_FUNC_LOG): Require gl_MATH_H_DEFAULTS.
5623
5624 2012-03-10  Pádraig Brady  <P@draigBrady.com>
5625
5626         timer-time: link explicitly with pthreads on glibc
5627         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
5628         to support static linking, when newer glibc is
5629         detected, as that contains pthread emulation of
5630         POSIX timer functions where required.
5631         * modules/timer-time: Depend on threadlib to
5632         pull in the appropriate library to link.
5633
5634 2012-03-10  Bruno Haible  <bruno@clisp.org>
5635
5636         log* tests: More tests.
5637         * tests/test-log.h: New file.
5638         * tests/test-log.c: Include <float.h>, minus-zero.h, test-log.h.
5639         (main): Invoke test_function.
5640         * tests/test-logf.c: Include <float.h>, minus-zero.h, test-log.h.
5641         (main): Invoke test_function.
5642         * tests/test-logl.c: Include <float.h>, minus-zero.h, test-log.h.
5643         (main): Invoke test_function.
5644         * modules/log-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
5645         tests/randomd.c.
5646         (Makefile.am): Add randomd.c to test_log_SOURCES.
5647         * modules/logf-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
5648         tests/randomf.c.
5649         (Makefile.am): Add randomf.c to test_logf_SOURCES.
5650         * modules/logl-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
5651         tests/randoml.c.
5652         (Depends-on): Add 'float'.
5653         (Makefile.am): Add randoml.c to test_logl_SOURCES.
5654
5655 2012-03-09  Bruno Haible  <bruno@clisp.org>
5656
5657         logl: Work around OSF/1 5.1 bug.
5658         * lib/math.in.h (logl): Override if REPLACE_LOGL is 1.
5659         * lib/logl.c (logl): If logl exists, use it and provide just the
5660         workaround.
5661         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): New macro.
5662         (gl_FUNC_LOGL): Invoke it. Set REPLACE_LOGL.
5663         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGL.
5664         * modules/math (Makefile.am): Substitute REPLACE_LOGL.
5665         * modules/logl (configure.ac): Consider REPLACE_LOGL.
5666         (Depends-on): Update conditions.
5667         * doc/posix-functions/logl.texi: Mention the OSF/1 5.1 problem.
5668
5669 2012-03-09  Bruno Haible  <bruno@clisp.org>
5670
5671         logf: Work around OSF/1 5.1 bug.
5672         * lib/math.in.h (logf): Override if REPLACE_LOGF is 1.
5673         * lib/logf.c (logf): If logf exists, use it and provide just the
5674         workaround.
5675         * m4/logf.m4 (gl_FUNC_LOGF_WORKS): New macro.
5676         (gl_FUNC_LOGF): Invoke it. Set REPLACE_LOGF.
5677         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGF.
5678         * modules/math (Makefile.am): Substitute REPLACE_LOGF.
5679         * modules/logf (configure.ac): Consider REPLACE_LOGF.
5680         (Depends-on): Update conditions.
5681         * doc/posix-functions/logf.texi: Mention the OSF/1 5.1 problem.
5682
5683 2012-03-09  Bruno Haible  <bruno@clisp.org>
5684
5685         log: Work around OSF/1 5.1 bug.
5686         * lib/math.in.h (log): New declaration.
5687         * lib/log.c: New file.
5688         * m4/log.m4 (gl_FUNC_LOG_WORKS): New macro.
5689         (gl_FUNC_LOG): Invoke it. Set REPLACE_LOG.
5690         * m4/math_h.m4 (gl_MATH_H): Test whether log is declared.
5691         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG, REPLACE_LOG.
5692         * modules/math (Makefile.am): Substitute GNULIB_LOG, REPLACE_LOG.
5693         * modules/log (Files): Add lib/log.c.
5694         (Depends-on): Add math.
5695         (configure.ac): If REPLACE_LOG is 1, compile an override.
5696         * tests/test-math-c++.cc: Check the declaration of log.
5697         * doc/posix-functions/log.texi: Mention the OSF/1 5.1 problem.
5698
5699 2012-03-09  Jim Meyering  <meyering@redhat.com>
5700
5701         readtokens.c: adjust wording in a comment
5702         * lib/readtokens.c: Insert omitted "that" in a comment.
5703
5704 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
5705
5706         modechange: add notations +40, 00440, etc.
5707         * lib/modechange.c (mode_compile): Support new notations
5708         +40, -40, =440, 00440.  See <http://debbugs.gnu.org/8391>.
5709
5710 2012-03-08  Bruno Haible  <bruno@clisp.org>
5711
5712         exp2l-ieee: Work around test failure on OpenBSD 4.9 and IRIX 6.5.
5713         * m4/exp2l-ieee.m4: New file.
5714         * m4/exp2l.m4 (gl_FUNC_EXP2L): If gl_FUNC_EXP2L_IEEE is present,
5715         test whether exp2l works with a NaN argument and with a negative
5716         infinity argument. Replace it if not.
5717         * lib/math.in.h (exp2l): Override if REPLACE_EXP2L is 1.
5718         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXP2L.
5719         * modules/math (Makefile.am): Substitute REPLACE_EXP2L.
5720         * modules/exp2l (configure.ac): Consider REPLACE_EXP2L.
5721         (Depends-on): Update conditions.
5722         * modules/exp2l-ieee (Files): Add m4/exp2l-ieee.m4.
5723         (configure.ac): Invoke gl_FUNC_EXP2L_IEEE.
5724         * doc/posix-functions/exp2l.texi: Mention the exp2l-ieee module.
5725
5726         Tests for module 'exp2l-ieee'.
5727         * modules/exp2l-ieee-tests: New file.
5728         * tests/test-exp2l-ieee.c: New file.
5729
5730         New module 'exp2l-ieee'.
5731         * modules/exp2l-ieee: New file.
5732
5733         Tests for module 'exp2-ieee'.
5734         * modules/exp2-ieee-tests: New file.
5735         * tests/test-exp2-ieee.c: New file.
5736
5737         New module 'exp2-ieee'.
5738         * modules/exp2-ieee: New file.
5739
5740         Tests for module 'exp2f-ieee'.
5741         * modules/exp2f-ieee-tests: New file.
5742         * tests/test-exp2f-ieee.c: New file.
5743         * tests/test-exp2-ieee.h: New file.
5744
5745         New module 'exp2f-ieee'.
5746         * modules/exp2f-ieee: New file.
5747
5748 2012-03-08  Bruno Haible  <bruno@clisp.org>
5749
5750         Tests for module 'exp2l'.
5751         * modules/exp2l-tests: New file.
5752         * tests/test-exp2l.c: New file.
5753
5754         New module 'exp2l'.
5755         * lib/math.in.h (exp2l): New declaration.
5756         * lib/exp2l.c: New file.
5757         * lib/expl-table.c: New file, extracted from lib/expl.c.
5758         * lib/expl.c (gl_expl_table): New declaration.
5759         (expl): Remove expl_table. Update reference.
5760         * m4/exp2l.m4: New file.
5761         * m4/math_h.m4 (gl_MATH_H): Test whether exp2l is declared.
5762         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2L, HAVE_DECL_EXP2L.
5763         * modules/math (Makefile.am): Substitute GNULIB_EXP2L, HAVE_DECL_EXP2L.
5764         * modules/exp2l: New file.
5765         * modules/expl (Files): Add lib/expl-table.c.
5766         (configure.ac): Compile also expl-table.c.
5767         * tests/test-math-c++.cc: Check the declaration of exp2l.
5768         * doc/posix-functions/exp2l.texi: Mention the new module and the IRIX
5769         problem.
5770
5771 2012-03-08  Bruno Haible  <bruno@clisp.org>
5772
5773         Tests for module 'exp2f'.
5774         * modules/exp2f-tests: New file.
5775         * tests/test-exp2f.c: New file.
5776
5777         New module 'exp2f'.
5778         * lib/math.in.h (exp2f): New declaration.
5779         * lib/exp2f.c: New file.
5780         * m4/exp2f.m4: New file.
5781         * m4/math_h.m4 (gl_MATH_H): Test whether exp2f is declared.
5782         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2F, HAVE_DECL_EXP2F.
5783         * modules/math (Makefile.am): Substitute GNULIB_EXP2F, HAVE_DECL_EXP2F.
5784         * modules/exp2f: New file.
5785         * tests/test-math-c++.cc: Check the declaration of exp2f.
5786         * doc/posix-functions/exp2f.texi: Mention the new module and the
5787         IRIX problem.
5788
5789 2012-03-08  Bruno Haible  <bruno@clisp.org>
5790
5791         Tests for module 'exp2'.
5792         * modules/exp2-tests: New file.
5793         * tests/test-exp2.c: New file.
5794         * tests/test-exp2.h: New file.
5795
5796         New module 'exp2'.
5797         * lib/math.in.h (exp2): New declaration.
5798         * lib/exp2.c: New file.
5799         * m4/exp2.m4: New file.
5800         * m4/math_h.m4 (gl_MATH_H): Test whether exp2 is declared.
5801         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2, HAVE_DECL_EXP2,
5802         REPLACE_EXP2.
5803         * modules/math (Makefile.am): Substitute GNULIB_EXP2, HAVE_DECL_EXP2,
5804         REPLACE_EXP2.
5805         * modules/exp2: New file.
5806         * tests/test-math-c++.cc: Check the declaration of exp2.
5807         * doc/posix-functions/exp2.texi: Mention the new module and the IRIX
5808         and OpenBSD problems.
5809
5810 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
5811
5812         savedir: fix comment typo
5813         * lib/savedir.c (savedirstream): Fix typo in comment.
5814
5815 2012-03-08  Bruno Haible  <bruno@clisp.org>
5816
5817         test-readtokens.c: use const; remove unwarranted cast
5818         * tests/test-readtokens.c: Declare delim to be const, to avoid a cast.
5819
5820 2012-03-08  Bruno Haible  <bruno@clisp.org>
5821
5822         fmal: Avoid compilation error on AIX.
5823         * lib/math.in.h (fmal): Undefine macro before declaration. Needed on
5824         AIX 5.2..7.1.
5825
5826 2012-03-08  Bruno Haible  <bruno@clisp.org>
5827
5828         fma, fmaf, fmal: Override undeclared system functions on IRIX 6.5.
5829         * m4/fma.m4 (gl_FUNC_FMA): If fma() exists but is not declared,
5830         arrange to set REPLACE_FMA=1, not HAVE_FMA=0.
5831         * m4/fmaf.m4 (gl_FUNC_FMAF): If fmaf() exists but is not declared,
5832         arrange to set REPLACE_FMAF=1, not HAVE_FMAF=0.
5833         * m4/fmal.m4 (gl_FUNC_FMAL): If fmal() exists but is not declared,
5834         arrange to set REPLACE_FMAL=1, not HAVE_FMAL=0.
5835
5836 2012-03-08  Bruno Haible  <bruno@clisp.org>
5837
5838         remainderf: Override buggy system function on IRIX 6.5.
5839         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): New macro.
5840         (gl_FUNC_REMAINDERF): Invoke it. Don't assume remainderf() is declared
5841         when it exists.
5842         * doc/posix-functions/remainderf.texi: Mention the IRIX problems.
5843
5844 2012-03-08  Jim Meyering  <meyering@redhat.com>
5845
5846         test-readtokens.c: avoid const-related compilation warnings
5847         * tests/test-readtokens.c: Avoid const-related compilation warnings.
5848
5849 2012-03-07  Jim Meyering  <meyering@redhat.com>
5850             Bruno Haible  <bruno@clisp.org>
5851
5852         frexp-nolibm, frexpl-nolibm tests: Fix bug introduced on 2012-03-03.
5853         * modules/frexp-nolibm-tests (Files): Add tests/test-frexp.h,
5854         tests/randomd.c.
5855         (Makefile.am): Add randomd.c to test_frexp_nolibm_SOURCES.
5856         * modules/frexpl-nolibm-tests (Files): Add tests/test-frexp.h,
5857         tests/randoml.c.
5858         (Makefile.am): Add randoml.c to test_frexpl_nolibm_SOURCES.
5859
5860 2012-03-07  Bruno Haible  <bruno@clisp.org>
5861
5862         expm1l: Avoid compilation error on AIX.
5863         * lib/math.in.h (expm1l): Undefine macro before declaration. Needed on
5864         AIX 5.2..7.1.
5865
5866 2012-03-07  Bruno Haible  <bruno@clisp.org>
5867
5868         expm1l: Don't override undeclared system function on IRIX 6.5.
5869         * lib/math.in.h (expm1l): Test HAVE_DECL_EXPM1L, not HAVE_EXPM1L.
5870         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Don't assume expm1l() is declared when
5871         it exists. Set HAVE_DECL_EXPM1L.
5872         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_EXPM1L, not
5873         HAVE_EXPM1L.
5874         * modules/math (Makefile.am): Substitute HAVE_DECL_EXPM1L, not
5875         HAVE_EXPM1L.
5876         * doc/posix-functions/expm1l.texi: Mention missing declaration problem.
5877
5878 2012-03-07  Bruno Haible  <bruno@clisp.org>
5879
5880         remainderl: Don't override undeclared system function on IRIX 6.5.
5881         * lib/math.in.h (remainderl): Test HAVE_DECL_REMAINDERL, not
5882         HAVE_REMAINDERL.
5883         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Don't assume remainderl() is
5884         declared when it exists. Set HAVE_DECL_REMAINDERL.
5885         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_REMAINDERL,
5886         not HAVE_REMAINDERL.
5887         * modules/math (Makefile.am): Substitute HAVE_DECL_REMAINDERL, not
5888         HAVE_REMAINDERL.
5889         * doc/posix-functions/remainderl.texi: Mention missing declaration
5890         problem.
5891
5892 2012-03-07  Bruno Haible  <bruno@clisp.org>
5893
5894         rintf: Don't override undeclared system function on IRIX 6.5.
5895         * lib/math.in.h (rintf): Test HAVE_DECL_RINTF, not HAVE_RINTF.
5896         * m4/rintf.m4 (gl_FUNC_RINTF): Don't assume rintf() is declared when it
5897         exists. Set HAVE_DECL_RINTF.
5898         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_RINTF, not
5899         HAVE_RINTF.
5900         * modules/math (Makefile.am): Substitute HAVE_DECL_RINTF, not
5901         HAVE_RINTF.
5902         * doc/posix-functions/rintf.texi: Mention missing declaration problem.
5903
5904 2012-03-07  Bruno Haible  <bruno@clisp.org>
5905
5906         roundl: Avoid compilation error on AIX.
5907         * lib/math.in.h (roundl): Undefine macro before declaration. Needed on
5908         AIX 5.2..7.1.
5909
5910 2012-03-07  Bruno Haible  <bruno@clisp.org>
5911
5912         roundl: Don't override undeclared system function on IRIX 6.5.
5913         * m4/roundl.m4 (gl_FUNC_ROUNDL): Search for roundl() in the libraries
5914         also when it is not declared. Set HAVE_ROUNDL. For replacement code,
5915         test HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
5916         * modules/roundl (configure.ac): For replacement code, test
5917         HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
5918         (Depends-on): Update conditions.
5919         * doc/posix-functions/roundl.texi: Mention the IRIX problem.
5920
5921 2012-03-07  Bruno Haible  <bruno@clisp.org>
5922
5923         roundf: Don't override undeclared system function on IRIX 6.5.
5924         * m4/roundf.m4 (gl_FUNC_ROUNDF): Search for roundf() in the libraries
5925         also when it is not declared. Set HAVE_ROUNDF. For replacement code,
5926         test HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
5927         * modules/roundf (configure.ac): For replacement code, test
5928         HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
5929         (Depends-on): Update conditions.
5930         * modules/roundf-ieee (Depends-on): Update conditions.
5931         * doc/posix-functions/roundf.texi: Mention the IRIX problem.
5932
5933 2012-03-07  Bruno Haible  <bruno@clisp.org>
5934
5935         round: Don't override undeclared system function on IRIX 6.5.
5936         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Accept an optional third
5937         argument.
5938         * m4/round.m4 (gl_FUNC_ROUND): Search for round() in the libraries
5939         also when it is not declared. Set HAVE_ROUND. For replacement code,
5940         test HAVE_ROUND, not HAVE_DECL_ROUND.
5941         * modules/round (configure.ac): For replacement code, test HAVE_ROUND,
5942         not HAVE_DECL_ROUND.
5943         (Depends-on): Update conditions.
5944         * modules/round-ieee (Depends-on): Update conditions.
5945         * doc/posix-functions/round.texi: Mention the IRIX problem.
5946
5947 2012-03-07  Bruno Haible  <bruno@clisp.org>
5948
5949         copysignf: Don't override undeclared system function on IRIX 6.5.
5950         * lib/math.in.h (copysignf): Test HAVE_DECL_COPYSIGNF, not
5951         HAVE_COPYSIGNF.
5952         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Don't assume copysignf() is
5953         declared when it exists. Set HAVE_DECL_COPYSIGNF.
5954         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_COPYSIGNF,
5955         not HAVE_COPYSIGNF.
5956         * modules/math (Makefile.am): Substitute HAVE_DECL_COPYSIGNF, not
5957         HAVE_COPYSIGNF.
5958         * doc/posix-functions/copysignf.texi: Mention missing declaration
5959         problem.
5960
5961 2012-03-07  Jim Meyering  <meyering@redhat.com>
5962
5963         readtokens: add tests
5964         * modules/readtokens-tests: New file.
5965         * tests/test-readtokens.c: New file.
5966
5967 2012-03-07  Jim Meyering  <meyering@redhat.com>
5968
5969         quotearg: the module must now include quote.h
5970         With commit v0.0-7133-g6417476, quotearg.c includes "quote.h".
5971         So must the module.
5972         * modules/quotearg (Files): Add quote.h.
5973
5974 2012-03-06  Paul Eggert  <eggert@cs.ucla.edu>
5975
5976         readtokens: avoid core dumps with unusual calling patterns
5977         Reported by Xu Zhongxing in <http://debbugs.gnu.org/10953>.
5978         * lib/readtokens.c: Include limits.h.
5979         (word, bits_per_word, get_nth_bit, set_nth_bit): New.
5980         (readtoken): Don't cache the delimiters; the cache code was buggy
5981         if !delim && saved_delim, or if the new n_delim differs from the old.
5982         Also, it wasn't thread-safe.
5983
5984 2012-03-07  Bruno Haible  <bruno@clisp.org>
5985
5986         quote: Adhere to common module description layout.
5987         * modules/quote (Makefile.am): Add back empty section.
5988
5989 2012-03-06  Akim Demaille  <demaille@gostai.com>
5990
5991         quote: fuse into quotearg
5992         This patch is made for the benefit of Bison.
5993         quote does not leave the choice of the quoting style to the user.
5994         quoting_style provides poor customizability, yet quoting_options,
5995         which is very rich, is hidden inside quotearg.c.  So in order to
5996         allow quote customization, move its implementation to quotearg.c.
5997         * lib/quote.c: Remove.
5998         * modules/quote: Adjust.
5999         * lib/quotearg.c (quoting_options_from_style): Fix a compiler
6000         warning: provide all the members of literal structs.
6001         (quote_quoting_options): New.
6002         (quote, quote_n): Import implementation from quote.c.
6003         * lib/quote.h: Import the comments from quote.c.
6004         (quote_quoting_options): New.
6005
6006 2012-03-06  Bruno Haible  <bruno@clisp.org>
6007
6008         Tests for module 'expm1l-ieee'.
6009         * modules/expm1l-ieee-tests: New file.
6010         * tests/test-expm1l-ieee.c: New file.
6011
6012         New module 'expm1l-ieee'.
6013         * modules/expm1l-ieee: New file.
6014
6015         Tests for module 'expm1f-ieee'.
6016         * modules/expm1f-ieee-tests: New file.
6017         * tests/test-expm1f-ieee.c: New file.
6018
6019         New module 'expm1f-ieee'.
6020         * modules/expm1f-ieee: New file.
6021
6022         Tests for module 'expm1-ieee'.
6023         * modules/expm1-ieee-tests: New file.
6024         * tests/test-expm1-ieee.c: New file.
6025         * tests/test-expm1-ieee.h: New file.
6026
6027         New module 'expm1-ieee'.
6028         * modules/expm1-ieee: New file.
6029         * m4/expm1-ieee.m4: New file.
6030         * m4/expm1.m4 (gl_FUNC_EXPM1): If gl_FUNC_EXPM1_IEEE is present, test
6031         whether expm1 works with a minus zero argument. Replace it if not.
6032         * lib/math.in.h (expm1): Override if REPLACE_EXPM1 is 1.
6033         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1.
6034         * modules/math (Makefile.am): Substitute REPLACE_EXPM1.
6035         * modules/expm1 (configure.ac): Consider REPLACE_EXPM1.
6036         (Depends-on): Update conditions.
6037         * doc/posix-functions/expm1.texi: Mention the expm1-ieee module and the
6038         AIX problem.
6039
6040 2012-03-06  Bruno Haible  <bruno@clisp.org>
6041
6042         Work around expm1f bug on IRIX 6.5.
6043         * lib/math.in.h (expm1f): Override if REPLACE_EXPM1F is 1.
6044         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): New macro.
6045         (gl_FUNC_EXPM1F): Invoke it. Set REPLACE_EXPM1F to 1 if expm1f() does
6046         not work.
6047         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1F.
6048         * modules/math (Makefile.am): Substitute REPLACE_EXPM1F.
6049         * modules/expm1f (configure.ac): Consider REPLACE_EXPM1F.
6050         (Depends-on): Update conditions.
6051         * doc/posix-functions/expm1f.texi: Mention the IRIX 6.5 bug.
6052
6053 2012-03-06  Bruno Haible  <bruno@clisp.org>
6054
6055         Tests for module 'expm1l'.
6056         * modules/expm1l-tests: New file.
6057         * tests/test-expm1l.c: New file.
6058
6059         New module 'expm1l'.
6060         * lib/math.in.h (expm1l): New declaration.
6061         * lib/expm1l.c: New file.
6062         * m4/expm1l.m4: New file.
6063         * m4/math_h.m4 (gl_MATH_H): Test whether expm1l is declared.
6064         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1L, HAVE_EXPM1L.
6065         * modules/math (Makefile.am): Substitute GNULIB_EXPM1L, HAVE_EXPM1L.
6066         * modules/expm1l: New file.
6067         * tests/test-math-c++.cc: Check the declaration of expm1l.
6068         * doc/posix-functions/expm1l.texi: Mention the new module.
6069
6070 2012-03-06  Bruno Haible  <bruno@clisp.org>
6071
6072         Tests for module 'expm1f'.
6073         * modules/expm1f-tests: New file.
6074         * tests/test-expm1f.c: New file.
6075
6076         New module 'expm1f'.
6077         * lib/math.in.h (expm1f): New declaration.
6078         * lib/expm1f.c: New file.
6079         * m4/expm1f.m4: New file.
6080         * m4/math_h.m4 (gl_MATH_H): Test whether expm1f is declared.
6081         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1F, HAVE_EXPM1F.
6082         * modules/math (Makefile.am): Substitute GNULIB_EXPM1F, HAVE_EXPM1F.
6083         * modules/expm1f: New file.
6084         * tests/test-math-c++.cc: Check the declaration of expm1f.
6085         * doc/posix-functions/expm1f.texi: Mention the new module.
6086
6087 2012-03-06  Bruno Haible  <bruno@clisp.org>
6088
6089         Tests for module 'expm1'.
6090         * modules/expm1-tests: New file.
6091         * tests/test-expm1.c: New file.
6092         * tests/test-expm1.h: New file.
6093
6094         New module 'expm1'.
6095         * lib/math.in.h (expm1): New declaration.
6096         * lib/expm1.c: New file.
6097         * m4/expm1.m4: New file.
6098         * m4/math_h.m4 (gl_MATH_H): Test whether expm1 is declared.
6099         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1, HAVE_EXPM1.
6100         * modules/math (Makefile.am): Substitute GNULIB_EXPM1, HAVE_EXPM1.
6101         * modules/expm1: New file.
6102         * tests/test-math-c++.cc: Check the declaration of expm1.
6103         * doc/posix-functions/expm1.texi: Mention the new module.
6104
6105 2012-03-06  Bruno Haible  <bruno@clisp.org>
6106
6107         math: Ensure declarations of math functions.
6108         * modules/acosf (Depends-on): Add 'extensions'.
6109         * modules/asinf (Depends-on): Likewise.
6110         * modules/atan2f (Depends-on): Likewise.
6111         * modules/atanf (Depends-on): Likewise.
6112         * modules/cbrt (Depends-on): Likewise.
6113         * modules/cbrtf (Depends-on): Likewise.
6114         * modules/cbrtl (Depends-on): Likewise.
6115         * modules/copysignf (Depends-on): Likewise.
6116         * modules/copysignl (Depends-on): Likewise.
6117         * modules/cosf (Depends-on): Likewise.
6118         * modules/coshf (Depends-on): Likewise.
6119         * modules/expf (Depends-on): Likewise.
6120         * modules/fabsf (Depends-on): Likewise.
6121         * modules/fabsl (Depends-on): Likewise.
6122         * modules/fmaf (Depends-on): Likewise.
6123         * modules/fmal (Depends-on): Likewise.
6124         * modules/fmodf (Depends-on): Likewise.
6125         * modules/fmodl (Depends-on): Likewise.
6126         * modules/frexpf (Depends-on): Likewise.
6127         * modules/frexpl (Depends-on): Likewise.
6128         * modules/hypot (Depends-on): Likewise.
6129         * modules/hypotf (Depends-on): Likewise.
6130         * modules/hypotl (Depends-on): Likewise.
6131         * modules/ldexpf (Depends-on): Likewise.
6132         * modules/ldexpl (Depends-on): Likewise.
6133         * modules/log10f (Depends-on): Likewise.
6134         * modules/log10l (Depends-on): Likewise.
6135         * modules/log1p (Depends-on): Likewise.
6136         * modules/logb (Depends-on): Likewise.
6137         * modules/logf (Depends-on): Likewise.
6138         * modules/modff (Depends-on): Likewise.
6139         * modules/modfl (Depends-on): Likewise.
6140         * modules/powf (Depends-on): Likewise.
6141         * modules/remainderf (Depends-on): Likewise.
6142         * modules/remainderl (Depends-on): Likewise.
6143         * modules/rintf (Depends-on): Likewise.
6144         * modules/rintl (Depends-on): Likewise.
6145         * modules/sinf (Depends-on): Likewise.
6146         * modules/sinhf (Depends-on): Likewise.
6147         * modules/sqrtf (Depends-on): Likewise.
6148         * modules/tanf (Depends-on): Likewise.
6149         * modules/tanhf (Depends-on): Likewise.
6150         * m4/acosf.m4 (gl_FUNC_ACOSF): Require gl_USE_SYSTEM_EXTENSIONS.
6151         * m4/asinf.m4 (gl_FUNC_ASINF): Likewise.
6152         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Likewise.
6153         * m4/atanf.m4 (gl_FUNC_ATANF): Likewise.
6154         * m4/cbrt.m4 (gl_FUNC_CBRT): Likewise.
6155         * m4/cbrtf.m4 (gl_FUNC_CBRTF): Likewise.
6156         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
6157         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Likewise.
6158         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Likewise.
6159         * m4/cosf.m4 (gl_FUNC_COSF): Likewise.
6160         * m4/coshf.m4 (gl_FUNC_COSHF): Likewise.
6161         * m4/expf.m4 (gl_FUNC_EXPF): Likewise.
6162         * m4/fabsf.m4 (gl_FUNC_FABSF): Likewise.
6163         * m4/fabsl.m4 (gl_FUNC_FABSL): Likewise.
6164         * m4/fmaf.m4 (gl_FUNC_FMAF): Likewise.
6165         * m4/fmal.m4 (gl_FUNC_FMAL): Likewise.
6166         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
6167         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
6168         * m4/frexpf.m4 (gl_FUNC_FREXPF): Likewise.
6169         * m4/frexpl.m4 (gl_FUNC_FREXPL): Likewise.
6170         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
6171         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
6172         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
6173         * m4/ldexpf.m4 (gl_FUNC_LDEXPF): Likewise.
6174         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
6175         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
6176         * m4/log10l.m4 (gl_FUNC_LOF10L): Likewise.
6177         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
6178         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
6179         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
6180         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
6181         * m4/powf.m4 (gl_FUNC_POWF): Likewise.
6182         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
6183         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
6184         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
6185         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
6186         * m4/sinf.m4 (gl_FUNC_SINF): Likewise.
6187         * m4/sinhf.m4 (gl_FUNC_SINHF): Likewise.
6188         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Likewise.
6189         * m4/tanf.m4 (gl_FUNC_TANF): Likewise.
6190         * m4/tanhf.m4 (gl_FUNC_TANHF): Likewise.
6191
6192 2012-03-06  Bruno Haible  <bruno@clisp.org>
6193
6194         math: Update module names in warnings.
6195         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
6196         tanl): Use specific module name in warn-on-use warning.
6197
6198 2012-03-06  Bruno Haible  <bruno@clisp.org>
6199
6200         expl: Simplify computation.
6201         * lib/expl.c (expl): Simplify computation of exp_y. Fix comment.
6202
6203 2012-03-05  Bruno Haible  <bruno@clisp.org>
6204
6205         exp* tests: More tests.
6206         * tests/test-exp.h: New file.
6207         * tests/test-exp.c: Include <float.h> and test-exp.h.
6208         (main): Invoke test_function.
6209         * tests/test-expf.c: Include <float.h> and test-exp.h.
6210         (main): Invoke test_function.
6211         * tests/test-expl.c: Include <float.h> and test-exp.h.
6212         (main): Invoke test_function.
6213         * modules/exp-tests (Files): Add tests/test-exp.h, tests/randomd.c.
6214         (Makefile.am): Add randomd.c to test_exp_SOURCES.
6215         * modules/expf-tests (Files): Add tests/test-exp.h, tests/randomf.c.
6216         (Makefile.am): Add randomf.c to test_expf_SOURCES.
6217         * modules/expl-tests (Files): Add tests/test-exp.h, tests/randoml.c.
6218         (Depends-on): Add 'float'.
6219         (Makefile.am): Add randoml.c to test_expl_SOURCES.
6220
6221         expl: Fix precision of computed result.
6222         * lib/expl.c: Completely rewritten.
6223         * modules/expl (Depends-on): Add isnanl, roundl, ldexpl. Remove floorl.
6224         (Maintainer): Add me.
6225         * m4/expl.m4 (gl_FUNC_EXPL): Update computation of EXPL_LIBM.
6226
6227 2012-03-05  Bruno Haible  <bruno@clisp.org>
6228
6229         cbrt* tests: More tests.
6230         * tests/test-cbrt.h: New file.
6231         * tests/test-cbrt.c: Include <float.h> and test-cbrt.h.
6232         (main): Invoke test_function.
6233         * tests/test-cbrtf.c: Include <float.h> and test-cbrt.h.
6234         (main): Invoke test_function.
6235         * tests/test-cbrtl.c: Include <float.h> and test-cbrt.h.
6236         (main): Invoke test_function.
6237         * modules/cbrt-tests (Files): Add tests/test-cbrt.h, tests/randomd.c.
6238         (Makefile.am): Add randomd.c to test_cbrt_SOURCES.
6239         * modules/cbrtf-tests (Files): Add tests/test-cbrt.h, tests/randomf.c.
6240         (Makefile.am): Add randomf.c to test_cbrtf_SOURCES.
6241         * modules/cbrtl-tests (Files): Add tests/test-cbrt.h, tests/randoml.c.
6242         (Depends-on): Add 'float'.
6243         (Makefile.am): Add randoml.c to test_cbrtl_SOURCES.
6244
6245 2012-03-05  Bruno Haible  <bruno@clisp.org>
6246
6247         hypot* tests: More tests.
6248         * tests/test-hypot.h: New file, partially extracted from
6249         tests/test-hypotl.c.
6250         * tests/test-hypot.c: Include test-hypot.h.
6251         (main): Invoke test_function.
6252         * tests/test-hypotf.c: Include test-hypot.h.
6253         (main): Invoke test_function.
6254         * tests/test-hypotl.c: Include fpucw.h and test-hypot.h.
6255         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING and test_function.
6256         * modules/hypot-tests (Files): Add tests/test-hypot.h, tests/randomd.c.
6257         (Makefile.am): Add randomd.c to test_hypot_SOURCES.
6258         * modules/hypotf-tests (Files): Add tests/test-hypot.h,
6259         tests/randomf.c.
6260         (Makefile.am): Add randomf.c to test_hypotf_SOURCES.
6261         * modules/hypotl-tests (Files): Add tests/test-hypot.h,
6262         tests/randoml.c.
6263         (Depends-on): Add 'fpucw', 'float'.
6264         (Makefile.am): Add randoml.c to test_hypotl_SOURCES.
6265
6266 2012-03-05  Bruno Haible  <bruno@clisp.org>
6267
6268         fpucw: Doc about FreeBSD.
6269         * lib/fpucw.h: Mention FreeBSD in comments.
6270
6271 2012-03-04  Bruno Haible  <bruno@clisp.org>
6272
6273         sqrt* tests: More tests.
6274         * tests/test-sqrt.h: New file.
6275         * tests/test-sqrt.c: Include <float.h> and test-sqrt.h.
6276         (main): Invoke test_function.
6277         * tests/test-sqrtf.c: Include <float.h> and test-sqrt.h.
6278         (main): Invoke test_function.
6279         * tests/test-sqrtl.c: Include <float.h> and test-sqrt.h.
6280         (main): Invoke test_function.
6281         * modules/sqrt-tests (Files): Add tests/test-sqrt.h, tests/randomd.c.
6282         (Makefile.am): Add randomd.c to test_sqrt_SOURCES.
6283         * modules/sqrtf-tests (Files): Add tests/test-sqrt.h, tests/randomf.c.
6284         (Makefile.am): Add randomf.c to test_sqrtf_SOURCES.
6285         * modules/sqrtl-tests (Files): Add tests/test-sqrt.h, tests/randoml.c.
6286         (Depends-on): Add 'float'.
6287         (Makefile.am): Add randoml.c to test_sqrtl_SOURCES.
6288
6289 2012-03-04  Bruno Haible  <bruno@clisp.org>
6290
6291         remainder* tests: More tests.
6292         * tests/test-remainder.h: New file, based on tests/test-fmod.h.
6293         * tests/test-remainder.c: Include <float.h> and test-remainder.h.
6294         (main): Invoke test_function.
6295         * tests/test-remainderf.c: Include <float.h> and test-remainder.h.
6296         (main): Invoke test_function.
6297         * tests/test-remainderl.c: Include <float.h> and test-remainder.h.
6298         (main): Invoke test_function.
6299         * modules/remainder-tests (Files): Add tests/test-remainder.h,
6300         tests/randomd.c.
6301         (Makefile.am): Add randomd.c to test_remainder_SOURCES.
6302         * modules/remainderf-tests (Files): Add tests/test-remainder.h,
6303         tests/randomf.c.
6304         (Makefile.am): Add randomf.c to test_remainderf_SOURCES.
6305         * modules/remainderl-tests (Files): Add tests/test-remainder.h,
6306         tests/randoml.c.
6307         (Depends-on): Add 'float'.
6308         (Makefile.am): Add randoml.c to test_remainderl_SOURCES.
6309
6310 2012-03-04  Bruno Haible  <bruno@clisp.org>
6311
6312         remainder, remainderf, remainderl: Fix computation for large quotients.
6313         * lib/remainder.c: Completely rewritten.
6314         * lib/remainderf.c (remainderf): Use implementation of remainder.c with
6315         USE_FLOAT.
6316         * lib/remainderl.c (remainderl): Use implementation of remainder.c with
6317         USE_LONG_DOUBLE.
6318         * modules/remainder (Depends-on): Add isfinite, signbit, fabs, fmod,
6319         isnand, isinf. Remove round, fma.
6320         * modules/remainderf (Files): Add lib/remainder.c.
6321         (Depends-on): Add isfinite, signbit, fabsf, fmodf, isnanf, isinf.
6322         Remove roundf, fmaf.
6323         * modules/remainderl (Files): Add lib/remainder.c.
6324         (Depends-on): Add float, isfinite, signbit, fabsl, fmodl, isnanl,
6325         isinf. Remove roundl, fmal.
6326         * m4/remainder.m4 (gl_FUNC_REMAINDER): Update computation of
6327         REMAINDER_LIBM.
6328         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Update computation of
6329         REMAINDERF_LIBM.
6330         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Update computation of
6331         REMAINDERL_LIBM.
6332
6333 2012-03-04  Bruno Haible  <bruno@clisp.org>
6334
6335         fmod* tests: More tests.
6336         * tests/test-fmod.h (my_ldexp): New function.
6337         (test_function): Reduce amount of random numbers to test. Add tests
6338         of very large quotients x / y.
6339         * tests/test-fmod.c (MAX_EXP): New macro.
6340         * tests/test-fmodf.c (MAX_EXP): Likewise.
6341         * tests/test-fmodl.c (MAX_EXP): Likewise.
6342
6343 2012-03-04  Bruno Haible  <bruno@clisp.org>
6344
6345         fmod, fmodl: Fix computation for large quotients x / y.
6346         * lib/fmod.c: Completely rewritten.
6347         * lib/fmodl.c (fmodl): Use implementation of fmod.c with
6348         USE_LONG_DOUBLE.
6349         * modules/fmod (Depends-on): Add isfinite, signbit, fabs, frexp, ldexp,
6350         isnand. Remove fma.
6351         * modules/fmodl (Files): Add lib/fmod.c.
6352         (Depends-on): Add float, isfinite, signbit, fabsl,
6353         frexpl, ldexpl, isnanl. Remove fma.
6354         * m4/fmod.m4 (gl_FUNC_FMOD): Update computation of FMOD_LIBM.
6355         * m4/fmodl.m4 (gl_FUNC_FMODL): Update computation of FMODL_LIBM.
6356
6357 2012-03-03  Bruno Haible  <bruno@clisp.org>
6358
6359         fmod* tests: More tests.
6360         * tests/test-fmod.h: New file.
6361         * tests/test-fmod.c: Include <float.h> and test-fmod.h.
6362         (main): Invoke test_function.
6363         * tests/test-fmodf.c: Include <float.h> and test-fmod.h.
6364         (main): Invoke test_function.
6365         * tests/test-fmodl.c: Include <float.h> and test-fmod.h.
6366         (main): Invoke test_function.
6367         * modules/fmod-tests (Files): Add tests/test-fmod.h, tests/randomd.c.
6368         (Makefile.am): Add randomd.c to test_fmod_SOURCES.
6369         * modules/fmodf-tests (Files): Add tests/test-fmod.h, tests/randomf.c.
6370         (Makefile.am): Add randomf.c to test_fmodf_SOURCES.
6371         * modules/fmodl-tests (Files): Add tests/test-fmod.h, tests/randoml.c.
6372         (Depends-on): Add 'float'.
6373         (Makefile.am): Add randoml.c to test_fmodl_SOURCES.
6374
6375 2012-03-03  Bruno Haible  <bruno@clisp.org>
6376
6377         rint* tests: More tests.
6378         * tests/test-rint.h: New file, partially extracted from
6379         tests/test-rintl.c.
6380         * tests/test-rint.c: Include test-rint.h.
6381         (main): Invoke test_function.
6382         * tests/test-rintf.c: Include test-rint.h.
6383         (main): Invoke test_function.
6384         * tests/test-rintl.c: Include test-rint.h.
6385         (main): Invoke test_function.
6386         * modules/rint-tests (Files): Add tests/test-rint.h, tests/randomd.c.
6387         (Makefile.am): Add randomd.c to test_rint_SOURCES.
6388         * modules/rintf-tests (Files): Add tests/test-rint.h, tests/randomf.c.
6389         (Makefile.am): Add randomf.c to test_rintf_SOURCES.
6390         * modules/rintl-tests (Files): Add tests/test-rint.h, tests/randoml.c.
6391         (Makefile.am): Add randoml.c to test_rintl_SOURCES.
6392
6393 2012-03-03  Bruno Haible  <bruno@clisp.org>
6394
6395         modf* tests: More tests.
6396         * tests/test-modf.h: New file.
6397         * tests/test-modf.c: Include <float.h> and test-modf.h.
6398         (main): Invoke test_function.
6399         * tests/test-modff.c: Include <float.h> and test-modf.h.
6400         (main): Invoke test_function.
6401         * tests/test-modfl.c: Include <float.h> and test-modf.h.
6402         (main): Invoke test_function.
6403         * modules/modf-tests (Files): Add tests/test-modf.h, tests/randomd.c.
6404         (Makefile.am): Add randomd.c to test_modf_SOURCES.
6405         * modules/modff-tests (Files): Add tests/test-modf.h, tests/randomf.c.
6406         (Makefile.am): Add randomf.c to test_modff_SOURCES.
6407         * modules/modfl-tests (Files): Add tests/test-modf.h, tests/randoml.c.
6408         (Depends-on): Add 'float'.
6409         (Makefile.am): Add randoml.c to test_modfl_SOURCES.
6410
6411 2012-03-03  Bruno Haible  <bruno@clisp.org>
6412
6413         fabs* tests: More tests.
6414         * tests/test-fabs.h: New file, partially extracted from
6415         tests/test-fabsl.c.
6416         * tests/test-fabs.c (RANDOM): New macro.
6417         * tests/test-fabsf.c (RANDOM): New macro.
6418         * tests/test-fabsl.c (RANDOM): New macro.
6419         * modules/fabs-tests (Files): Add tests/randomd.c.
6420         (Makefile.am): Add randomd.c to test_fabs_SOURCES.
6421         * modules/fabsf-tests (Files): Add tests/randomf.c.
6422         (Makefile.am): Add randomf.c to test_fabsf_SOURCES.
6423         * modules/fabsl-tests (Files): Add tests/randoml.c.
6424         (Makefile.am): Add randoml.c to test_fabsl_SOURCES.
6425
6426 2012-03-03  Bruno Haible  <bruno@clisp.org>
6427
6428         ldexp* tests: More tests.
6429         * tests/test-ldexp.h (test_function): Add some pseudo-randomized tests.
6430         * tests/test-ldexp.c (RANDOM): New macro.
6431         * tests/test-ldexpf.c (RANDOM): New macro.
6432         * tests/test-ldexpl.c (RANDOM): New macro.
6433         * modules/ldexp-tests (Files): Add tests/randomd.c.
6434         (Makefile.am): Add randomd.c to test_ldexp_SOURCES.
6435         * modules/ldexpf-tests (Files): Add tests/randomf.c.
6436         (Makefile.am): Add randomf.c to test_ldexpf_SOURCES.
6437         * modules/ldexpl-tests (Files): Add tests/randoml.c.
6438         (Makefile.am): Add randoml.c to test_ldexpl_SOURCES.
6439
6440 2012-03-03  Bruno Haible  <bruno@clisp.org>
6441
6442         frexp* tests: More tests.
6443         * tests/test-frexp.h (test_function): Add some pseudo-randomized tests.
6444         * tests/test-frexp.c (RANDOM): New macro.
6445         * tests/test-frexpf.c (RANDOM): New macro.
6446         * tests/test-frexpl.c (RANDOM): New macro.
6447         * modules/frexp-tests (Files): Add tests/randomd.c.
6448         (Makefile.am): Add randomd.c to test_frexp_SOURCES.
6449         * modules/frexpf-tests (Files): Add tests/randomf.c.
6450         (Makefile.am): Add randomf.c to test_frexpf_SOURCES.
6451         * modules/frexpl-tests (Files): Add tests/randoml.c.
6452         (Makefile.am): Add randoml.c to test_frexpl_SOURCES.
6453
6454 2012-03-03  Bruno Haible  <bruno@clisp.org>
6455
6456         Support for pseudo-random numbers in tests.
6457         * tests/randomf.c: New file.
6458         * tests/randomd.c: New file.
6459         * tests/randoml.c: New file.
6460         * tests/macros.h (randomf, randomd, randoml): New declarations.
6461
6462 2012-03-03  Bruno Haible  <bruno@clisp.org>
6463
6464         frexp* tests: Refactor.
6465         * tests/test-frexp.h: New file, extracted from tests/test-frexpl.c.
6466         * tests/test-frexp.c: Include and use it.
6467         * tests/test-frexpf.c: Likewise.
6468         * tests/test-frexpl.c: Likewise.
6469         * modules/frexp-tests (Files): Add tests/test-frexp.h.
6470         * modules/frexpf-tests (Files): Likewise.
6471         * modules/frexpl-tests (Files): Likewise.
6472
6473 2012-03-02  Jim Meyering  <meyering@redhat.com>
6474
6475         maint: don't specify XZ_OPT=-9ev in dist-related rule
6476         Using xz's -9 option is warranted only if you have a very large
6477         tarball (see xz's documentation for the sizes vs. presets), and
6478         requires 64MiB of memory at decompression time.
6479         * top/maint.mk (alpha beta stable): Don't specify XZ_OPT=-9ev.
6480         Automake's default of just "-e" is fine.  Override on a
6481         per-package basis by setting XZ_OPT e.g., in cfg.mk.
6482
6483 2012-03-01  Eric Blake  <eblake@redhat.com>
6484
6485         maint.mk: allow announcement for non-gnulib project
6486         * maint.mk (announcement): Skip gnulib version if not used.
6487
6488 2012-03-01  Jim Meyering  <meyering@redhat.com>
6489
6490         maint.mk: avoid spurious failure of _sc_search_regexp-using tests
6491         * top/maint.mk: Initialize _sc_search_regexp parameters, so that
6492         envvar settings cannot interfere.  Otherwise, setting envvars like
6493         prohibit=foo require=bar, etc. would cause spurious test failures.
6494
6495 2012-03-01  Eric Blake  <eblake@redhat.com>
6496
6497         maint.mk: add per-line exclusions to prohibitions
6498         * maint.mk (_sc_search_regexp): Add $exclude parameter.
6499         (sc_prohibit_strcmp, sc_unmarked_diagnostics)
6500         (sc_const_long_option): Use it.
6501
6502 2012-03-01  Bruno Haible  <bruno@clisp.org>
6503
6504         Tests for module 'expl-ieee'.
6505         * modules/expl-ieee-tests: New file.
6506         * tests/test-expl-ieee.c: New file.
6507
6508         New module 'expl-ieee'.
6509         * modules/expl-ieee: New file.
6510
6511         Tests for module 'exp-ieee'.
6512         * modules/exp-ieee-tests: New file.
6513         * tests/test-exp-ieee.c: New file.
6514
6515         New module 'exp-ieee'.
6516         * modules/exp-ieee: New file.
6517
6518         Tests for module 'expf-ieee'.
6519         * modules/expf-ieee-tests: New file.
6520         * tests/test-expf-ieee.c: New file.
6521         * tests/test-exp-ieee.h: New file.
6522
6523         New module 'expf-ieee'.
6524         * modules/expf-ieee: New file.
6525
6526 2012-02-29  Bruno Haible  <bruno@clisp.org>
6527
6528         cbrtl-ieee: Work around test failure on IRIX 6.5.
6529         * m4/cbrtl-ieee.m4: New file.
6530         * m4/cbrtl.m4 (gl_FUNC_CBRTL): If gl_FUNC_CBRTL_IEEE is present,
6531         test whether cbrtl works with a minus zero argument. Replace it if not.
6532         * lib/math.in.h (cbrtl): Override if REPLACE_CBRTL is 1.
6533         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTL.
6534         * modules/math (Makefile.am): Substitute REPLACE_CBRTL.
6535         * modules/cbrtl (configure.ac): Consider REPLACE_CBRTL.
6536         (Depends-on): Update conditions.
6537         * modules/cbrtl-ieee (Files): Add m4/cbrtl-ieee.m4, m4/minus-zero.m4,
6538         m4/signbit.m4.
6539         (configure.ac): Invoke gl_FUNC_CBRTL_IEEE.
6540         * lib/cbrtl.c (cbrtl) [IRIX]: Avoid an unnecessary addition.
6541         * doc/posix-functions/cbrtl.texi: Mention the cbrtl-ieee module.
6542
6543         Tests for module 'cbrtl-ieee'.
6544         * modules/cbrtl-ieee-tests: New file.
6545         * tests/test-cbrtl-ieee.c: New file.
6546
6547         New module 'cbrtl-ieee'.
6548         * modules/cbrtl-ieee: New file.
6549
6550         Tests for module 'cbrt-ieee'.
6551         * modules/cbrt-ieee-tests: New file.
6552         * tests/test-cbrt-ieee.c: New file.
6553
6554         New module 'cbrt-ieee'.
6555         * modules/cbrt-ieee: New file.
6556
6557         Tests for module 'cbrtf-ieee'.
6558         * modules/cbrtf-ieee-tests: New file.
6559         * tests/test-cbrtf-ieee.c: New file.
6560         * tests/test-cbrt-ieee.h: New file.
6561
6562         New module 'cbrtf-ieee'.
6563         * modules/cbrtf-ieee: New file.
6564
6565 2012-02-29  Bruno Haible  <bruno@clisp.org>
6566
6567         cbrtf: Work around bug in IRIX 6.5 system function.
6568         * lib/math.in.h (cbrtf): Override if REPLACE_CBRTF is 1.
6569         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): New macro.
6570         (gl_FUNC_CBRTF): Invoke it. Set REPLACE_CBRTF to 1 if cbrtf() does not
6571         work.
6572         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTF.
6573         * modules/math (Makefile.am): Substitute REPLACE_CBRTF.
6574         * modules/cbrtf (configure.ac): Consider REPLACE_CBRTF.
6575         (Depends-on): Update conditions.
6576         * doc/posix-functions/cbrtf.texi: Mention the IRIX 6.5 problem.
6577
6578 2012-02-29  Bruno Haible  <bruno@clisp.org>
6579
6580         Tests for module 'cbrtl'.
6581         * modules/cbrtl-tests: New file.
6582         * tests/test-cbrtl.c: New file.
6583
6584         New module 'cbrtl'.
6585         * lib/math.in.h (cbrtl): New declaration.
6586         * lib/cbrtl.c: New file.
6587         * m4/cbrtl.m4: New file.
6588         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtl is declared.
6589         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTL, HAVE_CBRTL,
6590         HAVE_DECL_CBRTL.
6591         * modules/math (Makefile.am): Substitute GNULIB_CBRTL, HAVE_CBRTL,
6592         HAVE_DECL_CBRTL.
6593         * modules/cbrtl: New file.
6594         * tests/test-math-c++.cc: Check the declaration of cbrtl.
6595         * doc/posix-functions/cbrtl.texi: Mention the new module.
6596
6597 2012-02-29  Bruno Haible  <bruno@clisp.org>
6598
6599         Tests for module 'cbrtf'.
6600         * modules/cbrtf-tests: New file.
6601         * tests/test-cbrtf.c: New file.
6602
6603         New module 'cbrtf'.
6604         * lib/math.in.h (cbrtf): New declaration.
6605         * lib/cbrtf.c: New file.
6606         * m4/cbrtf.m4: New file.
6607         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtf is declared.
6608         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTF, HAVE_CBRTF,
6609         HAVE_DECL_CBRTF.
6610         * modules/math (Makefile.am): Substitute GNULIB_CBRTF, HAVE_CBRTF,
6611         HAVE_DECL_CBRTF.
6612         * modules/cbrtf: New file.
6613         * tests/test-math-c++.cc: Check the declaration of cbrtf.
6614         * doc/posix-functions/cbrtf.texi: Mention the new module.
6615
6616 2012-02-29  Bruno Haible  <bruno@clisp.org>
6617
6618         cbrt: Provide replacement on MSVC and Minix.
6619         * lib/math.in.h (cbrt): New declaration.
6620         * lib/cbrt.c: New file.
6621         * m4/cbrt.m4: New file.
6622         * m4/math_h.m4 (gl_MATH_H): Test whether cbrt is declared.
6623         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRT, HAVE_CBRT.
6624         * modules/math (Makefile.am): Substitute GNULIB_CBRT, HAVE_CBRT.
6625         * modules/cbrt (Files): Add lib/cbrt.c, m4/cbrt.m4.
6626         (Depends-on): Add dependencies.
6627         (configure.ac): Arrange to compile replacement if HAVE_CBRT is 0.
6628         * tests/test-math-c++.cc: Check the declaration of cbrt.
6629         * doc/posix-functions/cbrt.texi: Mention that the module provides a
6630         replacement.
6631
6632 2012-02-29  Bruno Haible  <bruno@clisp.org>
6633
6634         hypotl-ieee: Work around test failure on OSF/1 and native Windows.
6635         * m4/hypotl-ieee.m4: New file.
6636         * m4/hypotl.m4 (gl_FUNC_HYPOTL): If gl_FUNC_HYPOTL_IEEE is present,
6637         test whether hypotl works with mixed NaN and Infinity arguments.
6638         Replace it if not.
6639         * lib/math.in.h (hypotl): Override if REPLACE_HYPOTL is 1.
6640         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_HYPOTL.
6641         * modules/math (Makefile.am): Substitute REPLACE_HYPOTL.
6642         * modules/hypotl (configure.ac): Consider REPLACE_HYPOTL.
6643         (Depends-on): Update conditions.
6644         * modules/hypotl-ieee (Files): Add m4/hypotl-ieee.m4.
6645         (Depends-on): Add hypot-ieee.
6646         (configure.ac): Invoke gl_FUNC_HYPOTL_IEEE.
6647         * doc/posix-functions/hypotl.texi: Mention the hypotl-ieee module.
6648
6649         hypotf-ieee: Work around test failure on OSF/1 and native Windows.
6650         * m4/hypotf-ieee.m4: New file.
6651         * m4/hypotf.m4 (gl_FUNC_HYPOTF): If gl_FUNC_HYPOTF_IEEE is present,
6652         test whether hypotf works with mixed NaN and Infinity arguments.
6653         Replace it if not.
6654         * modules/hypotf-ieee (Files): Add m4/hypotf-ieee.m4.
6655         (Depends-on): Add hypot-ieee.
6656         (configure.ac): Invoke gl_FUNC_HYPOTF_IEEE.
6657         * doc/posix-functions/hypotf.texi: Mention the hypotf-ieee module.
6658
6659         hypot-ieee: Work around test failure on OSF/1 and native Windows.
6660         * lib/math.in.h (hypot): New declaration.
6661         * lib/hypot.c: New file.
6662         * m4/hypot-ieee.m4: New file.
6663         * m4/hypot.m4 (gl_FUNC_HYPOT): If gl_FUNC_HYPOT_IEEE is present, test
6664         whether hypot works with mixed NaN and Infinity arguments. Replace it
6665         if not.
6666         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOT,
6667         REPLACE_HYPOT.
6668         * modules/math (Makefile.am): Substitute GNULIB_HYPOT, REPLACE_HYPOT.
6669         * modules/hypot (Files): Add lib/hypot.c.
6670         (Depends-on): Add dependencies.
6671         (configure.ac): Arrange to compile replacement if REPLACE_HYPOT is 1.
6672         * modules/hypot-ieee (Files): Add m4/hypot-ieee.m4.
6673         (configure.ac): Invoke gl_FUNC_HYPOT_IEEE.
6674         * tests/test-math-c++.cc: Check the declaration of hypot.
6675         * doc/posix-functions/hypot.texi: Mention the hypot-ieee module.
6676
6677         Tests for module 'hypotl-ieee'.
6678         * modules/hypotl-ieee-tests: New file.
6679         * tests/test-hypotl-ieee.c: New file.
6680
6681         New module 'hypotl-ieee'.
6682         * modules/hypotl-ieee: New file.
6683
6684         Tests for module 'hypot-ieee'.
6685         * modules/hypot-ieee-tests: New file.
6686         * tests/test-hypot-ieee.c: New file.
6687
6688         New module 'hypot-ieee'.
6689         * modules/hypot-ieee: New file.
6690
6691         Tests for module 'hypotf-ieee'.
6692         * modules/hypotf-ieee-tests: New file.
6693         * tests/test-hypotf-ieee.c: New file.
6694         * tests/test-hypot-ieee.h: New file.
6695
6696         New module 'hypotf-ieee'.
6697         * modules/hypotf-ieee: New file.
6698
6699 2012-02-29  Bruno Haible  <bruno@clisp.org>
6700
6701         Remove unused variables.
6702         * m4/fmod.m4 (gl_FUNC_FMOD): Remove unused variable 'i'.
6703         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
6704         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
6705         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
6706
6707 2012-02-29  Eric Blake  <eblake@redhat.com>
6708
6709         termios: fix pid_t always, not just for tcgetsid
6710         * doc/posix-headers/termios.texi (termios.h): Mention problem.
6711         * lib/termios.in.h (include): Ensure pid_t on all platforms, not
6712         just when building tcgetsid.
6713
6714 2012-02-29  Bruno Haible  <bruno@clisp.org>
6715
6716         Tests for module 'hypotl'.
6717         * modules/hypotl-tests: New file.
6718         * tests/test-hypotl.c: New file.
6719
6720         New module 'hypotl'.
6721         * lib/math.in.h (hypotl): New declaration.
6722         * lib/hypotl.c: New file.
6723         * m4/hypotl.m4: New file.
6724         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
6725         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTL, HAVE_HYPOTL.
6726         * modules/math (Makefile.am): Substitute GNULIB_HYPOTL, HAVE_HYPOTL.
6727         * modules/hypotl: New file.
6728         * tests/test-math-c++.cc: Check the hypotl declaration.
6729         * doc/posix-functions/hypotl.texi: Mention the new module.
6730
6731 2012-02-29  Eric Blake  <eblake@redhat.com>
6732
6733         tcgetsid: fix cygwin header bug
6734         * lib/termios.in.h (includes) [Cygwin]: Ensure pid_t is defined.
6735
6736         docs: update cygwin progress
6737         * doc/posix-functions/llround.texi (llround): Added in cygwin
6738         1.7.8.
6739         * doc/posix-functions/llroundf.texi (llroundf): Likewise.
6740         * doc/glibc-functions/program_invocation_name.texi
6741         (program_invocation_name): Likewise.
6742         * doc/glibc-functions/program_invocation_short_name.texi
6743         (program_invocation_short_name): Likewise.
6744         * doc/glibc-functions/madvise.texi (madvise): Likewise.
6745         * doc/glibc-functions/pthread_yield.texi (pthread_yield):
6746         Likewise.
6747         * doc/posix-functions/pthread_spin_destroy.texi
6748         (pthread_spin_destroy): Added in cygwin 1.7.10.
6749         * doc/posix-functions/pthread_spin_init.texi (pthread_spin_init):
6750         Likewise.
6751         * doc/posix-functions/pthread_spin_lock.texi (pthread_spin_lock):
6752         Likewise.
6753         * doc/posix-functions/pthread_spin_trylock.texi
6754         (pthread_spin_trylock): Likewise.
6755         * doc/posix-functions/pthread_spin_unlock.texi
6756         (pthread_spin_unlock): Likewise.
6757         * doc/posix-functions/pthread_setschedprio.texi
6758         (pthread_setschedprio): Likewise.
6759         * doc/posix-functions/pthread_attr_getstack.texi
6760         (pthread_attr_getstack): Likewise.
6761         * doc/pastposix-functions/pthread_attr_getstackaddr.texi
6762         (pthread_attr_getstackaddr): Likewise.
6763         * doc/glibc-functions/pthread_getattr_np.texi
6764         (pthread_getattr_np): Likewise.
6765         * doc/glibc-functions/sys_siglist.texi (sys_siglist): Likewise.
6766         * doc/glibc-functions/sysinfo.texi (sysinfo): Likewise.
6767         * doc/posix-functions/clock_settime.texi (clock_settime):
6768         Likewise.
6769         * doc/posix-functions/pthread_attr_getguardsize.texi
6770         (pthread_attr_getguardsize): Likewise.
6771         * doc/posix-functions/pthread_attr_setguardsize.texi
6772         (pthread_attr_setguardsize): Likewise.
6773         * doc/posix-functions/pthread_attr_setstack.texi
6774         (pthread_attr_setstack): Likewise.
6775         * doc/pastposix-functions/pthread_attr_setstackaddr.texi
6776         (pthread_attr_setstackaddr): Likewise.
6777         * doc/posix-functions/clock_getcpuclockid.texi
6778         (clock_getcpuclockid): Likewise.
6779         * doc/posix-functions/pthread_getcpuclockid.texi
6780         (pthread_getcpuclockid): Likewise.
6781         * doc/glibc-functions/error.texi (error): Likewise.
6782         * doc/glibc-functions/error_at_line.texi (error_at_line):
6783         Likewise.
6784         * doc/glibc-functions/error_message_count.texi
6785         (error_message_count): Likewise.
6786         * doc/glibc-functions/error_one_per_line.texi
6787         (error_one_per_line): Likewise.
6788         * doc/glibc-functions/error_print_progname.texi
6789         (error_print_progname): Likewise.
6790         * doc/posix-functions/pthread_condattr_getclock.texi
6791         (pthread_condattr_getclock): Likewise.
6792         * doc/posix-functions/pthread_condattr_setclock.texi
6793         (pthread_condattr_setclock): Likewise.
6794         * doc/posix-functions/clock_nanosleep.texi (clock_nanosleep):
6795         Likewise.
6796         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Likewise.
6797         * doc/glibc-functions/getpt.texi (getpt): Likewise.
6798         * doc/glibc-functions/get_current_dir_name.texi
6799         (get_current_dir_name): Likewise.
6800         * doc/glibc-functions/pthread_sigqueue.texi (pthread_sigqueue):
6801         Likewise.
6802         * doc/posix-functions/tcgetsid.texi (tcgetsid): Likewise, but with
6803         wrong return type.
6804         * doc/glibc-functions/scandirat.texi (scandirat): Added in cygwin
6805         1.7.11.
6806
6807 2012-02-29  Bruno Haible  <bruno@clisp.org>
6808
6809         Tests for module 'hypotf'.
6810         * modules/hypotf-tests: New file.
6811         * tests/test-hypotf.c: New file.
6812
6813         New module 'hypotf'.
6814         * lib/math.in.h (hypotf): New declaration.
6815         * lib/hypotf.c: New file.
6816         * m4/hypotf.m4: New file.
6817         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
6818         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTF, HAVE_HYPOTF,
6819         REPLACE_HYPOTF.
6820         * modules/math (Makefile.am): Substitute GNULIB_HYPOTF, HAVE_HYPOTF,
6821         REPLACE_HYPOTF.
6822         * modules/hypotf: New file.
6823         * tests/test-math-c++.cc: Check the hypotf declaration.
6824         * doc/posix-functions/hypotf.texi: Mention the new module.
6825
6826         hypot: Prepare for hypotf module.
6827         * m4/hypot.m4: New file.
6828         * modules/hypot (Files): Add m4/hypot.m4.
6829         (configure.ac): Invoke gl_FUNC_HYPOT.
6830
6831 2012-02-29  Bruno Haible  <bruno@clisp.org>
6832
6833         hypot tests: More tests.
6834         * tests/test-hypot.c: Include <float.h>.
6835         (main): Add tests about overflow and underflow.
6836
6837 2012-02-29  Bruno Haible  <bruno@clisp.org>
6838
6839         math code: Add comments.
6840         * lib/acosl.c: Add comment about related glibc source files.
6841         * lib/asinl.c: Likewise.
6842         * lib/atanl.c: Likewise.
6843         * lib/expl.c: Likewise.
6844         * lib/logl.c: Likewise.
6845         * lib/sincosl.c: Likewise.
6846         * lib/sinl.c: Likewise.
6847         * lib/tanl.c: Likewise.
6848         * lib/trigl.c: Likewise.
6849         * lib/cosl.c: Likewise. Fix comments.
6850
6851 2012-02-28  Bruno Haible  <bruno@clisp.org>
6852
6853         math: Ensure HUGE_VAL, HUGE_VALF, HUGE_VALL are defined.
6854         * lib/math.in.h (HUGE_VAL, HUGE_VALF, HUGE_VALL): Define fallbacks.
6855         * tests/test-math.c: Include macros.h. Check that HUGE_VAL, HUGE_VALF,
6856         HUGE_VALL are defined.
6857         (numeric_equald): Renamed from numeric_equal.
6858         (numeric_equalf, numeric_equall): New functions.
6859         (main): Check also HUGE_VALF, HUGE_VALL.
6860         * modules/math-tests (Files): Add tests/macros.h.
6861         * doc/posix-headers/math.texi: Document the problems with HUGE_VALF and
6862         HUGE_VALL.
6863
6864 2012-02-28  Bruno Haible  <bruno@clisp.org>
6865
6866         doc: Move ISO C11 feature notes into POSIX chapters.
6867         * doc/posix-functions/aligned_alloc.texi: Renamed from
6868         doc/glibc-functions/aligned_alloc.texi.
6869         * doc/posix-functions/quick_exit.texi: Renamed from
6870         doc/glibc-functions/quick_exit.texi.
6871         * doc/posix-headers/uchar.texi: Renamed from
6872         doc/glibc-headers/uchar.texi.
6873         * doc/posix-functions/c16rtomb.texi: Renamed from
6874         doc/glibc-functions/c16rtomb.texi.
6875         * doc/posix-functions/c32rtomb.texi: Renamed from
6876         doc/glibc-functions/c32rtomb.texi.
6877         * doc/posix-functions/mbrtoc16.texi: Renamed from
6878         doc/glibc-functions/mbrtoc16.texi.
6879         * doc/posix-functions/mbrtoc32.texi: Renamed from
6880         doc/glibc-functions/mbrtoc32.texi.
6881         * doc/gnulib.texi: Update.
6882         (Glibc uchar.h): Remove section.
6883         Suggested by Eric Blake.
6884
6885 2012-02-29  Paul Eggert  <eggert@cs.ucla.edu>
6886
6887         stdnoreturn: port to MSVC better
6888         MSVC standard headers use __declspec(noreturn), so #define noreturn
6889         to empty on that platform.  Reported by Bruno Haible in
6890         <http://lists.gnu.org/archive/html/bug-gnulib/2012-02/msg00152.html>.
6891         * lib/stdnoreturn.in.h (noreturn): Define to empty on MSVC.
6892         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h): Document this.
6893
6894 2012-02-28  Bruno Haible  <bruno@clisp.org>
6895
6896         doc: Mention new glibc headers and functions.
6897         * doc/glibc-headers/uchar.texi: New file.
6898         * doc/glibc-functions/aligned_alloc.texi: New file.
6899         * doc/glibc-functions/c16rtomb.texi: New file.
6900         * doc/glibc-functions/c32rtomb.texi: New file.
6901         * doc/glibc-functions/clock_adjtime.texi: New file.
6902         * doc/glibc-functions/fanotify_init.texi: New file.
6903         * doc/glibc-functions/fanotify_mark.texi: New file.
6904         * doc/glibc-functions/inet6_opt_append.texi: New file.
6905         * doc/glibc-functions/inet6_opt_find.texi: New file.
6906         * doc/glibc-functions/inet6_opt_finish.texi: New file.
6907         * doc/glibc-functions/inet6_opt_get_val.texi: New file.
6908         * doc/glibc-functions/inet6_opt_init.texi: New file.
6909         * doc/glibc-functions/inet6_opt_next.texi: New file.
6910         * doc/glibc-functions/inet6_opt_set_val.texi: New file.
6911         * doc/glibc-functions/inet6_rth_add.texi: New file.
6912         * doc/glibc-functions/inet6_rth_getaddr.texi: New file.
6913         * doc/glibc-functions/inet6_rth_init.texi: New file.
6914         * doc/glibc-functions/inet6_rth_reverse.texi: New file.
6915         * doc/glibc-functions/inet6_rth_segments.texi: New file.
6916         * doc/glibc-functions/inet6_rth_space.texi: New file.
6917         * doc/glibc-functions/login.texi: New file.
6918         * doc/glibc-functions/mbrtoc16.texi: New file.
6919         * doc/glibc-functions/mbrtoc32.texi: New file.
6920         * doc/glibc-functions/name_to_handle_at.texi: New file.
6921         * doc/glibc-functions/ntp_gettimex.texi: New file.
6922         * doc/glibc-functions/open_by_handle_at.texi: New file.
6923         * doc/glibc-functions/prlimit.texi: New file.
6924         * doc/glibc-functions/process_vm_readv.texi: New file.
6925         * doc/glibc-functions/process_vm_writev.texi: New file.
6926         * doc/glibc-functions/recvmmsg.texi: New file.
6927         * doc/glibc-functions/scandirat.texi: New file.
6928         * doc/glibc-functions/sendmmsg.texi: New file.
6929         * doc/glibc-functions/setns.texi: New file.
6930         * doc/glibc-functions/timespec_get.texi: New file.
6931         * doc/gnulib.texi: Include them.
6932         (Glibc sys/fanotify.h, Glibc sys/resource.h, Glibc uchar.h): New
6933         sections.
6934         Reported by Eric Blake.
6935
6936 2012-02-28  Bruno Haible  <bruno@clisp.org>
6937
6938         Avoid compilation errors with MSVC option -fp:strict.
6939         * lib/floor.c: Use MSVC specific pragma fenv_access.
6940         * lib/ceil.c: Likewise.
6941         * lib/trunc.c: Likewise.
6942         * lib/round.c: Likewise.
6943         * lib/rint.c: Likewise.
6944         * lib/fma.c: Likewise.
6945         * lib/integer_length.c: Likewise.
6946         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
6947         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
6948         * tests/test-floor2.c: Likewise.
6949         * tests/test-floorf2.c: Likewise.
6950         * tests/test-ceil2.c: Likewise.
6951         * tests/test-ceilf2.c: Likewise.
6952         * tests/test-trunc2.c: Likewise.
6953         * tests/test-truncf2.c: Likewise.
6954         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
6955
6956 2012-02-27  Bruno Haible  <bruno@clisp.org>
6957
6958         Tests for module 'sqrtl-ieee'.
6959         * modules/sqrtl-ieee-tests: New file.
6960         * tests/test-sqrtl-ieee.c: New file.
6961
6962         New module 'sqrtl-ieee'.
6963         * modules/sqrtl-ieee: New file.
6964
6965         Tests for module 'sqrt-ieee'.
6966         * modules/sqrt-ieee-tests: New file.
6967         * tests/test-sqrt-ieee.c: New file.
6968
6969         New module 'sqrt-ieee'.
6970         * modules/sqrt-ieee: New file.
6971
6972         Tests for module 'sqrtf-ieee'.
6973         * modules/sqrtf-ieee-tests: New file.
6974         * tests/test-sqrtf-ieee.c: New file.
6975         * tests/test-sqrt-ieee.h: New file.
6976
6977         New module 'sqrtf-ieee'.
6978         * modules/sqrtf-ieee: New file.
6979
6980 2012-02-27  Bruno Haible  <bruno@clisp.org>
6981
6982         remainderl-ieee: Work around test failure on OSF/1.
6983         * m4/remainderl-ieee.m4: New file.
6984         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): If gl_FUNC_REMAINDERL_IEEE is
6985         present, test whether remainderl works with a zero second argument.
6986         Replace it if not.
6987         * lib/math.in.h (remainderl): Override if REPLACE_REMAINDERL is 1.
6988         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERL.
6989         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERL.
6990         * modules/remainderl (configure.ac): Consider REPLACE_REMAINDERL.
6991         (Depends-on): Update conditions.
6992         * modules/remainderl-ieee (Files): Add m4/remainderl-ieee.m4.
6993         (Depends-on): Add remainder-ieee.
6994         (configure.ac): Invoke gl_FUNC_REMAINDERL_IEEE.
6995         * doc/posix-functions/remainderl.texi: Mention the remainderl-ieee
6996         module.
6997
6998         remainderf-ieee: Work around test failure on OSF/1.
6999         * m4/remainderf-ieee.m4: New file.
7000         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): If gl_FUNC_REMAINDERF_IEEE is
7001         present, test whether remainderf works with a zero second argument.
7002         Replace it if not.
7003         * lib/math.in.h (remainderf): Override if REPLACE_REMAINDERF is 1.
7004         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERF.
7005         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERF.
7006         * modules/remainderf (configure.ac): Consider REPLACE_REMAINDERF.
7007         (Depends-on): Update conditions.
7008         * modules/remainderf-ieee (Files): Add m4/remainderf-ieee.m4.
7009         (Depends-on): Add remainder-ieee.
7010         (configure.ac): Invoke gl_FUNC_REMAINDERF_IEEE.
7011         * doc/posix-functions/remainderf.texi: Mention the remainderf-ieee
7012         module.
7013
7014         remainder-ieee: Work around test failure on OSF/1.
7015         * m4/remainder-ieee.m4: New file.
7016         * m4/remainder.m4 (gl_FUNC_REMAINDER): If gl_FUNC_REMAINDER_IEEE is
7017         present, test whether remainder works with a zero second argument.
7018         Replace it if not.
7019         * lib/math.in.h (remainder): Override if REPLACE_REMAINDER is 1.
7020         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDER.
7021         * modules/math (Makefile.am): Substitute REPLACE_REMAINDER.
7022         * modules/remainder (configure.ac): Consider REPLACE_REMAINDER.
7023         (Depends-on): Update dependencies.
7024         * modules/remainder-ieee (Files): Add m4/remainder-ieee.m4.
7025         (configure.ac): Invoke gl_FUNC_REMAINDER_IEEE.
7026         * doc/posix-functions/remainder.texi: Mention the remainder-ieee module.
7027
7028         Tests for module 'remainderl-ieee'.
7029         * modules/remainderl-ieee-tests: New file.
7030         * tests/test-remainderl-ieee.c: New file.
7031
7032         New module 'remainderl-ieee'.
7033         * modules/remainderl-ieee: New file.
7034
7035         Tests for module 'remainder-ieee'.
7036         * modules/remainder-ieee-tests: New file.
7037         * tests/test-remainder-ieee.c: New file.
7038
7039         New module 'remainder-ieee'.
7040         * modules/remainder-ieee: New file.
7041
7042         Tests for module 'remainderf-ieee'.
7043         * modules/remainderf-ieee-tests: New file.
7044         * tests/test-remainderf-ieee.c: New file.
7045         * tests/test-remainder-ieee.h: New file.
7046
7047         New module 'remainderf-ieee'.
7048         * modules/remainderf-ieee: New file.
7049
7050 2012-02-27  Bruno Haible  <bruno@clisp.org>
7051
7052         modff, modfl: Fix configure syntax error.
7053         * m4/modff.m4 (gl_FUNC_MODFF): Insert ':' command in 'if'.
7054         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
7055
7056 2012-02-27  Bruno Haible  <bruno@clisp.org>
7057
7058         fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
7059         * m4/fmodl-ieee.m4: New file.
7060         * m4/fmodl.m4 (gl_FUNC_FMODL): If gl_FUNC_FMODL_IEEE is present, test
7061         whether fmodl works with zero arguments. Replace it if not.
7062         * modules/fmodl-ieee (Files): Add m4/fmodl-ieee.m4.
7063         (Depends-on): Add fmod-ieee.
7064         (configure.ac): Invoke gl_FUNC_FMODL_IEEE.
7065         * doc/posix-functions/fmodl.texi: Mention the fmodl-ieee module.
7066
7067         fmodf-ieee: Work around test failure on OSF/1.
7068         * m4/fmodf-ieee.m4: New file.
7069         * m4/fmodf.m4 (gl_FUNC_FMODF): If gl_FUNC_FMODF_IEEE is present, test
7070         whether fmodf works with zero arguments. Replace it if not.
7071         * lib/math.in.h (fmodf): Override if REPLACE_FMODF is 1.
7072         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FMODF.
7073         * modules/math (Makefile.am): Substitute REPLACE_FMODF.
7074         * modules/fmodf (configure.ac): Consider REPLACE_FMODF.
7075         (Depends-on): Update dependencies.
7076         * modules/fmodf-ieee (Files): Add m4/fmodf-ieee.m4.
7077         (configure.ac): Invoke gl_FUNC_FMODF_IEEE.
7078         * doc/posix-functions/fmodf.texi: Mention the problem on OSF/1.
7079
7080         fmodf-ieee: Work around test failure on MSVC 9.
7081         * modules/fmodf-ieee (Depends-on): Add fmod-ieee.
7082         * doc/posix-functions/fmodf.texi: Mention the fmodf-ieee module.
7083
7084         fmod-ieee: Work around test failures on OSF/1, mingw.
7085         * m4/fmod-ieee.m4: New file.
7086         * m4/fmod.m4 (gl_FUNC_FMOD): If gl_FUNC_FMOD_IEEE is present, test
7087         whether fmod works with zero arguments. Replace it if not.
7088         * lib/math.in.h (fmod): New declaration.
7089         * lib/fmod.c: New file.
7090         * m4/math_h.m4 (gl_MATH_H): Test whether fmod is declared.
7091         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMOD, REPLACE_FMOD.
7092         * modules/math (Makefile.am): Substitute GNULIB_FMOD, REPLACE_FMOD.
7093         * modules/fmod (Files): Add lib/fmod.c.
7094         (Depends-on): Add math, isinf, trunc, fma.
7095         (configure.ac): Arrange to compile lib/fmod.c if needed.
7096         * modules/fmod-ieee (Files): Add m4/fmod-ieee.m4, m4/minus-zero.m4,
7097         m4/signbit.m4.
7098         (configure.ac): Invoke gl_FUNC_FMOD_IEEE.
7099         * tests/test-math-c++.cc: Check the declaration of fmod.
7100         * doc/posix-functions/fmod.texi: Mention the fmod-ieee module.
7101
7102         fmodl-ieee: Fix test failures.
7103         * lib/fmodl.c (fmodl): Treat Inf specially.
7104         * modules/fmodl (Depends-on): Add isinf.
7105
7106         Tests for module 'fmodl-ieee'.
7107         * modules/fmodl-ieee-tests: New file.
7108         * tests/test-fmodl-ieee.c: New file.
7109
7110         New module 'fmodl-ieee'.
7111         * modules/fmodl-ieee: New file.
7112
7113         Tests for module 'fmod-ieee'.
7114         * modules/fmod-ieee-tests: New file.
7115         * tests/test-fmod-ieee.c: New file.
7116
7117         New module 'fmod-ieee'.
7118         * modules/fmod-ieee: New file.
7119
7120         Tests for module 'fmodf-ieee'.
7121         * modules/fmodf-ieee-tests: New file.
7122         * tests/test-fmodf-ieee.c: New file.
7123         * tests/test-fmod-ieee.h: New file.
7124
7125         New module 'fmodf-ieee'.
7126         * modules/fmodf-ieee: New file.
7127
7128 2012-02-27  Bruno Haible  <bruno@clisp.org>
7129
7130         Tests for module 'rintl-ieee'.
7131         * modules/rintl-ieee-tests: New file.
7132         * tests/test-rintl-ieee.c: New file.
7133
7134         New module 'rintl-ieee'.
7135         * modules/rintl-ieee: New file.
7136
7137         Tests for module 'rint-ieee'.
7138         * modules/rint-ieee-tests: New file.
7139         * tests/test-rint-ieee.c: New file.
7140
7141         New module 'rint-ieee'.
7142         * modules/rint-ieee: New file.
7143
7144         Tests for module 'rintf-ieee'.
7145         * modules/rintf-ieee-tests: New file.
7146         * tests/test-rintf-ieee.c: New file.
7147         * tests/test-rint-ieee.h: New file.
7148
7149         New module 'rintf-ieee'.
7150         * modules/rintf-ieee: New file.
7151
7152 2012-02-26  Paul Eggert  <eggert@cs.ucla.edu>
7153
7154         regex: re_search etc. should return -2 when memory exhausted
7155         This bug was uncovered when testing 'grep'.  Without the fix,
7156         re_search and friends return -1 when memory is exhausted, but -1
7157         means no match, and this causes grep to falsely report no-match
7158         instead of memory-exhaustion.  See
7159         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=13762>.
7160         * lib/regexec.c (re_search_stub): Return -2 (not -1) if there is
7161         trouble; this can occur if re_search_internal ran out of memory.
7162
7163 2012-02-26  Bruno Haible  <bruno@clisp.org>
7164
7165         modfl-ieee: Work around test failures on IRIX, OSF/1, mingw.
7166         * m4/modfl-ieee.m4: New file.
7167         * m4/modfl.m4 (gl_FUNC_MODFL): If gl_FUNC_MODFL_IEEE is present, test
7168         whether modfl works with Inf. Replace it if not.
7169         * lib/math.in.h (modfl): Override if REPLACE_MODFF is 1.
7170         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFL.
7171         * modules/math (Makefile.am): Substitute REPLACE_MODFL.
7172         * modules/modfl (configure.ac): Consider REPLACE_MODFL.
7173         (Depends-on): Update dependencies.
7174         * modules/modfl-ieee (Files): Add m4/modfl-ieee.m4, m4/minus-zero.m4,
7175         m4/signbit.m4.
7176         (configure.ac): Invoke gl_FUNC_MODFL_IEEE.
7177         * doc/posix-functions/modfl.texi: Mention the modfl-ieee module.
7178
7179         modfl-ieee: Fix dependencies.
7180         * modules/modfl-ieee (Depends-on): Add modf-ieee.
7181
7182         modfl-ieee: Fix test failures.
7183         * lib/modfl.c (modfl): Treat NaN and Inf specially.
7184         * modules/modfl (Depends-on): Add isfinite, isinf.
7185
7186         modff-ieee: Work around test failures on *BSD, IRIX, OSF/1, etc.
7187         * m4/modff-ieee.m4: New file.
7188         * m4/modff.m4 (gl_FUNC_MODFF): If gl_FUNC_MODFF_IEEE is present, test
7189         whether modff works with NaN and Inf. Replace it if not.
7190         * lib/math.in.h (modff): Override if REPLACE_MODFF is 1.
7191         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFF.
7192         * modules/math (Makefile.am): Substitute REPLACE_MODFF.
7193         * modules/modff (configure.ac): Consider REPLACE_MODFF.
7194         (Depends-on): Update dependencies.
7195         * modules/modff-ieee (Files): Add m4/modff-ieee.m4, m4/minus-zero.m4,
7196         m4/signbit.m4.
7197         (Depends-on): Add modf-ieee.
7198         (configure.ac): Invoke gl_FUNC_MODFF_IEEE.
7199         * doc/posix-functions/modff.texi: Mention the modff-ieee module.
7200
7201         modf-ieee: Work around test failures on *BSD, IRIX, OSF/1, Cygwin.
7202         * m4/modf-ieee.m4: New file.
7203         * m4/modf.m4 (gl_FUNC_MODF): If gl_FUNC_MODF_IEEE is present, test
7204         whether modf works with NaN and Inf. Replace it if not.
7205         * lib/math.in.h (modf): New declaration.
7206         * lib/modf.c: New file.
7207         * m4/math_h.m4 (gl_MATH_H): Test whether modf is declared.
7208         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODF, REPLACE_MODF.
7209         * modules/math (Makefile.am): Substitute GNULIB_MODF, REPLACE_MODF.
7210         * modules/modf (Files): Add lib/modf.c.
7211         (Depends-on): Add math, isfinite, trunc, isinf.
7212         (configure.ac): Addrange to compile lib/modf.c if needed.
7213         * modules/modf-ieee (Files): Add m4/modf-ieee.m4, m4/minus-zero.m4,
7214         m4/signbit.m4.
7215         (configure.ac): Invoke gl_FUNC_MODF_IEEE.
7216         * tests/test-math-c++.cc: Check the declaration of modf.
7217         * doc/posix-functions/modf.texi: Mention the modf-ieee module.
7218
7219         Tests for module 'modfl-ieee'.
7220         * modules/modfl-ieee-tests: New file.
7221         * tests/test-modfl-ieee.c: New file.
7222
7223         New module 'modfl-ieee'.
7224         * modules/modfl-ieee: New file.
7225
7226         Tests for module 'modf-ieee'.
7227         * modules/modf-ieee-tests: New file.
7228         * tests/test-modf-ieee.c: New file.
7229
7230         New module 'modf-ieee'.
7231         * modules/modf-ieee: New file.
7232
7233         Tests for module 'modff-ieee'.
7234         * modules/modff-ieee-tests: New file.
7235         * tests/test-modff-ieee.c: New file.
7236         * tests/test-modf-ieee.h: New file.
7237
7238         New module 'modff-ieee'.
7239         * modules/modff-ieee: New file.
7240
7241 2012-02-26  Bruno Haible  <bruno@clisp.org>
7242
7243         Tests for module 'fabsl-ieee'.
7244         * modules/fabsl-ieee-tests: New file.
7245         * tests/test-fabsl-ieee.c: New file.
7246
7247         New module 'fabsl-ieee'.
7248         * modules/fabsl-ieee: New file.
7249
7250         Tests for module 'fabs-ieee'.
7251         * modules/fabs-ieee-tests: New file.
7252         * tests/test-fabs-ieee.c: New file.
7253
7254         New module 'fabs-ieee'.
7255         * modules/fabs-ieee: New file.
7256
7257         Tests for module 'fabsf-ieee'.
7258         * modules/fabsf-ieee-tests: New file.
7259         * tests/test-fabsf-ieee.c: New file.
7260         * tests/test-fabs-ieee.h: New file.
7261
7262         New module 'fabsf-ieee'.
7263         * modules/fabsf-ieee: New file.
7264
7265 2012-02-26  Bruno Haible  <bruno@clisp.org>
7266
7267         Tests for module 'fmal-ieee'.
7268         * modules/fmal-ieee-tests: New file.
7269         * tests/test-fmal-ieee.c: New file.
7270
7271         New module 'fmal-ieee'.
7272         * modules/fmal-ieee: New file.
7273
7274         Tests for module 'fma-ieee'.
7275         * modules/fma-ieee-tests: New file.
7276         * tests/test-fma-ieee.c: New file.
7277
7278         New module 'fma-ieee'.
7279         * modules/fma-ieee: New file.
7280
7281         Tests for module 'fmaf-ieee'.
7282         * modules/fmaf-ieee-tests: New file.
7283         * tests/test-fmaf-ieee.c: New file.
7284         * tests/test-fma-ieee.h: New file.
7285
7286         New module 'fmaf-ieee'.
7287         * modules/fmaf-ieee: New file.
7288
7289 2012-02-26  Bruno Haible  <bruno@clisp.org>
7290
7291         Tests for module 'ldexpl-ieee'.
7292         * modules/ldexpl-ieee-tests: New file.
7293         * tests/test-ldexpl-ieee.c: New file.
7294
7295         New module 'ldexpl-ieee'.
7296         * modules/ldexpl-ieee: New file.
7297
7298         Tests for module 'ldexp-ieee'.
7299         * modules/ldexp-ieee-tests: New file.
7300         * tests/test-ldexp-ieee.c: New file.
7301
7302         New module 'ldexp-ieee'.
7303         * modules/ldexp-ieee: New file.
7304
7305         Tests for module 'ldexpf-ieee'.
7306         * modules/ldexpf-ieee-tests: New file.
7307         * tests/test-ldexpf-ieee.c: New file.
7308         * tests/test-ldexp-ieee.h: New file.
7309
7310         New module 'ldexpf-ieee'.
7311         * modules/ldexpf-ieee: New file.
7312
7313 2012-02-26  Bruno Haible  <bruno@clisp.org>
7314
7315         Refactor frexp*-ieee tests.
7316         * tests/test-frexp-ieee.h: New file.
7317         * tests/test-frexpf-ieee.c: Include test-frexp-ieee.h.
7318         (main): Just call test_function.
7319         * tests/test-frexp-ieee.c: Include test-frexp-ieee.h.
7320         (main): Just call test_function.
7321         * tests/test-frexpl-ieee.c: Include test-frexp-ieee.h.
7322         (main): Just call test_function.
7323         * modules/frexpf-ieee-tests (Files): Add tests/test-frexp-ieee.h.
7324         * modules/frexp-ieee-tests (Files): Likewise.
7325         * modules/frexpl-ieee-tests (Files): Likewise.
7326
7327         Tests for module 'frexpl-ieee'.
7328         * modules/frexpl-ieee-tests: New file.
7329         * tests/test-frexpl-ieee.c: New file.
7330
7331         New module 'frexpl-ieee'.
7332         * modules/frexpl-ieee: New file.
7333
7334         Tests for module 'frexp-ieee'.
7335         * modules/frexp-ieee-tests: New file.
7336         * tests/test-frexp-ieee.c: New file.
7337
7338         New module 'frexp-ieee'.
7339         * modules/frexp-ieee: New file.
7340
7341         Tests for module 'frexpf-ieee'.
7342         * modules/frexpf-ieee-tests: New file.
7343         * tests/test-frexpf-ieee.c: New file.
7344
7345         New module 'frexpf-ieee'.
7346         * modules/frexpf-ieee: New file.
7347
7348 2012-02-26  Bruno Haible  <bruno@clisp.org>
7349
7350         roundl-ieee tests: More tests.
7351         * tests/test-roundl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
7352         (main): Add tests for [MX] shaded specification in POSIX.
7353         * modules/roundl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
7354         (Depends-on): Add isnanl-nolibm.
7355
7356         round-ieee tests: More tests.
7357         * tests/test-round-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
7358         (main): Add tests for [MX] shaded specification in POSIX.
7359         * modules/round-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
7360         (Depends-on): Add isnand-nolibm.
7361
7362         roundf-ieee tests: More tests.
7363         * tests/test-roundf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
7364         (main): Add tests for [MX] shaded specification in POSIX.
7365         * modules/roundf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
7366         (Depends-on): Add isnanf-nolibm.
7367
7368         truncl-ieee tests: More tests.
7369         * tests/test-truncl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
7370         (main): Add tests for [MX] shaded specification in POSIX.
7371         * modules/truncl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
7372         (Depends-on): Add isnanl-nolibm.
7373
7374         trunc-ieee tests: More tests.
7375         * tests/test-trunc-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
7376         (main): Add tests for [MX] shaded specification in POSIX.
7377         * modules/trunc-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
7378         (Depends-on): Add isnand-nolibm.
7379
7380         truncf-ieee tests: More tests.
7381         * tests/test-truncf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
7382         (main): Add tests for [MX] shaded specification in POSIX.
7383         * modules/truncf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
7384         (Depends-on): Add isnanf-nolibm.
7385
7386         ceill-ieee tests: More tests.
7387         * tests/test-ceill-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
7388         (main): Add tests for [MX] shaded specification in POSIX.
7389         * modules/ceill-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
7390         (Depends-on): Add isnanl-nolibm.
7391
7392         ceil-ieee tests: More tests.
7393         * tests/test-ceil-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
7394         (main): Add tests for [MX] shaded specification in POSIX.
7395         * modules/ceil-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
7396         (Depends-on): Add isnand-nolibm.
7397
7398         ceilf-ieee tests: More tests.
7399         * tests/test-ceilf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
7400         (main): Add tests for [MX] shaded specification in POSIX.
7401         * modules/ceilf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
7402         (Depends-on): Add isnanf-nolibm.
7403
7404         floorl-ieee tests: More tests.
7405         * tests/test-floorl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
7406         (main): Add tests for [MX] shaded specification in POSIX.
7407         * modules/floorl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
7408         (Depends-on): Add isnanl-nolibm.
7409
7410         floor-ieee tests: More tests.
7411         * tests/test-floor-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
7412         (main): Add tests for [MX] shaded specification in POSIX.
7413         * modules/floor-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
7414         (Depends-on): Add isnand-nolibm.
7415
7416         floorf-ieee tests: More tests.
7417         * tests/test-floorf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
7418         (main): Add tests for [MX] shaded specification in POSIX.
7419         * modules/floorf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
7420         (Depends-on): Add isnanf-nolibm.
7421
7422 2012-02-26  Bruno Haible  <bruno@clisp.org>
7423
7424         fpieee: More comments.
7425         * m4/fpieee.m4 (gl_FP_IEEE): Add more comments.
7426
7427 2012-02-25  Bruno Haible  <bruno@clisp.org>
7428
7429         Tests for module 'log10l'.
7430         * modules/log10l-tests: New file.
7431         * tests/test-log10l.c: New file.
7432         * tests/test-math-c++.cc: Check the declaration of log10l.
7433
7434         New module 'log10l'.
7435         * lib/math.in.h (log10l): New declaration.
7436         * lib/log10l.c: New file.
7437         * m4/log10l.m4: New file.
7438         * modules/log10l: New file.
7439         * m4/math_h.m4 (gl_MATH_H): Test whether log10l is declared.
7440         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10L, HAVE_LOG10L,
7441         HAVE_DECL_LOG10L.
7442         * modules/math (Makefile.am): Substitute GNULIB_LOG10L, HAVE_LOG10L,
7443         HAVE_DECL_LOG10L.
7444         * doc/posix-functions/log10l.texi: Mention the new module.
7445
7446 2012-02-25  Bruno Haible  <bruno@clisp.org>
7447
7448         fmodl, remainder*: Avoid wrong results due to rounding errors.
7449         * lib/fmodl.c (fmodl): Correct the result if it is not within the
7450         expected bounds.
7451         * lib/remainderf.c (remainderf): Likewise.
7452         * lib/remainder.c (remainder): Likewise.
7453         * lib/remainderl.c (remainderl): Likewise.
7454
7455 2012-02-25  Bruno Haible  <bruno@clisp.org>
7456
7457         Tests for module 'remainderl'.
7458         * modules/remainderl-tests: New file.
7459         * tests/test-remainderl.c: New file.
7460         * tests/test-math-c++.cc: Check the declaration of remainderl.
7461
7462         New module 'remainderl'.
7463         * lib/math.in.h (remainderl): New declaration.
7464         * lib/remainderl.c: New file.
7465         * m4/remainderl.m4: New file.
7466         * modules/remainderl: New file.
7467         * m4/math_h.m4 (gl_MATH_H): Test whether remainderl is declared.
7468         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERL, HAVE_REMAINDERL.
7469         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERL,
7470         HAVE_REMAINDERL.
7471         * doc/posix-functions/remainderl.texi: Mention the new module.
7472
7473 2012-02-25  Bruno Haible  <bruno@clisp.org>
7474
7475         Tests for module 'remainderf'.
7476         * modules/remainderf-tests: New file.
7477         * tests/test-remainderf.c: New file.
7478         * tests/test-math-c++.cc: Check the declaration of remainderf.
7479
7480         New module 'remainderf'.
7481         * lib/math.in.h (remainderf): New declaration.
7482         * lib/remainderf.c: New file.
7483         * m4/remainderf.m4: New file.
7484         * modules/remainderf: New file.
7485         * m4/math_h.m4 (gl_MATH_H): Test whether remainderf is declared.
7486         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERF, HAVE_REMAINDERF.
7487         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERF,
7488         HAVE_REMAINDERF.
7489         * doc/posix-functions/remainderf.texi: Mention the new module.
7490
7491 2012-02-25  Bruno Haible  <bruno@clisp.org>
7492
7493         remainder: Support for MSVC.
7494         * lib/math.in.h (remainder): New declaration.
7495         * lib/remainder.c: New file.
7496         * m4/remainder.m4: New file.
7497         * modules/remainder (Files): Add lib/remainder.c, m4/remainder.m4.
7498         (Depends-on): Add math, round, fma.
7499         (configure.ac): Use results of gl_FUNC_REMAINDER.
7500         * m4/math_h.m4 (gl_MATH_H): Test whether remainder is declared.
7501         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDER, HAVE_REMAINDER,
7502         HAVE_DECL_REMAINDER.
7503         * modules/math (Makefile.am): Substitute GNULIB_REMAINDER,
7504         HAVE_REMAINDER, HAVE_DECL_REMAINDER.
7505         * tests/test-math-c++.cc: Check the declaration of remainder.
7506         * doc/posix-functions/remainder.texi: Mention that the MSVC and IRIX 5
7507         problems are fixed.
7508
7509 2012-02-25  Bruno Haible  <bruno@clisp.org>
7510
7511         Tests for module 'fmodl'.
7512         * modules/fmodl-tests: New file.
7513         * tests/test-fmodl.c: New file.
7514         * tests/test-math-c++.cc: Check the declaration of fmodl.
7515
7516         New module 'fmodl'.
7517         * lib/math.in.h (fmodl): New declaration.
7518         * lib/fmodl.c: New file.
7519         * m4/fmodl.m4: New file.
7520         * m4/math_h.m4 (gl_MATH_H): Test whether fmodl is declared.
7521         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODL, HAVE_FMODL,
7522         REPLACE_FMODL.
7523         * modules/math (Makefile.am): Substitute GNULIB_FMODL, HAVE_FMODL,
7524         REPLACE_FMODL.
7525         * modules/fmodl: New file.
7526         * doc/posix-functions/fmodl.texi: Mention the new module.
7527
7528 2012-02-25  Bruno Haible  <bruno@clisp.org>
7529
7530         Tests for module 'modfl'.
7531         * modules/modfl-tests: New file.
7532         * tests/test-modfl.c: New file.
7533         * tests/test-math-c++.cc: Check the declaration of modfl.
7534
7535         New module 'modfl'.
7536         * lib/math.in.h (modfl): New declaration.
7537         * lib/modfl.c: New file.
7538         * m4/modfl.m4: New file.
7539         * m4/math_h.m4 (gl_MATH_H): Test whether modfl is declared.
7540         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFL, HAVE_MODFL.
7541         * modules/math (Makefile.am): Substitute GNULIB_MODFL, HAVE_MODFL.
7542         * modules/modfl: New file.
7543         * doc/posix-functions/modfl.texi: Mention the new module.
7544
7545 2012-02-25  Bruno Haible  <bruno@clisp.org>
7546
7547         Tests for module 'fabsl'.
7548         * modules/fabsl-tests: New file.
7549         * tests/test-fabsl.c: New file.
7550         * tests/test-math-c++.cc: Check the declaration of fabsl.
7551
7552         New module 'fabsl'.
7553         * lib/math.in.h (fabsl): New declaration.
7554         * lib/fabsl.c: New file.
7555         * m4/fabsl.m4: New file.
7556         * m4/math_h.m4 (gl_MATH_H): Test whether fabsl is declared.
7557         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSL, HAVE_FABSL,
7558         REPLACE_FABSL.
7559         * modules/math (Makefile.am): Substitute GNULIB_FABSL, HAVE_FABSL,
7560         REPLACE_FABSL.
7561         * modules/fabsl: New file.
7562         * doc/posix-functions/fabsl.texi: Mention the new module.
7563
7564 2012-02-25  Bruno Haible  <bruno@clisp.org>
7565
7566         fabs tests: More tests.
7567         * tests/test-fabs.c: Include <string.h>, minus-zero.h.
7568         (zero): New variable.
7569         (main): Add tests for signed zero.
7570         * modules/fabs-tests (Files): Add tests/minus-zero.h.
7571
7572         fabsf tests: More tests.
7573         * tests/test-fabsf.c: Include <string.h>, minus-zero.h.
7574         (zero): New variable.
7575         (main): Add tests for signed zero.
7576         * modules/fabsf-tests (Files): Add tests/minus-zero.h.
7577
7578 2012-02-24  Bruno Haible  <bruno@clisp.org>
7579
7580         atanl: Provide function definition on MSVC.
7581         * m4/atanl.m4 (gl_FUNC_ATANL): Test also whether atanl can be used as a
7582         function pointer.
7583         * lib/math.in.h (atanl): Undefine if it does not exist as a function.
7584
7585 2012-02-24  Bruno Haible  <bruno@clisp.org>
7586
7587         acosl: Provide function definition on MSVC.
7588         * m4/acosl.m4 (gl_FUNC_ACOSL): Test also whether acosl can be used as a
7589         function pointer.
7590         * lib/math.in.h (acosl): Undefine if it does not exist as a function.
7591
7592 2012-02-24  Bruno Haible  <bruno@clisp.org>
7593
7594         asinl: Provide function definition on MSVC.
7595         * m4/asinl.m4 (gl_FUNC_ASINL): Test also whether asinl can be used as a
7596         function pointer.
7597         * lib/math.in.h (asinl): Undefine if it does not exist as a function.
7598
7599 2012-02-24  Bruno Haible  <bruno@clisp.org>
7600
7601         tanl: Provide function definition on MSVC.
7602         * m4/tanl.m4 (gl_FUNC_TANL): Test also whether tanl can be used as a
7603         function pointer.
7604         * lib/math.in.h (tanl): Undefine if it does not exist as a function.
7605
7606 2012-02-24  Bruno Haible  <bruno@clisp.org>
7607
7608         cosl: Provide function definition on MSVC.
7609         * m4/cosl.m4 (gl_FUNC_COSL): Test also whether cosl can be used as a
7610         function pointer.
7611         * lib/math.in.h (cosl): Undefine if it does not exist as a function.
7612
7613 2012-02-24  Bruno Haible  <bruno@clisp.org>
7614
7615         sinl: Provide function definition on MSVC.
7616         * m4/sinl.m4 (gl_FUNC_SINL): Test also whether sinl can be used as a
7617         function pointer.
7618         * lib/math.in.h (sinl): Undefine if it does not exist as a function.
7619
7620 2012-02-24  Bruno Haible  <bruno@clisp.org>
7621
7622         logl: Provide function definition on MSVC.
7623         * m4/logl.m4 (gl_FUNC_LOGL): Test also whether logl can be used as a
7624         function pointer.
7625         * lib/math.in.h (logl): Undefine if it does not exist as a function.
7626
7627 2012-02-24  Bruno Haible  <bruno@clisp.org>
7628
7629         expl: Provide function definition on MSVC.
7630         * m4/expl.m4 (gl_FUNC_EXPL): Test also whether expl can be used as a
7631         function pointer.
7632         * lib/math.in.h (expl): Undefine if it does not exist as a function.
7633
7634 2012-02-24  Bruno Haible  <bruno@clisp.org>
7635
7636         sqrtl: Provide function definition on MSVC.
7637         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Test also whether sqrtl can be used as
7638         a function pointer.
7639         * lib/math.in.h (sqrtl): Undefine if it does not exist as a function.
7640
7641 2012-02-24  Bruno Haible  <bruno@clisp.org>
7642
7643         ceill: Provide function definition on MSVC.
7644         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Test also whether ceill can be
7645         used as a function pointer.
7646         * lib/math.in.h (ceill): Undefine if it is not declared as a function.
7647
7648 2012-02-24  Bruno Haible  <bruno@clisp.org>
7649
7650         floorl: Provide function definition on MSVC.
7651         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Test also whether floorl can be
7652         used as a function pointer.
7653         * lib/math.in.h (floorl): Undefine if it is not declared as a function.
7654
7655 2012-02-24  Bruno Haible  <bruno@clisp.org>
7656
7657         ceilf: Provide function definition on MSVC.
7658         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Test also whether ceilf can be
7659         used as a function pointer.
7660         * lib/math.in.h (ceilf): Undefine if it is not declared as a function.
7661
7662 2012-02-24  Bruno Haible  <bruno@clisp.org>
7663
7664         floorf: Provide function definition on MSVC.
7665         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Test also whether floorf can be
7666         used as a function pointer.
7667         * lib/math.in.h (floorf): Undefine if it is not declared as a function.
7668
7669 2012-02-24  Paul Eggert  <eggert@cs.ucla.edu>
7670
7671         stdnoreturn: new module
7672         This implements a replacement for C11's <stdnoreturn.h>.
7673         * doc/gnulib.texi (Header File Substitutes): Add stdnoreturn.
7674         * doc/posix-headers/stdnoreturn.texi, lib/stdnoreturn.in.h:
7675         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
7676         * tests/test-stdnoreturn.c: New files.
7677
7678 2012-02-24  Stanislav Brabec  <sbrabec@suse.cz>  (tiny change)
7679
7680         regex: fix false multibyte matches in some regular expressions
7681         See <http://sourceware.org/bugzilla/show_bug.cgi?id=13637>
7682         and <http://sourceware.org/ml/libc-alpha/2012-02/msg00521.html>.
7683         * lib/regex_internal.c (re_string_skip_chars):
7684         Fix miscomputation of remain_len that may cause incomplete
7685         multi-byte character and false match.
7686
7687 2012-02-24  Jim Meyering  <meyering@redhat.com>
7688
7689         maint.mk: tell sc_prohibit_strcmp to ding "0 == strcmp (...)", too
7690         * top/maint.mk (sc_prohibit_strcmp): Also prohibit uses of strcmp
7691         uses with "==" *before* the call, e.g., 0 == strcmp (...)
7692         Remove now-unnecessary str''cmp obfuscation.
7693         Suggested by Akim Demaille.
7694
7695 2012-02-24  Bruno Haible  <bruno@clisp.org>
7696
7697         streq: Rename macro.
7698         * lib/streq.h (STREQ_OPT): Renamed from STREQ.
7699         * NEWS: Mention the change.
7700         * lib/mbrtowc.c (mbrtowc): Update.
7701         * lib/uniwidth/cjk.h (is_cjk_encoding): Update.
7702         * lib/wcwidth.c (wcwidth): Update.
7703         Suggested by Akim Demaille and Jim Meyering.
7704
7705 2012-02-20  Paul Eggert  <eggert@cs.ucla.edu>
7706
7707         regex: fix typo in definition of MIN
7708         * lib/regex_internal.h (MIN): Fix typo.  Problem reported by Thomas
7709         Schwinge in <http://sourceware.org/bugzilla/show_bug.cgi?id=11638#c4>.
7710
7711 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
7712             Bruno Haible  <bruno@clisp.org>
7713
7714         acl: Don't use ACL_CNT and similar ops, since they are unreliable.
7715         * lib/file-has-acl.c (file_has_acl) [HP-UX, NonStop Kernel]: Read the
7716         entries into a stack-allocated buffer directly.
7717         * lib/copy-acl.c (qcopy_acl) [HP-UX, NonStop Kernel]: Likewise.
7718
7719 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
7720             Bruno Haible  <bruno@clisp.org>
7721
7722         acl: Don't use GETACLCNT and similar ops, since they are unreliable.
7723
7724          - There were several instances of this pattern:
7725
7726              for (;;) {
7727                n = acl (f, GETACLCNT, 0, NULL);
7728                [ allocate an array A of size N ]
7729                if (acl (f, GETACL, n, a) == n)
7730                  break;
7731              }
7732
7733            This loop might never terminate if some other process is constantly
7734            manipulating the file's ACL.  The loop should be rewritten to
7735            terminate.
7736
7737          - The acl (... GETACLNT ...) call is merely an optimization; its value
7738            is merely a hint as to how big to make the array.  A better
7739            optimization is to avoid the acl (... GETACLNT ...)  call entirely,
7740            and just guess a reasonably-big size, growing the size and trying
7741            again if it's not large enough.  This guarantees termination, and
7742            saves a system call.
7743
7744         * lib/acl-internal.h: Include <limits.h>.
7745         (MIN, SIZE_MAX): New macros.
7746         * lib/file-has-acl.c (file_has_acl) [Solaris]: Read the entries into
7747         a stack-allocated buffer, and use malloc if it does not fit. Don't
7748         use GETACLCNT.
7749         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
7750
7751 2012-02-19  Bruno Haible  <bruno@clisp.org>
7752
7753         acl: Fix endless loop on Solaris with vxfs.
7754         * lib/file-has-acl.c (file_has_acl) [Solaris]: Treat a failing
7755         acl()/facl() call for ACE_GETACL like a failing call for ACE_GETACLCNT.
7756         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
7757         * lib/copy-acl.c (qcopy_acl)[Solaris]: Likewise.
7758         * tests/test-sameacls.c (main)[Solaris]: Likewise.
7759         Reported by Bill Jones in
7760         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10639>, via Paul Eggert.
7761
7762 2012-02-19  Bruno Haible  <bruno@clisp.org>
7763
7764         acl: Fix copy-acl test failure on Solaris 11 2011-11.
7765         * lib/file-has-acl.c (NEW_ACE_WRITEA_DATA): New macro.
7766         (acl_ace_nontrivial): Relax the restrictions on access_masks[] so
7767         that this function returns 0 in some more cases.
7768
7769 2012-02-19  Bruno Haible  <bruno@clisp.org>
7770
7771         acl: Update doc references.
7772         * doc/acl-resources.txt: Update links to Solaris documentation.
7773
7774 2012-02-19  Bruno Haible  <bruno@clisp.org>
7775
7776         Fix test failure in many locales on Solaris 11.
7777         * tests/test-pipe-filter-gi1.c (main): Don't use range expression in
7778         'tr' arguments.
7779         * tests/test-pipe-filter-ii1.c (main): Likewise.
7780         * build-aux/bootstrap (check_versions): Run 'tr' command with range
7781         expressions in the C locale.
7782         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
7783         * m4/host-os.m4 (gl_HOST_OS): Likewise.
7784
7785 2012-02-19  Bruno Haible  <bruno@clisp.org>
7786
7787         gnulib-tool: Improve usage message.
7788         * gnulib-tool (func_usage): Move doc of --help and --version to the
7789         section "Operation modes".
7790
7791 2012-02-18  Reuben Thomas  <rrt@sc3d.org>
7792
7793         README-release: make it easier to execute commands
7794         * top/README-release: break commands out on to separate lines.
7795
7796 2012-02-16  Stefano Lattarini  <stefano.lattarini@gmail.com>
7797
7798         GNUmakefile: simplify detection of unconfigured trees
7799         * top/GNUmakefile: Use $(wildcard) instead of $(shell) to determine
7800         whether the tree make is being run from is already configured or
7801         not.  Related simplifications.
7802
7803 2012-02-13  Simon Josefsson  <simon@josefsson.org>
7804
7805         * gnulib-tool (func_usage): Document --help and --version.
7806
7807 2012-02-11  Jim Meyering  <meyering@redhat.com>
7808
7809         bootstrap: don't exit 0 upon gnulib-tool failure
7810         * build-aux/bootstrap (gnulib_tool): If gnulib-tool fails, exit with
7811         its exit status, not 0.
7812
7813 2011-12-19  Reuben Thomas  <rrt@sc3d.org>
7814
7815         README-release: various improvements
7816         * top/README-release: Give a command to push changes for the
7817         release.  Add "distcheck" to list of other pre-release checks.
7818         Fix instance of "make stable" which should be "make TYPE".
7819
7820 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
7821
7822         maint: replace FSF snail-mail addresses with URLs
7823         * config/argz.mk, lib/accept4.c, lib/alignof.h, lib/alloca.in.h:
7824         * lib/alphasort.c, lib/arcfour.c, lib/arcfour.h, lib/arctwo.c:
7825         * lib/arctwo.h, lib/argz.c, lib/arpa_inet.in.h, lib/asnprintf.c:
7826         * lib/asprintf.c, lib/assert.in.h, lib/base32.c, lib/base32.h:
7827         * lib/base64.c, lib/base64.h, lib/c-ctype.c, lib/c-ctype.h:
7828         * lib/c-strcase.h, lib/c-strcasecmp.c, lib/c-strncasecmp.c:
7829         * lib/check-version.c, lib/check-version.h, lib/config.charset:
7830         * lib/ctype.in.h, lib/des.c, lib/des.h, lib/dup3.c, lib/errno.in.h:
7831         * lib/float+.h, lib/fnmatch.c, lib/fnmatch.in.h, lib/fnmatch_loop.c:
7832         * lib/fseeko.c, lib/gai_strerror.c, lib/gc-gnulib.c:
7833         * lib/gc-libgcrypt.c, lib/gc-pbkdf2-sha1.c, lib/gc.h:
7834         * lib/getaddrinfo.c, lib/getdelim.c, lib/getfilecon.c, lib/getline.c:
7835         * lib/getlogin_r.c, lib/getpass.c, lib/getpass.h, lib/gettext.h:
7836         * lib/gettimeofday.c, lib/glob.in.h, lib/glthread/cond.c:
7837         * lib/glthread/cond.h, lib/glthread/lock.c, lib/glthread/lock.h:
7838         * lib/glthread/thread.c, lib/glthread/thread.h:
7839         * lib/glthread/threadlib.c, lib/glthread/yield.h, lib/hmac-md5.c:
7840         * lib/hmac-sha1.c, lib/hmac.h, lib/iconv.c, lib/iconv.in.h:
7841         * lib/iconv_close.c, lib/iconv_open.c, lib/inet_ntop.c, lib/isfinite.c:
7842         * lib/isinf.c, lib/iswblank.c, lib/langinfo.in.h, lib/link.c:
7843         * lib/localcharset.c, lib/localcharset.h, lib/lseek.c, lib/malloc.c:
7844         * lib/malloca.c, lib/malloca.h, lib/md2.c, lib/md2.h, lib/md4.c:
7845         * lib/md4.h, lib/md5.c, lib/md5.h, lib/memmem.c, lib/mempcpy.c:
7846         * lib/memset.c, lib/memxor.c, lib/memxor.h, lib/minmax.h, lib/mktime.c:
7847         * lib/msvc-inval.c, lib/msvc-inval.h, lib/msvc-nothrow.c:
7848         * lib/msvc-nothrow.h, lib/netdb.in.h, lib/netinet_in.in.h, lib/nproc.c:
7849         * lib/nproc.h, lib/obstack_printf.c, lib/pathmax.h, lib/pipe.c:
7850         * lib/pipe2.c, lib/poll.c, lib/poll.in.h, lib/printf-args.c:
7851         * lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h:
7852         * lib/pselect.c, lib/pthread.in.h, lib/pty-private.h, lib/pty.in.h:
7853         * lib/read-file.c, lib/read-file.h, lib/ref-add.sin, lib/ref-del.sin:
7854         * lib/regcomp.c, lib/regex.c, lib/regex.h, lib/regex_internal.c:
7855         * lib/regex_internal.h, lib/regexec.c, lib/rijndael-alg-fst.c:
7856         * lib/rijndael-alg-fst.h, lib/rijndael-api-fst.c:
7857         * lib/rijndael-api-fst.h, lib/rint.c, lib/rintf.c, lib/rintl.c:
7858         * lib/round.c, lib/roundf.c, lib/roundl.c, lib/scandir.c, lib/select.c:
7859         * lib/sha1.c, lib/sha1.h, lib/size_max.h, lib/snprintf.c:
7860         * lib/stdalign.in.h, lib/stdarg.in.h, lib/stdbool.in.h:
7861         * lib/stddef.in.h, lib/stdint.in.h, lib/stdio.in.h, lib/str-kmp.h:
7862         * lib/str-two-way.h, lib/strcasecmp.c, lib/strcasestr.c, lib/strdup.c:
7863         * lib/striconv.c, lib/striconv.h, lib/string.in.h, lib/strings.in.h:
7864         * lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c, lib/strpbrk.c:
7865         * lib/strptime.c, lib/strsep.c, lib/strstr.c, lib/strverscmp.c:
7866         * lib/sys_file.in.h, lib/sys_ioctl.in.h, lib/sys_select.in.h:
7867         * lib/sys_socket.in.h, lib/sys_stat.in.h, lib/sys_time.in.h:
7868         * lib/sys_times.in.h, lib/sys_types.in.h, lib/sys_uio.in.h:
7869         * lib/sys_utsname.in.h, lib/sys_wait.in.h, lib/tcgetsid.c:
7870         * lib/termios.in.h, lib/time.in.h, lib/time_r.c, lib/timegm.c:
7871         * lib/times.c, lib/unictype/3level.h, lib/unictype/3levelbit.h:
7872         * lib/unistd.in.h, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c:
7873         * lib/vsnprintf.c, lib/waitpid.c, lib/wchar.in.h, lib/wctype.in.h:
7874         * lib/xsize.h, tests/test-closein.c, tests/test-des.c:
7875         * tests/test-fclose.c, tests/test-fgetc.c, tests/test-filevercmp.c:
7876         * tests/test-fputc.c, tests/test-fread.c, tests/test-fwrite.c:
7877         * tests/test-gc-arcfour.c, tests/test-gc-arctwo.c, tests/test-gc-des.c:
7878         * tests/test-gc-hmac-md5.c, tests/test-gc-hmac-sha1.c:
7879         * tests/test-gc-md2.c, tests/test-gc-md4.c, tests/test-gc-md5.c:
7880         * tests/test-gc-pbkdf2-sha1.c, tests/test-gc-rijndael.c:
7881         * tests/test-gc-sha1.c, tests/test-gc.c, tests/test-getdelim.c:
7882         * tests/test-getline.c, tests/test-getndelim2.c, tests/test-md2.c:
7883         * tests/test-md4.c, tests/test-parse-datetime.c, tests/test-perror.c:
7884         * tests/test-perror2.c, tests/test-pipe.c, tests/test-pipe2.c:
7885         * tests/test-poll.c, tests/test-quotearg-simple.c:
7886         * tests/test-quotearg.c, tests/test-quotearg.h:
7887         * tests/test-round-ieee.c, tests/test-round1.c:
7888         * tests/test-roundf-ieee.c, tests/test-roundf1.c:
7889         * tests/test-roundl-ieee.c, tests/test-roundl.c:
7890         * tests/test-safe-alloc.c, tests/test-sigpipe.c:
7891         * tests/test-spawn-pipe-child.c, tests/test-spawn-pipe-main.c:
7892         * tests/test-strerror.c, tests/test-strerror_r.c:
7893         * tests/test-strsignal.c, tests/test-strverscmp.c:
7894         * tests/test-xmemdup0.c:
7895         Replace FSF snail mail addresses with URLs, as per GNU coding
7896         standards.  See glibc bug
7897         <http://sourceware.org/bugzilla/show_bug.cgi?id=13673>.
7898
7899 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
7900
7901         README-release: capitalize a word and split a line
7902         * top/README-release: Fix punctuation and spacing.
7903
7904 2012-02-08  Akim Demaille  <demaille@gostai.com>
7905
7906         fatal-signal: use C prototypes (with explicit void).
7907         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
7908         (init_fatal_signal_set, block_fatal_signals): Fix signatures.
7909
7910 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
7911
7912         regex: spelling fix
7913         * lib/regexec.c: spelling fix
7914
7915         regex: rely on stdint.h for SIZE_MAX
7916         * lib/regex_internal.h (SIZE_MAX): Remove; stdint.h supplies this now.
7917
7918 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
7919
7920         regex: merge glibc changes
7921
7922         * lib/regcomp.c (init_dfa): Tighten overflow checks to test
7923         for IDX_MAX too, since IDX_MAX can be much less than SIZE_MAX.
7924         (init_word_char): Work even if bitset words are not exactly 32 or
7925         64 bits wide.  Don't assume there are no padding bits.
7926         * lib/regex.c [_LIBC]: Do not include <config.h>.
7927         [!_LIBC]: Add pragmas to ignore -Wsuggest-attributes=pure
7928         and -Wtype-limits.
7929         * lib/regex.h (__USE_GNU): Renamed from __USE_GNU_REGEX, to avoid
7930         needless disagreement with glibc.  All uses changed.  Define it to
7931         1 only if _GNU_SOURCE, to match glibc.
7932         (_REG_RM_NAME): Remove; no longer needed, since the names in
7933         question are now all protected by __USE_GNU.
7934         (_REG_RE_NAME): Remove; replaced by glibc's __REPB_PREFIX.
7935         (REG_TRANSLATE_TYPE): Remove; replaced by glibc's __RE_TRANSLATE_TYPE.
7936         * lib/regex_internal.h (MIN): New macro.
7937
7938         2012-01-03 Ulrich Drepper <drepper@gmail.com>
7939         * lib/regcomp.c (init_word_char): Optimize regex a bit.
7940
7941         2011-12-30 Jakub Jelinek <jakub@redhat.com>
7942         * lib/regex_internal.c (re_string_fetch_byte_case):
7943         Fix up regcomp/regexec.  The problem is that parse_bracket_symbol
7944         is miscompiled, and it turns out it is because of an incorrect
7945         attribute on re_string_fetch_byte_case.  Unlike
7946         re_string_peek_byte_case, this one is really not pure, it modifies
7947         memory (increments pstr->cur_idx), and with the pure attribute GCC
7948         assumed it doesn't and it cached the presumed value of
7949         regexp->cur_idx in a variable across the
7950          for (;; ++i)
7951            {
7952              if (i >= BRACKET_NAME_BUF_SIZE)
7953                return REG_EBRACK;
7954              if (token->type == OP_OPEN_CHAR_CLASS)
7955                ch = re_string_fetch_byte_case (regexp);
7956              else
7957                ch = re_string_fetch_byte (regexp);
7958              if (re_string_eoi(regexp))
7959                return REG_EBRACK;
7960              if (ch == delim && re_string_peek_byte (regexp, 0) == ']')
7961                break;
7962              elem->opr.name[i] = ch;
7963            }
7964
7965         2011-11-29 Andreas Schwab <schwab@redhat.com>
7966         * lib/regcomp.c (build_equiv_class):
7967         Fix access after end of search string in regex matcher.
7968
7969         2011-11-12 Ulrich Drepper <drepper@redhat.com>
7970         * lib/regex_internal.c, lib/regex_internal.h: Fix warnings in regex.
7971
7972         2011-10-12 Ulrich Drepper <drepper@redhat.com>
7973         * lib/regcomp.c (parse_branch): One more regex memory leak fixed.
7974
7975         2011-10-11 Ulrich Drepper <drepper@redhat.com>
7976         * lib/regcomp.c (parse_branch, parse_sub_exp):
7977         More regex memory leak fixes and tests.
7978         (parse_sub_exp, parse_bracket_exp):
7979         Fix memory leak for some invalid regular expressions.
7980
7981         2011-05-28 Ulrich Drepper <drepper@gmail.com>
7982         * lib/regex_internal.c, lib/regexec.c:
7983         Fix unnecessary overallocation due to incomplete character.  When
7984         incomplete characters are found at the end of a string the code
7985         ran amok and allocated lots of memory.  Stricter limits are now in
7986         place.
7987
7988         2011-05-20 Reuben Thomas <rrt@sc3d.org>
7989         * lib/regex.h: Update documentation.
7990
7991         2011-05-16 Aharon Robbins <arnold@skeeve.com>
7992         * lib/regex.h: Update RE_SYNTAX*_AWK constants.
7993
7994         2010-05-05 Andreas Schwab <schwab@redhat.com>
7995         * lib/regexec.c (find_collation_sequence_value):
7996         Fix lookup of collation sequence value during regexp matching.
7997
7998         2010-01-22 Ulrich Drepper <drepper@redhat.com>
7999         * lib/regex_internal.c (re_dfa_add_node): Extend overflow detection.
8000
8001         2008-01-16 Ulrich Drepper <drepper@redhat.com>
8002         * lib/regex.h: Cleanup namespace.
8003
8004         2007-11-26 Ulrich Drepper <drepper@redhat.com>
8005         * lib/regex.h (REG_ENOSYS): Define REG_ENOSYS also for __USE_XOPEN2K.
8006
8007         2007-08-26 Ulrich Drepper <drepper@redhat.com>
8008         * lib/regex_internal.h: Prevent some declarations and definitions
8009         to be seen when used in tests.
8010
8011         2005-05-06 Ulrich Drepper <drepper@redhat.com>
8012         * lib/regex_internal.h: Include bits/libc-lock.h or define dummy
8013         __libc_lock_* macros if not _LIBC.
8014         (struct re_dfa_t): Add lock.
8015
8016 2012-02-07  Eric Blake  <eblake@redhat.com>
8017
8018         maint.mk: also prohibit lower-case @var@
8019         * top/maint.mk (sc_makefile_at_at_check): Enhance check to cover
8020         lower case, like @top_srcdir@.
8021
8022 2012-02-04  Eric Blake  <eblake@redhat.com>
8023
8024         canonicalize: avoid uninitialized memory use
8025         * lib/canonicalize-lgpl.c (__realpath): Avoid possibility of
8026         random '/' left in dest.
8027         * lib/canonicalize.c (canonicalize_filename_mode): Likewise.
8028
8029 2012-02-04  Bruno Haible  <bruno@clisp.org>
8030
8031         isatty: Fix test failure of ptsname_r on native Windows.
8032         * lib/isatty.c (_isatty_nothrow): Upon exception, return 0, not -1,
8033         and don't set errno.
8034         (isatty): Test first whether fd is valid. Set errno when returning 0.
8035
8036 2012-02-04  Bruno Haible  <bruno@clisp.org>
8037
8038         spawn-pipe tests: Fix a NULL program name in a diagnostic.
8039         * tests/test-spawn-pipe-main.c: Include progname.h.
8040         (main): Invoke set_program_name.
8041         * modules/spawn-pipe-tests (Depends-on): Add progname.
8042
8043         nonblocking-socket tests: Fix a NULL program name in a diagnostic.
8044         * tests/test-nonblocking-socket-main.c: Include progname.h.
8045         (main): Invoke set_program_name.
8046         * modules/nonblocking-socket-tests (Depends-on): Add progname.
8047
8048         nonblocking-pipe tests: Fix a NULL program name in a diagnostic.
8049         * tests/test-nonblocking-pipe-main.c: Include progname.h.
8050         (main): Invoke set_program_name.
8051         * modules/nonblocking-pipe-tests (Depends-on): Add progname.
8052
8053 2012-02-04  Eric Blake  <eblake@redhat.com>
8054
8055         canonicalize-lgpl: fix // handling
8056         * lib/canonicalize-lgpl.c (__realpath): Don't convert /// to //.
8057
8058         canonicalize: fix // handling
8059         * lib/canonicalize.c (canonicalize_filename_mode): Don't convert
8060         /// to //, since only // is special.
8061
8062 2012-02-04  Bruno Haible  <bruno@clisp.org>
8063
8064         ioctl: Fix test failure on native Windows.
8065         * lib/ioctl.c: Include msvc-nothrow.h.
8066         (primary_ioctl): If fd is not a valid handle, set errno to EBADF.
8067
8068 2012-02-04  Bruno Haible  <bruno@clisp.org>
8069
8070         fsync: Avoid test failure on native Windows.
8071         * lib/fsync.c (fsync) [Windows]: Don't fail if the handle is merely
8072         read-only.
8073
8074 2012-02-04  Bruno Haible  <bruno@clisp.org>
8075
8076         sys_select: Avoid syntax error on OpenBSD 5.0.
8077         * lib/sys_select.in.h [OpenBSD]: When /usr/include/pthread.h is
8078         currently being included, just include the system's <sys/select.h>.
8079
8080 2012-02-04  Bruno Haible  <bruno@clisp.org>
8081
8082         sys_select: Avoid syntax error on OpenBSD 5.0.
8083         * lib/sys_select.in.h: Include <signal.h> only after the include_next
8084         <sys/select.h>, not before.
8085         Reported by Jiri B <jirib@devio.us>.
8086
8087 2012-02-04  Bruno Haible  <bruno@clisp.org>
8088
8089         get-rusage-as, get-rusage-data tests: Avoid test failure with gcc-4.7.
8090         * tests/test-get-rusage-as.c (main): Assign the malloc() results to
8091         global variables.
8092         * tests/test-get-rusage-data.c (main): Likewise.
8093         Reported by Jim Meyering.
8094
8095 2012-02-04  Bruno Haible  <bruno@clisp.org>
8096
8097         stdioext: Fix last commit.
8098         * lib/fwritable.c [EPLAN9]: Include <fcntl.h>.
8099
8100 2012-02-03  Bruno Haible  <bruno@clisp.org>
8101
8102         stdioext: Add tentative support for Plan9.
8103         * lib/stdio-impl.h: Include <errno.h>.
8104         * lib/fseterr.c (fseterr) [EPLAN9]: Add conditional code.
8105         * lib/freadable.c (freadable): Likewise.
8106         * lib/fwritable.c (fwritable): Likewise.
8107         * lib/fbufmode.c (fbufmode): Likewise.
8108         * lib/freading.c (freading): Likewise.
8109         * lib/fwriting.c (fwriting): Likewise.
8110         * lib/freadptr.c (freadptr): Likewise.
8111         * lib/freadseek.c (freadptrinc): Likewise.
8112         * lib/freadahead.c (freadahead): Likewise.
8113         * lib/fpurge.c (fpurge): Likewise.
8114         * lib/fseeko.c (rpl_fseeko): Likewise.
8115         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Plan9.
8116         Reported by Jens Staal <staal1978@gmail.com>.
8117
8118 2012-02-02  Jim Meyering  <meyering@redhat.com>
8119
8120         file-has-acl: suppress a warning from gcc -Wsuggest-attribute=const
8121         * lib/file-has-acl.c (file_has_acl): This function (for some #ifdefs)
8122         would evoke a new gcc warning.  Given all of the #ifdefs, it is better
8123         not even to try to add the attribute.  Instead, add a pragma to suppress
8124         the suggestion/warning.
8125
8126 2012-01-31  Karl Berry  <karl@gnu.org>
8127
8128         setstate doc: typo.
8129         * doc/posix-functions/setstate.texi (setstate): { not (.
8130
8131 2012-01-31  Bruno Haible  <bruno@clisp.org>
8132
8133         popen: Make more robust on Windows.
8134         * lib/popen.c: On native Windows, use the _popen based code even if
8135         HAVE_POPEN is set.
8136         * doc/posix-functions/popen.texi: Mention necessity of COMSPEC
8137         environment variable on native Windows.
8138
8139 2012-01-30  Bruno Haible  <bruno@clisp.org>
8140
8141         pclose: Fix typo.
8142         * lib/stdio.in.h (pclose): Fix typo in warning message.
8143
8144 2012-01-30  Bruno Haible  <bruno@clisp.org>
8145
8146         doc about getlogin_r, setstate.
8147         * doc/posix-functions/getlogin_r.texi: List the incompatible
8148         declaration problem under "not fixed by gnulib".
8149         * doc/posix-functions/setstate.texi: Mention incompatible declaration
8150         problem on Solaris 11 and other platforms.
8151
8152 2012-01-30  Chuanchang Jia  <chuanchang.jia@gmail.com>  (tiny change)
8153             Bruno Haible  <bruno@clisp.org>
8154
8155         poll tests: Make test more robust.
8156         * tests/test-poll.c: Include macros.h.
8157         (test_accept_first, test_pair, test_socket_pair, test_pipe): Verify
8158         return value of various I/O operations.
8159         * modules/poll-tests (Files): Add tests/macros.h.
8160
8161 2012-01-30  Bruno Haible  <bruno@clisp.org>
8162
8163         sys_stat: Fix support for mingw64 and MSVC.
8164         * lib/sys_stat.in.h (stat) [AIX]: Don't redefine 'stat' if the system
8165         header files already do it.
8166         (stat) [mingw, msvc]: Redefine the symbol to which stat is defined, not
8167         stat itself.
8168         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
8169
8170 2012-01-30  Bruno Haible  <bruno@clisp.org>
8171
8172         wcwidth: Work around bug in UTF-8 locale on OpenBSD 5.0.
8173         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test also wcwidth of U+05B0.
8174         * doc/posix-functions/wcwidth.texi: Mention the OpenBSD 5.0 bug.
8175
8176 2012-01-29  Bruno Haible  <bruno@clisp.org>
8177
8178         quotearg: Fix test failure on MacOS X 10.5.
8179         * tests/test-quotearg-simple.c: Include localcharset.h.
8180         (main): If the locale encoding is not ASCII, bypass the tests of
8181         locale_quoting_style and clocale_quoting_style.
8182         * modules/quotearg-tests (Depends-on): Add 'localcharset'.
8183
8184 2012-01-29  Jim Meyering  <meyering@redhat.com>
8185
8186         maint.mk: sc_prohibit_canonicalize_without_use: avoid false positive
8187         * top/maint.mk (sc_prohibit_canonicalize_without_use): Also
8188         detect uses of canonicalize_file_name.
8189
8190 2012-01-28  Bruno Haible  <bruno@clisp.org>
8191
8192         test-framework-sh: Fix test failure with AIX 7.1 diff.
8193         * tests/init.sh (compare_): Don't use 'diff -u' if it inserts a space
8194         in column 1, like 'diff -c' does.
8195         * tests/test-init.sh (test_compare): Don't repeat the test from init.sh
8196         whether 'diff -u' is used. Instead, test whether the output contains
8197         some '@' character.
8198
8199 2012-01-28  Paul Eggert  <eggert@cs.ucla.edu>
8200
8201         strtoimax: eliminate need for stdint.h, inttypes.h checks
8202         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't use
8203         gl_AC_HEADER_STDINT_H or gl_AC_HEADER_INTTYPES_H.  This reduces
8204         the prerequisites for a recently-introduced strtoimax test.
8205         I guess this might cause strtoimax to be replaced when not
8206         strictly necessary on older hosts, but this shouldn't introduce
8207         any bugs and it should make Emacs 'configure' faster on typical
8208         modern hosts.  Problem discovered when importing the latest gnulib
8209         to an Emacs test version.
8210         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4.
8211
8212 2012-01-28  Bruno Haible  <bruno@clisp.org>
8213
8214         sys_time: Override 'struct timeval' on some native Windows platforms.
8215         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Test whether tv_sec
8216         has the right type. Set REPLACE_STRUCT_TIMEVAL if not.
8217         (gl_HEADER_SYS_TIME_H_DEFAULTS): Initialize REPLACE_STRUCT_TIMEVAL.
8218         * lib/sys_time.in.h: Include <winsock2.h> also when 'struct timeval'
8219         needs to be overridden.
8220         (timeval): Override if REPLACE_STRUCT_TIMEVAL is set.
8221         * modules/sys_time (Makefile.am): Substitute REPLACE_STRUCT_TIMEVAL.
8222         * tests/test-sys_select.c: Check that the tv_sec member has the same
8223         size as a 'time_t'.
8224         * tests/test-sys_time.c: Likewise.
8225         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): If REPLACE_STRUCT_TIMEVAL
8226         is set, set also REPLACE_GETTIMEOFDAY.
8227         * lib/gettimeofday.c (gettimeofday): If 'struct timeval' is overridden,
8228         convert the resulting 'struct timeval' before returning.
8229         * lib/select.c: Include <sys/time.h>.
8230         (select, timeval): Undefine at the right place.
8231         * modules/select (Depends-on): Add sys_time.
8232         * doc/posix-headers/sys_time.texi: Mention the problem with tv_sec on
8233         some Windows platforms.
8234         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
8235
8236 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
8237
8238         accept4, fcntl, socket modules: Avoid warnings on x86_64 mingw64.
8239         * lib/accept4.c (accept4): Use intptr_t to convert handle pointer to
8240         an integer.
8241         * lib/fcntl.c (dupfd): Likewise.
8242         * lib/w32sock.h (SOCKET_TO_FD): Likewise.
8243
8244 2012-01-28  Bruno Haible  <bruno@clisp.org>
8245
8246         fcntl: Avoid compilation error on native Windows.
8247         * modules/fcntl (Depends-on): Add 'close'.
8248
8249 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
8250
8251         select, poll, isatty: Avoid warnings on x86_64 mingw64.
8252         * lib/select.c (IsConsoleHandle): Use intptr_t to convert handle
8253         pointer to an integer.
8254         * lib/poll.c (IsConsoleHandle): Likewise.
8255         * lib/isatty.c (IsConsoleHandle): Likewise.
8256
8257 2012-01-28  Jim Meyering  <meyering@redhat.com>
8258
8259         doc: clarify README-release
8260         * top/README-release: Clarify: you should make a point to have
8261         the latest stable versions of build tools in your PATH, and the
8262         reference to buildreq is solely for its list of tool names, not
8263         for its minimal-functional version numbers.
8264         Prompted by discussion with Reuben Thomas and Gary V. Vaughan.
8265
8266         maint.mk: use more readable (yet functionally equivalent) quoting
8267         It is common to quote a single quote in a single quoted string like
8268         this:  '...'\''...'.  Unless you know the idiom, that looks like
8269         gibberish, so prefer to double-quote the string when possible.
8270         Then you can use a more readable, lone single quote: "...'..."
8271         * top/maint.mk (sc_cast_of_argument_to_free): Quoting like this
8272         "don't" is more readable than the equivalent 'don'\''t'.
8273         (sc_cast_of_x_alloc_return_value): Likewise.
8274         (sc_cast_of_alloca_return_value): Likewise.
8275         (sc_makefile_path_separator_check): Similar: use ":" in '...',
8276         rather than '\'':'\''.
8277
8278 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
8279
8280         stdalign: relax _Alignof and tighten _Alignas test
8281         * m4/stdalign.m4 (gl_STDALIGN_H): Relax the _Alignof test,
8282         as it was too strict: alignof must divide offsetof, but it need
8283         not equal offsetof.  Inspired by Joseph S. Myers's comment
8284         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023#c10>.
8285         Conversely, tighten the _Alignas test a bit, as the resulting
8286         alignment must be exactly 8.
8287
8288 2012-01-27  Bruno Haible  <bruno@clisp.org>
8289
8290         stdalign: Document the last change.
8291         * doc/posix-headers/stdalign.texi: Mention GCC bug 52023.
8292
8293 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
8294
8295         stdalign: check that alignof and offsetof are consistent
8296         * m4/stdalign.m4 (gl_STDALIGN_H): Check for GCC bug 52023.
8297         Problem reported for gnulib by Richard W.M. Jones in
8298         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00340.html>.
8299
8300 2012-01-27  Jim Meyering  <meyering@redhat.com>
8301
8302         update-copyright: accept new option: UPDATE_COPYRIGHT_USE_INTERVALS=2
8303         * build-aux/update-copyright: When UPDATE_COPYRIGHT_USE_INTERVALS=2,
8304         convert a sequence with gaps to the minimal containing range.
8305         For example, convert 2000, 2004-2007, 2009 to 2000-2009.
8306         * tests/test-update-copyright.sh: Test for this.
8307         The FSF confirmed it is ok to do this, assuming there is at
8308         least one significant change per year in the affected range:
8309         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29554/focus=29860
8310
8311 2012-01-26  Bruno Haible  <bruno@clisp.org>
8312
8313         pipe2: refine doc about thread-safety
8314         * doc/glibc-functions/pipe2.texi: Clarify the extent of the
8315         multithread-safety problem.
8316         * doc/glibc-functions/accept4.texi: Likewise.
8317
8318 2012-01-26  Bruno Haible  <bruno@clisp.org>
8319
8320         posix_spawn_file_actions_addopen: Fix 2012-01-08 commit.
8321         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN):
8322         In the test program, include <fcntl.h>, for O_RDONLY.
8323
8324 2012-01-26  Eric Blake  <eblake@redhat.com>
8325
8326         pipe2: document lack of thread-safety in replacement
8327         * doc/glibc-functions/pipe2.texi (pipe2): Mention thread safety
8328         issue in replacement.
8329         * doc/glibc-functions/accept4.texi (accept4): Likewise.
8330         Based on a report by Eric Wong.
8331
8332 2012-01-24  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
8333             Bruno Haible  <bruno@clisp.org>
8334
8335         malloca: Avoid warnings on x86_64 mingw64.
8336         * lib/malloca.c: Include <stdint.h>.
8337         (mmalloca, freea): Use uintptr_t to convert pointers to integers.
8338         * modules/malloca (Depends-on): Add stdint.
8339         * modules/relocatable-prog-wrapper (Depends-on): Likewise.
8340
8341 2012-01-25  Paul Eggert  <eggert@cs.ucla.edu>
8342
8343         obstack: remove __STDC__ conditionals
8344         * lib/obstack.h: Remove __STDC__ conditionals, as suggested by Joseph
8345         S. Myers in <http://cygwin.com/ml/libc-alpha/2012-01/msg00104.html>.
8346         This leaves lib/localcharset.c, m4/iconv.m4, and a confusing comment in
8347         m4/include_next.m4 as the only gnulib-maintained places that still
8348         refer to __STDC__.
8349
8350 2012-01-24  Bruno Haible  <bruno@clisp.org>
8351
8352         havelib: Modern quoting.
8353         * build-aux/config.rpath: Quote 'like this', not `like this', as per
8354         the recent change to the GNU coding standards.
8355
8356 2012-01-24  Bruno Haible  <bruno@clisp.org>
8357
8358         stdint: Improve support for Android.
8359         * lib/stdint.in.h: Test __ANDROID__, not __BIONIC__.
8360         Reported by Simon Josefsson <simon@josefsson.org>.
8361
8362 2012-01-23  Paul Eggert  <eggert@cs.ucla.edu>
8363
8364         doc: omit trailing empty lines from INSTALL etc.
8365         * doc/Makefile (INSTALL): Omit trailing empty lines.
8366         (INSTALL.ISO, INSTALL.UTF-8): Build from INSTALL, so that these also
8367         omit trailing empty lines.  This simplifies the build procedure.
8368
8369 2012-01-23  Jim Meyering  <meyering@redhat.com>
8370
8371         tests: avoid spurious warnings about gl_sockets_startup
8372         Fedora rawhide's gcc version 4.7.0 20120119 with -Wunused-value
8373         would warn about every use of "gl_sockets_startup (SOCKETS_1_1);"
8374         reporting a "statement with no effect".
8375         * tests/test-accept.c (main): Mark as "(void)".
8376         * tests/test-accept4.c (main): Likewise.
8377         * tests/test-bind.c (main): Likewise.
8378         * tests/test-connect.c (main): Likewise.
8379         * tests/test-getpeername.c (main): Likewise.
8380         * tests/test-getsockname.c (main): Likewise.
8381         * tests/test-getsockopt.c (main): Likewise.
8382         * tests/test-listen.c (main): Likewise.
8383         * tests/test-recv.c (main): Likewise.
8384         * tests/test-recvfrom.c (main): Likewise.
8385         * tests/test-send.c (main): Likewise.
8386         * tests/test-sendto.c (main): Likewise.
8387         * tests/test-setsockopt.c (main): Likewise.
8388         * tests/test-shutdown.c (main): Likewise.
8389
8390 2012-01-21  Bruno Haible  <bruno@clisp.org>
8391
8392         locale-fr.m4: Fix for Android.
8393         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Avoid compilation
8394         failure of the test program on Bionic libc.
8395
8396 2012-01-21  Jim Meyering  <meyering@redhat.com>
8397
8398         bootstrap: fail when bootstrap_post_import_hook fails
8399         Otherwise, it's far too easy to miss diagnostics emitted
8400         between gnulib-tool's output and that of running configure.
8401         * build-aux/bootstrap: Fail when bootstrap_post_import_hook fails.
8402
8403 2012-01-17  Jim Meyering  <meyering@redhat.com>
8404
8405         maint: enable sc_trailing_blank
8406         * build-aux/pmccabe.css: Remove trailing blanks.
8407         * doc/acl-cygwin.txt: Likewise.
8408         * doc/gnu-oids.texi: Likewise
8409         * cfg.mk: Enable sc_trailing_blank.
8410         Exempt build-aux/texinfo.tex and doc/Copyright/assign.future.manual.
8411
8412 2012-01-17  Jim Meyering  <meyering@redhat.com>
8413
8414         maint: enable sc_prohibit_openat_without_use
8415         * cfg.mk: Enable sc_prohibit_openat_without_use.
8416         Exempt lib/selinux-at.c.
8417
8418 2012-01-17  Jim Meyering  <meyering@redhat.com>
8419
8420         maint: enable sc_prohibit_cloexec_without_use
8421         * cfg.mk: Enable sc_prohibit_cloexec_without_use.
8422         * lib/dup-safer-flag.c: Don't include "cloexec.h".  Not needed.
8423
8424 2012-01-17  Jim Meyering  <meyering@redhat.com>
8425
8426         maint: enable sc_prohibit_intprops_without_use
8427         * cfg.mk: Enable sc_prohibit_intprops_without_use
8428         * tests/test-nanosleep.c: Don't include "intprops.h".  Not needed.
8429
8430 2012-01-17  Jim Meyering  <meyering@redhat.com>
8431
8432         maint: enable sc_prohibit_hash_pjw_without_use
8433         * cfg.mk: Enable sc_prohibit_hash_pjw_without_use.
8434         * top/maint.mk (sc_prohibit_hash_pjw_without_use): Adjust regexp
8435         to match any use of \<hash_pjw\>, i.e., not necessarily with a
8436         following " (".
8437
8438 2012-01-17  Jim Meyering  <meyering@redhat.com>
8439
8440         maint: enable double-word-prohibiting rule
8441         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_doubled_word.
8442         Exempt three files.
8443
8444 2012-01-17  Jim Meyering  <meyering@redhat.com>
8445
8446         maint: remove empty lines at EOF, but excluding modules/*
8447         Apply syntax rules at home as well as abroad.  Most changes
8448         were induced by running this:
8449           make srcdir=. _build-aux=build-aux -f top/maint.mk \
8450             sc_prohibit_empty_lines_at_EOF | grep -v modules/ \
8451             | xargs perl -pi -0777 -e 's/\n\n+$/\n/'
8452         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_empty_lines_at_EOF.
8453         Exempt modules/* and two binary files.
8454         Also exempt doc/INSTALL*, per request from Bruno Haible.
8455         * doc/regexprops-generic.texi: *Add* a newline at EOF.  There was none.
8456         * doc/Copyright/assign.translation.manual: Remove empty lines at EOF.
8457         * doc/Copyright/request-assign.future: Likewise.
8458         * doc/Copyright/request-disclaim.changes: Likewise.
8459         * doc/INSTALL: Likewise.
8460         * doc/INSTALL.ISO: Likewise.
8461         * doc/INSTALL.UTF-8: Likewise.
8462         * doc/acl-cygwin.txt: Likewise.
8463         * doc/acl-resources.txt: Likewise.
8464         * doc/fdl-1.2.texi: Likewise.
8465         * doc/fdl-1.3.texi: Likewise.
8466         * doc/fdl.texi: Likewise.
8467         * lib/argp-pin.c: Likewise.
8468         * lib/round.c: Likewise.
8469         * lib/unicase/u16-totitle.c: Likewise.
8470         * lib/unictype/block_test.c: Likewise.
8471         * lib/uninorm/canonical-decomposition.c: Likewise.
8472         * m4/README: Likewise.
8473         * m4/relocatable-lib.m4: Likewise.
8474         * tests/test-isnand-nolibm.c: Likewise.
8475         * tests/test-isnand.c: Likewise.
8476         * tests/uninorm/NormalizationTest.txt: Likewise.
8477
8478 2012-01-17  Jim Meyering  <meyering@redhat.com>
8479
8480         maint: add framework to run syntax-check rules against gnulib sources
8481         * cfg.mk: New file, to disable all currently-failing tests.
8482         We'll enable them one by one, as they are made to pass.
8483         * Makefile (sc_maint): New rule.
8484
8485 2012-01-21  Bruno Haible  <bruno@clisp.org>
8486
8487         stdint: Add support for Android.
8488         * lib/stdint.in.h: When included from Bionic <sys/types.h>, just
8489         include the system's <stdint.h>.
8490         Reported by Simon Josefsson <simon@josefsson.org>.
8491
8492 2012-01-19  Jim Meyering  <meyering@redhat.com>
8493
8494         bootstrap: add bootstrap_post_import_hook
8495         Bison does still need something like the gnulib_mk_hook whose
8496         invocation I had to remove along with slurp in commit 767ccd40.
8497         Technically, we could get along without it, but doing so would
8498         have required living with a warning and a mandatory post-bootstrap
8499         automake rerun.
8500         * build-aux/bootstrap (gnulib_mk_hook): Remove definition, too.
8501         (bootstrap_post_import_hook): New function.
8502         Invoke it after gnulib-tool --import and before autoreconf.
8503
8504 2012-01-18  Jim Meyering  <meyering@redhat.com>
8505
8506         gitlog-to-changelog: don't use "no_"-prefixed variable name
8507         * build-aux/gitlog-to-changelog (main): Use getopt's "!" attribute
8508         to enable both --cluster and --no-cluster.  Change variable name,
8509         s/\$no_cluster/$cluster/, and reverse usage to match.
8510
8511         gitlog-to-changelog: use "||", not "or" in expressions
8512         * build-aux/gitlog-to-changelog (main): Use "||", not "or" in
8513         expressions.
8514
8515 2012-01-17  Joel E. Denny  <joeldenny@joeldenny.org>
8516
8517         gitlog-to-changelog: new option --no-cluster
8518         * build-aux/gitlog-to-changelog: New option --no-cluster, disables
8519         clustering of adjacent commit messages.
8520
8521 2012-01-17  Jim Meyering  <meyering@redhat.com>
8522
8523         maint: spell file systems with two words, not one
8524         * m4/ls-mntd-fs.m4 (MOUNTED_INTERIX_STATVFS): Spell file systems with
8525         two words, not one.
8526
8527 2012-01-16  Jim Meyering  <meyering@redhat.com>
8528
8529         bootstrap: add a FIXME comment to ensure we eventually remove the hack
8530         * build-aux/bootstrap (gnulib_tool_options): Add comment.
8531
8532 2012-01-16  Eric Blake  <eblake@redhat.com>
8533
8534         bootstrap: cater to autoconf 2.59
8535         * build-aux/bootstrap (AUTORECONF): Work even when --no-recursive
8536         is not available.
8537
8538         bootstrap: properly check for libtool
8539         * build-aux/bootstrap (libtoolize): Also run libtool when older
8540         usage is detected.
8541
8542 2012-01-15  Bruno Haible  <bruno@clisp.org>
8543
8544         Improve support for MSVC 9.
8545         * lib/unistd.in.h: Include <io.h> when needed to avoid redefinition
8546         clashes on MSVC.
8547         * lib/fcntl.in.h: Likewise.
8548         * lib/stdlib.in.h: Likewise.
8549         * lib/sys_stat.in.h: Likewise.
8550
8551 2011-01-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
8552
8553         gnupload: we hold the master copy of this script now
8554         For motivation and more information, see:
8555         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00222.html>
8556         * build-aux/gnupload: Make it clear in the heading comments that the
8557         master copy of this file is maintained by gnulib.  Since we are at
8558         it, bump its copyright year and ...
8559         ($scriptversion): ... the date in its version.
8560         ($usage): Patches and bug reports should be sent to the gnulib list,
8561         not the automake one.
8562         * config/srclist.txt: Don't try to sync 'gnupload' from automake
8563         anymore.
8564
8565 2012-01-15  Bruno Haible  <bruno@clisp.org>
8566
8567         Fix module 'random'.
8568         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether random, srandom,
8569         initstate, setstate are declared.
8570
8571 2012-01-14  Bruno Haible  <bruno@clisp.org>
8572
8573         Tests for module 'random'.
8574         * modules/random-tests: New file.
8575         * tests/test-random.c: New file, based on tests/test-random_r.c.
8576
8577         New module 'random'.
8578         * lib/stdlib.in.h (random, srandom, initstate, setstate): New
8579         declarations.
8580         * lib/random.c: New file, based on glibc/stdlib/random.c.
8581         * m4/random.m4: New file.
8582         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RANDOM,
8583         HAVE_RANDOM.
8584         * modules/stdlib (Makefile.am): Substitute GNULIB_RANDOM, HAVE_RANDOM.
8585         * modules/random: New file.
8586         * config/srclist.txt: Add an entry for random.c.
8587         * doc/posix-functions/random.texi: Mention the 'random' module.
8588         * doc/posix-functions/initstate.texi: Likewise.
8589         * doc/posix-functions/setstate.texi: Likewise.
8590         * doc/posix-functions/srandom.texi: Likewise.
8591
8592 2012-01-12  Bruno Haible  <bruno@clisp.org>
8593
8594         random_r: Use common idioms.
8595         * lib/random_r.c: Include <stdlib.h> first.
8596
8597         random_r: Override incompatible API on AIX, OSF/1.
8598         * lib/stdlib.in.h (random_r, srandom_r, initstate_r, setstate_r):
8599         Override the system function if REPLACE_RANDOM_R is 1.
8600         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Require AC_CANONICAL_HOST. On AIX
8601         and OSF/1, set REPLACE_RANDOM_R.
8602         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_RANDOM_R.
8603         * modules/stdlib (Makefile.am): Substitute REPLACE_RANDOM_R.
8604         * modules/random_r (configure.ac): Test REPLACE_RANDOM_R.
8605         * doc/glibc-functions/initstate_r.texi: Mention the AIX, OSF/1 problem.
8606         * doc/glibc-functions/random_r.texi: Likewise.
8607         * doc/glibc-functions/setstate_r.texi: Likewise.
8608
8609         random_r: Support for MSVC 9.
8610         * lib/random_r.c: Include stdint.h, not inttypes.h.
8611
8612 2012-01-12  Eric Blake  <eblake@redhat.com>
8613
8614         inet_ntop: guard extra work by IF_LINT
8615         * lib/inet_ntop.c (inet_ntop6): Mark spurious initialization, for
8616         better code generation when not checking for warnings.
8617         Suggested by Paul Eggert and Jim Meyering.
8618
8619         strptime: fix regression on mingw
8620         * lib/strptime.c (__strptime_internal) [!_LIBC && !HAVE_TM_GMTOFF]:
8621         Fix regression.  Reported by Bruno Haible.
8622
8623 2012-01-11  Reuben Thomas  <rrt@sc3d.org>
8624             Bruno Haible  <bruno@clisp.org>
8625
8626         copy-file: add error-code-returning variant.
8627         * lib/copy-file.h (GL_COPY_ERR_*): New enumeration items.
8628         (qcopy_file_preserving): New declaration.
8629         * lib/copy-file.c (qcopy_file_preserving): Renamed from
8630         copy_file_preserving. Change return type to 'int'. Don't emit an error
8631         message here.
8632         (copy_file_preserving): New function.
8633         * tests/test-copy-file.c: Include <stdlib.h>.
8634         (main): Test qcopy_file_preserving if the environment variable
8635         NO_STDERR_OUTPUT is set.
8636         * tests/test-copy-file-1.sh: Invoke test-copy-file.sh a second time,
8637         with NO_STDERR_OUTPUT
8638         * tests/test-copy-file-2.sh: Likewise.
8639
8640 2012-01-10  Bruno Haible  <bruno@clisp.org>
8641
8642         copy-file: Use 'quote' module consistently.
8643         * lib/copy-file.c (copy_file_preserving): Use quote().
8644
8645         copy-file: Refactor.
8646         * lib/copy-file.c: Include quote.h.
8647         (copy_file_preserving): Call qcopy_acl instead of copy_acl. Emit error
8648         message here.
8649         * modules/copy-file (Depends-on): Add quote.
8650
8651         acl: Export qcopy_acl.
8652         * lib/acl.h (qcopy_acl): New declaration.
8653         * lib/copy-acl.c (qcopy_acl): Make non-static.
8654
8655         acl: Rename a local variable.
8656         * lib/set-mode-acl.c (set_acl): Use same variable name as in copy_acl.
8657
8658         acl: Align return values of copy_acl and qcopy_acl.
8659         * lib/copy-acl.c (copy_acl): Return the same value as qcopy_acl,
8660         maybe < -1.
8661
8662 2012-01-11  Eric Blake  <eblake@redhat.com>
8663
8664         strptime: silence gcc warnings
8665         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT],
8666         [!_LIBC && !HAVE_TM_GMTOFF]: Avoid unused variables.
8667         Reported by Daniel P. Berrange.
8668
8669         inet_ntop: silence gcc warning
8670         * lib/inet_ntop.c (inet_ntop6): Initialize best.base.
8671         Reported by Daniel P. Berrange.
8672
8673 2012-01-11  Dmitry V. Levin  <ldv@altlinux.org>
8674
8675         getloadavg test: skip the test on GNU/Linux without /proc mounted
8676         GNU libc implements getloadavg(3) on Linux by parsing /proc/loadavg
8677         file.  When /proc is not mounted, it always fails with ENOENT.
8678         * tests/test-getloadavg.c (main): Treat ENOENT return code from
8679         getloadavg(3) the same way as ENOSYS and ENOTSUP.
8680
8681 2012-01-10  Bruno Haible  <bruno@clisp.org>
8682
8683         regex: Avoid link error on MSVC 9.
8684         * modules/regex (Depends-on): Add wctype.
8685
8686 2012-01-10  Bruno Haible  <bruno@clisp.org>
8687
8688         doc: Mention --with-tests option.
8689         * gnulib-tool (func_usage): Suggest --with-tests for --test etc.
8690         * doc/gnulib.texi (Extra tests modules): Mention the need to pass
8691         --with-tests.
8692         Reported by Reuben Thomas.
8693
8694 2012-01-10  Reuben Thomas  <rrt@sc3d.org>
8695
8696         users.txt: order package names lexicographically.
8697         * users.txt: Order package names lexicographically.
8698
8699 2012-01-10  Jim Meyering  <meyering@redhat.com>
8700
8701         maint.mk: fix description in comment
8702         * top/maint.mk (require_exactly_one_NL_at_EOF_): Fix comment.
8703
8704         ignore-value: remove deprecated ignore_ptr function
8705         * lib/ignore-value.h (ignore_ptr): Remove deprecated function.
8706         * NEWS: Note this.
8707
8708 2012-01-09  Jim Meyering  <meyering@redhat.com>
8709
8710         test-init.sh: avoid a subshell
8711         * tests/test-init.sh: Remove protective subshell.
8712         Suggested by Bernhard Voelker.  While a subshell is normally
8713         required to protect against older shells (Solaris, FreeBSD) that
8714         warn about a missing program before performing redirection, the
8715         shell-selection tests performed by init.sh probably exclude any
8716         offending shell.
8717
8718 2012-01-08  Bruno Haible  <bruno@clisp.org>
8719
8720         setlocale tests: Avoid test failure on Solaris 11 2011-11.
8721         * tests/test-setlocale2.sh: Use 'env' to set the LC_ALL environment
8722         variable.
8723
8724 2012-01-08  Bruno Haible  <bruno@clisp.org>
8725
8726         posix_spawn_file_actions_addopen: Work around Solaris 11 2011-11 bug.
8727         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
8728         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
8729         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): New
8730         macro.
8731         * lib/spawn.in.h (posix_spawn_file_actions_addopen): Test
8732         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
8733         * lib/spawn_faction_addopen.c: Add workaround implementation if
8734         HAVE_WORKING_POSIX_SPAWN.
8735         * modules/spawn (Makefile): Substitute
8736         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
8737         * modules/posix_spawn_file_actions_addopen (configure.ac): Invoke
8738         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN. Test
8739         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
8740         (Depends-on): Update conditions.
8741         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
8742         the Solaris 11 bug.
8743
8744 2012-01-08  Bruno Haible  <bruno@clisp.org>
8745
8746         posix_spawn_file_actions_adddup2: Work around Solaris 11 2011-11 bug.
8747         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
8748         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
8749         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): New
8750         macro.
8751         * lib/spawn.in.h (posix_spawn_file_actions_adddup2): Test
8752         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
8753         * lib/spawn_faction_adddup2.c: Add workaround implementation if
8754         HAVE_WORKING_POSIX_SPAWN.
8755         * modules/spawn (Makefile): Substitute
8756         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
8757         * modules/posix_spawn_file_actions_adddup2 (configure.ac): Invoke
8758         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2. Test
8759         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
8760         (Depends-on): Update conditions.
8761         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
8762         the Solaris 11 bug.
8763
8764 2012-01-08  Bruno Haible  <bruno@clisp.org>
8765
8766         posix_spawn_file_actions_addclose: Work around Solaris 11 2011-11 bug.
8767         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
8768         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
8769         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Define
8770         HAVE_WORKING_POSIX_SPAWN.
8771         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): New macro.
8772         * lib/spawn.in.h (posix_spawn_file_actions_addclose): Test
8773         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
8774         * lib/spawn_faction_addclose.c: Add workaround implementation if
8775         HAVE_WORKING_POSIX_SPAWN.
8776         * modules/spawn (Makefile): Substitute
8777         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
8778         * modules/posix_spawn_file_actions_addclose (configure.ac): Invoke
8779         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE. Test
8780         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
8781         (Depends-on): Update conditions.
8782         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
8783         the Solaris 11 bug.
8784
8785 2012-01-08  Bruno Haible  <bruno@clisp.org>
8786
8787         doc: Update for Solaris 11 2011-11.
8788         * doc/*/*.texi: Mention Solaris 11 2011-11 where appropriate.
8789         * m4/printf.m4: Update comments.
8790
8791 2012-01-08  Bruno Haible  <bruno@clisp.org>
8792
8793         mktime: Avoid compilation error on Solaris 11.
8794         * lib/mktime.c (WRAPV): Define to 0 on all non-glibc systems.
8795
8796 2012-01-08  Bruno Haible  <bruno@clisp.org>
8797
8798         doc: Small fix.
8799         * doc/posix-headers/nl_types.texi: Correct platforms list.
8800
8801 2012-01-08  Simon Josefsson  <simon@josefsson.org>
8802
8803         Add lgpl-3.0 module.
8804         * MODULES.html.sh (Support for building documentation): Add
8805         lgpl-3.0.
8806         * modules/lgpl-3.0: New file.
8807
8808 2012-01-08  Jim Meyering  <meyering@redhat.com>
8809
8810         select.c: indent with spaces, not TABs
8811         * lib/select.c (windows_poll_handle): Indent with spaces, not TABs.
8812
8813 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
8814
8815         quotearg: do not use grave accent for left quote
8816         * lib/quotearg.c (gettext_quote): Map "`" to "'" for
8817         locale_quoting_style.
8818         (quotearg_buffer_restyled): Fix example.
8819         * tests/test-quotearg-simple.c (results_g): Adjust test vectors.
8820
8821 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
8822
8823         quotearg: fall back to Unicode single quotes in UTF-8, GB-18030 locales
8824         Most programs do not have translation catalogs for English and much
8825         less separate catalogs for British and American English.  Drop the
8826         suggestion to translators about these two, and provide it
8827         automatically for Unicode locales.  Like most programs, even those
8828         using American English, we use single quotation marks.  This conflicts
8829         with the American typographic convention, but works better when you
8830         cite the entire error message within double quotes.  It also tries not
8831         to clash with established practice and with what non-gnulib programs
8832         will usually do.
8833         * lib/quotearg.c (gettext_quote): Hard-code U+2018 and U+2019 when
8834         using an UTF-8 or GB-18030 locale.  The list of other locales with
8835         quotes was provided by Bruno Haible.
8836         (quotearg_buffer_restyled): Adjust instructions to translators.
8837         * lib/quotearg.h (locale_quoting_style): Do not put an example in the
8838         text, since this would be wrong when using Unicode.
8839         * modules/quotearg: Depend on c-strcaseeq.
8840
8841 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
8842
8843         quotearg: fix Wikipedia link
8844         * lib/quotearg.c (quotearg_buffer_restyled): Fix link to Wikipedia.
8845
8846 2012-01-07  Simon Josefsson  <simon@josefsson.org>
8847
8848         Fix for mingw with MSVC9.
8849         * m4/ld-version-script.m4: Check that compiler rejects version
8850         scripts with syntax errors.  Reported by Bruno Haible
8851         <bruno@clisp.org>.
8852
8853 2012-01-06  Bruno Haible  <bruno@clisp.org>
8854
8855         Talk about "native Windows API", not "Woe32".
8856         * lib/accept4.c: Update comments to mention native Windows.
8857         * lib/execute.c: Likewise.
8858         * lib/fatal-signal.c: Likewise.
8859         * lib/localcharset.c: Likewise.
8860         * lib/nanosleep.c: Likewise.
8861         * lib/nl_langinfo.c: Likewise.
8862         * lib/pclose.c: Likewise.
8863         * lib/pipe-filter-gi.c: Likewise.
8864         * lib/pipe-filter-ii.c: Likewise.
8865         * lib/pipe.c: Likewise.
8866         * lib/pipe2.c: Likewise.
8867         * lib/popen.c: Likewise.
8868         * lib/progreloc.c: Likewise.
8869         * lib/relocatable.c: Likewise.
8870         * lib/sigaction.c: Likewise.
8871         * lib/sigprocmask.c: Likewise.
8872         * lib/spawn-pipe.h: Likewise.
8873         * lib/spawn-pipe.c: Likewise.
8874         * lib/spawni.c: Likewise.
8875         * lib/stat-time.h: Likewise.
8876         * lib/w32spawn.h: Likewise.
8877         * tests/test-isatty.c: Likewise.
8878         * lib/config.charset: More comments.
8879         * doc/gnulib-intro.texi: Mention native Windows.
8880         * doc/posix-functions/_Exit_C99.texi: Likewise.
8881         * doc/posix-headers/fcntl.texi: Likewise.
8882
8883 2012-01-06  Guillem Jover  <guillem@hadrons.org>  (tiny change)
8884
8885         argp: Avoid crash if translator uses % characters in a translation.
8886         * lib/argp-parse.c (argp_version_parser): Use a "%s" format string.
8887         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
8888
8889 2012-01-06  Paul Eggert  <eggert@cs.ucla.edu>
8890
8891         doc: C11 and C++11 are now official
8892         * doc/posix-headers/assert.texi, doc/posix-headers/stdalign.texi:
8893         * doc/verify.texi, stdalign.in.h, verify.h, m4/gnulib-common.m4:
8894         * m4/stdalign.m4, modules/assert-h, modules/snippet/_Noreturn:
8895         * modules/stdalign:
8896         Replace references to draft C1X to C11, and to draft C++0X to C++11.
8897
8898 2012-01-06  Bruno Haible  <bruno@clisp.org>
8899
8900         uc-is-grapheme-break tests: Tweak.
8901         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Fix an error
8902         message.
8903
8904 2012-01-06  Bruno Haible  <bruno@clisp.org>
8905
8906         test-init.sh: correct the test for diff -u
8907         * tests/test-init.sh: Also redirect stdout to /dev/null.
8908
8909 2012-01-05  Paul Eggert  <eggert@cs.ucla.edu>
8910
8911         Use ', not `, for quoting output.
8912         * build-aux/announce-gen (usage, sizes, print_news_deltas)
8913         (print_changelog_deltas, get_tool_versions, main program):
8914         * build-aux/git-version-gen:
8915         * build-aux/gitlog-to-changelog (usage, parse_amend_file):
8916         * build-aux/move-if-change (help):
8917         * build-aux/useless-if-before-free (usage, main program):
8918         * check-module (parse_module_file, usage)
8919         (find_included_lib_files, check_module):
8920         * lib/argmatch.c (main) [TEST]:
8921         * lib/argp-help.c (_help):
8922         * lib/getopt1.c (main) [TEST]:
8923         * lib/git-merge-changelog.c (usage):
8924         * lib/xstrtol-error.c (xstrtol_error):
8925         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
8926         * m4/argz.m4 (gl_FUNC_ARGZ):
8927         * m4/bison.m4 (gl_BISON):
8928         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU):
8929         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
8930         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
8931         * m4/fpending.m4 (gl_PREREQ_FPENDING):
8932         * m4/gc-random.m4 (gl_GC_RANDOM):
8933         * m4/intl.m4 (gt_CHECK_DECL):
8934         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK):
8935         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT)
8936         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
8937         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS):
8938         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
8939         * m4/onceonly.m4 (AC_CHECK_FUNCS_ONCE):
8940         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION):
8941         * tests/test-dirname.c (main):
8942         * tests/test-getpass.c (main):
8943         * tests/test-iconvme.c (main):
8944         * tests/test-parse-datetime.c (LOG):
8945         * tests/test-xstrtoimax.sh:
8946         * tests/test-xstrtol.sh:
8947         * tests/test-xstrtoll.sh:
8948         * tests/test-xstrtoumax.sh:
8949         * tests/unigbrk/test-uc-is-grapheme-break.c (main):
8950         * top/GNUmakefile (abort-due-to-no-makefile):
8951         Quote 'like this', not `like this', as per the recent change to
8952         the GNU coding standards.
8953
8954 2012-01-05  Bruno Haible  <bruno@clisp.org>
8955
8956         strtoimax: Don't force a replacement on systems where intmax_t is int.
8957         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Use a different test if
8958         'intmax_t' is not larger than 'int'.
8959         Reported by Pádraig Brady <P@draigBrady.com>.
8960
8961 2012-01-05  Bruno Haible  <bruno@clisp.org>
8962
8963         doc: Mention NetBSD bugs.
8964         * doc/posix-functions/*printf.texi: Mention a NetBSD 5.1 bug.
8965         * doc/posix-functions/nl_langinfo.texi: Mention another NetBSD 5.1 bug.
8966
8967 2012-01-05  Bruno Haible  <bruno@clisp.org>
8968
8969         strtoumax tests: Enhance tests.
8970         * tests/test-strtoumax.c (main): Add tests for large values.
8971
8972 2012-01-05  Bruno Haible  <bruno@clisp.org>
8973
8974         strtoimax: Work around AIX 5.1 bug.
8975         * lib/inttypes.in.h (strtoimax): Allow overriding the system's
8976         definition.
8977         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Check against the AIX 5.1 bug.
8978         Set HAVE_STRTOIMAX.
8979         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize
8980         REPLACE_STRTOIMAX.
8981         * modules/inttypes-incomplete (Makefile.am): Substitute
8982         REPLACE_STRTOIMAX.
8983         * modules/strtoimax (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
8984         (configure.ac): Test HAVE_STRTOIMAX, REPLACE_STRTOIMAX.
8985         (Depends-on): Update conditions.
8986         * tests/test-strtoimax.c (main): Add tests for large values.
8987         * doc/posix-functions/strtoimax.texi: Mention the AIX 5.1 bug.
8988
8989 2012-01-05  Bruno Haible  <bruno@clisp.org>
8990
8991         inttypes: Modernize.
8992         * lib/inttypes.in.h (strtoimax, strtoumax): Use the C++ safe idioms.
8993         * modules/inttypes-incomplete (Depends-on): Add snippet/c++defs.
8994         (Makefile.am): Update inttypes.h rule.
8995
8996 2012-01-05  Jim Meyering  <meyering@redhat.com>
8997
8998         init.sh: don't waste a subshell just to redirect stderr
8999         * tests/init.sh: In testing for diff -u and diff -c, use a
9000         stderr-redirecting exec inside `...` rather than a subshell.
9001
9002         test-init.sh: avoid failure on HP-UX 11.00
9003         * tests/test-init.sh: Skip "diff -u"-comparing step when compare
9004         resolves to diff -c or cmp.  Reported by Bruno Haible.
9005
9006 2012-01-05  Bruno Haible  <bruno@clisp.org>
9007
9008         Tests for module 'strtoull'.
9009         * modules/strtoull-tests: New file.
9010         * tests/test-strtoull.c: New file, based on tests/test-strtoumax.c.
9011
9012 2012-01-05  Bruno Haible  <bruno@clisp.org>
9013
9014         Tests for module 'strtoll'.
9015         * modules/strtoll-tests: New file.
9016         * tests/test-strtoll.c: New file, based on tests/test-strtoimax.c.
9017
9018 2012-01-05  Bruno Haible  <bruno@clisp.org>
9019
9020         Tests for module 'strtoul'.
9021         * modules/strtoul-tests: New file.
9022         * tests/test-strtoul.c: New file, based on tests/test-strtoumax.c.
9023
9024 2012-01-05  Bruno Haible  <bruno@clisp.org>
9025
9026         Tests for module 'strtol'.
9027         * modules/strtol-tests: New file.
9028         * tests/test-strtol.c: New file, based on tests/test-strtoimax.c.
9029
9030 2012-01-04  Jim Meyering  <meyering@redhat.com>
9031
9032         test-init.sh: accommodate Solaris 5.10's different diff -u output
9033         * tests/test-init.sh: Also exempt @@ lines from the comparison
9034         of diff output, since Solaris 5.10 and GNU diff formats differ.
9035         Reported by Stefano Lattarini.
9036
9037 2012-01-04  Paul Eggert  <eggert@cs.ucla.edu>
9038
9039         test-posixtm: don't assume signed integer wraparound
9040         * tests/test-posixtm.c (main): Don't assume wraparound semantics
9041         after signed integer overflow.  Inspired by (though it may not
9042         fix) Bruno Haible's bug report in
9043         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00066.html>.
9044
9045         Spell out "Windows 9x" and "Windows XP".
9046         * lib/poll.c, lib/select.c: In comments, replace "Win9x" with
9047         "Windows 9x" and "WinXP" with "Windows XP".
9048
9049 2012-01-04  Jim Meyering  <meyering@redhat.com>
9050
9051         test-vc-list-files-cvs.sh: remove obsolete comment
9052         * tests/test-vc-list-files-cvs.sh: Remove obsolete comment about
9053         double exit.  Now that's all encapsulated via skip_ and Exit.
9054
9055 2012-01-04  Bruno Haible  <bruno@clisp.org>
9056
9057         Talk about "native Windows API", not "Win32".
9058         * lib/classpath.c: Update comments to mention native Windows.
9059         * lib/csharpexec.c: Likewise.
9060         * lib/dup2.c: Likewise.
9061         * lib/error.c: Likewise.
9062         * lib/fcntl.c: Likewise.
9063         * lib/filename.h: Likewise.
9064         * lib/findprog.c: Likewise.
9065         * lib/get-rusage-as.c: Likewise.
9066         * lib/get-rusage-data.c: Likewise.
9067         * lib/getpagesize.c: Likewise.
9068         * lib/javaexec.c: Likewise.
9069         * lib/msvc-inval.c: Likewise.
9070         * lib/msvc-nothrow.c: Likewise.
9071         * lib/nanosleep.c: Likewise.
9072         * lib/nonblocking.c: Likewise.
9073         * lib/printf-parse.c: Likewise.
9074         * lib/setlocale.c: Likewise.
9075         * lib/sigaction.c: Likewise.
9076         * lib/strerror_r.c: Likewise.
9077         * lib/tmpdir.c: Likewise.
9078         * lib/vasnprintf.c: Likewise.
9079         * lib/w32spawn.h: Likewise.
9080         * lib/waitpid.c: Likewise.
9081         * lib/stdio.in.h (fdopen, fopen, freopen): Likewise.
9082         * m4/locale-ar.m4: Likewise.
9083         * m4/locale-fr.m4: Likewise.
9084         * m4/locale-ja.m4: Likewise.
9085         * m4/locale-tr.m4: Likewise.
9086         * m4/locale-zh.m4: Likewise.
9087         * m4/printf.m4: Likewise.
9088         * tests/test-cloexec.c: Likewise.
9089         * tests/test-copy-acl.sh: Likewise.
9090         * tests/test-copy-file.sh: Likewise.
9091         * tests/test-file-has-acl.sh: Likewise.
9092         * tests/test-set-mode-acl.sh: Likewise.
9093         * tests/test-dup-safer.c: Likewise.
9094         * tests/test-dup2.c: Likewise.
9095         * tests/test-dup3.c: Likewise.
9096         * tests/test-fcntl.c: Likewise.
9097         * tests/test-nonblocking-pipe.h: Likewise.
9098         * tests/test-nonblocking-socket.h: Likewise.
9099         * tests/test-pipe.c: Likewise.
9100         * tests/test-pipe2.c: Likewise.
9101         * tests/test-spawn-pipe-child.c: Likewise.
9102         * doc/acl-resources.txt: Likewise.
9103         * lib/getaddrinfo.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
9104         * tests/test-poll.c (WINDOWS_NATIVE): Likewise.
9105         * tests/test-select.h (WINDOWS_NATIVE): Likewise.
9106         * lib/localcharset.c: Update comments to mention native Windows.
9107         (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
9108         * lib/localename.c: Likewise.
9109         * lib/progreloc.c: Likewise.
9110         * lib/relocatable.c: Likewise.
9111         * lib/poll.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
9112         (windows_compute_revents): Renamed from win32_compute_revents.
9113         (windows_compute_revents_socket): Renamed from
9114         win32_compute_revents_socket.
9115         * lib/select.c: Update comments to mention native Windows.
9116         (windows_poll_handle): Renamed from win32_poll_handle.
9117         * m4/threadlib.m4: Update comments to mention native Windows.
9118         (gl_THREADLIB_EARLY_BODY, gl_THREADLIB_BODY): Expect
9119         --enable-threads=windows instead of --enable-threads=win32. Set
9120         USE_WINDOWS_THREADS, not USE_WIN32_THREADS.
9121         * lib/glthread/lock.h: Update comments to mention native Windows.
9122         (USE_WINDOWS_THREADS): Renamed from USE_WIN32_THREADS.
9123         * lib/glthread/lock.c (USE_WINDOWS_THREADS): Renamed from
9124         USE_WIN32_THREADS.
9125         * lib/glthread/cond.h (USE_WINDOWS_THREADS): Likewise.
9126         * lib/glthread/cond.c (USE_WINDOWS_THREADS): Likewise.
9127         * lib/glthread/thread.h (USE_WINDOWS_THREADS): Likewise.
9128         * lib/glthread/thread.c (USE_WINDOWS_THREADS): Likewise.
9129         * lib/glthread/tls.h (USE_WINDOWS_THREADS): Likewise.
9130         * lib/glthread/tls.c (USE_WINDOWS_THREADS): Likewise.
9131         * lib/glthread/yield.h (USE_WINDOWS_THREADS): Likewise.
9132         * tests/test-cond.c (USE_WINDOWS_THREADS): Likewise.
9133         * tests/test-thread_create.c (USE_WINDOWS_THREADS): Likewise.
9134         * tests/test-lock.c (USE_WINDOWS_THREADS): Likewise.
9135         (TEST_WINDOWS_THREADS): Renamed from TEST_WIN32_THREADS.
9136         * tests/test-tls.c: Likewise.
9137         Rationale:
9138         Microsoft renamed the "Win32 API" to "Windows API", as it is available
9139         on both 32-bit and 64-bit Windows systems.
9140         But in gnulib, we treat Cygwin like a Unix platform, therefore the main
9141         line of distinction is between "native Windows" on one side and Unix/
9142         POSIX systems on the other side. More details in
9143         <https://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00027.html>.
9144         Suggested by Paul Eggert.
9145
9146 2012-01-03  Bruno Haible  <bruno@clisp.org>
9147
9148         isatty: Support for MSVC 9.
9149         * doc/posix-functions/isatty.texi: Mention the MSVC problem.
9150         * lib/isatty.c: Include <errno.h>, msvc-inval.h.
9151         (_isatty_nothrow): New function.
9152         (isatty): Use it instead of _isatty.
9153         (IsConsoleHandle): Add comment, from Paolo Bonzini.
9154         * lib/poll.c (IsConsoleHandle): Likewise.
9155         * lib/select.c (IsConsoleHandle): Likewise.
9156         * m4/isatty.m4 (gl_FUNC_ISATTY): Fix comment. Reported by Eli Zaretskii.
9157         (gl_PREREQ_ISATTY): New macro.
9158         * modules/isatty (Depends-on): Add msvc-inval.
9159         (configure.ac): Invoke gl_PREREQ_ISATTY.
9160
9161 2012-01-03  Jim Meyering  <meyering@redhat.com>
9162
9163         maint.mk: remove temporary transition aid from over 1.5 years ago
9164         * top/maint.mk (_prohibit_regexp): Remove definition whose sole
9165         purpose was to aid in the transition (avoiding silent malfunction)
9166         from that old name to the new _sc_search_regexp.  This shim was
9167         added by commit 219c504b.
9168
9169         init.sh: do not try to accommodate compare arguments starting with "-"
9170         * tests/init.sh (compare_dev_null_): Do not try to accommodate
9171         compare arguments that start with "-".  Besides, we do not worry
9172         about this when invoking diff or cmp; why start now with sed?
9173         Using "--" to separate options from argument would trigger sed
9174         failure in at least Solaris 7, HP-UX 11.00, IRIX 6.5, FreeBSD 6.4,
9175         OpenBSD 4.9 and NetBSD 5.1.  Reported by Bruno Haible.
9176
9177 2012-01-02  Bruno Haible  <bruno@clisp.org>
9178
9179         Enhance tests for module 'isatty'.
9180         * modules/isatty-tests (Depends-on): Add pipe-posix.
9181         * tests/test-isatty.c: Include <fcntl.h>.
9182         (DEV_NULL): New macro.
9183         (main): Test the resut of isatty() also on regular files, pipes, and
9184         /dev/null.
9185
9186         New module 'isatty'.
9187         * lib/unistd.in.h (isatty): New declaration.
9188         * lib/isatty.c: New file, based on an idea of
9189         Bastien Roucariès <roucaries.bastien@gmail.com>.
9190         * m4/isatty.m4: New file.
9191         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether isatty is declared.
9192         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ISATTY, REPLACE_ISATTY.
9193         * modules/unistd (Makefile.am): Substitute GNULIB_ISATTY,
9194         REPLACE_ISATTY.
9195         * modules/isatty: New file.
9196         * doc/posix-functions/isatty.texi: Mention the new module.
9197         Suggested by Paolo Bonzini.
9198
9199 2012-01-02  Bruno Haible  <bruno@clisp.org>
9200
9201         canonicalize: Tweak 2011-12-29 commit.
9202         * lib/canonicalize.c (canonicalize_filename_mode): Fix typo in comment.
9203         * lib/canonicalize.h (canonicalize_filename_mode): Update specification.
9204
9205 2012-01-02  Jim Meyering  <meyering@redhat.com>
9206
9207         gitlog-to-changelog: describe input syntax in --help output
9208         * build-aux/gitlog-to-changelog (usage) [SPECIAL SYNTAX]: New section.
9209
9210         gitlog-to-changelog: fix typo in --help: show backslash before email @
9211         * build-aux/gitlog-to-changelog (usage): An "@" was backslash-escaped
9212         in sources, but not in actual output.
9213
9214 2011-12-30  Jim Meyering  <meyering@redhat.com>
9215
9216         gitlog-to-changelog: don't malfunction when name contains %-directive
9217         * build-aux/gitlog-to-changelog (main): Don't let a %-directive
9218         in a name string cause trouble.  E.g., with a user name of "%s",
9219         gitlog-to-changelog would fail with "Missing argument in sprintf at..."
9220
9221 2011-12-30  Gary V. Vaughan  <gary@gnu.org>
9222
9223         gitlog-to-changelog: Copyright-paperwork-exempt: yes == (tiny change)
9224         * build-aux/gitlog-to-changelog (main): Map the string, at beginning
9225         of line in a git commit log, "Copyright-paperwork-exempt: yes", to
9226         the "  (tiny change)" notation that is appended to the standard
9227         ChangeLog "date  name  email" header line.
9228
9229 2012-01-01  Jim Meyering  <meyering@redhat.com>
9230
9231         test-framework-sh: init.sh: fix "make dist" failure
9232         When using gnulib-tool's --with-tests option and any module that
9233         depends on test-framework-sh, "make dist" would fail due to the
9234         lack of init.sh *in lib/*.  The EXTRA_DIST += init.sh is required
9235         in the gltests directory, and not in the gllib/ directory.
9236         One way to work around that is to move the EXTRA_DIST += init.sh
9237         from the primary module to the -tests one:
9238         * modules/test-framework-sh-tests (EXTRA_DIST): Add init.sh here, ...
9239         * modules/test-framework-sh (Makefile.am): ...not here.
9240         Reported by Tom G. Christensen in
9241         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29519
9242
9243         version-etc: update copyright year reported by --version
9244         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2012.
9245
9246 2011-12-31  Pádraig Brady  <P@draigBrady.com>
9247
9248         canonicalize: only stat() if required
9249         * lib/canonicalize.c (canonicalize_filename_mode):
9250         Avoid calling l?stat() when both CAN_MISSING,
9251         and CAN_NOLINKS are set, as we neither need
9252         to resolve symlinks or test component existence.
9253
9254 2011-12-31  Paul Eggert  <eggert@cs.ucla.edu>
9255
9256         doc: cover st_ino issues once; add OpenVMS etc.
9257         * doc/posix-functions/stat.texi (stat):
9258         * doc/posix-functions/lstat.texi (lstat):
9259         * doc/posix-functions/fstatat.texi (fstatat):
9260         * doc/posix-functions/fstat.texi (fstat):
9261         Move general 'struct stat' stuff to sys_stat.texi,
9262         leaving behind a pointer.
9263         * doc/posix-headers/sys_stat.texi (sys/stat.h):
9264         Merge duplicate info about 'struct stat' problems into here.
9265         Mention issues with OpenVMS, GNU/Linux NFS, NetApp, ClearCase,
9266         and suggest partial workarounds.
9267
9268         same-inode: port to OpenVMS
9269         * lib/same-inode.h (SAME_INODE): Port to OpenVMS by checking all
9270         three st_ino values.
9271
9272 2011-12-30  Pádraig Brady  <P@draigBrady.com>
9273
9274         canonicalize: fix references to stat() and lstat()
9275         * lib/canonicalize.c (canonicalize_filename_mode):
9276         Ensure references always resolve to a replacement
9277         function if required (even via a macro).
9278
9279 2011-12-30  Jim Meyering  <meyering@redhat.com>
9280
9281         gitlog-to-changelog: remove a little duplication
9282         * build-aux/gitlog-to-changelog (main): Grep @lines once,
9283         rather than twice.
9284
9285 2011-12-29  Pádraig Brady  <P@draigBrady.com>
9286
9287         canonicalize: add support for not resolving symlinks
9288         * lib/canonicalize.h: Add the CAN_NOLINKS flag to
9289         indicate we don't want to follow symlinks.  Also
9290         provide CAN_MODE_MASK to aid setting these existing
9291         mutually exclusive values.
9292         * lib/canonicalize.c (canonicalize_filename_mode):
9293         Extract the flags from can_mode parameter, which
9294         are currently just used to select between stat()
9295         and lstat().  Also ensure that mutually exclusive
9296         values are flagged immediately as invalid.
9297         * tests/test-canonicalize.c: Verify symlinks are
9298         not followed, and that invalid flag combinations
9299         are diagnosed.
9300
9301 2011-12-25  Jim Meyering  <meyering@redhat.com>
9302
9303         gitlog-to-changelog: do not clump multi-paragraph entries
9304         Identical header lines (date,name,email+coauthors) are suppressed,
9305         thus putting all entries with those same characteristics under
9306         a single header.  However, when a log entry consists of two or
9307         more paragraphs, it may not be clear where it starts and ends.
9308         This change makes it so that such an entry is always separated
9309         from others by a header line, even when that header would
9310         otherwise be suppressed.
9311         * build-aux/gitlog-to-changelog: Implement the above.
9312         Inspired by a related request from Stefano Lattarini in
9313         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29456
9314
9315 2011-12-25  Paul Eggert  <eggert@cs.ucla.edu>
9316
9317         announce-gen: fix `cmd' typo in diagnostic
9318         * build-aux/announce-gen (print_changelog_deltas): Fix typo in
9319         diagnostic: a missing '$' meant that the command was not output.
9320
9321 2011-12-23  Jim Meyering  <meyering@redhat.com>
9322
9323         test-framework-sh: distribute init.sh
9324         * modules/test-framework-sh (EXTRA_DIST): Append init.sh.
9325         Otherwise, "make -C gnulib-tests check" (at least in grep) would
9326         fail due to the lack of init.sh.
9327
9328         maint: remove explicit Files: tests/init.sh; depend on test-framework-sh
9329         * modules/atexit-tests: Rather than listing tests/init.sh,
9330         now that there's a module for it, simply depend on that new module.
9331         * modules/closein-tests: Likewise.
9332         * modules/exclude-tests: Likewise.
9333         * modules/getcwd-tests: Likewise.
9334         * modules/perror-tests: Likewise.
9335         * modules/pread-tests: Likewise.
9336         * modules/pwrite-tests: Likewise.
9337         * modules/vc-list-files-tests: Likewise.
9338         * modules/verify-tests: Likewise.
9339         * modules/xalloc-die-tests: Likewise.
9340         * modules/xstrtoimax-tests: Likewise.
9341         * modules/xstrtol-tests: Likewise.
9342         * modules/xstrtoll-tests: Likewise.
9343         * modules/xstrtoumax-tests: Likewise.
9344         * modules/yesno-tests: Likewise.
9345
9346 2011-12-22  Jim Meyering  <meyering@redhat.com>
9347
9348         test-framework-sh: add minimal tests of init.sh's compare function
9349         * modules/test-framework-sh-tests: New file.
9350         * tests/test-init.sh: New file.
9351
9352         test-framework-sh: new module
9353         * modules/test-framework-sh: New file.
9354         * MODULES.html.sh (Support for maintaining and releasing projects):
9355         List it.
9356
9357         init.sh: do not emit simulated diff output to stderr
9358         * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
9359
9360 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
9361
9362         .gitignore: ignore gnulib.dvi and regex.info
9363         * doc/.gitignore:add gnulib.dvi and regex.info
9364
9365 2011-12-22  Jim Meyering  <meyering@redhat.com>
9366
9367         init.sh: correct previous change
9368         * tests/init.sh (compare): My previous change was wrong.
9369         Don't clobber "$?".  Spotted by Stefano Lattarini and Pádraig Brady.
9370
9371         init.sh: avoid unwarranted test failure when using "set -e"
9372         * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_.
9373         Otherwise, in a test script that uses "set -e" (like many in vc-dwim)
9374         a use like "compare exp out" would get evoke an unconditional failure.
9375
9376 2011-12-21  Alfred M. Szmidt  <ams@gnu.org>
9377
9378         bootstrap: fix it to honor $ACLOCAL_FLAGS once again
9379         The 2011-12-17 change, commit 767ccd40, replaced a manual invocation
9380         of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of
9381         autoreconf that did not.
9382         * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf.
9383         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
9384
9385 2011-12-17  Jim Meyering  <meyering@redhat.com>
9386
9387         bootstrap: remove some now-unneeded code
9388         This script arose back when gnulib-tool was young.
9389         Since then, it has seen improvements that render much of this
9390         script unnecessary.  In particular, it can now make symlinks
9391         to the files it uses.  Also, I no longer see as much value in
9392         marking files as read-only via comments.
9393         If you relied on the symlink-creation feature of the preceding
9394         version of this script, you can get most of that functionality
9395         by adding the --symlink option to the definition of
9396         gnulib_tool_option_extras in your bootstrap.conf file.
9397         * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
9398         Run autopoint and libtoolize *before* gnulib-tool.
9399         After it, run an abbreviated autoreconf, rather than a loop around
9400         all tools.
9401         (slirp, bt_mark_as_generated): Remove functions.
9402
9403 2011-12-18  Paul Eggert  <eggert@cs.ucla.edu>
9404
9405         ftoastr: fix typo
9406         * lib/ftoastr.h: Fix misspelling in comment.
9407
9408 2011-12-18  Reuben Thomas  <rrt@sc3d.org>
9409
9410         * top/README-release: fix punctuation.
9411
9412 2011-12-17  Jim Meyering  <meyering@redhat.com>
9413
9414         bootstrap: correct the recent buildreq change
9415         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
9416         had no effect.
9417         * build-aux/bootstrap (buildreq): Bracket each search term with
9418         "*...*", so that the shell "case" statement works as intended.
9419         Add comments.
9420
9421 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
9422
9423         build: let bootstrap resort to wget when downloading .po files
9424         * build-aux/bootstrap (download_po_files): Fallback to wget when
9425         downloading the .po files via rsync fails.  This is necessary to
9426         bootstrap from behind a strict firewall.
9427
9428 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
9429
9430         stdint: don't assume C++11 when compiling with g++
9431         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
9432         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00099.html>.
9433         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
9434         work also in C++ before C++11, as that improperly inhibits
9435         generating a substitute stdint.h for that case.
9436
9437 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
9438
9439         alloca: protect comment from gnulib-tool
9440         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
9441         that gnulib-tool doesn't think it's a license, and munge it to
9442         say "GCC version 3".
9443
9444 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
9445
9446         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
9447         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
9448         $(abs_top_builddir) instead of $(top_builddir).
9449
9450 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
9451
9452         strftime-tests: also test nanoseconds
9453         * tests/test-strftime.c (T): Add a test of %N.
9454
9455 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
9456
9457         inttypes, stdint: add C++11 support
9458         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
9459         when including inttypes.h and stdint.h.  Support this change to
9460         the standard.
9461         * doc/posix-headers/inttypes.texi (inttypes.h):
9462         * doc/posix-headers/stdint.texi (stdint.h): Document this.
9463         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
9464         Define if not defined already, for the benefit of pre-C++11 hosts.
9465         Define the standard format macros (e.g., PRId8) always.
9466         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
9467         Likewise, if __cpluspus.  Define the standard constant and limit
9468         macros (e.g., INT8_C, INT8_MAX) always.
9469         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
9470         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
9471         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
9472         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
9473         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
9474         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
9475         Likewise.
9476
9477 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
9478
9479         nonblocking tests: Fix test failure on Linux/PPC.
9480         Suggested by Prerna Saxena in
9481         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00080.html>.
9482         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
9483         Set to 1100000.
9484
9485 2011-12-12  Jim Meyering  <meyering@redhat.com>
9486
9487         argmatch: don't hard-code `' when listing valid option arguments
9488         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
9489         use the quote function to add quotes.  Use fputs rather than
9490         fprintf for the format string with no format directive.
9491
9492 2011-12-07  Eric Blake  <eblake@redhat.com>
9493
9494         bootstrap: detect tools required by gnulib-tool
9495         * build-aux/bootstrap (buildreq): Provide minimum implicit
9496         dependencies.
9497         * DEPENDENCIES: Mention patch as a prereq.
9498
9499 2011-12-04  Bruno Haible  <bruno@clisp.org>
9500
9501         sethostname: Port to Windows platforms.
9502         * lib/sethostname.c: Provide an alternate implementation for Windows
9503         platforms.
9504         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
9505         (main): Skip the test if sethostname() fails with EPERM. On Windows
9506         platforms, don't check the result of gethostname().
9507
9508 2011-12-04  Bruno Haible  <bruno@clisp.org>
9509             Jim Meyering  <meyering@redhat.com>
9510
9511         tests: Avoid spurious error message on platforms without mktemp program.
9512         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
9513
9514 2011-12-04  Bruno Haible  <bruno@clisp.org>
9515
9516         sethostname: Fix documentation.
9517         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
9518         "not fixed" section.
9519
9520 2011-12-03  Bruno Haible  <bruno@clisp.org>
9521
9522         gnulib-tool: Verify that the License field is present and non-empty.
9523         * gnulib-tool (func_get_license_raw): New function, extracted from
9524         func_get_license.
9525         (func_get_license): Use it. Warn if the module is not a test module and
9526         has no license.
9527         Suggested by Jim Meyering.
9528
9529 2011-12-03  Bruno Haible  <bruno@clisp.org>
9530
9531         sethostname tests: Fix link error on mingw.
9532         * tests/test-sethostname1.c: New file, extracted from
9533         tests/test-sethostname.c.
9534         * tests/test-sethostname2.c: New file, extracted from
9535         tests/test-sethostname.c.
9536         * tests/test-sethostname.c: Remove file.
9537         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
9538         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
9539         (Depends-on): Add gethostname.
9540         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
9541         Link the latter with $(GETHOSTNAME_LIB).
9542
9543         sethostname tests: Fix compilation error on mingw.
9544         * tests/test-sethostname.c: Don't include <sys/types.h>.
9545         (geteuid): Use a dummy value without uid_t.
9546         * modules/sethostname-tests (Depends-on): Remove sys_types.
9547
9548         sethostname tests: Avoid a gcc warning.
9549         * tests/test-sethostname.c (main): Remove an unused variable.
9550
9551         Tweak last commit.
9552         * modules/sethostname-tests (Files): Sort by decreasing importance.
9553         (configure.ac): Check for geteuid.
9554         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
9555         the test when there's nothing to test. Drop an unnecessary cast.
9556         Improve an error message. Verify that the final sethostname() call
9557         succeeds.
9558
9559 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
9560
9561         Add a test suite for the sethostname module.
9562         * modules/sethostname-tests: New file.  A test program
9563         for the sethostname module.
9564         * tests/test-sethostname.c: Likewise.
9565
9566 2011-12-03  Bruno Haible  <bruno@clisp.org>
9567
9568         Tweak last commit.
9569         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
9570         Fix preprocessor directives indentation. Fix typos.
9571         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
9572         * modules/unistd (Makefile): Likewise.
9573
9574 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
9575
9576         Integrate the sethostname module into unistd.
9577         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
9578         into the unistd.h header.
9579         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
9580         preprocessor directives.
9581         * modules/unistd: Setup the Makefile substitutions of the
9582         SETHOSTNAME preprocessor directives.
9583
9584 2011-12-03  Bruno Haible  <bruno@clisp.org>
9585
9586         Tweak last commit.
9587         * lib/sethostname.c: Don't include <string.h>.
9588         (sethostname): No need to copy the argument string to the stack. Don't
9589         call clearerr. Preserve errno when fprintf failed.
9590         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
9591         Don't invoke AC_REPLACE_FUNCS.
9592         * modules/sethostname (Link): Remove empty section.
9593         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
9594         failure problem.
9595
9596 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
9597
9598         New module 'sethostname'.
9599         * lib/sethostname.c (sethostname): New file.  Provide sethostname
9600         for systems that lack it.
9601         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
9602         sethostname declaration and function.
9603         * modules/sethostname: New file.  Define the sethostname module.
9604
9605 2011-12-03  Bruno Haible  <bruno@clisp.org>
9606
9607         Tweak last commit.
9608         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
9609
9610 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
9611
9612         Split the HOST_NAME_MAX detection into a separate m4 macro.
9613         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
9614         macro so it can be used by the pending sethostname module.
9615
9616 2011-12-03  Bruno Haible  <bruno@clisp.org>
9617
9618         Fix module descriptions syntax.
9619         * modules/argv-iter (License): Fix syntax.
9620         * modules/di-set (License): Likewise.
9621         * modules/ino-map (License): Likewise.
9622         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
9623
9624 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
9625
9626         stdalign: port to Clang 3.0
9627         Problem reported by Simon Josefsson in
9628         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00005.html>.
9629         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
9630         which has <stdalign.h> but which does not define alignof.
9631         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
9632
9633 2011-12-01  Eric Blake  <eblake@redhat.com>
9634
9635         mktempd: silence dd usage
9636         * build-aux/mktempd (rand_bytes): Silence dd.
9637
9638 2011-11-30  Simon Josefsson  <simon@josefsson.org>
9639
9640         manywarnings: Don't mention gcc version in docstring.
9641         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
9642         Jim Meyering <meyering@redhat.com>.
9643
9644 2011-11-30  Jim Meyering  <meyering@redhat.com>
9645
9646         hash: mark a few floating point constants with "f" suffix
9647         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
9648         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
9649         floating point constants with "f", since they're destined to be
9650         saved/used as "float"s.
9651
9652 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
9653
9654         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
9655         * tests/test-float.c (test_long_double): Correct and re-enable the
9656         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
9657
9658 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
9659
9660         Avoid subtracting two pointers that don't point into the same block.
9661         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
9662         only pointers into the same memory block are subtracted. We cannot
9663         assume that sizeof (ptrdiff_t) == sizeof (void *).
9664
9665 2011-11-29  Eric Blake  <eblake@redhat.com>
9666
9667         maint.mk: add syntax check for use of compare from init.sh
9668         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
9669         moved here from coreutils.
9670
9671         manywarnings: drop -Wunsuffixed-float-constants
9672         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
9673         '1.0D', which is the only way to silence this warning for 'double'.
9674
9675 2011-11-29  Jim Meyering  <meyering@redhat.com>
9676
9677         hash: mark compute_bucket_size with the pure attribute
9678         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
9679
9680         quotearg, propername: correct pragma guard expression
9681         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
9682         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
9683
9684 2011-11-28  Jim Meyering  <meyering@redhat.com>
9685
9686         propername: do not mark proper_name with the const attribute
9687         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
9688         since it examines data pointed to by its parameter.
9689         * lib/propername.c (proper_name): Instead, add a pragma to suppress
9690         the suggestion from -Wsuggest-attribute=const.
9691
9692         propername: mark one more function as const
9693         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
9694
9695 2011-11-27  Jim Meyering  <meyering@redhat.com>
9696
9697         mark functions with const and pure attributes
9698
9699         Mark functions per suggestions from gcc-4.6 when using these options:
9700         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
9701         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
9702         Follow these guidelines: when possible, apply the attribute to
9703         an extern declaration, not to its definition.  Apply it to the
9704         definition only when the definition is static.
9705         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
9706         * lib/argv-iter.h (argv_iter_n_args): Likewise.
9707         * lib/base64.h (isbase64): Likewise.
9708         * lib/basename-lgpl.c (last_component, base_len): Likewise.
9709         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
9710         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
9711         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
9712         (c_tolower, c_toupper): Likewise.
9713         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
9714         * lib/chdir-long.c (find_non_slash): Likewise.
9715         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
9716         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
9717         * lib/file-type.h (file_type): Likewise.
9718         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
9719         * lib/filevercmp.c (verrevcmp): Likewise.
9720         * lib/freadahead.h (freadahead): Likewise.
9721         * lib/fts.c (fts_maxarglen): Likewise.
9722         * lib/hash-pjw.h (hash_pjw): Likewise.
9723         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
9724         * lib/hash.c (is_prime, next_prime): Likewise.
9725         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
9726         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
9727         (hash_table_ok, hash_get_first, hash_string): Likewise.
9728         (compute_bucket_size): Likewise.
9729         * lib/i-ring.h (i_ring_empty): Likewise.
9730         * lib/isnan.c (isnanl): Likewise.
9731         * lib/math.h (isnanl, rpl_isnanl): Likewise.
9732         * lib/memcasecmp.h (memcasecmp): Likewise.
9733         * lib/memchr2.h (memchr2): Likewise.
9734         * lib/memcmp2.h (memcmp2): Likewise.
9735         * lib/parse-datetime.y (lookup_zone): Likewise.
9736         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
9737         [!WINDOWS_SOCKETS]: Likewise.
9738         * lib/strnlen1.h (strnlen1): Likewise.
9739         * lib/uniwidth.in.h (uc_width): Likewise.
9740         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
9741         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
9742         (quoting_options_from_style): Add a comment.
9743         * lib/propername.h (proper_name): Add a comment.
9744
9745 2011-11-27  Bruno Haible  <bruno@clisp.org>
9746
9747         Remove unused macros from !_LIBC code in glibc-borrowed files.
9748         * lib/fnmatch.c (STRCOLL): Remove macro.
9749         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
9750         * lib/glob.c (__stat, __readdir64): Remove macros.
9751         * lib/tempname.c (__open64, __xstat64): Remove macros.
9752         Suggested by Paul Eggert.
9753
9754 2011-11-27  Bruno Haible  <bruno@clisp.org>
9755
9756         getcwd: Fix link error on MSVC 9.
9757         * modules/getcwd (Depends-on): Add readdir, rewinddir.
9758
9759 2011-11-27  Bruno Haible  <bruno@clisp.org>
9760
9761         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
9762         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
9763         HAVE_OPENDIR is 0.
9764         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
9765         HAVE_CLOSEDIR is 0.
9766         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
9767         is 0.
9768         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
9769
9770 2011-11-27  Bruno Haible  <bruno@clisp.org>
9771
9772         getcwd: Fix bug from 2011-08-17.
9773         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
9774         platforms that need it.
9775         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
9776         code of 4 to be a failure, not a success. This ensures that
9777         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
9778
9779 2011-11-27  Bruno Haible  <bruno@clisp.org>
9780
9781         binary-io tests: Avoid test failure on mingw when libtool is used.
9782         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
9783         Don't verify the size of t-bin-out1.tmp here.
9784         * tests/test-binary-io.sh: Verify it here.
9785         Reported by Simon Josefsson.
9786
9787 2011-11-26  Bruno Haible  <bruno@clisp.org>
9788
9789         Fix conflict between two instantiations of module 'unistd'.
9790         * gnulib-tool (func_emit_autoconf_snippet): Substitute
9791         ${include_guard_prefix} also in the autoconf snippet.
9792         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
9793         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
9794         GNULIB_UNISTD_H_GETOPT.
9795         * modules/getopt-posix (configure.ac): Set the
9796         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
9797         * modules/getopt-gnu (configure.ac): Likewise.
9798         * modules/unistd (Makefile.am): Change the substitution value of
9799         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
9800         Reported by Simon Josefsson.
9801
9802 2011-11-25  Bruno Haible  <bruno@clisp.org>
9803
9804         pagealign_alloc: Doc and comments.
9805         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
9806         module.
9807         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
9808
9809 2011-11-25  Jim Meyering  <meyering@redhat.com>
9810
9811         test-update-copyright.sh: avoid false-positive failure
9812         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
9813         around false positive failure on Cygwin/Windows.  The latter was
9814         matching erroneously-created files with names like
9815         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
9816
9817 2011-11-25  Simon Josefsson  <simon@josefsson.org>
9818
9819         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
9820         * m4/valgrind-tests.m4: Check that the parameters that will be
9821         used works, not just a subset of them.  Reported by Bruno Haible
9822         <bruno@clisp.org>.
9823
9824 2011-11-24  Jim Meyering  <meyering@redhat.com>
9825
9826         test-stdalign.c: comment out long double tests
9827         * tests/test-stdalign.c: Don't try to reduce alignment of long double
9828         variables.  That provokes errors like this from gcc-4.7.0 20111124:
9829         error: '_Alignas' specifiers cannot reduce alignment of \
9830         'static_longdouble_alignas'.
9831
9832 2011-11-22  Jim Meyering  <meyering@redhat.com>
9833
9834         init.sh: make "compare /dev/null FILE" output more readable
9835         * tests/init.sh (compare_): Document the preferred order of arguments.
9836         (emit_diff_u_header_): New function.
9837         (compare_dev_null_): Emit a simulated diff, rather than just the
9838         contents of the unexpected file.  Suggestion from Bruno Haible.
9839
9840 2011-11-21  Jim Meyering  <meyering@redhat.com>
9841             Eric Blake  <eblake@redhat.com>
9842
9843         init.sh: work around OSF/1 5.1's mishandling of /dev/null
9844         * tests/init.sh: Make our compare function slightly more portable.
9845         Reported by Bruno Haible in
9846         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
9847
9848 2011-11-21  Simon Josefsson  <simon@josefsson.org>
9849
9850         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
9851         before using it, in code that ends up in config.h.
9852
9853 2011-11-20  Bruno Haible  <bruno@clisp.org>
9854
9855         getcwd: Work around getcwd bug on AIX 5..7.
9856         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
9857         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
9858         Use a different value for gl_cv_func_getcwd_path_max. Move the
9859         definition of HAVE_PARTLY_WORKING_GETCWD from here...
9860         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
9861         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
9862         Define HAVE_MINIMALLY_WORKING_GETCWD.
9863         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
9864         where it is not even minimally working, that is, on AIX.
9865         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
9866         m4/getcwd-path-max.m4.
9867         (main): Update exit code computation.
9868         * doc/posix-functions/getcwd.texi: Mention list of platforms where
9869         getcwd does not handle long file names.
9870
9871 2011-11-20  Bruno Haible  <bruno@clisp.org>
9872
9873         getcwd: Fix bug from 2009-09-10.
9874         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
9875         like "no".
9876
9877 2011-11-20  Simon Josefsson  <simon@josefsson.org>
9878
9879         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
9880
9881 2011-11-20  Bruno Haible  <bruno@clisp.org>
9882
9883         fma tests: Avoid shadowing local variables.
9884         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
9885         expected.
9886
9887 2011-11-20  Bruno Haible  <bruno@clisp.org>
9888
9889         copysignf tests: Fix.
9890         * tests/test-copysignf.c: Fix signature check.
9891
9892 2011-11-20  Bruno Haible  <bruno@clisp.org>
9893
9894         fma: Remove unused code.
9895         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
9896         unused macros.
9897
9898 2011-11-20  Bruno Haible  <bruno@clisp.org>
9899
9900         sethostname: Fix doc about AIX.
9901         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
9902         sethostname; it has it.
9903
9904         sethostname: Mention more portability problems.
9905         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
9906         problem.
9907         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
9908
9909 2011-11-19  Bruno Haible  <bruno@clisp.org>
9910
9911         Depend on module fcntl-h when AT_FDCWD is used.
9912         * modules/utimens (Depends-on): Add fcntl-h.
9913         * modules/areadlinkat (Depends-on): Likewise.
9914         * modules/areadlinkat-with-size (Depends-on): Likewise.
9915         * modules/faccessat (Depends-on): Likewise.
9916         * modules/fchmodat (Depends-on): Likewise.
9917         * modules/fchownat (Depends-on): Likewise.
9918         * modules/getcwd (Depends-on): Likewise.
9919         * modules/mkdirat (Depends-on): Likewise.
9920         * modules/mkfifoat (Depends-on): Likewise.
9921         * modules/readlinkat (Depends-on): Likewise.
9922         * modules/symlinkat (Depends-on): Likewise.
9923         * modules/dup2-tests (Depends-on): Likewise.
9924         * modules/fdutimensat-tests (Depends-on): Likewise.
9925         * modules/futimens-tests (Depends-on): Likewise.
9926
9927 2011-11-19  Bruno Haible  <bruno@clisp.org>
9928
9929         euidaccess: Update a comment.
9930         * lib/euidaccess.c: Update comment about platforms with faccessat.
9931
9932 2011-11-19  Bruno Haible  <bruno@clisp.org>
9933
9934         openat: Fix file list.
9935         * modules/openat (Files): Remove lib/at-func.c.
9936
9937 2011-11-19  Bruno Haible  <bruno@clisp.org>
9938
9939         fstatat: Simplify.
9940         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
9941         gnulib should define rpl_fstatat, there is a
9942         "#define fstatat rpl_fstatat" in <sys/stat.h>.
9943
9944 2011-11-19  Bruno Haible  <bruno@clisp.org>
9945
9946         Ensure 'inline' can be used in tests/test-utimens-common.h.
9947         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
9948         * modules/futimens-tests (configure.ac): Likewise.
9949         * modules/utimens-tests (configure.ac): Likewise.
9950         * modules/utimensat-tests (configure.ac): Likewise.
9951
9952 2011-11-19  Simon Josefsson  <simon@josefsson.org>
9953
9954         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
9955         not hash_insert0.
9956         (hash_insert_if_absent): Doc fix.
9957
9958 2011-11-19  Simon Josefsson  <simon@josefsson.org>
9959
9960         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
9961
9962 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
9963
9964         test-getcwd: disambiguate exit status
9965         * tests/test-getcwd.c (test_long_name): Return 0..7.
9966         (main): Exit with an unambiguous exit status.  The old
9967         code yielded a mysterious mixture of two failure codes.
9968
9969         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
9970         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
9971         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
9972         rpl_fstatat or fstatat.  This should fix the other problem
9973         reported by Kai Habel in
9974         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
9975         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
9976         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00239.html>
9977         and I reproduced it on a Solaris 8 host we still have in production.
9978
9979 2011-11-18  Jim Meyering  <meyering@redhat.com>
9980
9981         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
9982         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
9983         Add a sentence to the comment.
9984         (hash_insert0): New function that simply calls hash_insert_if_absent.
9985         * lib/hash.h (hash_insert_if_absent): Declare it.
9986         (hash_insert0): Add deprecation attribute.
9987         (_GL_ATTRIBUTE_DEPRECATED): Define.
9988         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
9989         not hash_insert0.
9990         * NEWS: Mention it, even though it's not really an incompatible change.
9991
9992 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
9993
9994         openat: avoid compilation failure due to lack of <errno.h> inclusion
9995         * lib/openat.c: Include <errno.h>.
9996
9997 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
9998
9999         * modules/getcwd (Depends-on): Add fdopendir.
10000         This fixes one of the two problems reported by Kai Habel in
10001         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
10002
10003         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
10004         stdalign problem reported by Ian Beckwith in
10005         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00238.html>.
10006         * modules/crypto/gc-arcfour (Depends-on):
10007         Depend conditionally on crypto/arcfour.
10008         * modules/crypto/gc-arctwo (Depends-on):
10009         Depend conditionally on crypto/arctwo.
10010         * modules/crypto/gc-des (Depends-on):
10011         Depend conditionally on crypto/des.
10012         * modules/crypto/gc-hmac-md5 (Depends-on):
10013         Depend conditionally on crypto/hmac-md5.
10014         * modules/crypto/gc-hmac-sha1 (Depends-on):
10015         Depend conditionally on crypto/hmac-sha1.
10016         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
10017         * modules/crypto/gc-md4 (Depends-on):
10018         Depend conditionally on crypto/md4.
10019         * modules/crypto/gc-md5 (Depends-on):
10020         Depend conditionally on crypto/md5.
10021         * modules/crypto/gc-rijndael (Depends-on):
10022         Depend conditionally on crypto/rijndael.
10023         * modules/crypto/gc-sha1 (Depends-on):
10024         Depend conditionally on crypto/sha1.
10025         * modules/crypto/gc-arcfour:
10026         * modules/crypto/gc-arctwo:
10027         * modules/crypto/gc-des:
10028         * modules/crypto/gc-hmac-md5:
10029         * modules/crypto/gc-hmac-sha1:
10030         * modules/crypto/gc-md2:
10031         * modules/crypto/gc-md4:
10032         * modules/crypto/gc-md5:
10033         * modules/crypto/gc-rijndael:
10034         * modules/crypto/gc-sha1:
10035         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
10036         now that the conditional dependencies do the work for us.
10037
10038 2011-11-17  Jim Meyering  <meyering@redhat.com>
10039
10040         tests: factor st_ctime-comparison out of two headers
10041         * tests/test-utimens-common.h (ctime_compare): Define.
10042         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
10043         * tests/test-lutimens.h (test_lutimens): Likewise.
10044         * tests/test-utimens.h (test_utimens): Likewise.
10045
10046         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
10047         Invoke the test program via an init.sh-using wrapper.
10048         * tests/test-getcwd.sh: New file.
10049         * modules/getcwd-tests (Files): Add it.
10050         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
10051
10052 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
10053
10054         gitlog-to-changelog: support multi-author commits.
10055         The FSF cares about keeping track of all authors of patches to its
10056         projects, but Git doesn't provide obvious support for multi-author
10057         changesets. Consensus seems to be forming around the use of extra
10058         Signed-off-by inspired lines in the log message formatted as
10059         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
10060         multi-author commits between version control systems.
10061         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
10062         log message and output in standard ChangeLog multi-author format.
10063         Reported by Peter Rosin <peda@lysator.liu.se>
10064
10065 2011-11-15  Ben Walton <bwalton@artsci.utoronto.ca>  (tiny change)
10066             Bruno Haible  <bruno@clisp.org>
10067
10068         Fix some modules' file list.
10069         * modules/fstatat (Files): Add m4/lstat.m4.
10070         * modules/openat (Files): Likewise.
10071         * modules/unlinkat (Files): Likewise.
10072
10073 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
10074
10075         maint.mk: fix tight-scope.mk generation in VPATH builds.
10076         * top/maint.mk (tight-scope.mk): Make sure to prefix file
10077         reference with $(srcdir) so that the file is found correctly even
10078         when running `make syntax-check' in a VPATH build.
10079
10080 2011-11-13  Bruno Haible  <bruno@clisp.org>
10081             Jim Meyering  <meyering@redhat.com>
10082
10083         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
10084         * tests/init.sh (compare): Remove "No differences encountered" or
10085         synonymous output from the 'diff' program.
10086
10087 2011-11-13  Bruno Haible  <bruno@clisp.org>
10088
10089         Makefile: Tweak indentation.
10090         * Makefile: Use tab as first character in every line that contains rule
10091         commands.
10092
10093 2011-11-13  Bruno Haible  <bruno@clisp.org>
10094
10095         Syntax check for copyright statements.
10096         * check-copyright: New file.
10097         * Makefile (sc_check_copyright): New rule.
10098
10099 2011-11-13  Simon Josefsson  <simon@josefsson.org>
10100
10101         * build-aux/git-version-gen: Add --prefix to configure the tag
10102         match string.
10103
10104 2011-11-13  Simon Josefsson  <simon@josefsson.org>
10105
10106         * build-aux/git-version-gen: Add --help and --version.
10107
10108 2011-11-12  Jim Meyering  <meyering@redhat.com>
10109
10110         revamp the other test-exclude?.sh scripts to use init.sh, too
10111         * tests/test-exclude1.sh: Use init.sh.
10112         * tests/test-exclude2.sh: Likewise.
10113         * tests/test-exclude3.sh: Likewise.
10114         * tests/test-exclude4.sh: Likewise.
10115         * tests/test-exclude5.sh: Likewise.
10116         * tests/test-exclude6.sh: Likewise.
10117         * tests/test-exclude7.sh: Likewise.
10118         * tests/test-exclude8.sh: Likewise.
10119         * modules/exclude-tests (Files): List init.sh.
10120
10121         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
10122         These shell scripts ignored failure of the binary test-exclude,
10123         so making the latter return 77 didn't cause them to be skipped.
10124         * tests/test-exclude5.sh: Exit with test-exclude's error status
10125         when that program fails.  Revamp to use init.sh.
10126         * tests/test-exclude2.sh: Likewise.
10127
10128         test-exclude: fix a typo
10129         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
10130
10131 2011-11-11  Bruno Haible  <bruno@clisp.org>
10132
10133         obstack: Fix compilation error on MSVC 9.
10134         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
10135
10136 2011-11-11  Jim Meyering  <meyering@redhat.com>
10137
10138         test-exclude: skip tests rather than failing on deficient systems
10139         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
10140         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
10141         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
10142         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
10143
10144 2011-11-10  Bruno Haible  <bruno@clisp.org>
10145
10146         ptsname_r test: Avoid gcc warning on glibc systems.
10147         * tests/test-ptsname_r.c (null_ptr): New function.
10148         (test_errors): Use it.
10149
10150 2011-11-10  Bruno Haible  <bruno@clisp.org>
10151
10152         ptsname_r: Avoid compilation error on OSF/1 5.1.
10153         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
10154         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
10155         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
10156         function is not declared or incompatibly declared.
10157         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
10158         * modules/ptsname_r (Depends-on, configure.ac): Update.
10159         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
10160
10161 2011-11-10  Bruno Haible  <bruno@clisp.org>
10162
10163         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
10164         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
10165         When cross-compiling, guess yes on all platforms except AIX.
10166         Reported by Ludovic Courtès <ludo@gnu.org>.
10167
10168 2011-11-09  Bruno Haible  <bruno@clisp.org>
10169
10170         ptsname_r tests: Fix bugs.
10171         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
10172         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
10173
10174 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
10175
10176         fstatat: work with cross-compilation
10177         Problem reported by Ludovic Courtès in
10178         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00136.html>.
10179         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
10180         "cross-compiling" and assume the bug is present.  Replace
10181         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
10182         an inverted sense, to be more conservative about our assumptions.
10183         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
10184
10185 2011-11-09  Bruno Haible  <bruno@clisp.org>
10186
10187         Improve MODULES.html output.
10188         * modules/mkfifoat (Description): Use the word "function".
10189         * modules/readlinkat (Description): Likewise.
10190         * modules/symlinkat (Description): Likewise.
10191
10192 2011-11-09  Eric Blake  <eblake@redhat.com>
10193
10194         ptsname_r-tests: new test module
10195         * modules/ptsname_r-tests: New module.
10196         * tests/test-ptsname_r.c: New file.
10197
10198         ptsname_r: new module
10199         * modules/ptsname_r: New module.
10200         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
10201         * lib/ptsname.c (__ptsname_r): Split...
10202         * lib/ptsname_r.c: ...into new file.
10203         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
10204         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
10205         * modules/stdlib (Makefile.am): Substitute witnesses.
10206         * lib/stdlib.in.h (ptsname_r): Declare it.
10207         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
10208         * MODULES.html.sh (Misc): Likewise.
10209         * modules/ptsname (Depends-on): Alter dependency.
10210         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
10211
10212 2011-11-09  Jim Meyering  <meyering@redhat.com>
10213
10214         announce-gen: be more concise when there's only one URL+tarball
10215         * build-aux/announce-gen (get_tool_versions): When you distribute
10216         only one type of tarball, combine the first two "Here are..."
10217         sections and make the key-checking grammar independent of
10218         how many tarballs there are.
10219
10220 2011-11-09  Eric Blake  <eblake@redhat.com>
10221
10222         openpty: provide a stub on mingw
10223         * lib/pty.in.h (includes): Provide forward declarations.
10224         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
10225
10226         raise: fix mingw handling of SIGPIPE
10227         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
10228
10229 2011-11-08  Bruno Haible  <bruno@clisp.org>
10230
10231         More conditional dependencies.
10232         * modules/faccessat (Depends-on): Add conditions.
10233         * modules/fchmodat (Depends-on): Likewise.
10234         * modules/fchownat (Depends-on): Likewise.
10235         * modules/fstatat (Depends-on): Likewise.
10236         * modules/mkfifoat (Depends-on): Likewise.
10237         * modules/readlinkat (Depends-on): Likewise.
10238         * modules/symlinkat (Depends-on): Likewise.
10239         * modules/unlinkat (Depends-on): Likewise.
10240         * modules/utimensat (Depends-on): Likewise.
10241         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
10242         * modules/linkat (Depends-on): Refine the conditions.
10243         * modules/renameat (Depends-on): Likewise.
10244
10245 2011-11-08  Bruno Haible  <bruno@clisp.org>
10246
10247         faccessat: Move AC_LIBOBJ invocation to module description.
10248         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
10249         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
10250         invocation from here...
10251         * modules/faccessat (configure.ac): ... to here. Invoke
10252         gl_PREREQ_FACCESSAT.
10253
10254 2011-11-08  Bruno Haible  <bruno@clisp.org>
10255
10256         faccessat: Simplify autoconf macro.
10257         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
10258         gl_FUNC_EUIDACCESS.
10259
10260 2011-11-08  Bruno Haible  <bruno@clisp.org>
10261
10262         renameat: Fix dependencies.
10263         * modules/renameat (Depends-on): Add stdbool.
10264
10265 2011-11-08  Bruno Haible  <bruno@clisp.org>
10266
10267         mkfifoat: Fix module description.
10268         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
10269         not gl_UNISTD_MODULE_INDICATOR.
10270
10271 2011-11-08  Bruno Haible  <bruno@clisp.org>
10272
10273         fstatat: Remove unused dependency.
10274         * modules/fstatat (Depends-on): Remove fstat.
10275
10276 2011-11-08  Simon Josefsson  <simon@josefsson.org>
10277
10278         GNUmakefile: behave when Makefile is missing.
10279         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
10280
10281 2011-11-08  Bruno Haible  <bruno@clisp.org>
10282
10283         openat: Conditionalize dependencies.
10284         * lib/openat.c: Reduce the scope of some #includes.
10285         * modules/openat (Depends-on): Add conditions.
10286
10287 2011-11-07  Jim Meyering  <meyering@redhat.com>
10288
10289         maint.mk: extract GPG key ID without using a temporary file
10290         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
10291         without using a temporary file.  Based on a suggestion from Werner Koch
10292         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
10293
10294 2011-11-07  Eric Blake  <eblake@redhat.com>
10295
10296         grantpt: fix typo
10297         * lib/stdlib.in.h (grantpt): Check correct function.
10298
10299         maint.mk: silence new syntax check
10300         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
10301
10302 2011-11-06  Bruno Haible  <bruno@clisp.org>
10303
10304         Doc about floating-point and math API.
10305         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
10306         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
10307
10308 2011-11-06  Bruno Haible  <bruno@clisp.org>
10309
10310         stdalign tests: Skip the test when compiled by Sun C.
10311         * tests/test-stdalign.c (main): Skip the test on Sun C.
10312
10313 2011-11-06  Bruno Haible  <bruno@clisp.org>
10314
10315         ansi-c++-opt: Complete the 2011-06-05 change.
10316         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
10317         does not support namespaces, set the variable to "no", not to ":".
10318
10319 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
10320
10321         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
10322
10323 2011-11-06  Bruno Haible  <bruno@clisp.org>
10324
10325         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
10326         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
10327         (minus_zerol) [HP-UX]: New macro.
10328         (unary_minus) [HP-UX]: New function.
10329         (copysignl) [HP-UX]: Use unary_minus function.
10330
10331 2011-11-06  Bruno Haible  <bruno@clisp.org>
10332
10333         ldexp, ldexpf, ldexpl: Enhance tests.
10334         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
10335         and tests/test-ldexpl.c.
10336         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
10337         LDEXP, MIN_EXP, MAX_EXP): New macros.
10338         Include test-ldexp.h.
10339         (main): Just call test_function.
10340         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
10341         infinity.h, nan.h.
10342         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
10343         MAX_EXP): New macros.
10344         Include test-ldexp.h.
10345         (x, y): Remove variables.
10346         (main): Just call test_function.
10347         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
10348         infinity.h, nan.h.
10349         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
10350         MAX_EXP): New macros.
10351         Include test-ldexp.h.
10352         (x, y): Remove variables.
10353         (main): Just call test_function.
10354         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
10355         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
10356         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
10357         (Depends-on): Add isnand-nolibm, signbit, float.
10358         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
10359         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
10360         (Depends-on): Add isnanf-nolibm, signbit, float.
10361
10362 2011-11-06  Bruno Haible  <bruno@clisp.org>
10363
10364         math tests: Cosmetics.
10365         * tests/test-math-c++.cc: Reorder declarations.
10366
10367 2011-11-05  Bruno Haible  <bruno@clisp.org>
10368
10369         fma*: Simplify test.
10370         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
10371         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
10372
10373         Tests for module 'fmal'.
10374         * modules/fmal-tests: New file.
10375         * tests/test-fmal1.c: New file.
10376         * tests/test-fmal2.c: New file.
10377
10378         New module 'fmal'.
10379         * lib/math.in.h (fmal): New declaration.
10380         * lib/fmal.c: New file.
10381         * m4/fmal.m4: New file.
10382         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
10383         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
10384         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
10385         REPLACE_FMAL.
10386         * modules/fmal: New file.
10387         * doc/posix-functions/fmal.texi: Mention the new module and the various
10388         bugs.
10389
10390         Tests for module 'fmaf'.
10391         * modules/fmaf-tests: New file.
10392         * tests/test-fmaf1.c: New file.
10393         * tests/test-fmaf2.c: New file.
10394
10395         New module 'fmaf'.
10396         * lib/math.in.h (fmaf): New declaration.
10397         * lib/fmaf.c: New file.
10398         * m4/fmaf.m4: New file.
10399         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
10400         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
10401         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
10402         REPLACE_FMAF.
10403         * modules/fmaf: New file.
10404         * doc/posix-functions/fmaf.texi: Mention the new module and the various
10405         bugs.
10406
10407         Tests for module 'fma'.
10408         * modules/fma-tests: New file.
10409         * tests/test-fma1.c: New file.
10410         * tests/test-fma1.h: New file.
10411         * tests/test-fma2.c: New file.
10412         * tests/test-fma2.h: New file.
10413
10414         New module 'fma'.
10415         * lib/math.in.h (fma): New declaration.
10416         * lib/fma.c: New file.
10417         * m4/fma.m4: New file.
10418         * m4/fegetround.m4: New file.
10419         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
10420         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
10421         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
10422         REPLACE_FMA.
10423         * modules/fma: New file.
10424         * doc/posix-functions/fma.texi: Mention the new module and the various
10425         bugs.
10426
10427         Extend gl_MATHFUNC.
10428         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
10429         Support 'void' as argument type.
10430         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
10431
10432 2011-11-05  Jim Meyering  <meyering@redhat.com>
10433
10434         maint.mk: also prohibit inclusion of dirent.h without use
10435         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
10436
10437 2011-11-05  Bruno Haible  <bruno@clisp.org>
10438
10439         ldexpl tests: Avoid test failure on MSVC 9.
10440         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
10441         value. Needed in order to enforce the conversion from a value greater
10442         than LDBL_MAX to Infinity.
10443
10444 2011-11-05  Bruno Haible  <bruno@clisp.org>
10445
10446         New modules 'at-internal', 'openat-h', split off from module 'openat'.
10447         * modules/at-internal: New file, extracted from modules/openat.
10448         * modules/openat-h: New file.
10449         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
10450         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
10451         * modules/openat (Description): Add reference to POSIX function.
10452         (Files): Remove lib/openat.h, lib/openat-proc.c.
10453         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
10454         intprops, unistd.
10455         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
10456         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
10457         gl_FCNTL_MODULE_INDICATOR.
10458         (Include): Remove unistd.h, openat.h.
10459         * modules/areadlinkat (Files): Add lib/at-func.c.
10460         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
10461         openat-die, openat-h, save-cwd.
10462         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
10463         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
10464         openat-die, openat-h, save-cwd, unistd.
10465         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
10466         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
10467         openat-h, save-cwd. Remove fcntl-h, openat.
10468         * modules/fchmodat (Files): Remove lib/openat.h.
10469         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
10470         openat, stdbool, unistd.
10471         * modules/fchownat (Files): Remove lib/openat.h.
10472         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
10473         openat, stdbool, sys_stat.
10474         * modules/fdopendir (Files): Remove lib/openat-priv.h,
10475         lib/openat-proc.c.
10476         (Depends-on): Add at-internal.
10477         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
10478         * modules/fstatat (Files): Remove lib/openat.h.
10479         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
10480         stdbool, unistd.
10481         * modules/fts (Depends-on): Add openat-h.
10482         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
10483         openat.
10484         * modules/mkdirat (Files): Remove lib/openat.h.
10485         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
10486         openat, stdbool, sys_stat.
10487         * modules/mkfifoat (Files): Add lib/at-func.c.
10488         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
10489         openat-h, save-cwd. Remove fcntl-h, openat.
10490         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
10491         * modules/readlinkat (Files): Add lib/at-func.c.
10492         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
10493         openat-h, save-cwd. Remove fcntl-h, openat.
10494         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
10495         openat.
10496         * modules/selinux-at (Files): Add lib/at-func.c.
10497         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
10498         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
10499         * modules/symlinkat (Files): Add lib/at-func.c.
10500         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
10501         openat-h, save-cwd. Remove fcntl-h, openat.
10502         * modules/unlinkat (Files): Remove lib/openat.h.
10503         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
10504         stdbool.
10505         * modules/utimensat (Files): Add lib/at-func.c.
10506         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
10507         openat-die, openat-h, save-cwd.
10508         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
10509         * modules/fdutimensat-tests (Depends-on): Add openat.
10510         * modules/fstatat-tests (Depends-on): Add openat-h.
10511         * modules/readlinkat-tests (Depends-on): Add openat.
10512         * modules/symlinkat-tests (Depends-on): Add openat.
10513
10514 2011-11-05  Bruno Haible  <bruno@clisp.org>
10515
10516         openat: Include <stdbool.h>.
10517         * lib/openat.c: Include <stdbool.h>.
10518
10519 2011-11-04  Bruno Haible  <bruno@clisp.org>
10520
10521         fchownat, renameat, unlinkat: Fix dependencies.
10522         * modules/fchownat (Depends-on): Add fstatat.
10523         * modules/renameat (Depends-on): Likewise.
10524         * modules/unlinkat (Depends-on): Likewise.
10525
10526 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
10527
10528         openat: remove direct dependency on dirent
10529         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
10530         and hasn't been needed ever since fdopendir was split into its own
10531         module on 2009-08-31.
10532         * modules/openat (Depends-on): Remove dirent.
10533
10534 2011-11-04  Bruno Haible  <bruno@clisp.org>
10535
10536         renameat: Optimize code size.
10537         * modules/renameat (configure.ac): Don't compile at-func2.c if
10538         REPLACE_RENAMEAT is 1.
10539
10540 2011-11-04  Bruno Haible  <bruno@clisp.org>
10541
10542         openat tests: Fix file list.
10543         * modules/openat-tests (Files): Add tests/test-open.h.
10544
10545 2011-11-04  Bruno Haible  <bruno@clisp.org>
10546
10547         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
10548         * modules/fchmodat (Depends-on): Add openat-die.
10549         * modules/fchownat (Depends-on): Likewise.
10550         * modules/linkat (Depends-on): Likewise.
10551         * modules/renameat (Depends-on): Likewise.
10552         * modules/openat (Depends-on): Add dirent.
10553
10554 2011-11-04  Jim Meyering  <meyering@redhat.com>
10555
10556         at-func*.c: fix comments
10557         * lib/at-func2.c: Correct/improve first-line comment.
10558         * lib/at-func.c: Correct grammar in first-line comment.
10559
10560 2011-11-04  Bruno Haible  <bruno@clisp.org>
10561
10562         New module 'mkdirat', split off from module 'openat'.
10563         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
10564         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
10565         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
10566         * modules/mkdirat: New file, extracted from modules/openat.
10567         * modules/openat (Files): Remove lib/mkdirat.c.
10568         (Depends-on): Remove mkdir.
10569         (configure.ac): Remove AC_LIBOBJ of mkdirat.
10570         (Include): Remove <sys/stat.h>.
10571         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
10572         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
10573         tests/test-mkdir.h.
10574         (Depends-on): Remove ignore-value.
10575         (Makefile.am): Remove rules for test-mkdirat.
10576         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
10577         of module 'openat'.
10578         * NEWS: Mention the change.
10579
10580 2011-11-04  Bruno Haible  <bruno@clisp.org>
10581
10582         closedir: Avoid warning on mingw.
10583         * lib/closedir.c: Include <unistd.h>.
10584
10585 2011-11-04  Bruno Haible  <bruno@clisp.org>
10586
10587         New module 'fstatat', split off from module 'openat'.
10588         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
10589         defined.
10590         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
10591         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
10592         gl_FUNC_FSTATAT.
10593         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
10594         * modules/fstatat: New file, extracted from modules/openat.
10595         * modules/openat (Files): Remove lib/fstatat.c.
10596         (Depends-on): Remove lstat.
10597         (configure.ac): Remove AC_LIBOBJ of fstatat.
10598         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
10599         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
10600         tests/test-lstat.h, tests/test-stat.h.
10601         (Depends-on): Remove getcwd-lgpl.
10602         (Makefile.am): Remove rules for test-fstatat.
10603         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
10604         of module 'openat'.
10605         * NEWS: Mention the change.
10606         * modules/getcwd (Depends-on): Add fstatat.
10607         * modules/linkat (Depends-on): Likewise.
10608         * modules/mkfifoat-tests (Depends-on): Likewise.
10609         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
10610
10611 2011-11-03  Bruno Haible  <bruno@clisp.org>
10612
10613         New module 'unlinkat', split off from module 'openat'.
10614         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
10615         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
10616         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
10617         * modules/unlinkat: New file, extracted from modules/openat. Correct
10618         the dependency conditions.
10619         * modules/openat (Files): Remove lib/unlinkat.c.
10620         (Depends-on): Remove rmdir, unlink.
10621         (configure.ac): Remove AC_LIBOBJ of unlinkat.
10622         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
10623         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
10624         tests/test-rmdir.h, tests/test-unlink.h.
10625         (Depends-on): Remove unlinkdir.
10626         (Makefile.am): Remove rules for test-unlinkat.
10627         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
10628         of module 'openat'.
10629         * NEWS: Mention the change.
10630         * modules/linkat-tests (Depends-on): Add unlinkat.
10631         * modules/mkfifoat-tests (Depends-on): Likewise.
10632         * modules/readlinkat-tests (Depends-on): Likewise.
10633
10634 2011-11-02  Bruno Haible  <bruno@clisp.org>
10635
10636         New module 'fchmodat', split off from module 'openat'.
10637         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
10638         defined.
10639         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
10640         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
10641         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
10642         * modules/fchmodat: New file, extracted from modules/openat.
10643         * modules/openat (Files): Remove lib/fchmodat.c.
10644         (configure.ac): Remove AC_LIBOBJ of fchmodat.
10645         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
10646         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
10647         (Makefile.am): Remove rules for test-fchmodat.
10648         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
10649         of module 'openat'.
10650         * NEWS: Mention the change.
10651
10652 2011-11-02  Jim Meyering  <meyering@redhat.com>
10653
10654         putenv: indent #definition of "environ" to placate cppi
10655         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
10656
10657         gitlog-to-changelog: provide a ChangeLog-repair mechanism
10658         Git logs are often treated as immutable, because editing them
10659         changes the SHA1 checksums of all descendants.  Thus, errors in
10660         git logs tend to stay there forever.  However, when we generate
10661         a ChangeLog file -- typically for distribution -- from that git log,
10662         we can actually make corrections in the generated file.  The key
10663         lies in recording in machine-readable/applicable form the desired
10664         corrections.  See --help for description and an example.
10665         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
10666         (usage): Describe it; alphabetize option descriptions.
10667         (main): Honor the new option, carefully.
10668
10669 2011-11-01  Jim Meyering  <meyering@redhat.com>
10670
10671         gitlog-to-changelog: avoid an infloop
10672         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
10673         that ends up being empty.
10674
10675 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
10676
10677         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
10678         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
10679         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
10680         contains (possibly-quoted) backslashes.  This should avoid
10681         all-too-common shell bugs if COMPLICATED contains backslashes in
10682         the "wrong" places.  Reported by David Evans in
10683         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00013.html>.
10684         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
10685         because we want ASCII ranges.  Is there some reason we don't use
10686         the C locale everywhere in this script?
10687         (func_module, top level): Avoid unwanted pathname expansion when
10688         $repo_url_prefix or $repo_url_suffix_repl contain shell
10689         metacharacters like '?' and '*'.
10690
10691 2011-11-01  Bruno Haible  <bruno@clisp.org>
10692
10693         fchownat: Improve description.
10694         * modules/fchownat (Description): Add link to function.
10695
10696 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
10697
10698         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
10699         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
10700         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00006.html>.
10701         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
10702
10703 2011-11-01  Bruno Haible  <bruno@clisp.org>
10704
10705         alignof: Avoid collision with stdalign module.
10706         * lib/alignof.h (alignof): Remove macro.
10707         * NEWS: Mention the change.
10708         Reported by Paul Eggert.
10709
10710 2011-11-01  Bruno Haible  <bruno@clisp.org>
10711
10712         New module 'fchownat', split off from module 'openat'.
10713         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
10714         defined.
10715         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
10716         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
10717         invoke gl_FUNC_FCHOWNAT.
10718         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
10719         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
10720         * modules/fchownat: New file, extracted from modules/openat.
10721         * modules/openat (Files): Remove lib/fchownat.c.
10722         (Depends-on): Remove lchown.
10723         (configure.ac): Remove AC_LIBOBJ of fchownat.
10724         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
10725         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
10726         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
10727         (Depends-on): Remove mgetgroups, usleep, stat-time.
10728         (configure.ac): Remove test for getegid.
10729         (Makefile.am): Remove rules for test-fchownat.
10730         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
10731         of module 'openat'.
10732         * NEWS: Mention the change.
10733
10734 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
10735
10736         stdalign: port better to MSVC and to Sun C 5.11
10737         This fixes some of the problems reported by Bruno Haible in
10738         <http://lists.gnu.org/archive/html/bug-gnulib/2011-10/msg00300.html>.
10739         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
10740         shortcomings of MSVC and of Sun C 5.11.
10741         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
10742         around __declspec arg.
10743         * modules/stdalign-tests (Files): Add tests/macros.h.
10744         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
10745         Include macros.h, for ASSERT.
10746         (DECLARE_ALIGNED): Remove.
10747         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
10748         to catch bug), and to 1 if not (simplifies the rest of the code).
10749         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
10750         (CHECK_AUTO): Remove.
10751         (CHECK_ALIGNED): Check only the alignment of the static vars,
10752         since auto var alignment isn't supported by Sun C 5.11.
10753         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
10754         ASSERT failures are easier to diagnose.
10755
10756 2011-10-31  Bruno Haible  <bruno@clisp.org>
10757
10758         doc about some IRIX 5.3 problems.
10759         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
10760         on IRIX 5.3.
10761         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
10762         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
10763         5.3.
10764         * doc/posix-functions/grantpt.texi: Likewise.
10765         * doc/posix-functions/unlockpt.texi: Likewise.
10766         * doc/posix-functions/lgamma.texi: Likewise.
10767         * doc/posix-functions/nextafter.texi: Likewise.
10768         * doc/posix-functions/remainder.texi: Likewise.
10769         * doc/posix-functions/select.texi: Mention misplaced declaration on
10770         IRIX 5.3.
10771         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10772
10773 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
10774
10775         gitlog-to-changelog: fix git-log invocation.
10776         git-log mishandles date strings before 1970-01-01 UTC, and there is
10777         no use to specify --since=1970-01-01 by default anyway.
10778         * build-aux/gitlog-to-changelog: By default, when no --since option
10779         was given, do not specify explicit --since option to git-log.
10780
10781 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
10782
10783         gitlog-to-changelog: new option --append-dot.
10784         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
10785         first non-blank line of each commit message terminated with a dot.
10786
10787 2011-10-30  Bruno Haible  <bruno@clisp.org>
10788
10789         ffsl, ffsll: Avoid compilation error due to 'restrict'.
10790         * lib/ffsl.h: Include <config.h>.
10791         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
10792
10793 2011-10-30  Jim Meyering  <meyering@redhat.com>
10794
10795         GNUmakefile: reenable "make syntax-check" for most projects
10796         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
10797         build-aux variable", "syntax-check" would do nothing but succeed with
10798         the "No version control files detected..." diagnostic (unless you
10799         happened to override _build-aux via cfg.mk).
10800         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
10801         to precede inclusion of maint.mk.  Otherwise, these variables would
10802         be used undefined in any project that does not override the default.
10803
10804 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
10805
10806         gitlog-to-changelog: treat a message with only blank lines as empty.
10807         * build-aux/gitlog-to-changelog: Move the code that removes leading and
10808         trailing blank lines before the code that issues a warning about an
10809         empty commit message.
10810
10811 2011-10-30  Jim Meyering  <meyering@redhat.com>
10812
10813         test-parse-datetime.c: avoid new DST-related false positive test failure
10814         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
10815         based on the time/date we'll convert, not the current time.
10816         Otherwise, the moment we cross a DST boundary like today's in
10817         Europe, (CEST to CET), that offset ends up being one hour off.
10818
10819 2011-10-27  Bruno Haible  <bruno@clisp.org>
10820
10821         fstat: Tweak documentation.
10822         * modules/fstat (Description): More precise description.
10823
10824 2011-10-27  Bruno Haible  <bruno@clisp.org>
10825
10826         Update documentation regarding 'largefile' module.
10827         * doc/posix-functions/fstat.texi: Tweak wording.
10828         * doc/posix-functions/opendir.texi: Mention that the module fixes the
10829         problems with huge directories and/or small ino_t types.
10830         * doc/posix-functions/readdir.texi: Likewise.
10831         * doc/posix-functions/rewinddir.texi: Likewise.
10832
10833 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
10834
10835         maint.mk: don't maintain a second build-aux variable.
10836         * maint.mk (build_aux): Removed.  The maintainer-makefile module
10837         depends on GNUmakefile, which already maintains a cfg.mk
10838         overridable $(_build-aux) for projects with a non-standard
10839         build-aux directory location, although without the $(srcdir)
10840         prefix.  Use that variable consistently instead of introducing a
10841         second one.  Adjust all call sites.
10842
10843 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
10844
10845         Add stdalign module and use it in other modules.
10846         This is based on a previous proposal by Bruno Haible
10847         <https://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00226.html>.
10848
10849         stdalign: new module
10850         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
10851         * modules/stdalign: New files.
10852         * MODULES.html.sh (c1x_core_properties): Add stdalign.
10853         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
10854
10855         stdalign-tests: new module
10856         * modules/stdalign-tests, tests/test-stdalign.c: New files.
10857
10858         argp: use stdalign
10859         * lib/argp-parse.c: Include <stdalign.h>.
10860         (alignof): Remove.
10861         * modules/argp (Depends-on): Add stdalign.
10862
10863         crypto libraries: use stdalign
10864         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
10865         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
10866         Do not include <stdlib.h> twice, in md4.c.
10867         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
10868         because we are accessing a pointer's bit-pattern, not a size.
10869         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
10870         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
10871         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
10872         * modules/crypto/sha512: Likewise.
10873
10874         sys_socket: use stdalign, not alignof
10875         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
10876         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
10877
10878 2011-10-27  Bruno Haible  <bruno@clisp.org>
10879
10880         raise test: Avoid a test failure on Linux/MIPS.
10881         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
10882         because 99 is a valid signal on Linux/MIPS.
10883
10884 2011-10-27  Bruno Haible  <bruno@clisp.org>
10885
10886         nonblocking tests: Fix test failure on Linux/MIPS.
10887         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
10888         Set to 270000.
10889
10890 2011-10-27  Bruno Haible  <bruno@clisp.org>
10891
10892         utimensat: Work around problem on Linux/hppa.
10893         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
10894         values.
10895         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
10896
10897 2011-10-25  Jim Meyering  <meyering@redhat.com>
10898
10899         maint.mk: fix a bug in sc_prohibit_stddef_without_use
10900         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
10901         after symbols like NULL, size_t, etc.
10902         Reported by Alfred M. Szmidt.
10903
10904         maint.mk: exempt ENODATA from a syntax-check rule
10905         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
10906         from the sc_prohibit_always-defined_macros syntax-check rule.
10907         Add a comment.  See this for more details:
10908         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
10909
10910 2011-10-23  Jim Meyering  <meyering@redhat.com>
10911
10912         fts: close parent dir FD before returning from post-traversal fts_read
10913         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
10914         unlink A, even though an FD open on A remained.  This is suboptimal
10915         (holding a file descriptor open longer than needed), but otherwise not
10916         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
10917         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
10918         that represents a real problem: it causes the removal of A to fail
10919         with e.g., "rm: cannot remove `A': Device or resource busy"
10920
10921         fts visits each directory twice and keeps a cache (fts_fd_ring) of
10922         directory file descriptors.  After completing the final, FTS_DP,
10923         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
10924         cache, but then proceeded to add a new FD to it via the subsequent
10925         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
10926         final file descriptor would be closed only via fts_close's call to
10927         fd_ring_clear.  Now, it is usually closed earlier, via the final
10928         FTS_DP-returning fts_read call.
10929         * lib/fts.c (restore_initial_cwd): New function, converted from
10930         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
10931         Update callers.
10932         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
10933         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
10934
10935 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
10936             Bruno Haible  <bruno@clisp.org>
10937             Jim Meyering  <jim@meyering.net>
10938
10939         readme-release: improve safety of release prep instructions.
10940         * README-release: Don't git pull all branches when only master
10941         is needed for the release process.
10942         Run make maintainer-clean before changing trees and merging.
10943         Don't try to run ./configure right after git pull in case files
10944         that influence the bootstrap process have changed, move the
10945         ./configure step to after running ./bootstrap.
10946         Don't bootstrap "one last time"... it's the first time!
10947
10948 2011-10-22  Bruno Haible  <bruno@clisp.org>
10949
10950         errno, strerror-override: Support for MSVC 10.
10951         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
10952         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
10953         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
10954         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
10955         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
10956         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
10957         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
10958         Assign values compatible with MSVC 10.
10959         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
10960         New macros.
10961         (GNULIB_defined_EWINSOCK): New macro.
10962         * lib/strerror-override.c (strerror_override): Update accordingly.
10963         * lib/strerror-override.h: Likewise.
10964         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
10965         longer equal to the corresponding errno value.
10966         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
10967
10968 2011-10-22  Bruno Haible  <bruno@clisp.org>
10969
10970         perror: Recognize when test program crashes.
10971         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
10972         strerror, set gl_cv_func_perror_works to no.
10973         Reported by Daniel Richard G. <skunk@iskunk.org>.
10974
10975         perror: Fix indentation.
10976         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
10977
10978 2011-10-22  Bruno Haible  <bruno@clisp.org>
10979
10980         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
10981         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
10982         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
10983         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
10984         functions, not as a macro.
10985         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
10986         macros.
10987         (isfinite, isinf, isnan, signbit): Check overloaded functions and
10988         absence of macro.
10989         Suggested by Eric Blake.
10990         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
10991
10992 2011-10-21  Bruno Haible  <bruno@clisp.org>
10993
10994         relocatable-prog-wrapper: Don't leave object files behind.
10995         * build-aux/install-reloc: Re-synchronize list of .o files to be
10996         removed with list of compilation units.
10997
10998 2011-10-20  Bruno Haible  <bruno@clisp.org>
10999
11000         openpty, posix_openpt: Remove code duplication.
11001         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
11002         * lib/openpty.c: Include <stdlib.h>.
11003         (openpty): Use posix_openpt on all platforms except IRIX.
11004         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
11005
11006 2011-10-20  Bruno Haible  <bruno@clisp.org>
11007
11008         unlockpt: Detect invalid argument.
11009         * lib/unlockpt.c: Include <fcntl.h>.
11010         (unlockpt): Check whether fd is valid, using fcntl().
11011         * modules/unlockpt (Depends-on): Add fcntl-h.
11012
11013 2011-10-20  Bruno Haible  <bruno@clisp.org>
11014
11015         openpty: Avoid compilation error on AIX 6.1.
11016         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
11017
11018 2011-10-20  Bruno Haible  <bruno@clisp.org>
11019
11020         posix_openpt: Support for OpenBSD.
11021         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
11022         (posix_openpt) [OpenBSD]: New code.
11023         * lib/grantpt.c: Include <fcntl.h>.
11024         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
11025         * modules/grantpt (Depends-on): Add fcntl-h.
11026
11027 2011-10-20  Bruno Haible  <bruno@clisp.org>
11028
11029         posix_openpt test: Coding style.
11030         * tests/test-posix_openpt.c: Use GNU coding style.
11031
11032 2011-10-20  Bruno Haible  <bruno@clisp.org>
11033
11034         grantpt: Support --avoid=pt_chown.
11035         * modules/grantpt (Files): Add lib/pty-private.h.
11036
11037 2011-10-20  Bruno Haible  <bruno@clisp.org>
11038
11039         posix_openpt: Fix autoconf macro.
11040         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
11041         unneeded check for _getpty.
11042
11043 2011-10-20  Bruno Haible  <bruno@clisp.org>
11044
11045         openpty: Update comments.
11046         * lib/openpty.c: Add comments about Minix.
11047
11048 2011-10-19  Eric Blake  <eblake@redhat.com>
11049
11050         openpty: relax license
11051         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
11052
11053         pt_chown: use configmake to simplify build
11054         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
11055
11056         ptsname and others: relax license
11057         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
11058         * modules/unlockpt (License): Likewise.
11059         * modules/pt_chown (License): Likewise.
11060         * modules/ptsname (License): Likewise.
11061         * modules/ttyname_r (License): Likewise.
11062
11063 2011-10-19  Jim Meyering  <meyering@redhat.com>
11064
11065         posix_openpt: remove spurious #endif
11066         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
11067
11068 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
11069
11070         maint.mk: Respect $(build_aux) in web-manual rule.
11071         * top/maint.mk (web-manual): Find gen-announce script in user's
11072         $(build_aux) directory instead of hard-coding 'build-aux'.
11073
11074 2011-10-19  Bruno Haible  <bruno@clisp.org>
11075
11076         posix_openpt: Fix compilation error.
11077         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
11078         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
11079         Mention the openpty module as an alternative.
11080
11081 2011-10-19  Bruno Haible  <bruno@clisp.org>
11082
11083         Support for old NeXTstep 3.3 frexp().
11084         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
11085         execution time of the test to 5 seconds.
11086         Reported by Daniel Richard G. <skunk@iskunk.org>.
11087
11088 2011-10-19  Bruno Haible  <bruno@clisp.org>
11089
11090         Support for old NeXTstep 3.3 sed.
11091         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
11092         part, use /.../, not \|...|. Escape periods in the header file name.
11093         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
11094         Reported by Daniel Richard G. <skunk@iskunk.org>.
11095
11096 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
11097
11098         Support for old NeXTstep 3.3 gcc.
11099         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
11100         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
11101         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
11102         * lib/spawn.in.h (_Restrict_arr_): Likewise.
11103         * lib/regex.h (_Restrict_arr_): Likewise.
11104         * lib/regex_internal.h (re_token_t): Likewise.
11105         * lib/regexec.c (check_node_accept_bytes): Likewise.
11106         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
11107
11108 2011-10-18  Eric Blake  <eblake@redhat.com>
11109
11110         posix_openpt: new module
11111         * modules/posix_openpt: New module.
11112         * m4/posix_openpt.m4: New file.
11113         * lib/posix_openpt.c: Likewise.
11114         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
11115         (gl_STDLIB_H_DEFAULTS): Set defaults.
11116         * modules/stdlib (Makefile.am): Substitute macros.
11117         * lib/stdlib.in.h (posix_openpt): Declare.
11118         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
11119         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
11120         * modules/posix_openpt-tests: New test module.
11121         * tests/test-posix_openpt.c: New test.
11122
11123 2011-10-15  Bruno Haible  <bruno@clisp.org>
11124
11125         xstrtoll: Fix compilation failure.
11126         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
11127         from lib/strtol.c.
11128         * doc/posix-headers/limits.texi: Mention missing numerical limits on
11129         some platforms.
11130         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11131
11132 2011-10-15  Bruno Haible  <bruno@clisp.org>
11133
11134         vasnprintf: Optimize bit search operation.
11135         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
11136         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
11137         gl_DOUBLE_EXPONENT_LOCATION.
11138         * modules/vasnprintf (Files): Add m4/exponentd.m4.
11139         * modules/unistdio/u8-vasnprintf (Files): Likewise.
11140         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
11141         * modules/unistdio/u16-vasnprintf (Files): Likewise.
11142         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
11143         * modules/unistdio/u32-vasnprintf (Files): Likewise.
11144         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
11145         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
11146         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
11147
11148 2011-10-15  Bruno Haible  <bruno@clisp.org>
11149
11150         vasnprintf: Fix comments.
11151         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
11152
11153 2011-10-14  Bruno Haible  <bruno@clisp.org>
11154
11155         Tests for module 'integer_length_ll'.
11156         * modules/integer_length_ll-tests: New file.
11157         * tests/test-integer_length_ll.c: New file.
11158
11159         New module 'integer_length_ll'.
11160         * lib/integer_length_ll.c: New file.
11161         * modules/integer_length_ll: New file.
11162
11163 2011-10-14  Bruno Haible  <bruno@clisp.org>
11164
11165         Tests for module 'integer_length_l'.
11166         * modules/integer_length_l-tests: New file.
11167         * tests/test-integer_length_l.c: New file.
11168
11169         New module 'integer_length_l'.
11170         * lib/integer_length_l.c: New file.
11171         * modules/integer_length_l: New file.
11172
11173 2011-10-14  Bruno Haible  <bruno@clisp.org>
11174
11175         Tests for module 'integer_length'.
11176         * modules/integer_length-tests: New file.
11177         * tests/test-integer_length.c: New file.
11178
11179         New module 'integer_length'.
11180         * lib/integer_length.h: New file.
11181         * lib/integer_length.c: New file.
11182         * modules/integer_length: New file.
11183
11184 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
11185
11186         popen: Fix dependency conditions.
11187         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
11188
11189 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
11190
11191         perror: Fix autoconf test.
11192         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
11193         <stdlib.h> and <string.h>.
11194
11195 2011-10-14  Bruno Haible  <bruno@clisp.org>
11196
11197         ffsl: Optimize on 64-bit platforms.
11198         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
11199         unrolling.
11200
11201 2011-10-13  Bruno Haible  <bruno@clisp.org>
11202
11203         ffsl: Optimize on 32-bit platforms.
11204         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
11205         use ffs() without a loop.
11206
11207         ffsl, ffsll: Optimize for GCC.
11208         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
11209         * lib/ffsl.c (GCC_BUILTIN): New macro.
11210         * lib/ffsll.c (GCC_BUILTIN): Likewise.
11211
11212 2011-10-13  Bruno Haible  <bruno@clisp.org>
11213
11214         ffs, bcopy, memset: Support symbol renaming via config.h.
11215         * lib/ffs.c: Include <config.h>.
11216         * lib/bcopy.c: Likewise.
11217         * lib/memset.c: Likewise.
11218
11219 2011-10-10  Bruno Haible  <bruno@clisp.org>
11220
11221         atanl: Simplify for platforms where 'long double' == 'double'.
11222         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
11223         alternative implementation.
11224         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11225         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11226         * modules/atanl (Depends-on): Add atan. Update conditions.
11227
11228 2011-10-10  Bruno Haible  <bruno@clisp.org>
11229
11230         acosl: Simplify for platforms where 'long double' == 'double'.
11231         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
11232         alternative implementation.
11233         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11234         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11235         * modules/acosl (Depends-on): Add acos. Update conditions.
11236
11237 2011-10-10  Bruno Haible  <bruno@clisp.org>
11238
11239         asinl: Simplify for platforms where 'long double' == 'double'.
11240         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
11241         alternative implementation.
11242         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11243         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11244         * modules/asinl (Depends-on): Add asin. Update conditions.
11245
11246 2011-10-10  Bruno Haible  <bruno@clisp.org>
11247
11248         tanl: Simplify for platforms where 'long double' == 'double'.
11249         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
11250         implementation.
11251         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11252         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11253         * modules/tanl (Depends-on): Add tan. Update conditions.
11254         (configure.ac): Don't compile trigl.c if
11255         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11256
11257 2011-10-10  Bruno Haible  <bruno@clisp.org>
11258
11259         cosl: Simplify for platforms where 'long double' == 'double'.
11260         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
11261         implementation.
11262         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11263         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11264         * modules/cosl (Depends-on): Add cos. Update conditions.
11265         (configure.ac): Don't compile sincosl.c and trigl.c if
11266         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11267
11268 2011-10-10  Bruno Haible  <bruno@clisp.org>
11269
11270         sinl: Simplify for platforms where 'long double' == 'double'.
11271         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
11272         implementation.
11273         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11274         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11275         * modules/sinl (Depends-on): Add sin. Update conditions.
11276         (configure.ac): Don't compile sincosl.c and trigl.c if
11277         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11278
11279 2011-10-10  Bruno Haible  <bruno@clisp.org>
11280
11281         logl: Simplify for platforms where 'long double' == 'double'.
11282         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
11283         implementation.
11284         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11285         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11286         * modules/logl (Depends-on): Add log. Update conditions.
11287
11288 2011-10-10  Bruno Haible  <bruno@clisp.org>
11289
11290         expl: Simplify for platforms where 'long double' == 'double'.
11291         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
11292         implementation.
11293         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11294         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11295         * modules/expl (Depends-on): Add exp. Update conditions.
11296
11297 2011-10-10  Bruno Haible  <bruno@clisp.org>
11298
11299         sqrtl: Simplify for platforms where 'long double' == 'double'.
11300         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
11301         alternative implementation.
11302         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11303         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11304         * modules/sqrtl (Depends-on): Update conditions.
11305
11306 2011-10-10  Bruno Haible  <bruno@clisp.org>
11307
11308         ldexpl: Simplify for platforms where 'long double' == 'double'.
11309         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
11310         alternative implementation.
11311         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11312         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11313         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
11314
11315 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
11316
11317         ffsll: set correct witness
11318         * modules/ffsll (configure.ac): Fix typo.
11319
11320 2011-10-10  Bruno Haible  <bruno@clisp.org>
11321
11322         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
11323         * lib/printf-frexpl.c: Include <config.h>.
11324         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
11325         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
11326         second time.
11327         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
11328         gl_LONG_DOUBLE_VS_DOUBLE.
11329         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
11330         conditions.
11331
11332 2011-10-10  Bruno Haible  <bruno@clisp.org>
11333
11334         frexpl: Simplify for platforms where 'long double' == 'double'.
11335         * lib/frexpl.c: Include <config.h>.
11336         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
11337         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
11338         time.
11339         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11340         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11341         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
11342         * modules/frexpl (Depends-on): Add frexp. Update conditions.
11343         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
11344         conditions.
11345
11346 2011-10-10  Jim Meyering  <meyering@redhat.com>
11347
11348         test-renameat: don't leave behind a temporary file
11349         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
11350           ERROR: files left in build directory after distclean:
11351           ./gltests/test-renameat.too
11352           make[1]: *** [distcleancheck] Error 1
11353         Reported by Tom G. Christensen.
11354
11355 2011-10-09  Bruno Haible  <bruno@clisp.org>
11356
11357         rint: Determine RINT_LIBM correctly on AIX 7.
11358         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
11359         directly, not only through a function pointer. Also accept an optional
11360         4th argument with extra code.
11361         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
11362         rintf() call by gcc when optimizing.
11363
11364         mathfunc.m4: Refactor.
11365         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
11366         m4 variable.
11367
11368 2011-10-09  Bruno Haible  <bruno@clisp.org>
11369
11370         rintl: Simplify for platforms where 'long double' == 'double'.
11371         * lib/rintl.c: Include <config.h>.
11372         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
11373         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
11374         time.
11375         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11376         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11377         * modules/rintl (Depends-on): Add rint. Update conditions.
11378
11379 2011-10-09  Bruno Haible  <bruno@clisp.org>
11380
11381         roundl: Simplify for platforms where 'long double' == 'double'.
11382         * lib/roundl.c: Include <config.h>.
11383         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
11384         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
11385         time.
11386         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11387         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11388         * modules/roundl (Depends-on): Add round. Update conditions.
11389
11390 2011-10-09  Bruno Haible  <bruno@clisp.org>
11391
11392         truncl: Simplify for platforms where 'long double' == 'double'.
11393         * lib/truncl.c: Include <config.h>.
11394         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
11395         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
11396         time.
11397         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11398         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11399         * modules/truncl (Depends-on): Add trunc. Update conditions.
11400
11401 2011-10-09  Bruno Haible  <bruno@clisp.org>
11402
11403         ceill: Simplify for platforms where 'long double' == 'double'.
11404         * lib/ceill.c: Include <config.h>.
11405         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
11406         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
11407         time.
11408         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11409         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11410         * modules/ceill (Depends-on): Add ceil. Update conditions.
11411
11412 2011-10-09  Bruno Haible  <bruno@clisp.org>
11413
11414         floorl: Simplify for platforms where 'long double' == 'double'.
11415         * lib/floorl.c: Include <config.h>.
11416         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
11417         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
11418         time.
11419         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11420         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11421         * modules/floorl (Depends-on): Add floor. Update conditions.
11422
11423 2011-10-09  Bruno Haible  <bruno@clisp.org>
11424
11425         rint: Fix ordering constraints.
11426         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
11427         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
11428         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
11429
11430 2011-10-09  Bruno Haible  <bruno@clisp.org>
11431
11432         copysignl: Simplify for platforms where 'long double' == 'double'.
11433         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
11434         alternative.
11435         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11436         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11437         * modules/copysignl (Depends-on): Add copysign. Update conditions.
11438
11439 2011-10-09  Bruno Haible  <bruno@clisp.org>
11440
11441         Tests for module 'rintl'.
11442         * modules/rintl-tests: New file.
11443         * tests/test-rintl.c: New file.
11444
11445         New module 'rintl'.
11446         * lib/math.in.h (rintl): New declaration.
11447         * lib/rintl.c: New file.
11448         * m4/rintl.m4: New file.
11449         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
11450         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
11451         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
11452         * modules/rintl: New file.
11453         * tests/test-math-c++.cc: Check the declaration of rintl.
11454         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
11455         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
11456         * doc/posix-functions/rintl.texi: Mention the new module.
11457
11458 2011-10-09  Bruno Haible  <bruno@clisp.org>
11459
11460         Tests for module 'rintf'.
11461         * modules/rintf-tests: New file.
11462         * tests/test-rintf.c: New file.
11463
11464         New module 'rintf'.
11465         * lib/math.in.h (rintf): New declaration.
11466         * lib/rintf.c: New file.
11467         * m4/rintf.m4: New file.
11468         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
11469         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
11470         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
11471         * modules/rintf: New file.
11472         * tests/test-math-c++.cc: Check the declaration of rintf.
11473         * doc/posix-functions/rintf.texi: Mention the new module.
11474
11475 2011-10-09  Bruno Haible  <bruno@clisp.org>
11476
11477         rint: Support for MSVC.
11478         * lib/math.in.h (rint): New declaration.
11479         * lib/rint.c: New file.
11480         * m4/rint.m4: New file.
11481         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
11482         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
11483         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
11484         * modules/rint (Description): Fix.
11485         (Files): Add lib/rint.c, m4/rint.m4.
11486         (Depends-on): Add math.
11487         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
11488         gl_MATH_MODULE_INDICATOR.
11489         * tests/test-math-c++.cc: Check the declaration of rint.
11490         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
11491         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
11492         * doc/posix-functions/rint.texi: Mention the replacement provided by
11493         the module.
11494
11495         rint tests: More tests.
11496         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
11497         minus-zero.h, infinity.h, nan.h.
11498         (main): Skip the test if the current rounding mode is not standard. Add
11499         tests for negative numbers, minus zero, infinity, NaN.
11500         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
11501         tests/nan.h.
11502         (Depends-on): Add isnand-nolibm.
11503
11504 2011-10-09  Bruno Haible  <bruno@clisp.org>
11505
11506         Tests for module 'copysignl'.
11507         * modules/copysignl-tests: New file.
11508         * tests/test-copysignl.c: New file.
11509
11510         New module 'copysignl'.
11511         * lib/math.in.h (copysignl): New declaration.
11512         * lib/copysignl.c: New file.
11513         * m4/copysignl.m4: New file.
11514         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
11515         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
11516         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
11517         HAVE_COPYSIGNL.
11518         * modules/copysignl: New file.
11519         * tests/test-math-c++.cc: Check the declaration of copysignl.
11520         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
11521         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
11522         * doc/posix-functions/copysignl.texi: Mention the new module.
11523
11524 2011-10-09  Bruno Haible  <bruno@clisp.org>
11525
11526         Tests for module 'copysignf'.
11527         * modules/copysignf-tests: New file.
11528         * tests/test-copysignf.c: New file.
11529
11530         New module 'copysignf'.
11531         * lib/math.in.h (copysignf): New declaration.
11532         * lib/copysignf.c: New file.
11533         * m4/copysignf.m4: New file.
11534         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
11535         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
11536         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
11537         HAVE_COPYSIGNF.
11538         * modules/copysignf: New file.
11539         * tests/test-math-c++.cc: Check the declaration of copysignf.
11540         * doc/posix-functions/copysignf.texi: Mention the new module.
11541
11542 2011-10-09  Bruno Haible  <bruno@clisp.org>
11543
11544         Ensure that HAVE_* variables are set to 1 before they are set to 0.
11545         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
11546         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
11547         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
11548         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
11549         gl_SIGNAL_H_DEFAULTS.
11550
11551 2011-10-09  Bruno Haible  <bruno@clisp.org>
11552
11553         poll: Make macro safer.
11554         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
11555         ac_cv_header_poll_h is not set.
11556
11557 2011-10-09  Bruno Haible  <bruno@clisp.org>
11558
11559         copysign: Provide replacement.
11560         * lib/math.in.h (copysign): New declaration.
11561         * lib/copysign.c: New file.
11562         * m4/copysign.m4: New file.
11563         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
11564         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
11565         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
11566         HAVE_COPYSIGN.
11567         * modules/copysign (Description): Clarify.
11568         (Files): Add lib/copysign.c, m4/copysign.m4.
11569         (Depends-on): Add math, signbit.
11570         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
11571         gl_MATH_MODULE_INDICATOR.
11572         * tests/test-math-c++.cc: Check the declaration of copysign.
11573         * doc/posix-functions/copysign.texi: Mention the effects of the module
11574         on Minix and MSVC.
11575
11576 2011-10-09  Bruno Haible  <bruno@clisp.org>
11577
11578         isinf: Ensure macro on AIX 5.1.
11579         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
11580         macro.
11581         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
11582
11583 2011-10-09  Bruno Haible  <bruno@clisp.org>
11584
11585         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
11586         * modules/snprintf-posix-tests (configure.ac): Require
11587         gl_LONG_DOUBLE_VS_DOUBLE.
11588         * modules/sprintf-posix-tests (configure.ac): Likewise.
11589         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
11590         * modules/vasprintf-posix-tests (configure.ac): Likewise.
11591         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
11592         * modules/vsprintf-posix-tests (configure.ac): Likewise.
11593         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
11594         tests on platforms where 'long double' is the same as 'double'.
11595         * tests/test-sprintf-posix.h (test_function): Likewise.
11596         * tests/test-vasnprintf-posix.c (test_function): Likewise.
11597         * tests/test-vasprintf-posix.c (test_function): Likewise.
11598
11599         *printf: Fix for platforms where 'long double' == 'double'.
11600         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
11601         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
11602         * modules/dprintf-posix (Files): Add m4/math_h.m4.
11603         * modules/fprintf-posix (Files): Likewise.
11604         * modules/obstack-printf-posix (Files): Likewise.
11605         * modules/snprintf-posix (Files): Likewise.
11606         * modules/sprintf-posix (Files): Likewise.
11607         * modules/vasnprintf (Files): Likewise.
11608         * modules/vasnprintf-posix (Files): Likewise.
11609         * modules/vasprintf-posix (Files): Likewise.
11610         * modules/vdprintf-posix (Files): Likewise.
11611         * modules/vfprintf-posix (Files): Likewise.
11612         * modules/vsnprintf-posix (Files): Likewise.
11613         * modules/vsprintf-posix (Files): Likewise.
11614         * modules/unistdio/u8-vasnprintf (Files): Likewise.
11615         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
11616         * modules/unistdio/u16-vasnprintf (Files): Likewise.
11617         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
11618         * modules/unistdio/u32-vasnprintf (Files): Likewise.
11619         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
11620         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
11621
11622         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
11623         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
11624         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11625         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
11626         'long double'.
11627         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
11628
11629         isinf: Fix for platforms where 'long double' == 'double'.
11630         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
11631         Don't blindly assume 80-bit 'long double'.
11632
11633         isfinite: Fix for platforms where 'long double' == 'double'.
11634         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
11635         Don't blindly assume 80-bit 'long double'.
11636
11637         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
11638         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
11639         * modules/isfinite-tests (configure.ac): Require
11640         gl_LONG_DOUBLE_VS_DOUBLE.
11641         * modules/isinf-tests (configure.ac): Likewise.
11642         * modules/isnan-tests (configure.ac): Likewise.
11643         * modules/isnanl-tests (configure.ac): Likewise.
11644         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
11645         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
11646         tests on platforms where 'long double' is the same as 'double'.
11647         * tests/test-isinf.c (test_isinfl): Likewise.
11648         * tests/test-isnan.c (test_long_double): Likewise.
11649         * tests/test-isnanl.h (main): Likewise.
11650
11651 2011-10-08  Bruno Haible  <bruno@clisp.org>
11652
11653         Tests for module 'tanhf'.
11654         * modules/tanhf-tests: New file.
11655         * tests/test-tanhf.c: New file.
11656
11657         New module 'tanhf'.
11658         * lib/math.in.h (tanhf): New declaration.
11659         * lib/tanhf.c: New file.
11660         * m4/tanhf.m4: New file.
11661         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
11662         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
11663         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
11664         * modules/tanhf: New file.
11665         * tests/test-math-c++.cc: Check the declaration of tanhf.
11666         * doc/posix-functions/tanhf.texi: Mention the new module.
11667
11668         tanh: Use a .m4 file.
11669         * m4/tanh.m4: New file.
11670         * modules/tanh (Files): Add it.
11671         (configure.ac): Just invoke gl_FUNC_TANH.
11672
11673 2011-10-08  Bruno Haible  <bruno@clisp.org>
11674
11675         Tests for module 'coshf'.
11676         * modules/coshf-tests: New file.
11677         * tests/test-coshf.c: New file.
11678
11679         New module 'coshf'.
11680         * lib/math.in.h (coshf): New declaration.
11681         * lib/coshf.c: New file.
11682         * m4/coshf.m4: New file.
11683         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
11684         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
11685         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
11686         * modules/coshf: New file.
11687         * tests/test-math-c++.cc: Check the declaration of coshf.
11688         * doc/posix-functions/coshf.texi: Mention the new module.
11689
11690         cosh: Use a .m4 file.
11691         * m4/cosh.m4: New file.
11692         * modules/cosh (Files): Add it.
11693         (configure.ac): Just invoke gl_FUNC_COSH.
11694
11695 2011-10-08  Bruno Haible  <bruno@clisp.org>
11696
11697         Tests for module 'sinhf'.
11698         * modules/sinhf-tests: New file.
11699         * tests/test-sinhf.c: New file.
11700
11701         New module 'sinhf'.
11702         * lib/math.in.h (sinhf): New declaration.
11703         * lib/sinhf.c: New file.
11704         * m4/sinhf.m4: New file.
11705         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
11706         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
11707         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
11708         * modules/sinhf: New file.
11709         * tests/test-math-c++.cc: Check the declaration of sinhf.
11710         * doc/posix-functions/sinhf.texi: Mention the new module.
11711
11712         sinh: Use a .m4 file.
11713         * m4/sinh.m4: New file.
11714         * modules/sinh (Files): Add it.
11715         (configure.ac): Just invoke gl_FUNC_SINH.
11716
11717 2011-10-08  Bruno Haible  <bruno@clisp.org>
11718
11719         Tests for module 'atan2f'.
11720         * modules/atan2f-tests: New file.
11721         * tests/test-atan2f.c: New file.
11722
11723         New module 'atan2f'.
11724         * lib/math.in.h (atan2f): New declaration.
11725         * lib/atan2f.c: New file.
11726         * m4/atan2f.m4: New file.
11727         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
11728         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
11729         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
11730         * modules/atan2f: New file.
11731         * tests/test-math-c++.cc: Check the declaration of atan2f.
11732         * doc/posix-functions/atan2f.texi: Mention the new module.
11733
11734         atan2: Use a .m4 file.
11735         * m4/atan2.m4: New file.
11736         * modules/atan2 (Files): Add it.
11737         (configure.ac): Just invoke gl_FUNC_ATAN2.
11738
11739 2011-10-08  Bruno Haible  <bruno@clisp.org>
11740
11741         Tests for module 'atanf'.
11742         * modules/atanf-tests: New file.
11743         * tests/test-atanf.c: New file.
11744
11745         New module 'atanf'.
11746         * lib/math.in.h (atanf): New declaration.
11747         * lib/atanf.c: New file.
11748         * m4/atanf.m4: New file.
11749         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
11750         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
11751         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
11752         * modules/atanf: New file.
11753         * tests/test-math-c++.cc: Check the declaration of atanf.
11754         * doc/posix-functions/atanf.texi: Mention the new module.
11755
11756         atan: Use a .m4 file.
11757         * m4/atan.m4: New file.
11758         * modules/atan (Files): Add it.
11759         (configure.ac): Just invoke gl_FUNC_ATAN.
11760
11761 2011-10-08  Bruno Haible  <bruno@clisp.org>
11762
11763         Tests for module 'acosf'.
11764         * modules/acosf-tests: New file.
11765         * tests/test-acosf.c: New file.
11766
11767         New module 'acosf'.
11768         * lib/math.in.h (acosf): New declaration.
11769         * lib/acosf.c: New file.
11770         * m4/acosf.m4: New file.
11771         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
11772         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
11773         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
11774         * modules/acosf: New file.
11775         * tests/test-math-c++.cc: Check the declaration of acosf.
11776         * doc/posix-functions/acosf.texi: Mention the new module.
11777
11778         acos: Use a .m4 file.
11779         * m4/acos.m4: New file.
11780         * modules/acos (Files): Add it.
11781         (configure.ac): Just invoke gl_FUNC_ACOS.
11782
11783 2011-10-08  Bruno Haible  <bruno@clisp.org>
11784
11785         Tests for module 'asinf'.
11786         * modules/asinf-tests: New file.
11787         * tests/test-asinf.c: New file.
11788
11789         New module 'asinf'.
11790         * lib/math.in.h (asinf): New declaration.
11791         * lib/asinf.c: New file.
11792         * m4/asinf.m4: New file.
11793         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
11794         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
11795         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
11796         * modules/asinf: New file.
11797         * tests/test-math-c++.cc: Check the declaration of asinf.
11798         * doc/posix-functions/asinf.texi: Mention the new module.
11799
11800         asin: Use a .m4 file.
11801         * m4/asin.m4: New file.
11802         * modules/asin (Files): Add it.
11803         (configure.ac): Just invoke gl_FUNC_ASIN.
11804
11805 2011-10-08  Bruno Haible  <bruno@clisp.org>
11806
11807         Tests for module 'tanf'.
11808         * modules/tanf-tests: New file.
11809         * tests/test-tanf.c: New file.
11810
11811         New module 'tanf'.
11812         * lib/math.in.h (tanf): New declaration.
11813         * lib/tanf.c: New file.
11814         * m4/tanf.m4: New file.
11815         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
11816         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
11817         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
11818         * modules/tanf: New file.
11819         * tests/test-math-c++.cc: Check the declaration of tanf.
11820         * doc/posix-functions/tanf.texi: Mention the new module.
11821
11822         tan: Use a .m4 file.
11823         * m4/tan.m4: New file.
11824         * modules/tan (Files): Add it.
11825         (configure.ac): Just invoke gl_FUNC_TAN.
11826
11827 2011-10-08  Bruno Haible  <bruno@clisp.org>
11828
11829         Tests for module 'cosf'.
11830         * modules/cosf-tests: New file.
11831         * tests/test-cosf.c: New file.
11832
11833         New module 'cosf'.
11834         * lib/math.in.h (cosf): New declaration.
11835         * lib/cosf.c: New file.
11836         * m4/cosf.m4: New file.
11837         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
11838         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
11839         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
11840         * modules/cosf: New file.
11841         * tests/test-math-c++.cc: Check the declaration of cosf.
11842         * doc/posix-functions/cosf.texi: Mention the new module.
11843
11844         cos: Use a .m4 file.
11845         * m4/cos.m4: New file.
11846         * modules/cos (Files): Add it.
11847         (configure.ac): Just invoke gl_FUNC_COS.
11848
11849 2011-10-08  Bruno Haible  <bruno@clisp.org>
11850
11851         Tests for module 'sinf'.
11852         * modules/sinf-tests: New file.
11853         * tests/test-sinf.c: New file.
11854
11855         New module 'sinf'.
11856         * lib/math.in.h (sinf): New declaration.
11857         * lib/sinf.c: New file.
11858         * m4/sinf.m4: New file.
11859         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
11860         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
11861         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
11862         * modules/sinf: New file.
11863         * tests/test-math-c++.cc: Check the declaration of sinf.
11864         * doc/posix-functions/sinf.texi: Mention the new module.
11865
11866         sin: Use a .m4 file.
11867         * m4/sin.m4: New file.
11868         * modules/sin (Files): Add it.
11869         (configure.ac): Just invoke gl_FUNC_SIN.
11870
11871 2011-10-08  Bruno Haible  <bruno@clisp.org>
11872
11873         Tests for module 'powf'.
11874         * modules/powf-tests: New file.
11875         * tests/test-powf.c: New file.
11876
11877         New module 'powf'.
11878         * lib/math.in.h (powf): New declaration.
11879         * lib/powf.c: New file.
11880         * m4/powf.m4: New file.
11881         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
11882         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
11883         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
11884         * modules/powf: New file.
11885         * tests/test-math-c++.cc: Check the declaration of powf.
11886         * doc/posix-functions/powf.texi: Mention the new module.
11887
11888         pow: Use a .m4 file.
11889         * m4/pow.m4: New file.
11890         * modules/pow (Files): Add it.
11891         (configure.ac): Just invoke gl_FUNC_POW.
11892
11893 2011-10-08  Bruno Haible  <bruno@clisp.org>
11894
11895         Tests for module 'log10f'.
11896         * modules/log10f-tests: New file.
11897         * tests/test-log10f.c: New file.
11898
11899         New module 'log10f'.
11900         * lib/math.in.h (log10f): New declaration.
11901         * lib/log10f.c: New file.
11902         * m4/log10f.m4: New file.
11903         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
11904         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
11905         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
11906         * modules/log10f: New file.
11907         * tests/test-math-c++.cc: Check the declaration of log10f.
11908         * doc/posix-functions/log10f.texi: Mention the new module.
11909
11910         log10: Use a .m4 file.
11911         * m4/log10.m4: New file.
11912         * modules/log10 (Files): Add it.
11913         (configure.ac): Just invoke gl_FUNC_LOG10.
11914
11915 2011-10-08  Bruno Haible  <bruno@clisp.org>
11916
11917         Tests for module 'logf'.
11918         * modules/logf-tests: New file.
11919         * tests/test-logf.c: New file.
11920
11921         New module 'logf'.
11922         * lib/math.in.h (logf): New declaration.
11923         * lib/logf.c: New file.
11924         * m4/logf.m4: New file.
11925         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
11926         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
11927         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
11928         * modules/logf: New file.
11929         * tests/test-math-c++.cc: Check the declaration of logf.
11930         * doc/posix-functions/logf.texi: Mention the new module.
11931
11932         log: Use a .m4 file.
11933         * m4/log.m4: New file.
11934         * modules/log (Files): Add it.
11935         (configure.ac): Just invoke gl_FUNC_LOG.
11936
11937 2011-10-08  Bruno Haible  <bruno@clisp.org>
11938
11939         Tests for module 'expf'.
11940         * modules/expf-tests: New file.
11941         * tests/test-expf.c: New file.
11942
11943         New module 'expf'.
11944         * lib/math.in.h (expf): New declaration.
11945         * lib/expf.c: New file.
11946         * m4/expf.m4: New file.
11947         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
11948         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
11949         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
11950         * modules/expf: New file.
11951         * tests/test-math-c++.cc: Check the declaration of expf.
11952         * doc/posix-functions/expf.texi: Mention the new module.
11953
11954         exp: Use a .m4 file.
11955         * m4/exp.m4: New file.
11956         * modules/exp (Files): Add it.
11957         (configure.ac): Just invoke gl_FUNC_EXP.
11958
11959 2011-10-08  Bruno Haible  <bruno@clisp.org>
11960
11961         Tests for module 'sqrtf'.
11962         * modules/sqrtf-tests: New file.
11963         * tests/test-sqrtf.c: New file.
11964
11965         New module 'sqrtf'.
11966         * lib/math.in.h (sqrtf): New declaration.
11967         * lib/sqrtf.c: New file.
11968         * m4/sqrtf.m4: New file.
11969         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
11970         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
11971         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
11972         * modules/sqrtf: New file.
11973         * tests/test-math-c++.cc: Check the declaration of sqrtf.
11974         * doc/posix-functions/sqrtf.texi: Mention the new module.
11975
11976 2011-10-08  Bruno Haible  <bruno@clisp.org>
11977
11978         Tests: Avoid link failures w.r.t. libintl.
11979         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
11980         $(LIBINTL).
11981         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
11982         $(LIBINTL).
11983         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
11984         against $(LIBINTL).
11985         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
11986         $(LIBINTL).
11987         * modules/openat-tests (Makefile.am): Link test-fchmodat against
11988         $(LIBINTL).
11989         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
11990
11991 2011-10-08  Bruno Haible  <bruno@clisp.org>
11992
11993         pow tests: Defeat compiler optimizations.
11994         * tests/test-pow.c (main): Assign arguments to x and y before use.
11995
11996 2011-10-08  Bruno Haible  <bruno@clisp.org>
11997
11998         gnulib-tool: Improve last commit.
11999         * gnulib-tool (func_modules_transitive_closure): Simplify code.
12000         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
12001         ignore dependencies that are not among the modules list.
12002
12003 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
12004
12005         gnulib-tool: don't follow dependencies to avoided modules
12006         This fixes a bug that is related to the previous one.
12007         * gnulib-tool (func_modules_transitive_closure)
12008         (func_emit_autoconf_snippets):
12009         Check whether a dependency is acceptable before using it.
12010         (--extract-dependencies): Report an error if --avoid is also used,
12011         since this combination of options is not yet supported.
12012
12013         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
12014         Problem reported by Peter Dyballa in
12015         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
12016         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
12017         when echoing "$condition".
12018
12019 2011-10-07  Bruno Haible  <bruno@clisp.org>
12020
12021         Fix documentation about math functions on MacOS X.
12022         * doc/posix-functions/exp2.texi: Don't say the function is missing on
12023         MacOS X 10.5.
12024         * doc/posix-functions/fdim.texi: Likewise.
12025         * doc/posix-functions/feclearexcept.texi: Likewise.
12026         * doc/posix-functions/fegetenv.texi: Likewise.
12027         * doc/posix-functions/fegetround.texi: Likewise.
12028         * doc/posix-functions/feholdexcept.texi: Likewise.
12029         * doc/posix-functions/feraiseexcept.texi: Likewise.
12030         * doc/posix-functions/fesetenv.texi: Likewise.
12031         * doc/posix-functions/fesetround.texi: Likewise.
12032         * doc/posix-functions/fetestexcept.texi: Likewise.
12033         * doc/posix-functions/feupdateenv.texi: Likewise.
12034         * doc/posix-functions/fmax.texi: Likewise.
12035         * doc/posix-functions/fmin.texi: Likewise.
12036         * doc/posix-functions/log2.texi: Likewise.
12037         * doc/posix-functions/modff.texi: Likewise.
12038         * doc/posix-functions/nan.texi: Likewise.
12039         * doc/posix-functions/nanf.texi: Likewise.
12040         * doc/posix-functions/nextafterf.texi: Likewise.
12041         * doc/posix-functions/remquo.texi: Likewise.
12042
12043 2011-10-07  Bruno Haible  <bruno@clisp.org>
12044
12045         modff: Drop assumption about library that defines modff.
12046         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
12047         AC_CHECK_FUNCS.
12048         * modules/modff (Files): Add m4/mathfunc.m4.
12049
12050 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
12051
12052         raise tests: Avoid a GCC warning.
12053         * tests/test-raise.c (handler): Use _Noreturn.
12054
12055 2011-10-07  Bruno Haible  <bruno@clisp.org>
12056
12057         Tests for module 'ldexpf'.
12058         * modules/ldexpf-tests: New file.
12059         * tests/test-ldexpf.c: New file.
12060
12061         New module 'ldexpf'.
12062         * lib/math.in.h (ldexpf): New declaration.
12063         * lib/ldexpf.c: New file.
12064         * m4/ldexpf.m4: New file.
12065         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
12066         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
12067         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
12068         * modules/ldexpf: New file.
12069         * tests/test-math-c++.cc: Check the declaration of ldexpf.
12070         * doc/posix-functions/ldexpf.texi: Mention the new module.
12071
12072 2011-10-06  Bruno Haible  <bruno@clisp.org>
12073
12074         frexpf: Work around problems on IRIX and mingw.
12075         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
12076         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
12077         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
12078         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
12079         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
12080         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
12081         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
12082
12083 2011-10-06  Bruno Haible  <bruno@clisp.org>
12084
12085         fabsf: Drop assumption about library that defines fabsf.
12086         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
12087         AC_CHECK_FUNCS.
12088         * modules/fabsf (Files): Add m4/mathfunc.m4.
12089
12090 2011-10-06  Bruno Haible  <bruno@clisp.org>
12091
12092         frexpf: Drop assumption about library that defines frexpf.
12093         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
12094         'int *', 'float *', 'long double *', 'float', 'long double'.
12095         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
12096         AC_CHECK_FUNCS.
12097         * modules/frexpf (Files): Add m4/mathfunc.m4.
12098
12099         Tests for module 'frexpf'.
12100         * modules/frexpf-tests: New file.
12101         * tests/test-frexpf.c: New file.
12102
12103         New module 'frexpf'.
12104         * lib/math.in.h (frexpf): New declaration.
12105         * lib/frexpf.c: New file.
12106         * m4/frexpf.m4: New file.
12107         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
12108         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
12109         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
12110         * modules/frexpf: New file.
12111         * tests/test-math-c++.cc: Check the declaration of frexpf.
12112         * doc/posix-functions/frexpf.texi: Mention the new module.
12113
12114 2011-10-06  Bruno Haible  <bruno@clisp.org>
12115
12116         math: Sort function declarations of math.in.h.
12117         * lib/math.in.h (frexp, logb): Move declarations.
12118
12119 2011-10-05  Bruno Haible  <bruno@clisp.org>
12120
12121         Tests for module 'modff'.
12122         * modules/modff-tests: New file.
12123         * tests/test-modff.c: New file.
12124
12125         New module 'modff'.
12126         * lib/math.in.h (modff): New declaration.
12127         * lib/modff.c: New file.
12128         * m4/modff.m4: New file.
12129         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
12130         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
12131         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
12132         * modules/modff: New file.
12133         * tests/test-math-c++.cc: Check the declaration of modff.
12134         * doc/posix-functions/modff.texi: Mention the new module.
12135
12136         modf tests: Make test sharper.
12137         * tests/test-modf.c (main): Strengthen upper bound.
12138
12139         modf: Use a .m4 file.
12140         * m4/modf.m4: New file.
12141         * modules/modf (Files): Add it.
12142         (configure.ac): Just invoke gl_FUNC_MODF.
12143
12144 2011-10-05  Bruno Haible  <bruno@clisp.org>
12145
12146         Tests for module 'fmodf'.
12147         * modules/fmodf-tests: New file.
12148         * tests/test-fmodf.c: New file.
12149
12150         New module 'fmodf'.
12151         * lib/math.in.h (fmodf): New declaration.
12152         * lib/fmodf.c: New file.
12153         * m4/fmodf.m4: New file.
12154         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
12155         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
12156         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
12157         * modules/fmodf: New file.
12158         * tests/test-math-c++.cc: Check the declaration of fmodf.
12159         * doc/posix-functions/fmodf.texi: Mention the new module.
12160
12161         fmod: Use a .m4 file.
12162         * m4/fmod.m4: New file.
12163         * modules/fmod (Files): Add it.
12164         (configure.ac): Just invoke gl_FUNC_FMOD.
12165
12166 2011-10-05  Bruno Haible  <bruno@clisp.org>
12167
12168         Tests for module 'fabsf'.
12169         * modules/fabsf-tests: New file.
12170         * tests/test-fabsf.c: New file.
12171
12172         New module 'fabsf'.
12173         * lib/math.in.h (fabsf): New declaration.
12174         * lib/fabsf.c: New file.
12175         * m4/fabsf.m4: New file.
12176         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
12177         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
12178         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
12179         * modules/fabsf: New file.
12180         * tests/test-math-c++.cc: Check the declaration of fabsf.
12181         * doc/posix-functions/fabsf.texi: Mention the new module.
12182
12183         fabs: Use a .m4 file.
12184         * m4/fabs.m4: New file.
12185         * modules/fabs (Files): Add it.
12186         (configure.ac): Just invoke gl_FUNC_FABS.
12187
12188 2011-10-05  Jim Meyering  <meyering@redhat.com>
12189
12190         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
12191         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
12192         ls -lL regression introduced in coreutils-8.12, it does so at the
12193         cost of an additional stat call in the common case.  Besides, now
12194         that the kernel change that prompted commit 95f7c57f has been reverted
12195         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
12196         we have no use for commit 95f7c57f, "file-has-acl: use
12197         acl_extended_file_nofollow if available".
12198
12199 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
12200
12201         file-has-acl: revert unintended change in behavior of ls -L
12202         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
12203         derived from...
12204         (file_has_acl): ...code here.  Call it.
12205         This problem was introduced with 2011-07-22 commit 95f7c57f,
12206         "file-has-acl: use acl_extended_file_nofollow if available".
12207         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
12208
12209 2011-10-03  Bruno Haible  <bruno@clisp.org>
12210
12211         poll: Avoid link errors on MSVC.
12212         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
12213         * modules/poll (Depends-on): Add sockets.
12214         (Link): New section.
12215         * NEWS: Mention the change.
12216         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
12217         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
12218         $(LIB_POLL) instead of $(LIBSOCKET).
12219
12220 2011-10-03  Bruno Haible  <bruno@clisp.org>
12221
12222         sys_select tests: Fix link error on MSVC 9.
12223         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
12224         with $(LIB_SELECT) instead of $(LIBSOCKET).
12225
12226 2011-10-03  Bruno Haible  <bruno@clisp.org>
12227
12228         sys_select: Fix compilation error on mingw.
12229         * lib/sys_select.in.h: On native Windows, include <io.h>.
12230
12231 2011-10-03  Bruno Haible  <bruno@clisp.org>
12232
12233         wmemset: Support for MSVC.
12234         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
12235         whether wmemset() exists.
12236
12237 2011-10-03  Bruno Haible  <bruno@clisp.org>
12238
12239         wmemmove: Support for MSVC.
12240         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
12241         whether wmemmove() exists.
12242
12243 2011-10-03  Bruno Haible  <bruno@clisp.org>
12244
12245         wmemcpy: Support for MSVC.
12246         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
12247         whether wmemcpy() exists.
12248
12249 2011-10-03  Bruno Haible  <bruno@clisp.org>
12250
12251         wmemcmp: Support for MSVC.
12252         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
12253         whether wmemcmp() exists.
12254
12255 2011-10-03  Bruno Haible  <bruno@clisp.org>
12256
12257         wmemchr: Support for MSVC.
12258         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
12259         whether wmemchr() exists.
12260
12261 2011-10-03  Bruno Haible  <bruno@clisp.org>
12262
12263         glthread/*, strsignal: Support for MSVC.
12264         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
12265         including <winsock.h> on MSVC 9.
12266         * lib/glthread/lock.h: Likewise.
12267         * lib/glthread/thread.h: Likewise.
12268         * lib/glthread/tls.h: Likewise.
12269         * lib/glthread/yield.h: Likewise.
12270         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
12271         if HAVE_UNISTD_H is false.
12272         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
12273
12274 2011-10-03  Bruno Haible  <bruno@clisp.org>
12275
12276         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
12277         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
12278         Set to 100000.
12279
12280 2011-10-03  Bruno Haible  <bruno@clisp.org>
12281
12282         acl: Fix specification.
12283         * lib/file-has-acl.c (file_has_acl): Fix specification.
12284
12285 2011-10-03  Bruno Haible  <bruno@clisp.org>
12286
12287         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
12288         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
12289         (compute_curr_prefix, shared_library_fullname,
12290         find_shared_library_fullname, get_shared_library_fullname, relocate):
12291         Use it together with PIC && INSTALLDIR.
12292         Reported by <jojelino@gmail.com>
12293         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
12294
12295 2011-10-01  Jim Meyering  <meyering@redhat.com>
12296
12297         maint.mk: adjust a release-related rule not to require use of gzip
12298         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
12299         Instead, check each file in $(DIST_ARCHIVES).  This is better for
12300         projects that build only .tar.xz files.  Also fix an erroneous test.
12301
12302         test-linkat: don't leave behind a temporary file
12303         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
12304         Otherwise, coreutils' "make distcheck" would fail with this:
12305           Only in /c/cu/tests/torture/coreutils/test/\
12306             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
12307           make[2]: *** [my-distcheck] Error 1
12308
12309         float, math: add omitted file
12310         * lib/itold.c: Add file, required for yesterday's float change.
12311
12312 2011-10-01  Bruno Haible  <bruno@clisp.org>
12313
12314         isinf: Fix for OpenBSD/x86.
12315         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
12316         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
12317         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
12318
12319 2011-10-01  Bruno Haible  <bruno@clisp.org>
12320
12321         isfinite: Fix syntax error in configure test.
12322         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
12323
12324         isfinite: Fix typo.
12325         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
12326         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
12327
12328 2011-10-01  Bruno Haible  <bruno@clisp.org>
12329
12330         nonblocking tests: Fix test failure on Linux/IA-64.
12331         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
12332         Set to 270000.
12333
12334 2011-10-01  Bruno Haible  <bruno@clisp.org>
12335
12336         mkfifoat tests: Fix a test failure on mingw.
12337         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
12338         with error ENOSYS.
12339
12340 2011-09-30  Bruno Haible  <bruno@clisp.org>
12341
12342         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
12343         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
12344         'long double'. Set REPLACE_ITOLD.
12345         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
12346         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
12347         * lib/itold.c: New file.
12348         * modules/float (Files): Add lib/itold.c.
12349         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
12350         (Makefile.am): Substitute REPLACE_ITOLD.
12351         * modules/math (Depends-on): Add float.
12352         (Makefile.am): Substitute REPLACE_ITOLD.
12353         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
12354         * doc/posix-headers/math.texi: Likewise.
12355         * doc/posix-functions/logl.texi: Likewise.
12356
12357 2011-09-30  Bruno Haible  <bruno@clisp.org>
12358
12359         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
12360         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
12361         Set to 140000.
12362
12363 2011-09-30  Bruno Haible  <bruno@clisp.org>
12364
12365         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
12366         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
12367         invocation, say "right after AC_PROG_CC_STDC", not "right after
12368         AC_PROG_CC".
12369         Reported by Gary V. Vaughan <gary@gnu.org>.
12370
12371 2011-09-30  Bruno Haible  <bruno@clisp.org>
12372
12373         Centralize C99 requirement.
12374         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
12375         * modules/stdarg (configure.ac-early): Invoke it instead of
12376         AC_PROG_CC_STDC.
12377         Reported by Gary V. Vaughan and Paul Eggert.
12378
12379 2011-09-29  Bruno Haible  <bruno@clisp.org>
12380
12381         float: Fix LDBL_MAX value on Linux/PowerPC.
12382         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
12383         on Linux/PowerPC.
12384         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
12385         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
12386         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
12387         platform.
12388         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
12389
12390 2011-09-29  Bruno Haible  <bruno@clisp.org>
12391
12392         doc: Improve doc about gl_EARLY.
12393         * doc/gnulib-tool.texi (Initial import): Mention where to place an
12394         AC_PROG_CC_STDC invocation.
12395         Reported by Gary V. Vaughan <gary@gnu.org>.
12396
12397 2011-09-28  Bruno Haible  <bruno@clisp.org>
12398
12399         fgetc, fputc, fread, fwrite tests: Fix link error.
12400         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
12401         on non-MSVC platforms.
12402         * tests/test-fputc.c (main): Likewise.
12403         * tests/test-fread.c (main): Likewise.
12404         * tests/test-fwrite.c (main): Likewise.
12405         Reported by Jim Meyering.
12406
12407 2011-09-27  Bruno Haible  <bruno@clisp.org>
12408
12409         fputc, fwrite tests: Avoid test failure on MSVC.
12410         * tests/test-fgetc.c: Include msvc-inval.h.
12411         (main): Invoke gl_msvc_inval_ensure_handler.
12412         * tests/test-fputc.c: Include msvc-inval.h.
12413         (main): Invoke gl_msvc_inval_ensure_handler.
12414         * tests/test-fread.c: Include msvc-inval.h.
12415         (main): Invoke gl_msvc_inval_ensure_handler.
12416         * tests/test-fwrite.c: Include msvc-inval.h.
12417         (main): Invoke gl_msvc_inval_ensure_handler.
12418         * modules/fgetc-tests (Depends-on): Add msvc-inval.
12419         * modules/fputc-tests (Depends-on): Likewise.
12420         * modules/fread-tests (Depends-on): Likewise.
12421         * modules/fwrite-tests (Depends-on): Likewise.
12422
12423 2011-09-27  Bruno Haible  <bruno@clisp.org>
12424
12425         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
12426         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
12427         (raise): Remove older, duplicated declaration.
12428         (_gl_raise_SIGPIPE): New declaration.
12429         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
12430         (rpl_raise): Remove function.
12431         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
12432         a gnulib-defined SIGPIPE here.
12433         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
12434         'sigprocmask' has detected missing signal-blocking and the module
12435         'sigpipe' is enabled.
12436         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
12437
12438 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
12439
12440         base64-tests: avoid memory leak
12441         * tests/test-base64.c (main): Plug memory leak.
12442
12443         base32: new module
12444         * modules/base32: New module.
12445         * lib/base32.c: New file.
12446         * lib/base32.h: Likewise.
12447         * m4/base32.m4: Likewise.
12448         * modules/base32-tests: New test.
12449         * tests/test-base32.c: Likewise.
12450         * MODULES.html.sh (Misc): Mention it.
12451
12452 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
12453
12454         gnulib: use more-standard license notice wording
12455         * gnulib-tool (func_emit_copyright_notice): When emitting a
12456         license notice into a file, use the standard wording as suggested
12457         by the current information for GNU maintainers, except say "file"
12458         rather than "program".  The new wording gives a license version
12459         number, which addresses an issue raised by Glenn Morris in
12460         <http://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00397.html>.
12461         * m4/onceonly.m4: Use that same wording here, too.
12462
12463         dup2: minor simplification
12464         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
12465         as lib/dup2.c no longer uses 'inline'.
12466
12467 2011-09-25  Bruno Haible  <bruno@clisp.org>
12468
12469         strings: Fix compilation error on MSVC.
12470         * lib/strings.in.h: Include <stddef.h> for size_t.
12471
12472 2011-09-25  Bruno Haible  <bruno@clisp.org>
12473
12474         fflush et al.: Document limitation on MSVC.
12475         * doc/posix-functions/fflush.texi: Document possible crash in handling
12476         mode other than DEFAULT_HANDLING.
12477         * doc/posix-functions/fgetc.texi: Likewise.
12478         * doc/posix-functions/fputc.texi: Likewise.
12479         * doc/posix-functions/fread.texi: Likewise.
12480         * doc/posix-functions/fwrite.texi: Likewise.
12481
12482 2011-09-25  Bruno Haible  <bruno@clisp.org>
12483
12484         msvc-inval: Allow three invalid parameter handling modes.
12485         * lib/msvc-inval.h: Don't include <stdlib.h> here.
12486         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
12487         macros.
12488         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
12489         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
12490         SANE_LIBRARY_HANDLING as a no-op.
12491         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
12492         <stdlib.h>.
12493         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
12494
12495 2011-09-25  Bruno Haible  <bruno@clisp.org>
12496
12497         msvc-inval: Make handler multithread-safe.
12498         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
12499         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
12500         declarations.
12501         (gl_msvc_inval_current): New declaration.
12502         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
12503         Operate on the structure returned by gl_msvc_inval_current().
12504         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
12505         Remove varaiables.
12506         (tls_index, tls_initialized): New variables.
12507         (not_per_thread): New variable.
12508         (gl_msvc_inval_current): New function.
12509         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
12510         returned by gl_msvc_inval_current().
12511
12512 2011-09-25  Bruno Haible  <bruno@clisp.org>
12513
12514         msvc-inval: Install handler globally.
12515         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
12516         !_MSC_VER.
12517         (gl_msvc_invalid_parameter_handler): Remove declaration.
12518         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
12519         declarations.
12520         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
12521         Install the handler globally, don't uninstall it.
12522         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
12523         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
12524         currently valid, call RaiseException instead.
12525         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
12526         for !_MSC_VER.
12527
12528 2011-09-25  Bruno Haible  <bruno@clisp.org>
12529
12530         strerror_r-posix: Fix for MSVC 9.
12531         * lib/strerror_r.c (local_snprintf): New function.
12532         (snprintf): Define to local_snprintf, not to _snprintf.
12533
12534 2011-09-25  Bruno Haible  <bruno@clisp.org>
12535
12536         ftruncate: Support for MSVC 9.
12537         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
12538         (chsize_nothrow): New function.
12539         (chsize): Redefine as a macro.
12540         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
12541         * modules/ftruncate (Depends-on): Add msvc-inval.
12542
12543 2011-09-25  Bruno Haible  <bruno@clisp.org>
12544
12545         New module 'fstat'.
12546         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
12547         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
12548         * lib/fchdir.c (rpl_fstat): Remove function.
12549         * m4/fstat.m4: New file.
12550         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
12551         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
12552         declared.
12553         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
12554         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
12555         * modules/fstat: New file.
12556         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
12557         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
12558         is set.
12559         * doc/posix-functions/fstat.texi: Mention the new module and the
12560         problem on MSVC.
12561         * NEWS: Mention the change.
12562         * modules/acl (Depends-on): Add fstat.
12563         * modules/chdir-safer (Depends-on): Likewise.
12564         * modules/chown (Depends-on): Likewise.
12565         * modules/copy-file (Depends-on): Likewise.
12566         * modules/fchdir (Depends-on): Likewise.
12567         * modules/fdopendir (Depends-on): Likewise.
12568         * modules/fopen (Depends-on): Likewise.
12569         * modules/fts (Depends-on): Likewise.
12570         * modules/getcwd (Depends-on): Likewise.
12571         * modules/isapipe (Depends-on): Likewise.
12572         * modules/linkat (Depends-on): Likewise.
12573         * modules/lseek (Depends-on): Likewise.
12574         * modules/mkdir-p (Depends-on): Likewise.
12575         * modules/open (Depends-on): Likewise.
12576         * modules/openat (Depends-on): Likewise.
12577         * modules/read-file (Depends-on): Likewise.
12578         * modules/renameat (Depends-on): Likewise.
12579         * modules/utimens (Depends-on): Likewise.
12580
12581 2011-09-25  Bruno Haible  <bruno@clisp.org>
12582
12583         linkat: Fix compilation on MSVC 9.
12584         * lib/linkat.c: Don't include <stdint.h>.
12585
12586 2011-09-25  Bruno Haible  <bruno@clisp.org>
12587
12588         fclose: Support for MSVC 9.
12589         * lib/fclose.c: Include msvc-inval.h.
12590         (fclose_nothrow): New function.
12591         (rpl_fclose): Use it.
12592         * modules/fclose (Depends-on): Add msvc-inval.
12593         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
12594
12595 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
12596
12597         dup2: minor simplifications
12598         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
12599         that it's a performance win.
12600         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
12601         ! defined __CYGWIN__)" to "ifdef F_GETFL".
12602
12603 2011-09-24  Jim Meyering  <meyering@redhat.com>
12604
12605         test-futimens: avoid a warning from gcc -Wshadow
12606         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
12607         to avoid a shadowing warning.
12608
12609 2011-09-24  Bruno Haible  <bruno@clisp.org>
12610
12611         fdopen: Support for MSVC 9.
12612         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
12613         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
12614         * lib/fdopen.c: Include msvc-inval.h.
12615         (fdopen_nothrow): New function.
12616         (rpl_fdopen): Use it.
12617         * modules/fdopen (Depends-on): Add msvc-inval.
12618         * modules/fclose-tests (Depends-on): Add fdopen.
12619         * modules/fflush-tests (Depends-on): Likewise.
12620         * modules/fgetc-tests (Depends-on): Likewise.
12621         * modules/fputc-tests (Depends-on): Likewise.
12622         * modules/fread-tests (Depends-on): Likewise.
12623         * modules/freopen-tests (Depends-on): Likewise.
12624         * modules/fseeko-tests (Depends-on): Likewise.
12625         * modules/ftello-tests (Depends-on): Likewise.
12626         * modules/fwrite-tests  (Depends-on): Likewise.
12627         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
12628
12629 2011-09-24  Bruno Haible  <bruno@clisp.org>
12630
12631         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
12632         * modules/fgetc-tests (Depends-on): Add unistd.
12633         * modules/fputc-tests (Depends-on): Likewise.
12634         * modules/fread-tests (Depends-on): Likewise.
12635         * modules/fwrite-tests (Depends-on): Likewise.
12636
12637 2011-09-24  Bruno Haible  <bruno@clisp.org>
12638
12639         dup: Simplify autoconf test.
12640         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
12641         on gl_MSVC_INVAL's result.
12642
12643 2011-09-24  Bruno Haible  <bruno@clisp.org>
12644
12645         Tests for function fwrite().
12646         * modules/fwrite-tests: New file.
12647         * tests/test-fwrite.c: New file.
12648         * modules/stdio-tests (Depends-on): Add fwrite-tests.
12649
12650         Tests for function fread().
12651         * modules/fread-tests: New file.
12652         * tests/test-fread.c: New file.
12653         * modules/stdio-tests (Depends-on): Add fread-tests.
12654
12655         Activate fputc tests.
12656         * modules/stdio-tests (Depends-on): Add fputc-tests.
12657
12658         Enhance fgetc, fputc tests.
12659         * tests/test-fgetc.c (main): Also test the stream's error indicator.
12660         * tests/test-fputc.c (main): Likewise.
12661
12662 2011-09-24  Bruno Haible  <bruno@clisp.org>
12663
12664         write: Support for MSVC 9.
12665         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
12666         is not 1.
12667         * lib/write.c (write_nothrow): New function.
12668         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
12669         not 1. Use write_nothrow.
12670         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
12671         invalid parameter handler.
12672         (gl_PREREQ_WRITE): New macro.
12673         * modules/write (Depends-on): Add msvc-inval.
12674         (configure.ac): Invoke gl_PREREQ_WRITE.
12675         * doc/posix-functions/write.texi: Mention the problem on MSVC.
12676
12677 2011-09-24  Bruno Haible  <bruno@clisp.org>
12678
12679         read: Fix last commit.
12680         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
12681
12682 2011-09-24  Bruno Haible  <bruno@clisp.org>
12683
12684         dup2: Fix last commit.
12685         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
12686         (rpl_dup2): Disable fcntl workaround on native Windows.
12687
12688         sigprocmask: Make code safer.
12689         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
12690         section that changes macro definitions for this compilation unit.
12691
12692 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
12693
12694         dup2: clarify by coalescing Windows-specific material
12695         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
12696         "msvc-nothrow.h"' to the Windows-specific section, so that the
12697         Emacs source need not contain these include files.
12698         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
12699         Windows-specific fixes into this function rather than just the
12700         nothrow fix, as this shortens and clarifies the code.  Always
12701         define as a function, as that's a bit cleaner than having it be
12702         sometimes a function and sometimes a macro.
12703         (rpl_dup2): Move the Windows-specific stuff out of here and into
12704         ms_windows_dup2.  Don't protect the Haiku-related fix with
12705         "#if !defined __linux__", as the same code also works around
12706         a Linux kernel bug, and it doesn't add any system calls on any
12707         platform.  Add comment about FreeBSD 6.1.
12708
12709         sigprocmask: move #include directive
12710         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
12711         Windows-specific section, so that the Emacs source need not
12712         contain msvc-inval.h.
12713
12714 2011-09-23  Bruno Haible  <bruno@clisp.org>
12715
12716         read: Support for MSVC 9.
12717         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
12718         is not 1.
12719         * lib/read.c (read_nothrow): New function.
12720         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
12721         read_nothrow.
12722         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
12723         invalid parameter handler.
12724         (gl_PREREQ_READ): New macro.
12725         * modules/read (Depends-on): Add msvc-inval.
12726         (configure.ac): Invoke gl_PREREQ_READ.
12727         * doc/posix-functions/read.texi: Mention the problem on MSVC.
12728
12729 2011-09-23  Bruno Haible  <bruno@clisp.org>
12730
12731         close: Support for MSVC 9.
12732         * lib/close.c: Include <errno.h>, msvc-inval.h.
12733         (close_nothrow): New function.
12734         (rpl_close): Use it.
12735         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
12736         invalid parameter handler.
12737         * modules/close (Depends-on): Add msvc-inval.
12738         * modules/dup2-tests (Depends-on): Add close.
12739         * modules/dup3-tests (Depends-on): Likewise.
12740         * modules/fcntl-tests (Depends-on): Likewise.
12741         * modules/spawn-pipe-tests (Depends-on): Likewise.
12742         * modules/unistd-safer-tests (Depends-on): Likewise.
12743         * doc/posix-functions/close.texi: Mention the problem on MSVC.
12744
12745 2011-09-23  Bruno Haible  <bruno@clisp.org>
12746
12747         New module 'dup'.
12748         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
12749         Allow replacement.
12750         * lib/dup.c: New file.
12751         * lib/fchdir.c (rpl_dup): Remove function.
12752         * m4/dup.m4: New file.
12753         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
12754         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
12755         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
12756         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
12757         * modules/dup: New file.
12758         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
12759         'dup' module is in use.
12760         * modules/fdopendir (Depends-on): Add dup.
12761         * modules/fdutimensat-tests (Depends-on): Likewise.
12762         * modules/fts (Depends-on): Likewise.
12763         * modules/futimens-tests (Depends-on): Likewise.
12764         * modules/posix_spawnp-tests (Depends-on): Likewise.
12765         * modules/unistd-safer-tests (Depends-on): Likewise.
12766         * modules/utimens-tests (Depends-on): Likewise.
12767         * doc/posix-functions/dup.texi: Mention the new module and the problem
12768         on MSVC.
12769
12770 2011-09-23  Bruno Haible  <bruno@clisp.org>
12771
12772         getdtablesize: Support for MSVC 9.
12773         * lib/getdtablesize.c: Include msvc-inval.h.
12774         (_setmaxstdio_nothrow): New function.
12775         (_setmaxstdio): Redefine it.
12776         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
12777         * modules/getdtablesize (Depends-on): Add msvc-inval.
12778         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
12779
12780 2011-09-23  Bruno Haible  <bruno@clisp.org>
12781
12782         signal-h: Rename from signal.
12783         * modules/signal-h: Renamed from modules/signal.
12784         * modules/pthread_sigmask (Depends-on): Update.
12785         * modules/raise (Depends-on): Likewise.
12786         * modules/sigaction (Depends-on): Likewise.
12787         * modules/sigpipe (Depends-on): Likewise.
12788         * modules/sigprocmask (Depends-on): Likewise.
12789         * modules/sys_select (Depends-on): Likewise.
12790         * modules/signal-h-tests: Renamed from modules/signal-tests.
12791         (Files, Depends-on, Makefile.am): Update.
12792         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
12793         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
12794         (Files, Makefile.am): Update.
12795         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
12796         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
12797         * modules/signal: New placeholder file.
12798         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
12799         * doc/posix-headers/signal.texi: Update.
12800         * NEWS: Mention the change.
12801
12802 2011-09-23  Bruno Haible  <bruno@clisp.org>
12803
12804         sigprocmask: Avoid crashes through signal() on MSVC 9.
12805         * lib/sigprocmask.c: Include msvc-inval.h.
12806         (signal_nothrow): New function.
12807         (signal): Redefine it.
12808         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
12809         * modules/sigprocmask (Depends-on): Add msvc-inval.
12810         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
12811
12812 2011-09-23  Bruno Haible  <bruno@clisp.org>
12813
12814         Tests for module 'raise'.
12815         * modules/raise-tests: New file.
12816         * tests/test-raise.c: New file.
12817
12818         raise: Support for MSVC.
12819         * lib/signal.in.h (raise): New declaration.
12820         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
12821         for native Windows platforms.
12822         * m4/raise.m4: New file.
12823         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
12824         HAVE_RAISE, REPLACE_RAISE.
12825         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
12826         REPLACE_RAISE.
12827         * modules/raise (Status, Notice): Remove fields.
12828         (Files): Add m4/raise.m4.
12829         (Depends-on): Add signal, msvc-inval.
12830         (configure.ac): Use the common idioms.
12831         (Maintainer): Add me.
12832         * tests/test-signal-c++.cc: Check the signature of raise.
12833         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
12834
12835 2011-09-23  Bruno Haible  <bruno@clisp.org>
12836
12837         pipe2: Fix compilation on pre-C99 compilers.
12838         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
12839
12840 2011-09-23  Bruno Haible  <bruno@clisp.org>
12841
12842         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
12843         * lib/msvc-nothrow.h: New file.
12844         * lib/msvc-nothrow.c: New file.
12845         * m4/msvc-nothrow.m4: New file.
12846         * modules/msvc-nothrow: New file.
12847         * lib/dup2.c: Include msvc-nothrow.h.
12848         (rpl_dup2): No need to protect _get_osfhandle call here.
12849         * lib/accept4.c: Include msvc-nothrow.h.
12850         * lib/error.c: Likewise.
12851         * lib/fcntl.c: Likewise.
12852         * lib/lseek.c: Likewise.
12853         * lib/nonblocking.c: Likewise.
12854         * lib/poll.c: Likewise.
12855         * lib/read.c: Likewise.
12856         * lib/select.c: Likewise.
12857         * lib/sockets.h: Likewise.
12858         * lib/sockets.c: Likewise.
12859         * lib/stdio-read.c: Likewise.
12860         * lib/stdio-write.c: Likewise.
12861         * lib/write.c: Likewise.
12862         * lib/w32sock.h: Likewise.
12863         * lib/w32spawn.h: Likewise.
12864         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
12865         * lib/fsync.c: Likewise.
12866         * lib/isapipe.c: Likewise.
12867         * modules/dup2 (Depends-on): Add msvc-nothrow.
12868         * modules/accept4 (Depends-on): Likewise.
12869         * modules/error (Depends-on): Likewise.
12870         * modules/fcntl (Depends-on): Likewise.
12871         * modules/lseek (Depends-on): Likewise.
12872         * modules/nonblocking (Depends-on): Likewise.
12873         * modules/poll (Depends-on): Likewise.
12874         * modules/read (Depends-on): Likewise.
12875         * modules/select (Depends-on): Likewise.
12876         * modules/sockets (Depends-on): Likewise.
12877         * modules/sigpipe (Depends-on): Likewise.
12878         * modules/write (Depends-on): Likewise.
12879         * modules/accept (Depends-on): Likewise.
12880         * modules/bind (Depends-on): Likewise.
12881         * modules/connect (Depends-on): Likewise.
12882         * modules/gethostname (Depends-on): Likewise.
12883         * modules/getpeername (Depends-on): Likewise.
12884         * modules/getsockname (Depends-on): Likewise.
12885         * modules/getsockopt (Depends-on): Likewise.
12886         * modules/ioctl (Depends-on): Likewise.
12887         * modules/listen (Depends-on): Likewise.
12888         * modules/recv (Depends-on): Likewise.
12889         * modules/recvfrom (Depends-on): Likewise.
12890         * modules/send (Depends-on): Likewise.
12891         * modules/sendto (Depends-on): Likewise.
12892         * modules/setsockopt (Depends-on): Likewise.
12893         * modules/shutdown (Depends-on): Likewise.
12894         * modules/socket (Depends-on): Likewise.
12895         * modules/execute (Depends-on): Likewise.
12896         * modules/spawn-pipe (Depends-on): Likewise.
12897         * modules/flock (Depends-on): Likewise.
12898         * modules/fsync (Depends-on): Likewise.
12899         * modules/isapipe (Depends-on): Likewise.
12900         * tests/test-cloexec.c: Include msvc-nothrow.h.
12901         * tests/test-dup-safer.c: Likewise.
12902         * tests/test-dup2.c: Likewise.
12903         * tests/test-dup3.c: Likewise.
12904         * tests/test-fcntl.c: Likewise.
12905         * tests/test-pipe.c: Likewise.
12906         * tests/test-pipe2.c: Likewise.
12907         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
12908         * modules/unistd-safer-tests (Depends-on): Likewise.
12909         * modules/dup2-tests (Depends-on): Likewise.
12910         * modules/dup3-tests (Depends-on): Likewise.
12911         * modules/fcntl-tests (Depends-on): Likewise.
12912         * modules/pipe-posix-tests (Depends-on): Likewise.
12913         * modules/pipe2-tests (Depends-on): Likewise.
12914
12915 2011-09-23  Bruno Haible  <bruno@clisp.org>
12916
12917         dup2: Make code more maintainable.
12918         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
12919         (rpl_dup2): Use it.
12920         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
12921         * modules/dup2 (configure.ac): Invoke it.
12922         Reported by Paul Eggert.
12923
12924 2011-09-23  Bruno Haible  <bruno@clisp.org>
12925
12926         msvc-inval: Fix compilation error.
12927         * lib/msvc-inval.h: Include <excpt.h>.
12928
12929 2011-09-23  Bruno Haible  <bruno@clisp.org>
12930
12931         mkdir: Tweak for MSVC 9.
12932         * lib/sys_stat.in.h: Update comments.
12933         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
12934
12935         Tests for module 'chdir'.
12936         * modules/chdir-tests: New file.
12937         * tests/test-chdir.c: New file.
12938
12939         New module 'chdir'.
12940         * modules/chdir: New file.
12941         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
12942         (chdir): New declaration.
12943         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
12944         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
12945         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
12946         * tests/test-unistd-c++.cc: Check signature of chdir.
12947         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
12948         * modules/chdir-long (Depends-on): Add chdir.
12949         * modules/fchdir (Depends-on): Likewise.
12950         * modules/rename (Depends-on): Likewise.
12951         * modules/savewd (Depends-on): Likewise.
12952
12953         rmdir: Support for mingw, MSVC 9.
12954         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
12955         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
12956
12957         getcwd: Tweak for MSVC 9.
12958         * lib/unistd.in.h: Update comments.
12959         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
12960
12961 2011-09-22  Bruno Haible  <bruno@clisp.org>
12962
12963         strerror_r-posix: Avoid a link error on MSVC.
12964         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
12965         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
12966
12967 2011-09-22  Bruno Haible  <bruno@clisp.org>
12968
12969         select: Avoid link errors on MSVC.
12970         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
12971         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
12972         * modules/pselect (Link): Likewise.
12973         * NEWS: Mention the change.
12974         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
12975         test-select-stdin against $(LIB_SELECT).
12976         * modules/pselect-tests (Makefile.am): Link test-pselect against
12977         $(LIB_SELECT).
12978
12979 2011-09-22  Bruno Haible  <bruno@clisp.org>
12980
12981         select: Avoid compilation error on MSVC.
12982         * lib/select.c: Don't include <stdbool.h>.
12983
12984 2011-09-21  Bruno Haible  <bruno@clisp.org>
12985
12986         Consolidate all uses of PATH_MAX in *.m4 files.
12987         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
12988         macros.
12989         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
12990         and gl_PATHMAX_SNIPPET.
12991         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
12992         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
12993         * modules/chdir-long (Files): Add m4/pathmax.m4.
12994         * modules/getcwd (Files): Likewise.
12995
12996 2011-09-21  Bruno Haible  <bruno@clisp.org>
12997
12998         ftruncate: Un-deprecate, concentrate on Win32 support.
12999         * modules/ftruncate (Status, Notice): Remove sections.
13000         (Depends-on): Add largefile.
13001         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
13002         non-mingw platforms.
13003         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
13004         include <io.h>.
13005         * modules/perror-tests (Depends-on): Add ftruncate.
13006         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
13007         'ftruncate' module.
13008
13009 2011-09-21  Bruno Haible  <bruno@clisp.org>
13010
13011         Add dependencies to new dirent related modules.
13012         * modules/opendir (Depends-on): Add closedir.
13013         * modules/getcwd (Depends-on): Add opendir, closedir.
13014         * modules/dirent-safer-tests (Depends-on): Likewise.
13015         * modules/fdopendir-tests (Depends-on): Likewise.
13016         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
13017         * modules/renameat-tests (Depends-on): Likewise.
13018
13019 2011-09-21  Bruno Haible  <bruno@clisp.org>
13020
13021         opendir: Avoid compilation error on mingw.
13022         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
13023         * modules/opendir (Depends-on): Add unistd.
13024
13025 2011-09-21  Bruno Haible  <bruno@clisp.org>
13026
13027         ftruncate tests: Avoid a test failure on mingw.
13028         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
13029
13030 2011-09-21  Bruno Haible  <bruno@clisp.org>
13031
13032         select tests: Avoid test failures on OSF/1 5.1 and mingw.
13033         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
13034         native Windows.
13035
13036 2011-09-21  Bruno Haible  <bruno@clisp.org>
13037
13038         New module 'fdopen'.
13039         * lib/stdio.in.h (fdopen): New declaration.
13040         * lib/fdopen.c: New file.
13041         * m4/fdopen.m4: New file.
13042         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
13043         REPLACE_FDOPEN.
13044         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
13045         REPLACE_FDOPEN.
13046         * modules/fdopen: New file.
13047         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
13048         * tests/test-stdio-c++.cc: Check signature of fdopen.
13049         * doc/posix-functions/fdopen.texi: Mention the new module.
13050
13051 2011-09-21  Bruno Haible  <bruno@clisp.org>
13052
13053         unlockpt tests: Avoid test failure on NetBSD 5.1.
13054         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
13055         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
13056
13057 2011-09-21  Bruno Haible  <bruno@clisp.org>
13058
13059         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
13060         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
13061         * tests/test-getlogin_r.c (main): Likewise.
13062
13063 2011-09-20  Bruno Haible  <bruno@clisp.org>
13064
13065         time tests: Don't require pid_t.
13066         * doc/posix-headers/time.texi: Revert last change.
13067         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
13068         * tests/test-time.c: Comment out the check for pid_t.
13069
13070 2011-09-20  Bruno Haible  <bruno@clisp.org>
13071
13072         fsync tests: Avoid a test failure on mingw.
13073         * tests/test-fsync.c (main): Allow a failure with EIO.
13074
13075 2011-09-20  Bruno Haible  <bruno@clisp.org>
13076
13077         euidaccess: Update comments.
13078         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
13079
13080 2011-09-20  Bruno Haible  <bruno@clisp.org>
13081
13082         Ensure EBADF returns for socket functions on mingw.
13083         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
13084         descriptor is invalid.
13085         * lib/bind.c (rpl_bind): Likewise.
13086         * lib/connect.c (rpl_connect): Likewise.
13087         * lib/getpeername.c (rpl_getpeername): Likewise.
13088         * lib/getsockname.c (rpl_getsockname): Likewise.
13089         * lib/getsockopt.c (rpl_getsockopt): Likewise.
13090         * lib/listen.c (rpl_listen): Likewise.
13091         * lib/recv.c (rpl_recv): Likewise.
13092         * lib/recvfrom.c (rpl_recvfrom): Likewise.
13093         * lib/send.c (rpl_send): Likewise.
13094         * lib/sendto.c (rpl_sendto): Likewise.
13095         * lib/setsockopt.c (rpl_setsockopt): Likewise.
13096         * lib/shutdown.c (rpl_shutdown): Likewise.
13097
13098 2011-09-20  Bruno Haible  <bruno@clisp.org>
13099
13100         select tests: EBADF tests.
13101         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
13102         test_bad_fd): New functions.
13103         (test_function): Invoke also test_bad_fd.
13104
13105 2011-09-20  Bruno Haible  <bruno@clisp.org>
13106
13107         Tests for module 'posix_spawn_file_actions_addopen.
13108         * modules/posix_spawn_file_actions_addopen-tests: New file.
13109         * tests/test-posix_spawn_file_actions_addopen.c: New file.
13110
13111         Tests for module 'posix_spawn_file_actions_adddup2'.
13112         * modules/posix_spawn_file_actions_adddup2-tests: New file.
13113         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
13114
13115         Tests for module 'posix_spawn_file_actions_addclose'.
13116         * modules/posix_spawn_file_actions_addclose-tests: New file.
13117         * tests/test-posix_spawn_file_actions_addclose.c: New file.
13118
13119 2011-09-20  Bruno Haible  <bruno@clisp.org>
13120
13121         Tests for module 'unlockpt'.
13122         * modules/unlockpt-tests: New file.
13123         * tests/test-unlockpt.c: New file.
13124         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
13125
13126         Tests for module 'grantpt'.
13127         * modules/grantpt-tests: New file.
13128         * tests/test-grantpt.c: New file.
13129         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
13130
13131 2011-09-20  Bruno Haible  <bruno@clisp.org>
13132
13133         freopen tests: EBADF tests.
13134         * tests/test-freopen.c: Include errno.h, unistd.h.
13135         (main): Add tests for EBADF, commented out for the moment.
13136
13137         fclose tests: EBADF tests.
13138         * tests/test-fclose.c (main): Add tests for EBADF.
13139
13140         fflush tests: EBADF tests.
13141         * tests/test-fflush.c: Include errno.h, macros.h.
13142         (main): Add tests for EBADF.
13143
13144         ftello tests: EBADF tests.
13145         * tests/test-ftello4.sh: New file.
13146         * tests/test-ftello4.c: New file.
13147         * modules/ftello-tests (Files): Add them.
13148         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
13149
13150         fseeko tests: EBADF tests.
13151         * tests/test-fseeko4.sh: New file.
13152         * tests/test-fseeko4.c: New file.
13153         * modules/fseeko-tests (Files): Add them.
13154         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
13155
13156         Tests for function fputc().
13157         * modules/fputc-tests: New file.
13158         * tests/test-fputc.c: New file.
13159         * modules/stdio-tests (Depends-on): Add fputc-tests.
13160
13161         Tests for function fgetc().
13162         * modules/fgetc-tests: New file.
13163         * tests/test-fgetc.c: New file.
13164         * modules/stdio-tests (Depends-on): Add fgetc-tests.
13165
13166         Tests for function fdopen().
13167         * modules/fdopen-tests: New file.
13168         * tests/test-fdopen.c: New file.
13169         * modules/stdio-tests (Depends-on): Add fdopen-tests.
13170
13171         Tests for module 'vdprintf'.
13172         * modules/vdprintf-tests: New file.
13173         * tests/test-vdprintf.c: New file.
13174
13175         Tests for module 'dprintf'.
13176         * modules/dprintf-tests: New file.
13177         * tests/test-dprintf.c: New file.
13178
13179 2011-09-20  Bruno Haible  <bruno@clisp.org>
13180
13181         Tests for module 'ioctl'.
13182         * modules/ioctl-tests: New file.
13183         * tests/test-ioctl.c: New file.
13184
13185 2011-09-20  Bruno Haible  <bruno@clisp.org>
13186
13187         fcntl tests: EBADF tests.
13188         * tests/test-fcntl.c (main): Add more tests for EBADF.
13189
13190 2011-09-20  Bruno Haible  <bruno@clisp.org>
13191
13192         utimensat tests: EBADF tests.
13193         * tests/test-utimensat.c (main): Add tests for EBADF.
13194
13195         renameat tests: EBADF tests.
13196         * tests/test-renameat.c (main): Add tests for EBADF.
13197
13198         mkfifoat tests: EBADF tests.
13199         * tests/test-mkfifoat.c (main): Add tests for EBADF.
13200
13201         readlinkat tests: EBADF tests.
13202         * tests/test-readlinkat.c (main): Add tests for EBADF.
13203
13204         symlinkat tests: EBADF tests.
13205         * tests/test-symlinkat.c (main): Add tests for EBADF.
13206
13207         linkat tests: EBADF tests.
13208         * tests/test-linkat.c (main): Add tests for EBADF.
13209
13210         Tests for module 'faccessat'.
13211         * modules/faccessat-tests: New file.
13212         * tests/test-faccessat.c: New file.
13213
13214         fdopendir tests: EBADF tests.
13215         * tests/test-fdopendir.c (main): Add more tests for EBADF.
13216
13217         openat tests: EBADF tests.
13218         * tests/test-fchownat.c (main): Add tests for EBADF.
13219         * tests/test-fstatat.c (main): Likewise.
13220         * tests/test-mkdirat.c (main): Likewise.
13221         * tests/test-openat.c (main): Likewise.
13222         * tests/test-unlinkat.c (main): Likewise.
13223         * tests/test-fchmodat.c: New file.
13224         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
13225         (Makefile.am): Also run 'test-fchmodat'.
13226
13227 2011-09-20  Bruno Haible  <bruno@clisp.org>
13228
13229         utimens, futimens, fdutimensat tests: EBADF tests.
13230         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
13231
13232         Tests for function fstat().
13233         * modules/fstat-tests: New file.
13234         * tests/test-fstat.c: New file.
13235         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
13236
13237 2011-09-20  Bruno Haible  <bruno@clisp.org>
13238
13239         test-ttyname_r tests: EBADF tests.
13240         * tests/test-ttyname_r.c (main): Add tests for EBADF.
13241
13242         Tests for module 'isatty'.
13243         * modules/isatty-tests: New file.
13244         * tests/test-isatty.c: New file.
13245
13246         Tests for module 'write'.
13247         * modules/write-tests: New file.
13248         * tests/test-write.c: New file.
13249
13250         Tests for module 'read'.
13251         * modules/read-tests: New file.
13252         * tests/test-read.c: New file.
13253
13254         pwrite tests: EBADF tests.
13255         * tests/test-pwrite.c (main): Add tests for EBADF.
13256
13257         pread tests: EBADF tests.
13258         * tests/test-pread.c (main): Add tests for EBADF.
13259
13260         lseek tests: EBADF tests.
13261         * tests/test-lseek.c (main): Add more tests for EBADF.
13262
13263         Tests for module 'ftruncate'.
13264         * modules/ftruncate-tests: New file.
13265         * tests/test-ftruncate.sh: New file.
13266         * tests/test-ftruncate.c: New file.
13267
13268         fsync tests: EBADF tests.
13269         * tests/test-fsync.c (main): Add more tests for EBADF.
13270
13271         fdatasync tests: EBADF tests.
13272         * tests/test-fdatasync.c (main): Add more tests for EBADF.
13273
13274         Tests for module 'fchown'.
13275         * modules/fchown-tests: New file.
13276         * tests/test-fchown.c: New file.
13277
13278         Tests for module 'fchmod'.
13279         * modules/fchmod-tests: New file.
13280         * tests/test-fchmod.c: New file.
13281
13282         fchdir tests: EBADF tests.
13283         * tests/test-fchdir.c (main): Add more tests for EBADF.
13284
13285         dup2 tests: EBADF tests.
13286         * tests/test-dup2.c (main): Add more tests for EBADF.
13287
13288         Tests for module 'dup'.
13289         * modules/dup-tests: New file.
13290         * tests/test-dup.c: New file.
13291
13292         Tests for module 'close'.
13293         * modules/close-tests: New file.
13294         * tests/test-close.c: New file.
13295
13296 2011-09-20  Bruno Haible  <bruno@clisp.org>
13297
13298         Tests for module 'shutdown'.
13299         * modules/shutdown-tests: New file.
13300         * tests/test-shutdown.c: New file.
13301
13302         Tests for module 'setsockopt'.
13303         * modules/setsockopt-tests: New file.
13304         * tests/test-setsockopt.c: New file.
13305
13306         Tests for module 'sendto'.
13307         * modules/sendto-tests: New file.
13308         * tests/test-sendto.c: New file.
13309
13310         Tests for module 'send'.
13311         * modules/send-tests: New file.
13312         * tests/test-send.c: New file.
13313
13314         Tests for module 'recvfrom'.
13315         * modules/recvfrom-tests: New file.
13316         * tests/test-recvfrom.c: New file.
13317
13318         Tests for module 'recv'.
13319         * modules/recv-tests: New file.
13320         * tests/test-recv.c: New file.
13321
13322         Tests for module 'listen'.
13323         * modules/listen-tests: New file.
13324         * tests/test-listen.c: New file.
13325
13326         Tests for module 'getsockopt'.
13327         * modules/getsockopt-tests: New file.
13328         * tests/test-getsockopt.c: New file.
13329
13330         Tests for module 'getsockname'.
13331         * modules/getsockname-tests: New file.
13332         * tests/test-getsockname.c: New file.
13333
13334         Tests for module 'getpeername'.
13335         * modules/getpeername-tests: New file.
13336         * tests/test-getpeername.c: New file.
13337
13338         Tests for module 'connect'.
13339         * modules/connect-tests: New file.
13340         * tests/test-connect.c: New file.
13341
13342         Tests for module 'bind'.
13343         * modules/bind-tests: New file.
13344         * tests/test-bind.c: New file.
13345
13346         accept4 tests: Fix for native Windows.
13347         * tests/test-accept4.c: Include sockets.h.
13348         (main): Invoke gl_sockets_startup.
13349         * modules/accept4-tests (Depends-on): Add sockets.
13350
13351         accept tests: Fix for native Windows.
13352         * tests/test-accept.c: Include sockets.h.
13353         (main): Invoke gl_sockets_startup.
13354         * modules/accept-tests (Depends-on): Add sockets.
13355
13356 2011-09-19  Bruno Haible  <bruno@clisp.org>
13357
13358         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
13359         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
13360         do...while(0).
13361         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
13362         Suggested by Paul Eggert.
13363
13364 2011-09-19  Bruno Haible  <bruno@clisp.org>
13365
13366         sched: Ensure pid_t is defined.
13367         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
13368         not define pid_t.
13369         * lib/sched.in.h: Include <sys/types.h>.
13370         * doc/posix-headers/sched.texi: Mention the pid_t problem.
13371         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
13372
13373 2011-09-19  Bruno Haible  <bruno@clisp.org>
13374
13375         msvc-inval: Ensure the entire expansion is a single statement.
13376         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
13377         of braces.
13378
13379 2011-09-19  Jim Meyering  <meyering@redhat.com>
13380
13381         tests: use printf, not echo in init.sh's warn_ function
13382         * tests/init.sh (warn_): Use printf, not echo.  The latter would
13383         misbehave when given strings containing a backslash or starting
13384         with e.g., -n.  James Youngman suggested setting IFS.
13385
13386 2011-09-19  Eric Blake  <eblake@redhat.com>
13387
13388         futimens: enhance test
13389         * tests/test-futimens.h (test_futimens): Also check for EBADF on
13390         closed non-negative fd.
13391
13392         date: accept 'hence' as opposite of 'ago'
13393         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
13394         * tests/test-parse-datetime.c (main): Enhance test.
13395         Suggested by Jesse Wilson.
13396
13397 2011-09-19  Jim Meyering  <meyering@redhat.com>
13398
13399         getcwd: don't fail in a deep directory on a system without openat
13400         Before this change, getcwd would fail when called from a directory
13401         of depth PATH_MAX / 3 or greater.  That was due to the fact that
13402         the non-openat implementation used "..", "../..", "../../..", etc.
13403         to access ancestor directories.  With too many, that string would
13404         be longer than PATH_MAX.
13405         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
13406         using gnulib's openat replacement.
13407         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
13408         we're using the replacement function.
13409
13410 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
13411
13412         maint.mk: avoid warnings from perl about missing files
13413         * top/maint.mk (def_sym_regex): Ignore files listed in
13414         $(gl_other_headers_) that do not exist, say because a project
13415         does not use a corresponding module.
13416
13417 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
13418
13419         stat: use pathmax.h only if needed
13420         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
13421         This is better for Emacs, which does not have a mingw port and
13422         therefore can avoid the pathmax module.
13423
13424         utimens: remove dependency on dup2
13425         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
13426         to work around the Linux kernel bug.
13427         * modules/utimens (Depends-on): Remove dup2.
13428
13429 2011-09-18  Bruno Haible  <bruno@clisp.org>
13430
13431         inet_ntop, inet_pton: Look for it also in libresolv.
13432         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
13433         libnsl, search for it in libresolv.
13434         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
13435         Needed on Solaris 7.
13436
13437 2011-09-18  Bruno Haible  <bruno@clisp.org>
13438
13439         accept, accept4 tests: Avoid link error on Solaris.
13440         * modules/accept-tests (Makefile.am): Link test-accept against
13441         $(LIBSOCKET).
13442         * modules/accept4-tests (Makefile.am): Link test-accept4 against
13443         $(LIBSOCKET).
13444
13445         accept4: Avoid link error on Solaris.
13446         * modules/accept4 (Link): New section.
13447
13448         socket functions: Avoid link errors on Solaris.
13449         * modules/accept (Depends-on): Add socketlib.
13450         (Link): New section.
13451         * modules/bind (Depends-on): Add socketlib.
13452         (Link): New section.
13453         * modules/connect (Depends-on): Add socketlib.
13454         (Link): New section.
13455         * modules/getpeername (Depends-on): Add socketlib.
13456         (Link): New section.
13457         * modules/getsockname (Depends-on): Add socketlib.
13458         (Link): New section.
13459         * modules/getsockopt (Depends-on): Add socketlib.
13460         (Link): New section.
13461         * modules/listen (Depends-on): Add socketlib.
13462         (Link): New section.
13463         * modules/recv (Depends-on): Add socketlib.
13464         (Link): New section.
13465         * modules/recvfrom (Depends-on): Add socketlib.
13466         (Link): New section.
13467         * modules/send (Depends-on): Add socketlib.
13468         (Link): New section.
13469         * modules/sendto (Depends-on): Add socketlib.
13470         (Link): New section.
13471         * modules/setsockopt (Depends-on): Add socketlib.
13472         (Link): New section.
13473         * modules/shutdown (Depends-on): Add socketlib.
13474         (Link): New section.
13475         * modules/socket (Depends-on): Add socketlib.
13476         (Link): New section.
13477
13478 2011-09-18  Bruno Haible  <bruno@clisp.org>
13479
13480         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
13481         * tests/test-ptsname.c (main): Terminate the test if it takes longer
13482         than 5 seconds.
13483         * modules/ptsname-tests (configure.ac): Test for alarm.
13484
13485 2011-09-18  Bruno Haible  <bruno@clisp.org>
13486
13487         posix_spawn_file_actions_add*: Fix module dependencies.
13488         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
13489         posix_spawn_file_actions_init.
13490         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
13491         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
13492
13493 2011-09-18  Bruno Haible  <bruno@clisp.org>
13494
13495         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
13496         * tests/test-rename.h (test_rename): Allow error code EEXIST.
13497         * tests/test-renameat.c (main): Likewise.
13498
13499 2011-09-18  Bruno Haible  <bruno@clisp.org>
13500
13501         Tests for module 'accept4'.
13502         * modules/accept4-tests: New file.
13503         * tests/test-accept4.c: New file.
13504
13505 2011-09-18  Bruno Haible  <bruno@clisp.org>
13506
13507         Tests for module 'accept'.
13508         * modules/accept-tests: New file.
13509         * tests/test-accept.c: New file.
13510
13511 2011-09-18  Bruno Haible  <bruno@clisp.org>
13512
13513         dup2: Support for MSVC.
13514         * lib/dup2.c: Include msvc-inval.h.
13515         (rpl_dup2): Handle invalid parameter notifications during dup2 and
13516         _get_osfhandle calls.
13517         * modules/dup2 (Depends-on): Add msvc-inval.
13518         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
13519
13520         New module 'msvc-inval'.
13521         * lib/msvc-inval.h: New file.
13522         * lib/msvc-inval.c: New file.
13523         * m4/msvc-inval.m4: New file.
13524         * modules/msvc-inval: New file.
13525
13526 2011-09-17  Bruno Haible  <bruno@clisp.org>
13527
13528         Tests for module 'pclose'.
13529         * modules/pclose-tests: New file.
13530
13531         New module 'pclose'.
13532         * lib/stdio.in.h (pclose): New declaration.
13533         * lib/pclose.c: New file.
13534         * m4/pclose.m4: New file.
13535         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
13536         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
13537         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
13538         * modules/pclose: New file.
13539         * modules/popen-tests (Depends-on): Add pclose.
13540         * modules/popen-safer-tests (Depends-on): Likewise.
13541         * doc/posix-functions/pclose.texi: Mention the new module.
13542
13543 2011-09-17  Bruno Haible  <bruno@clisp.org>
13544
13545         popen: Support for MSVC.
13546         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
13547         * lib/popen.c (popen): Provide alternate definition for native Windows.
13548         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
13549         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
13550         * modules/popen (Depends-on, configure.ac): Update condition.
13551         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
13552         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
13553         fixed.
13554
13555 2011-09-17  Bruno Haible  <bruno@clisp.org>
13556
13557         isnanl, isnand, isnanf: Work around MSVC bug.
13558         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
13559
13560 2011-09-17  Bruno Haible  <bruno@clisp.org>
13561
13562         sys_socket tests: Fix recent mistake.
13563         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
13564
13565 2011-09-17  Bruno Haible  <bruno@clisp.org>
13566
13567         putenv: Support for MSVC.
13568         * modules/putenv (Depends-on): Add environ.
13569         * lib/putenv.c (environ): Disable declaration.
13570         * lib/unistd.in.h: Update comment.
13571
13572 2011-09-17  Bruno Haible  <bruno@clisp.org>
13573
13574         math: Avoid macro redefinition warnings on MSVC.
13575         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
13576         Undefine before redefining.
13577
13578 2011-09-17  Bruno Haible  <bruno@clisp.org>
13579
13580         doc: Mention functions which are declared as macros.
13581         * doc/posix-functions/*[fl].texi: Mention that some functions are
13582         defined as macros with arguments only.
13583
13584 2011-09-17  Bruno Haible  <bruno@clisp.org>
13585
13586         Add dependencies to new dirent related modules.
13587         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
13588         * modules/fts (Depends-on): Likewise.
13589         * modules/glob (Depends-on): Likewise.
13590         * modules/savedir (Depends-on): Likewise.
13591         * modules/scandir (Depends-on): Likewise.
13592         * modules/dirent-safer (Depends-on): Add opendir, closedir.
13593         * modules/fdopendir (Depends-on): Add opendir.
13594
13595 2011-09-17  Bruno Haible  <bruno@clisp.org>
13596
13597         inet_pton: Support for MSVC on Windows Vista or newer.
13598         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
13599         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
13600         HAVE_DECL_INET_PTON is defined.
13601         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
13602         On platforms with <winsock2.h>, test whether inet_pton is declared in
13603         <ws2tcpip.h>. If so, arrange to replace it.
13604         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
13605         REPLACE_INET_PTON.
13606         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
13607         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
13608         (Depends-on, configure.ac): Update condition.
13609         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
13610
13611 2011-09-17  Bruno Haible  <bruno@clisp.org>
13612
13613         inet_ntop: Support for MSVC on Windows Vista or newer.
13614         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
13615         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
13616         HAVE_DECL_INET_NTOP is defined.
13617         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
13618         On platforms with <winsock2.h>, test whether inet_ntop is declared in
13619         <ws2tcpip.h>. If so, arrange to replace it.
13620         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
13621         REPLACE_INET_NTOP.
13622         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
13623         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
13624         (Depends-on, configure.ac): Update condition.
13625         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
13626
13627 2011-09-16  Eric Blake  <eblake@redhat.com>
13628
13629         test-fsync: yet another enhancement
13630         * tests/test-fsync.c (main): Also test behavior on read-only text
13631         file.
13632
13633 2011-09-16  Bruno Haible  <bruno@clisp.org>
13634
13635         Enhance fsync, fdatasync tests.
13636         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
13637         * tests/test-fdatasync.c (main): Likewise.
13638
13639 2011-09-16  Bruno Haible  <bruno@clisp.org>
13640
13641         Support for MSVC compiler: Ensure mode_t gets defined.
13642         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
13643         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
13644         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
13645         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
13646         * tests/test-fcntl-h.c: Check that mode_t is defined.
13647         * tests/test-sys_stat.c: Likewise.
13648         * tests/test-sys_types.c: Likewise.
13649         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
13650         * doc/posix-headers/sys_stat.texi: Likewise.
13651         * doc/posix-headers/sys_types.texi: Likewise.
13652
13653 2011-09-16  Bruno Haible  <bruno@clisp.org>
13654
13655         sys_stat: Support for MSVC.
13656         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
13657         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
13658         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
13659         MSVC.
13660
13661 2011-09-16  Bruno Haible  <bruno@clisp.org>
13662
13663         Support for MSVC compiler: Ensure off_t gets defined.
13664         * lib/unistd.in.h: Include <sys/types.h>.
13665         * tests/test-fcntl-h.c: Check that off_t is defined.
13666         * tests/test-sys_stat.c: Likewise.
13667         * tests/test-sys_types.c: Likewise.
13668
13669 2011-09-16  Eric Blake  <eblake@redhat.com>
13670
13671         fdatasync: port to Solaris
13672         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
13673         * modules/fdatasync (Link): Document it.
13674         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
13675
13676         fdatasync: port to MacOS X 10.7
13677         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
13678         declared.
13679         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
13680         * modules/unistd (Makefile.am): Substitute it.
13681         * lib/unistd.in.h (fdatasync): Declare on MacOS.
13682         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
13683
13684         fdatasync: minor improvements
13685         * modules/fdatasync (Depends-on): Add condition for fsync.
13686         * lib/fdatasync.c (fdatasync): Add comment.
13687         * tests/test-unistd-c++.cc: Test fdatasync.
13688
13689         unistd: update refs to newer POSIX
13690         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
13691         Suggested by Bruno Haible.
13692
13693         fdatasync: new module
13694         * modules/fsync (Description): Document difference to fdatasync.
13695         * modules/fdatasync: New module.
13696         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
13697         * lib/fdatasync.c (fdatasync): Likewise.
13698         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
13699         defaults.
13700         * modules/unistd (Makefile.am): Set witnesses.
13701         * lib/unistd.in.h (fdatasync): Declare.
13702         * MODULES.html.sh: Document it.
13703         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
13704         * modules/fdatasync-tests: New test.
13705         * tests/test-fdatasync.c: Likewise.
13706
13707 2011-09-16  Eric Blake  <eblake@redhat.com>
13708
13709         test-fsync: enhance tests
13710         * modules/fsync-tests (Depends-on): Add errno, for mingw.
13711         * tests/test-fsync.c (main): Enhance test.
13712
13713 2011-09-15  Bruno Haible  <bruno@clisp.org>
13714
13715         Support for MSVC compiler: Ensure ssize_t gets defined.
13716         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
13717         * doc/posix-headers/stdio.texi: Likewise.
13718         * modules/stdio (Depends-on): Add ssize_t.
13719         * modules/sys_socket (Depends-on): Likewise.
13720         * modules/sys_types (Depends-on): Likewise.
13721         * modules/sys_uio (Depends-on): Likewise.
13722         * modules/unistd (Depends-on): Likewise.
13723         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
13724         * tests/test-sys_types.c: Check that ssize_t is defined.
13725
13726 2011-09-14  Bruno Haible  <bruno@clisp.org>
13727
13728         Avoid using #, the m4 comment starter character, near brackets.
13729         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
13730         delimiter character in sed expressions.
13731         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
13732         Suggested by Eric Blake.
13733
13734         Properly quote AC_CHECK_DECLS' 4th argument.
13735         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
13736         argument.
13737         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
13738         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
13739         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
13740         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
13741         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
13742         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
13743         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
13744         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
13745         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
13746         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
13747         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
13748         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
13749         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
13750         * m4/isinf.m4 (gl_ISINF): Likewise.
13751         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
13752         * m4/readutmp.m4 (gl_READUTMP): Likewise.
13753         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
13754         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
13755         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
13756         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
13757         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
13758         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
13759         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
13760         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
13761         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
13762         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
13763         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
13764         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
13765         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
13766         Reported by Eric Blake.
13767
13768         Properly quote AC_CHECK_DECL's 4th argument.
13769         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
13770         argument.
13771         * m4/argp.m4 (gl_ARGP): Likewise.
13772         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
13773         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
13774         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
13775         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
13776         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
13777         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
13778         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
13779         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
13780         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
13781         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
13782         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
13783         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
13784         Reported by Eric Blake.
13785
13786 2011-09-14  Eric Blake  <eblake@redhat.com>
13787
13788         opendir: avoid compile warning
13789         * lib/opendir.c (includes): Always include errno.h.
13790         Reported by Tatsuro MATSUOKA.
13791
13792 2011-09-14  Jim Meyering  <meyering@redhat.com>
13793
13794         maint.mk: sc_tight_scope: propagate failure from sub-make
13795         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
13796         Reported by Martin von Gagern.
13797
13798 2011-09-13  Bruno Haible  <bruno@clisp.org>
13799
13800         tempname: Support for MSVC.
13801         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
13802         MSVC.
13803         * modules/tempname (Depends-on): Add fcntl-h.
13804
13805 2011-09-13  Bruno Haible  <bruno@clisp.org>
13806
13807         sys_time: Support for MSVC.
13808         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
13809         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
13810         include <winsock2.h>.
13811         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
13812         function declarations that collide with POSIX.
13813         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
13814         (Makefile.am): Substitute HAVE_WINSOCK2_H.
13815
13816 2011-09-13  Bruno Haible  <bruno@clisp.org>
13817
13818         stat: Support for MSVC.
13819         * lib/stat.c: Include pathmax.h.
13820         * modules/stat (Depends-on): Add pathmax.
13821
13822         pathmax: Support for native Windows.
13823         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
13824
13825 2011-09-12  Bruno Haible  <bruno@clisp.org>
13826
13827         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
13828         * lib/dirent.in.h (struct dirent): New type.
13829         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
13830         DT_WHT): New macros.
13831         (DIR): New type.
13832         (opendir, closedir): Declare only if the module 'opendir' is enabled.
13833         (readdir, rewinddir): New declarations.
13834         * lib/dirent-private.h: New file.
13835         * lib/opendir.c: New file.
13836         * lib/readdir.c: New file.
13837         * lib/rewinddir.c: New file.
13838         * lib/closedir.c: New file.
13839         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
13840         * m4/opendir.m4: New file.
13841         * m4/readdir.m4: New file.
13842         * m4/rewinddir.m4: New file.
13843         * m4/closedir.m4: New file.
13844         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
13845         REPLACE_CLOSEDIR here.
13846         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
13847         readdir, rewinddir are declared.
13848         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
13849         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
13850         HAVE_REWINDDIR, HAVE_CLOSEDIR.
13851         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
13852         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
13853         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
13854         * modules/opendir: New file.
13855         * modules/readdir: New file.
13856         * modules/rewinddir: New file.
13857         * modules/closedir: New file.
13858         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
13859         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
13860         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
13861         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
13862         * NEWS: Mention the 'fchdir' change.
13863
13864 2011-09-11  Bruno Haible  <bruno@clisp.org>
13865
13866         asm-underscore.m4: Support for MSVC.
13867         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
13868         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
13869
13870 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
13871
13872         Doc about crypt functions.
13873         * doc/posix-functions/crypt.texi: Expand range of glibc versions
13874         needing for _GNU_SOURCE to get crypt.
13875         * doc/posix-functions/encrypt.texi: Likewise.
13876         * doc/posix-functions/setkey.texi: Likewise.
13877
13878 2011-09-11  Bruno Haible  <bruno@clisp.org>
13879
13880         doc: Update regarding MSVC 9.
13881         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
13882         tested".
13883         * doc/posix-functions/*.texi: Update with info about MSVC 9.
13884         * doc/posix-headers/*.texi: Likewise.
13885         * doc/pastposix-functions/*.texi: Likewise.
13886         * doc/glibc-functions/*.texi: Likewise.
13887         * doc/glibc-headers/*.texi: Likewise.
13888
13889 2011-09-11  Bruno Haible  <bruno@clisp.org>
13890
13891         unistd et al.: Don't assume <unistd.h> exists.
13892         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
13893         does not exist.
13894         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
13895         exist. But include <stdlib.h>.
13896         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
13897         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
13898         symlink() does not exist.
13899         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
13900         include <io.h> instead.
13901         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
13902         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
13903         include <direct.h> instead.
13904         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
13905         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
13906         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
13907         <io.h> instead.
13908         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
13909         correctly if the system does not have hard links.
13910         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
13911         <direct.h> instead.
13912         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
13913         it when looking for function declarations.
13914         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
13915         <direct.h> and <io.h> instead.
13916         * doc/posix-headers/unistd.texi: More details about MSVC problem.
13917
13918 2011-09-11  Bruno Haible  <bruno@clisp.org>
13919
13920         strcase: Support for MSVC.
13921         * modules/strcase (Status, Notice): Remove obsoletion mark.
13922         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
13923         * doc/posix-functions/strncasecmp.texi: Likewise.
13924
13925         strings: Don't assume <strings.h> exists.
13926         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
13927         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
13928         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
13929         * doc/posix-headers/strings.texi: Mention the MSVC problem.
13930
13931 2011-09-11  Bruno Haible  <bruno@clisp.org>
13932
13933         dirent: Don't assume <dirent.h> exists.
13934         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
13935         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
13936         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
13937         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
13938
13939 2011-09-11  Bruno Haible  <bruno@clisp.org>
13940
13941         Fix wint_t on MSVC.
13942         * lib/wchar.in.h (wint_t): On MSVC, override it.
13943         * lib/wctype.in.h (wint_t): Likewise.
13944         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
13945         MSVC.
13946         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
13947         * doc/posix-headers/wctype.texi: Likewise.
13948
13949 2011-09-11  Bruno Haible  <bruno@clisp.org>
13950
13951         sys_types: Fix typo.
13952         * lib/sys_types.in.h: Fix typo in comment.
13953         Reported by Paul Eggert.
13954
13955         Support for MSVC compiler: Ensure size_t gets defined.
13956         * modules/strings (Depends-on): Add 'sys_types'.
13957         * modules/sys_uio (Depends-on): Likewise.
13958         * lib/sys_uio.in.h: Update comment.
13959
13960         C++ tests for module 'sys_types'.
13961         * modules/sys_types-c++-tests: New file.
13962         * tests/test-sys_types-c++.cc: New file.
13963
13964         Tests for module 'sys_types'.
13965         * modules/sys_types-tests: New file.
13966         * tests/test-sys_types.c: New file.
13967
13968         New module 'sys_types'.
13969         * lib/sys_types.in.h: New file.
13970         * m4/sys_types_h.m4: New file.
13971         * modules/sys_types: New file.
13972         * doc/posix-headers/sys_types.texi: Mention the new module and the
13973         size_t problem on MSVC 9.
13974
13975 2011-09-11  Bruno Haible  <bruno@clisp.org>
13976
13977         Support for MSVC compiler: Avoid division by a literal 0.
13978         * lib/math.in.h (NAN): Define through a function call also on MSVC.
13979         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
13980         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
13981         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
13982         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
13983         * tests/infinity.h: New file.
13984         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
13985         on MSVC.
13986         * tests/test-ceilf1.c: Include infinity.h.
13987         (main): Use Infinityf.
13988         * tests/test-ceil1.c: Include infinity.h.
13989         (main): Use Infinityd.
13990         * tests/test-ceill.c: Include infinity.h.
13991         (main): Use Infinityl.
13992         * tests/test-dprintf-posix.c: Include infinity.h.
13993         (test_function): Use Infinityd.
13994         * tests/test-floorf1.c: Include infinity.h.
13995         (main): Use Infinityf.
13996         * tests/test-floor1.c: Include infinity.h.
13997         (main): Use Infinityd.
13998         * tests/test-floorl.c: Include infinity.h.
13999         (main): Use Infinityl.
14000         * tests/test-fprintf-posix.c: Include infinity.h.
14001         (test_function): Use Infinityd.
14002         * tests/test-frexp.c: Include infinity.h.
14003         (main): Use Infinityd.
14004         * tests/test-frexpl.c: Include infinity.h.
14005         (main): Use Infinityl.
14006         * tests/test-isfinite.c: Include infinity.h.
14007         (test_isfinitef): Use Infinityf.
14008         (test_isfinited): Use Infinityd.
14009         (test_isfinitel): Use Infinityl.
14010         * tests/test-isinf.c: Include infinity.h.
14011         (test_isinff): Use Infinityf.
14012         (test_isinfd): Use Infinityd.
14013         (test_isinfl): Use Infinityl.
14014         * tests/test-isnan.c: Include infinity.h.
14015         (test_float): Use Infinityf.
14016         (test_double): Use Infinityd.
14017         (test_long_double): Use Infinityl.
14018         * tests/test-isnanf.h: Include infinity.h.
14019         (main): Use Infinityf.
14020         * tests/test-isnand.h: Include infinity.h.
14021         (main): Use Infinityd.
14022         * tests/test-isnanl.h: Include infinity.h.
14023         (main): Use Infinityl.
14024         * tests/test-ldexpl.c: Include infinity.h.
14025         (main): Use Infinityl.
14026         * tests/test-printf-posix.h: Include infinity.h.
14027         (test_function): Use Infinityd.
14028         * tests/test-roundf1.c: Include infinity.h.
14029         (main): Use Infinityf.
14030         * tests/test-round1.c: Include infinity.h.
14031         (main): Use Infinityd.
14032         * tests/test-roundl.c: Include infinity.h.
14033         (main): Use Infinityl.
14034         * tests/test-signbit.c: Include infinity.h.
14035         (test_signbitf): Use Infinityf.
14036         (test_signbitd): Use Infinityd.
14037         (test_signbitl): Use Infinityl.
14038         * tests/test-snprintf-posix.h: Include infinity.h.
14039         (test_function): Use Infinityd, Infinityl.
14040         * tests/test-sprintf-posix.h: Include infinity.h.
14041         (test_function): Use Infinityd, Infinityl.
14042         * tests/test-truncf1.c: Include infinity.h.
14043         (main): Use Infinityf.
14044         * tests/test-trunc1.c: Include infinity.h.
14045         (main): Use Infinityd.
14046         * tests/test-truncl.c: Include infinity.h.
14047         (main): Use Infinityl.
14048         * tests/test-vasnprintf-posix.c: Include infinity.h.
14049         (test_function): Use Infinityd, Infinityl.
14050         * tests/test-vasprintf-posix.c: Include infinity.h.
14051         (test_function): Use Infinityd, Infinityl.
14052         * modules/ceilf-tests (Files): Add tests/infinity.h.
14053         * modules/ceil-tests (Files): Likewise.
14054         * modules/ceill-tests (Files): Likewise.
14055         * modules/dprintf-posix-tests (Files): Likewise.
14056         * modules/floorf-tests (Files): Likewise.
14057         * modules/floor-tests (Files): Likewise.
14058         * modules/floorl-tests (Files): Likewise.
14059         * modules/fprintf-posix-tests (Files): Likewise.
14060         * modules/frexp-tests (Files): Likewise.
14061         * modules/frexp-nolibm-tests (Files): Likewise.
14062         * modules/frexpl-tests (Files): Likewise.
14063         * modules/frexpl-nolibm-tests (Files): Likewise.
14064         * modules/isfinite-tests (Files): Likewise.
14065         * modules/isinf-tests (Files): Likewise.
14066         * modules/isnan-tests (Files): Likewise.
14067         * modules/isnanf-tests (Files): Likewise.
14068         * modules/isnanf-nolibm-tests (Files): Likewise.
14069         * modules/isnand-tests (Files): Likewise.
14070         * modules/isnand-nolibm-tests (Files): Likewise.
14071         * modules/isnanl-tests (Files): Likewise.
14072         * modules/isnanl-nolibm-tests (Files): Likewise.
14073         * modules/ldexpl-tests (Files): Likewise.
14074         * modules/printf-posix-tests (Files): Likewise.
14075         * modules/roundf-tests (Files): Likewise.
14076         * modules/round-tests (Files): Likewise.
14077         * modules/roundl-tests (Files): Likewise.
14078         * modules/signbit-tests (Files): Likewise.
14079         * modules/snprintf-posix-tests (Files): Likewise.
14080         * modules/sprintf-posix-tests (Files): Likewise.
14081         * modules/truncf-tests (Files): Likewise.
14082         * modules/trunc-tests (Files): Likewise.
14083         * modules/truncl-tests (Files): Likewise.
14084         * modules/vasnprintf-posix-tests (Files): Likewise.
14085         * modules/vasprintf-posix-tests (Files): Likewise.
14086         * modules/vdprintf-posix-tests (Files): Likewise.
14087         * modules/vfprintf-posix-tests (Files): Likewise.
14088         * modules/vprintf-posix-tests (Files): Likewise.
14089         * modules/vsnprintf-posix-tests (Files): Likewise.
14090         * modules/vsprintf-posix-tests (Files): Likewise.
14091         * modules/xprintf-posix-tests (Files): Likewise.
14092
14093 2011-09-11  Bruno Haible  <bruno@clisp.org>
14094
14095         Ensure pid_t gets defined.
14096         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
14097         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
14098         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
14099         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
14100         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
14101         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
14102         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
14103         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
14104         * tests/test-fcntl-h.c: Check that pid_t is defined.
14105         * tests/test-sched.c: Likewise.
14106         * tests/test-termios.c: Likewise.
14107         * tests/test-time.c: Likewise.
14108         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
14109         * doc/posix-headers/signal.texi: Likewise.
14110         * doc/posix-headers/sys_types.texi: Likewise.
14111         * doc/posix-headers/time.texi: Likewise.
14112
14113 2011-09-11  Bruno Haible  <bruno@clisp.org>
14114
14115         acl: Fix compilation on Solaris 10 (older version).
14116         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
14117         of ACE_EVERYONE.
14118         * lib/set-mode-acl.c (qset_acl): Likewise.
14119         Reported by Christian Jullien <eligis@orange.fr>.
14120
14121 2011-09-10  Bruno Haible  <bruno@clisp.org>
14122
14123         iconv, unsetenv: Add support for MSVC compiler.
14124         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
14125         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
14126
14127 2011-09-10  Bruno Haible  <bruno@clisp.org>
14128
14129         *printf: Add support for MSVC compiler.
14130         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
14131         handles the exception caused by the %n directive. When cross-compiling,
14132         guess no on native Windows.
14133         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
14134         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
14135         emulate it through vsnprintf.
14136         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
14137         * doc/posix-functions/dprintf.texi: Update documentation regarding
14138         MSVC 9.
14139         * doc/posix-functions/fprintf.texi: Likewise.
14140         * doc/posix-functions/printf.texi: Likewise.
14141         * doc/posix-functions/snprintf.texi: Likewise.
14142         * doc/posix-functions/sprintf.texi: Likewise.
14143         * doc/posix-functions/swprintf.texi: Likewise.
14144         * doc/posix-functions/vdprintf.texi: Likewise.
14145         * doc/posix-functions/vfprintf.texi: Likewise.
14146         * doc/posix-functions/vprintf.texi: Likewise.
14147         * doc/posix-functions/vsnprintf.texi: Likewise.
14148         * doc/posix-functions/vsprintf.texi: Likewise.
14149         * doc/glibc-functions/asprintf.texi: Likewise.
14150         * doc/glibc-functions/obstack_printf.texi: Likewise.
14151         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
14152         * doc/glibc-functions/vasprintf.texi: Likewise.
14153
14154 2011-09-10  Bruno Haible  <bruno@clisp.org>
14155
14156         nocrash: Add support for native Windows.
14157         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
14158
14159 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
14160             Bruno Haible  <bruno@clisp.org>
14161
14162         absolute-header, include-next: Add support for MSVC compiler.
14163         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
14164         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
14165         directory separator in #line directives.
14166         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
14167         recognize also backslash as directory separator in #line directives.
14168
14169 2011-09-08  Jim Meyering  <meyering@redhat.com>
14170
14171         maint.mk: mark the post-release commit log with "maint: " prefix
14172         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
14173         one-line commit-log summary.
14174
14175 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
14176             Bruno Haible  <bruno@clisp.org>
14177
14178         Doc about crypt functions.
14179         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
14180         systems.
14181         * doc/posix-functions/encrypt.texi: Likewise.
14182         * doc/posix-functions/setkey.texi: Likewise.
14183
14184 2011-09-08  Simon Josefsson  <simon@josefsson.org>
14185
14186         * lib/gc.h: Fix copyright header.
14187
14188 2011-09-07  Bruno Haible  <bruno@clisp.org>
14189
14190         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
14191         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
14192         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
14193
14194 2011-09-07  Bruno Haible  <bruno@clisp.org>
14195
14196         openat: Work around compilation error with OSF/1 5.1 DTK cc.
14197         * lib/fopen.c: Use different syntax for include of <stdio.h>.
14198         * lib/freopen.c: Likewise.
14199         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
14200         * lib/lstat.c: Likewise.
14201         * lib/stat.c: Likewise.
14202         * lib/open.c: Use different syntax for include of <fcntl.h>.
14203         * lib/openat.c: Include fcntl.h again, explicitly.
14204
14205 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
14206
14207         parse-datetime: document the newly accepted format
14208         * doc/parse-datetime.texi (Combined date and time of day items):
14209         New section.
14210
14211 2011-09-06  Bruno Haible  <bruno@clisp.org>
14212
14213         acl: Fix a test failure on newer Solaris 10 with ZFS.
14214         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
14215         ENOSYS as no ACL.
14216         Reported by Jim Meyering.
14217
14218 2011-09-06  Bruno Haible  <bruno@clisp.org>
14219
14220         acl: Update for AIX >= 5.3 with NFS.
14221         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
14222         ENOSYS as no ACL.
14223
14224         acl: Fix a test failure on AIX >= 5.3 with NFS.
14225         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
14226         as no ACL.
14227
14228 2011-09-06  Bruno Haible  <bruno@clisp.org>
14229
14230         acl: Fix a test failure on IRIX 6.5 with NFS.
14231         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
14232         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
14233         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
14234         * lib/copy-acl.c (qcopy_acl): Likewise.
14235
14236 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
14237
14238         openat: port to AIX 7.1 with large files
14239         AIX 7.1 does a "#define openat open64at" if large files are in use,
14240         so we can't simply #undef openat.  Use the orig_openat trick (similar
14241         to orig_open in lib/open.c) to work around the problem.  Problem
14242         reported by Kevin Brott for GNU tar, in the thread containing
14243         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
14244         * lib/openat.c (__need_system_fcntl_h): Define first.
14245         Include <fcntl.h> and <sys/types.h> before undefining.
14246         (orig_openat) [HAVE_OPENAT]: New inline function.
14247         (openat) [HAVE_OPENAT]: Do not undef.
14248         (rpl_openat): Use orig_openat, not openat.
14249
14250 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
14251             Bruno Haible  <bruno@clisp.org>
14252
14253         acl: Avoid errors on NonStop Kernel.
14254         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
14255         ENOTSUP errors.
14256
14257 2011-09-05  Bruno Haible  <bruno@clisp.org>
14258
14259         acl: Clean up Solaris code.
14260         * lib/acl-internal.h: Remove no-op #if.
14261         * lib/file-has-acl.c: Likewise.
14262         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
14263         * lib/copy-acl.c (qcopy_acl): Likewise.
14264
14265 2011-09-05  Bruno Haible  <bruno@clisp.org>
14266
14267         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
14268         binaries built on the original Solaris 10.
14269         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
14270         trivial.
14271
14272 2011-09-05  Bruno Haible  <bruno@clisp.org>
14273
14274         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
14275         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
14276         10.
14277         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
14278         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
14279         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
14280         instead of acl_get, facl_get, acl_set, facl_set.
14281
14282 2011-09-05  Bruno Haible  <bruno@clisp.org>
14283
14284         copy-file: Try unit tests on more file systems.
14285         * tests/test-copy-file-1.sh: New file.
14286         * tests/test-copy-file-2.sh: New file.
14287         * modules/copy-file-tests (Files): Add them.
14288         (Makefile.am): Add them to TESTS.
14289
14290         acl: Try unit tests on more file systems.
14291         * tests/test-file-has-acl-1.sh: New file.
14292         * tests/test-file-has-acl-2.sh: New file.
14293         * tests/test-set-mode-acl-1.sh: New file.
14294         * tests/test-set-mode-acl-2.sh: New file.
14295         * tests/test-copy-acl-1.sh: New file.
14296         * tests/test-copy-acl-2.sh: New file.
14297         * modules/acl-tests (Files): Add them.
14298         (Makefile.am): Add them to TESTS.
14299
14300 2011-09-04  Bruno Haible  <bruno@clisp.org>
14301
14302         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
14303         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
14304         10.
14305         (OLD_ALLOW, OLD_DENY): New macros.
14306         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
14307         ACE_ACCESS_ALLOWED_ACE_TYPE.
14308         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
14309         ACE_ACCESS_DENIED_ACE_TYPE.
14310         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
14311         (NEW_ACE_EXECUTE): Fix value.
14312         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
14313         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
14314         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
14315         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
14316         NEW_ACE_SYNCHRONIZE): New macros.
14317         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
14318         instead of acl_fromtext, acl_set, facl_set.
14319         Fixes a coreutils/tests/cp/perm failure.
14320
14321 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
14322
14323         openat: test for fstatat (..., 0) bug
14324         Further testing with tar suggests that fstatat (..., 0)
14325         does not work in general, on AIX 7.1; see
14326         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
14327         So, give up entirely on AIX 7.1's fstatat, and fall back on our
14328         replacement fstatat (which is what older AIX releases were using
14329         anyway).
14330         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
14331         use is now changed to orig_fstatat.  This was probably the right
14332         thing to do anyway.
14333         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
14334         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
14335         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
14336         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
14337         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
14338         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
14339         if the bug is found.
14340
14341         openat: test for fstatat (AT_FDCWD, ..., 0) bug
14342         This tests for another fstatat bug on AIX 7.1:
14343         fstatat (AT_FDCWD, ..., 0) does not work.  See
14344         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
14345         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
14346         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
14347         (rpl_fstatat): Adjust so that it works around either (or both)
14348         bugs if present.
14349         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
14350
14351 2011-09-03  Karl Berry  <karl@gnu.org>
14352
14353         * doc/regex.texi (Character Class Operators): Avoid literal ":"
14354         in index entries.
14355
14356 2011-09-02  Bruno Haible  <bruno@clisp.org>
14357
14358         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
14359         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
14360         values of AR, ARFLAGS, RANLIB.
14361         Reported by John W. Eaton <jwe@gnu.org> for Octave.
14362
14363 2011-09-02  Bruno Haible  <bruno@clisp.org>
14364
14365         Find 'ar' program that fits with --host argument.
14366         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
14367
14368 2011-09-02  Bruno Haible  <bruno@clisp.org>
14369
14370         tests: init.sh: Support any non-GNU diff.
14371         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
14372         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
14373         Solaris 8.
14374
14375 2011-09-02  Bruno Haible  <bruno@clisp.org>
14376
14377         tests: init.sh: work also with any non-GNU diff that supports -u
14378         * tests/init.sh: Relax check for diff -u support.
14379         Rather than checking for GNU diff via --version, simply check
14380         for support for -u itself.  Useful at least on OpenBSD 4.9,
14381         AIX 7.1, IRIX 6.5, and Solaris 10.
14382
14383 2011-09-01  Bruno Haible  <bruno@clisp.org>
14384
14385         strtoimax, strtoumax: Document problem on HP-UX 11.
14386         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
14387         * doc/posix-functions/strtoumax.texi: Likewise.
14388
14389 2011-09-01  Bruno Haible  <bruno@clisp.org>
14390
14391         strtoumax: Avoid link error on OSF/1 with DTK cc.
14392         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
14393         defined as a function.
14394         * modules/strtoumax (Depends-on, configure.ac): Test only whether
14395         strtoumax is defined, not whether it is declared.
14396
14397 2011-09-01  Bruno Haible  <bruno@clisp.org>
14398
14399         strtoimax: Avoid link error on OSF/1 with DTK cc.
14400         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
14401         defined as a function.
14402         * modules/strtoimax (Depends-on, configure.ac): Test only whether
14403         strtoimax is defined, not whether it is declared.
14404
14405 2011-09-01  Bruno Haible  <bruno@clisp.org>
14406
14407         imaxdiv: Avoid link error on OSF/1 with DTK cc.
14408         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
14409         as a function.
14410         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
14411         whether it is declared.
14412
14413 2011-09-01  Bruno Haible  <bruno@clisp.org>
14414
14415         imaxabs: Avoid link error on OSF/1 with DTK cc.
14416         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
14417         as a function.
14418         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
14419         whether it is declared.
14420
14421 2011-09-01  Bruno Haible  <bruno@clisp.org>
14422
14423         Tests for module 'strtoumax'.
14424         * modules/strtoumax-tests: New file.
14425         * tests/test-strtoumax.c: New file.
14426
14427         Tests for module 'strtoimax'.
14428         * modules/strtoimax-tests: New file.
14429         * tests/test-strtoimax.c: New file.
14430
14431         Tests for module 'imaxdiv'.
14432         * modules/imaxdiv-tests: New file.
14433         * tests/test-imaxdiv.c: New file.
14434
14435         Tests for module 'imaxabs'.
14436         * modules/imaxabs-tests: New file.
14437         * tests/test-imaxabs.c: New file.
14438
14439 2011-09-01  Bruno Haible  <bruno@clisp.org>
14440
14441         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
14442         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
14443         pthread_create.
14444
14445 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
14446
14447         openat: work around AIX 7.1 fstatat issue
14448         This should fix the problem that was not properly fixed
14449         in the previous change, dated 2011-08-30.
14450         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
14451         __need_system_stat_h defined.
14452         (orig_fstatat) [HAVE_FSTATAT]: New function.
14453         (rpl_fstatat): Go back to the old way of doing things,
14454         except call orig_fstatat instead of fstatat.
14455         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
14456         Remove unnecessary check whether fstatat fills in st_size etc.
14457
14458 2011-09-01  Bruno Haible  <bruno@clisp.org>
14459
14460         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
14461         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
14462         just include the system's header.
14463
14464 2011-08-31  Jim Meyering  <meyering@redhat.com>
14465
14466         tests: avoid spurious assertion failure in test-float.c on ppc64
14467         * tests/test-float.c (test_long_double): Comment out an assertion,
14468         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
14469         with gcc-4.4.4.
14470
14471         maint: indent with spaces, not TABs
14472         I need to get in the habit of running gnulib's "make check".
14473         Both of these would have been caught.
14474         * m4/largefile.m4: Indent with spaces, not TABs.
14475         * lib/parse-datetime.y (iso_8601_time): Likewise.
14476         Spotted by Pádraig Brady.
14477
14478         test-parse-datetime.c: accommodate a relatively strict gcc warning
14479         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
14480         to avoid a warning from gcc's -Werror=missing-declarations.
14481         Insert a few spaces-before-funcall-parenthesis.
14482
14483 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
14484
14485         parse-datetime: accept ISO 8601 date and time rep with "T" separator
14486         The parser now accepts ISO 8601 date-time strings with "T" as the
14487         separator.  It has long parsed dates like "2004-02-29 16:21:42"
14488         with a space between the date and time strings.  Now it also parses
14489         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
14490         variants like "2004-02-29T16:21:42.333-07:00"
14491         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
14492         of day representation using the 'T' separator character.
14493         * doc/parse-datetime.texi (General date syntax): replace use of
14494         deprecated --iso-8601 option with --rfc-3339 in example of date
14495         command output formats that can be parsed.
14496         * tests/test-parse-datetime.c (tm_diff): New function, taken from
14497         lib/parse-datetime.y.
14498         (gmt_offset): New function.
14499         (main): Add additional test cases to validate ISO8601 extended
14500         date and time of day parsing.
14501
14502 2011-08-31  Bruno Haible  <bruno@clisp.org>
14503
14504         freopen: Documentation.
14505         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
14506         name.
14507         Reported by Claudio Bley <claudio.bley@gmail.com>.
14508
14509 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
14510
14511         freopen: Don't crash if the filename argument is NULL.
14512         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
14513         NULL.
14514
14515 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
14516
14517         openat: work around AIX 7.1 fstatat bug
14518         Problem reported by Kevin Brott for GNU tar, in the thread containing
14519         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
14520         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
14521         FSTATAT_ST_SIZE_ETC_BROKEN.
14522         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
14523         rpl_fstatat.
14524         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
14525         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
14526         AC_CHECK_FUNCS_ONCE for fstatat.
14527         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
14528         fchmodat, mkdirat, openat and unlinkat.
14529
14530 2011-08-30  Bruno Haible  <bruno@clisp.org>
14531
14532         Avoid endless recursions if config.h includes some header files.
14533         * lib/fopen.c (__need_FILE): Define already before including config.h.
14534         * lib/freopen.c (__need_FILE): Likewise.
14535         * lib/open.c (__need_system_fcntl_h): Likewise.
14536         * lib/stat.c (__need_system_sys_stat_h): Likewise.
14537         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
14538         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
14539
14540 2011-08-25  Karl Berry  <karl@gnu.org>
14541
14542         * config/srclist.txt (ylwrap): new try.
14543         * build-aux/ylwrap: new file.
14544
14545 2011-08-23  Bruno Haible  <bruno@clisp.org>
14546
14547         tmpdir: Use a good default directory on native Windows.
14548         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
14549         (P_tmpdir): Default to _P_tmpdir on native Windows.
14550         (path_search): On native Windows, try the value returned by GetTempPath
14551         before trying P_tmpdir.
14552         * modules/tmpdir (Depends-on): Add pathmax.
14553         Suggested by John Darrington <john@darrington.wattle.id.au>.
14554
14555 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
14556
14557         doc: fix typo in README-release
14558         * top/README-release: Capitalize first word of a sentence.
14559
14560 2011-08-19  Jim Meyering  <meyering@redhat.com>
14561
14562         fts: do not exhaust memory when processing million-entry directories
14563         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
14564         directory would require about 256*N bytes of memory.  Thus, it was
14565         easy to construct a directory too large to be processed by any of
14566         those tools.  With this change, fts' maximum memory utilization is
14567         now limited to around 30MB.
14568         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
14569         (fts_read): When we've processed the final entry (i.e., when
14570         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
14571         using the parent entry to read any remaining entries.  Dispatch
14572         depending on what fts_build returns:
14573         - NULL+stop, aka failure: stop
14574         - NULL otherwise: move up in the dir hierarchy
14575         - non-NULL: handle this new entry
14576         (fts_build): Declare and use new local, continue_readdir.
14577         Prepare to be called from fts_read, when the entries
14578         from a partially-read directory have just been exhausted.
14579         In that case, we'll skip the opendir and instead use the parent's
14580         fts_dirp and derive dir_fd from that.
14581         Finally, in the readdir loop, if we read max_entries entries,
14582         exit the loop ensuring *not* to call closedir.  This is required
14583         so that fts_dirp can be reused on a subsequent call.
14584         Prompted by Ben England's report of memory exhaustion in find
14585         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
14586
14587         maint: fts: move decl of `dp' down into while loop; split a long line
14588         * lib/fts.c (fts_build): No semantic change.
14589
14590         fts: add/use new struct member, fts_dirp
14591         We are about to use this to manage any directory with
14592         too many entries to read all of them into memory at once.
14593         To do that, we'll need to save the DIR* pointer in each
14594         affected FTSENT struct.
14595         * lib/fts_.h: Include <dirent.h>.
14596         (struct FTSENT) [fts_dirp]: New member.
14597         * lib/fts.c (closedir_and_clear): Define.
14598         Use it in place of closedir so that we are sure to
14599         clear the new fts_dirp member when done with it.
14600         (fts_alloc): Initialize the new member.
14601         (fts_lfree): Free, if needed.
14602
14603         maint: fts: give __opendir2 a new parameter and rename
14604         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
14605         than surreptitiously using sole caller's "dir_fd".
14606         (fts_opendir): Rename from __opendir2.
14607
14608         maint: fts.c: remove __opendir2's now-unused parameter, oflag
14609         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
14610
14611         maint: fts.c: correct off-by-one indentation
14612         * lib/fts.c (fts_build): Correct indentation, change style
14613         of a couple of block comments, and bracing style.
14614
14615         maint: fts.c: move __opendir2 #define "up" out of function body
14616         * lib/fts.c (__opendir2): Move "up".  No semantic change.
14617
14618         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
14619         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
14620         out for a long time and besides was useful only on BSD systems.
14621
14622 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
14623
14624         regex: port to Stratus OpenVOS
14625         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
14626         define to empty, rather than attempting nonportable optimizations.
14627         Problem reported by Paul Green in:
14628         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
14629         and fix suggested by Eric Blake in:
14630         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
14631
14632 2011-08-17  Eric Blake  <eblake@redhat.com>
14633
14634         getcwd: fix test failures on mingw
14635         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
14636         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
14637         test if long directory cannot be created, and allow mingw errno.
14638
14639         getcwd-lgpl: fix m4 to match relaxed test for BSD
14640         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
14641         (gl_FUNC_GETCWD_SIGNATURE): New macro.
14642         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
14643         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
14644         signature problem.
14645
14646         getcwd: fix compilation on mingw64
14647         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
14648         getcwd.
14649         Reported by Marc-André Lureau.
14650
14651         pipe2: silence compiler warning
14652         * lib/pipe2.c (pipe2): Hide label if it is not used.
14653
14654 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
14655
14656         relocatable-prog: fix link error
14657         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
14658         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
14659         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
14660         into modules/relocatable-lib without noticing that
14661         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
14662         also needs to build relocatable.c.
14663
14664 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
14665
14666         getaddrinfo: fix sh typo in gai_strerrorA decl checking
14667         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
14668         shell code: it contained a 'break' that was not in a loop.
14669         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
14670         via a shell-language loop; this may have been true in old Autoconf
14671         versions, but it's not true in Autoconf 2.68.  I found this bug
14672         when testing coreutils git on Solaris 8, whose shell complains
14673         about the syntax error.
14674
14675 2011-08-12  Simon Josefsson  <simon@josefsson.org>
14676
14677         * lib/base64.c: Fix comment to reference RFC 4648.
14678         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
14679         <gvtulder@gmail.com>.
14680
14681 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
14682
14683         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
14684
14685         po/Makefile.in.in: fix make -q problem
14686         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
14687         rule, since there's no file named 'check-macro-version' and its
14688         use as a file breaks make -q.
14689         (all): Don't depend on check-macro-version.
14690         (CHECK_MACRO_VERSION): New macro.
14691         (stamp-po): Use it.
14692
14693         configmake: fix make -q problem
14694         * modules/configmake (configmake.h): Update configmake.h's time stamp
14695         even if the file does not change.  Otherwise, 'make -q' fails.
14696         Problem reported by Simon Josefsson in
14697         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
14698
14699 2011-08-11  Jim Meyering  <meyering@redhat.com>
14700
14701         git-version-gen: correct the advice in a comment
14702         * build-aux/git-version-gen: Correct comment.
14703         Don't recommend to list .tarball-version in .gitignore.
14704
14705 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
14706
14707         base64: fix off-by-one buffer size bug
14708         Problem and (trivial) fix reported by Gijs van Tulder in
14709         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
14710         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
14711         * tests/test-base64.c (main): Catch the bug.
14712
14713 2011-08-10  Eric Blake  <eblake@redhat.com>
14714
14715         closein: correct comments
14716         * lib/closein.c (close_stdin): Improve comments.
14717
14718 2011-08-09  Bruno Haible  <bruno@clisp.org>
14719
14720         More tests for 'fseeko'.
14721         * tests/test-fseeko3.c: New file, from Eric Blake.
14722         * tests/test-fseeko3.sh: New file.
14723         * modules/fseeko-tests (Files): Add them.
14724         (TESTS): Add test-fseeko3.sh.
14725         (check_PROGRAMS): Add test-fseeko3.
14726
14727 2011-08-09  Eric Blake  <eblake@redhat.com>
14728
14729         fseeko: remove unneeded hack
14730         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
14731
14732         fseeko: fix bug on glibc
14733         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
14734         Reported by John W. Eaton.
14735
14736 2011-08-08  Bruno Haible  <bruno@clisp.org>
14737
14738         unictype/base: Fix interoperability with preinstalled libunistring.
14739         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
14740         Reported by Simon Josefsson.
14741
14742 2011-08-08  Bruno Haible  <bruno@clisp.org>
14743
14744         iswblank: Detect declaration correctly.
14745         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
14746         AC_CHECK_DECLS invocation.
14747
14748 2011-08-08  Bruno Haible  <bruno@clisp.org>
14749
14750         tcgetsid: Detect declaration correctly.
14751         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
14752         AC_CHECK_DECLS invocation.
14753         Reported by Simon Josefsson.
14754
14755 2011-08-08  Eric Blake  <eblake@redhat.com>
14756
14757         largefile: fix typo that regressed large file support
14758         * modules/largefile (configure.ac-early): Fix section name.
14759
14760 2011-08-06  Karl Berry  <karl@gnu.org>
14761
14762         * MODULES.html.sh (func_all_files): _Noreturn is no longer
14763         a separate module.
14764
14765 2011-08-05  Simon Josefsson  <simon@josefsson.org>
14766
14767         openat: Fix warnings and commens when building unlinkat.c on Hurd.
14768         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
14769         get prototype for free.
14770
14771 2011-08-04  Bruno Haible  <bruno@clisp.org>
14772
14773         Tests for module 'pathmax'.
14774         * modules/pathmax-tests: New file.
14775         * tests/test-pathmax.c: New file.
14776
14777         canonicalize-lgpl: Support larger filenames on the Hurd.
14778         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
14779         Reported by Paul Eggert.
14780
14781         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
14782         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
14783         * lib/chdir-long.h: Include pathmax.h.
14784         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
14785         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
14786         (PATH_MAX): Remove code that is done by pathmax.h.
14787         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
14788         * lib/tmpfile.c: Add a comment.
14789         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
14790         * modules/chdir-long (Depends-on): Add pathmax.
14791         * modules/getcwd (Depends-on): Add pathmax.
14792         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
14793         is not defined.
14794         * doc/posix-headers/limits.texi: Mention the pathmax module.
14795         * NEWS: Mention the change.
14796
14797 2011-08-02  Bruno Haible  <bruno@clisp.org>
14798
14799         pthread_sigmask: Actually use results of gl_THREADLIB.
14800         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
14801         gl_THREADLIB, not gl_[]THREADLIB.
14802         Reported by Eric Blake.
14803
14804 2011-08-02  Jim Meyering  <meyering@redhat.com>
14805
14806         maint.mk: relax the default _gl_TS_function_match regexp
14807         * top/maint.mk (_gl_TS_function_match): Don't require at least one
14808         space between function name and "(" in an "extern" declaration.
14809         That would fail to match a decl with no space there: extern void foo();
14810
14811 2011-07-31  Iain Nicol  <iain@thenicols.net>
14812
14813         git-version-gen: document that EXTRA_DIST must include .version
14814         * build-aux/git-version-gen: In the how-to-use comment, document
14815         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
14816         will fail when run from an unpacked distribution tarball.
14817
14818 2011-08-01  Bruno Haible  <bruno@clisp.org>
14819
14820         wctype-h: Fix last change.
14821         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
14822         REPLACE_TOWLOWER to 0.
14823         Reported by Sam Steingold <sds@gnu.org>.
14824
14825 2011-07-31  Bruno Haible  <bruno@clisp.org>
14826
14827         frexpl: Update autoconf test.
14828         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
14829         according to changes of 2011-06-20.
14830
14831 2011-07-31  Bruno Haible  <bruno@clisp.org>
14832
14833         sys_utsname: Add support for Minix.
14834         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
14835         <sys/utsname.h>.
14836         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
14837         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
14838
14839 2011-07-31  Bruno Haible  <bruno@clisp.org>
14840
14841         strings: Add support for Minix.
14842         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
14843         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
14844         * doc/posix-headers/strings.texi: Document the Minix problem.
14845
14846 2011-07-31  Bruno Haible  <bruno@clisp.org>
14847
14848         wctype-h: Add support for Minix.
14849         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
14850         REPLACE_TOWLOWER.
14851         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
14852         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
14853         REPLACE_ISWCNTRL.
14854
14855 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
14856
14857         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
14858         This is a performance improvement for 64-bit hosts: it causes the
14859         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
14860
14861 2011-07-31  Bruno Haible  <bruno@clisp.org>
14862
14863         stdioext: Add support for Minix.
14864         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
14865         * lib/fpurge.c (fpurge): Likewise.
14866         * lib/freadahead.c (freadahead): Likewise.
14867         * lib/freadable.c (freadable): Likewise.
14868         * lib/freading.c (freading): Likewise.
14869         * lib/freadptr.c (freadptr): Likewise.
14870         * lib/freadseek.c (freadptrinc): Likewise.
14871         * lib/fseeko.c (rpl_fseeko): Likewise.
14872         * lib/fseterr.c (fseterr): Likewise.
14873         * lib/fwritable.c (fwritable): Likewise.
14874         * lib/fwriting.c (fwriting): Likewise.
14875         * lib/fflush.c (clear_ungetc_buffer): Update comment.
14876         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
14877
14878 2011-07-31  Bruno Haible  <bruno@clisp.org>
14879
14880         errno: Port to Minix.
14881         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
14882         ECONNABORTED are defined.
14883         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
14884         GNULIB_defined_ECONNABORTED): New macros.
14885         * lib/strerror-override.h (strerror_override): Test also
14886         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
14887         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
14888         ECONNABORTED.
14889         * doc/posix-headers/errno.texi: Mention the Minix problem.
14890
14891 2011-07-31  Bruno Haible  <bruno@clisp.org>
14892
14893         Work around declaration collisions on Minix.
14894         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
14895         defined, set REPLACE_MBSINIT.
14896         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
14897         defined, set REPLACE_MBRTOWC.
14898         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
14899         set REPLACE_MBRLEN.
14900         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
14901         defined, set REPLACE_MBSRTOWCS.
14902         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
14903         defined, set REPLACE_WCRTOMB.
14904         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
14905         defined, set REPLACE_WCSRTOMBS.
14906
14907 2011-07-31  Bruno Haible  <bruno@clisp.org>
14908
14909         Add support for Minix with ACK compiler.
14910         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
14911         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
14912         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
14913
14914 2011-07-31  Bruno Haible  <bruno@clisp.org>
14915
14916         Documentation about Minix.
14917         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
14918         * doc/glibc-headers/*.texi: Likewise.
14919         * doc/posix-functions/*.texi: Likewise.
14920         * doc/glibc-functions/*.texi: Likewise.
14921
14922 2011-07-31  Bruno Haible  <bruno@clisp.org>
14923
14924         snippet/warn-on-use: Fix indentation.
14925         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
14926
14927 2011-07-25  Jim Meyering  <meyering@redhat.com>
14928
14929         tests: test-update-copyright.sh: remove unnecessary "rm" commands
14930         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
14931         commands.
14932
14933 2011-07-27  Jim Meyering  <meyering@redhat.com>
14934
14935         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
14936         * top/maint.mk (gl_extract_significant_defines_): Now that
14937         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
14938         gnulib/lib/signal.in.h, and now that we recommend to
14939         define-if-undefined those two symbols in application code,
14940         we must filter them out of the "significant" list.
14941         This avoids a "make syntax-check" failure in coreutils.
14942
14943 2011-07-26  Eric Blake  <eblake@redhat.com>
14944
14945         warnings: add comments about previous patch
14946         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
14947         * m4/include_next.m4: Likewise.
14948         * m4/warn-on-use.m4: Likewise.
14949         * m4/warnings.m4: Likewise, and simplify use.
14950         Suggested by Stefano Lattarini.
14951
14952         include-next, warnings: support older autoconf
14953         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
14954         AS_VAR_PUSHDEF in a way that works with older autoconf.
14955         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
14956         Reported by Daniel P. Berrange.
14957
14958 2011-07-25  Bruno Haible  <bruno@clisp.org>
14959
14960         fseek, ftell: Fix doc.
14961         * doc/posix-functions/fseek.texi: Reword statement about
14962         AC_SYS_LARGEFILE.
14963         * doc/posix-functions/ftell.texi: Likewise.
14964
14965 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
14966             Bruno Haible  <bruno@clisp.org>
14967
14968         Add dependencies to the 'largefile' module.
14969         * modules/fopen (Depends-on): Add 'largefile'.
14970         * modules/freopen (Depends-on): Likewise.
14971         * modules/fseeko (Depends-on): Likewise.
14972         * modules/ftello (Depends-on): Likewise.
14973         * modules/glob (Depends-on): Likewise.
14974         * modules/lseek (Depends-on): Likewise.
14975         * modules/lstat (Depends-on): Likewise.
14976         * modules/mkostemp (Depends-on): Likewise.
14977         * modules/mkostemps (Depends-on): Likewise.
14978         * modules/mkstemp (Depends-on): Likewise.
14979         * modules/mkstemps (Depends-on): Likewise.
14980         * modules/open (Depends-on): Likewise.
14981         * modules/openat (Depends-on): Likewise.
14982         * modules/pread (Depends-on): Likewise.
14983         * modules/pwrite (Depends-on): Likewise.
14984         * modules/scandir (Depends-on): Likewise.
14985         * modules/stat (Depends-on): Likewise.
14986         * modules/tmpfile (Depends-on): Likewise.
14987         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
14988         since the containing module now depends on the largefile module.
14989         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
14990         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
14991         off_t is fixed by gnulib.
14992         * doc/posix-functions/freopen.texi: Likewise.
14993         * doc/posix-functions/fseeko.texi: Likewise.
14994         * doc/posix-functions/fstatat.texi: Likewise.
14995         * doc/posix-functions/ftello.texi: Likewise.
14996         * doc/posix-functions/glob.texi: Likewise.
14997         * doc/posix-functions/lseek.texi: Likewise.
14998         * doc/posix-functions/lstat.texi: Likewise.
14999         * doc/posix-functions/mkstemp.texi: Likewise.
15000         * doc/posix-functions/open.texi: Likewise.
15001         * doc/posix-functions/openat.texi: Likewise.
15002         * doc/posix-functions/pread.texi: Likewise.
15003         * doc/posix-functions/pwrite.texi: Likewise.
15004         * doc/posix-functions/scandir.texi: Likewise.
15005         * doc/posix-functions/stat.texi: Likewise.
15006         * doc/posix-functions/tmpfile.texi: Likewise.
15007         * doc/glibc-functions/mkostemp.texi: Likewise.
15008         * doc/glibc-functions/mkostemps.texi: Likewise.
15009         * doc/glibc-functions/mkstemps.texi: Likewise.
15010
15011 2011-07-25  Bruno Haible  <bruno@clisp.org>
15012
15013         fcntl: Move AC_LIBOBJ invocation to module description.
15014         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
15015         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
15016
15017         fcntl: Remove call-in from fchdir.m4.
15018         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
15019         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
15020
15021         dup3: Remove potential call-in from fchdir.m4.
15022         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
15023         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
15024
15025         dup2: Move AC_LIBOBJ invocation to module description.
15026         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
15027         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
15028         Don't invoke AC_LIBOBJ.
15029         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
15030
15031         dup2: Remove call-in from fchdir.m4.
15032         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
15033         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
15034
15035         fclose: Move AC_LIBOBJ invocation to module description.
15036         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
15037         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
15038         to 1.
15039         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
15040
15041         fclose: Remove call-in from close.m4.
15042         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
15043         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
15044
15045         close: Move AC_LIBOBJ invocation to module description.
15046         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
15047         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
15048         1.
15049         * modules/close (configure.ac): Invoke AC_LIBOBJ.
15050
15051         close: Remove call-in from fchdir.m4.
15052         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
15053         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
15054
15055         open: Move AC_LIBOBJ invocation to module description.
15056         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
15057         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
15058         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
15059
15060         open: Remove call-in from fchdir.m4.
15061         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
15062         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
15063
15064         fchdir: Start to remove gl_REPLACE_* idiom.
15065         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
15066         (gl_FUNC_FCHDIR): Invoke it.
15067
15068 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
15069
15070         * lib/ftell.c (ftell): Comment out cast.
15071
15072         close: use gl_REPLACE_FCLOSE only if defined
15073         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
15074         is defined.  The close module doesn't depend on the fclose module
15075         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
15076         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
15077         I reproduced the problem with "./gnulib-tool --test close sys_socket".
15078
15079 2011-07-24  Jim Meyering  <meyering@redhat.com>
15080
15081         test-select.h: avoid warning when using gcc's -Wmissing-declarations
15082         * tests/test-select.h (test_function): Declare as "static".
15083
15084 2011-07-24  Bruno Haible  <bruno@clisp.org>
15085
15086         doc: Mention the effects of AC_SYS_LARGEFILE.
15087         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
15088         on this function.
15089         * doc/posix-functions/aio_error.texi: Likewise.
15090         * doc/posix-functions/aio_fsync.texi: Likewise.
15091         * doc/posix-functions/aio_read.texi: Likewise.
15092         * doc/posix-functions/aio_return.texi: Likewise.
15093         * doc/posix-functions/aio_suspend.texi: Likewise.
15094         * doc/posix-functions/aio_write.texi: Likewise.
15095         * doc/posix-functions/fgetpos.texi: Likewise.
15096         * doc/posix-functions/fopen.texi: Likewise.
15097         * doc/posix-functions/freopen.texi: Likewise.
15098         * doc/posix-functions/fsetpos.texi: Likewise.
15099         * doc/posix-functions/fstatvfs.texi: Likewise.
15100         * doc/posix-functions/ftruncate.texi: Likewise.
15101         * doc/posix-functions/ftw.texi: Likewise.
15102         * doc/posix-functions/getrlimit.texi: Likewise.
15103         * doc/posix-functions/glob.texi: Likewise.
15104         * doc/posix-functions/lio_listio.texi: Likewise.
15105         * doc/posix-functions/lockf.texi: Likewise.
15106         * doc/posix-functions/mkstemp.texi: Likewise.
15107         * doc/posix-functions/mmap.texi: Likewise.
15108         * doc/posix-functions/nftw.texi: Likewise.
15109         * doc/posix-functions/openat.texi: Likewise.
15110         * doc/posix-functions/opendir.texi: Likewise.
15111         * doc/posix-functions/posix_fadvise.texi: Likewise.
15112         * doc/posix-functions/posix_fallocate.texi: Likewise.
15113         * doc/posix-functions/pread.texi: Likewise.
15114         * doc/posix-functions/pwrite.texi: Likewise.
15115         * doc/posix-functions/readdir.texi: Likewise.
15116         * doc/posix-functions/readdir_r.texi: Likewise.
15117         * doc/posix-functions/rewinddir.texi: Likewise.
15118         * doc/posix-functions/scandir.texi: Likewise.
15119         * doc/posix-functions/seekdir.texi: Likewise.
15120         * doc/posix-functions/setrlimit.texi: Likewise.
15121         * doc/posix-functions/statvfs.texi: Likewise.
15122         * doc/posix-functions/telldir.texi: Likewise.
15123         * doc/posix-functions/tmpfile.texi: Likewise.
15124         * doc/posix-functions/truncate.texi: Likewise.
15125         * doc/glibc-functions/fallocate.texi: Likewise.
15126         * doc/glibc-functions/fstatfs.texi: Likewise.
15127         * doc/glibc-functions/fts_children.texi: Likewise.
15128         * doc/glibc-functions/fts_read.texi: Likewise.
15129         * doc/glibc-functions/getdirentries.texi: Likewise.
15130         * doc/glibc-functions/mkostemp.texi: Likewise.
15131         * doc/glibc-functions/mkostemps.texi: Likewise.
15132         * doc/glibc-functions/mkstemps.texi: Likewise.
15133         * doc/glibc-functions/preadv.texi: Likewise.
15134         * doc/glibc-functions/pwritev.texi: Likewise.
15135         * doc/glibc-functions/sendfile.texi: Likewise.
15136         * doc/glibc-functions/statfs.texi: Likewise.
15137
15138 2011-07-24  Bruno Haible  <bruno@clisp.org>
15139
15140         doc: Fix typo.
15141         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
15142
15143 2011-07-24  Bruno Haible  <bruno@clisp.org>
15144
15145         doc: Mention fsusage.
15146         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
15147
15148 2011-07-24  Bruno Haible  <bruno@clisp.org>
15149
15150         doc: Mention new glibc headers and functions.
15151         * doc/glibc-headers/gshadow.texi: New file.
15152         * doc/glibc-functions/endsgent.texi: New file.
15153         * doc/glibc-functions/fgetsgent.texi: New file.
15154         * doc/glibc-functions/fgetsgent_r.texi: New file.
15155         * doc/glibc-functions/getsgent.texi: New file.
15156         * doc/glibc-functions/getsgent_r.texi: New file.
15157         * doc/glibc-functions/getsgnam.texi: New file.
15158         * doc/glibc-functions/getsgnam_r.texi: New file.
15159         * doc/glibc-functions/putsgent.texi: New file.
15160         * doc/glibc-functions/setsgent.texi: New file.
15161         * doc/glibc-functions/sgetsgent.texi: New file.
15162         * doc/glibc-functions/sgetsgent_r.texi: New file.
15163         * doc/glibc-functions/malloc_info.texi: New file.
15164         * doc/glibc-functions/preadv.texi: New file.
15165         * doc/glibc-functions/pwritev.texi: New file.
15166         * doc/glibc-functions/register_printf_modifier.texi: New file.
15167         * doc/glibc-functions/register_printf_specifier.texi: New file.
15168         * doc/glibc-functions/register_printf_type.texi: New file.
15169         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
15170         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
15171         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
15172         * doc/glibc-functions/pthread_getname_np.texi: New file.
15173         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
15174         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
15175         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
15176         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
15177         * doc/glibc-functions/pthread_setname_np.texi: New file.
15178         * doc/glibc-functions/pthread_sigqueue.texi: New file.
15179         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
15180         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
15181         * doc/glibc-functions/qsort_r.texi: New file.
15182         * doc/glibc-functions/quick_exit.texi: New file.
15183         * doc/glibc-functions/syncfs.texi: New file.
15184         * doc/gnulib.texi: Include them.
15185         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
15186         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
15187         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
15188         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
15189         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
15190         * doc/glibc-functions/execvpe.texi: Likewise.
15191
15192 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
15193
15194         ftell: don't include <unistd.h>
15195         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
15196         guaranteed to define off_t, and the ftell module depends on the
15197         stdio module.
15198
15199         ftell: do not assume wraparound signed arithmetic
15200         * lib/ftell.c: Include <limits.h>.
15201         (ftell): Don't assume wraparound signed arithmetic.
15202
15203 2011-07-24  Bruno Haible  <bruno@clisp.org>
15204
15205         close: No longer depend on module 'fclose'.
15206         * modules/close (Depends-on): Remove fclose.
15207         * NEWS: Mention the change.
15208         Suggested by Sam Steingold <sds@gnu.org>.
15209
15210 2011-07-24  Bruno Haible  <bruno@clisp.org>
15211
15212         fsusage: Enable large volume support on AIX >= 5.2.
15213         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
15214         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
15215         instead of STAT_STATVFS.
15216         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
15217
15218         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
15219         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
15220         f_blocks field only on MacOS X.
15221
15222         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
15223         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
15224         * modules/fsusage (Depends-on): Add largefile.
15225
15226 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
15227
15228         * README: Modernize discussion of signed integers.
15229         Assuming overflow wraparound is no longer safe.
15230         Mention ones' complement and signed magnitude.
15231
15232 2011-07-22  Bruno Haible  <bruno@clisp.org>
15233
15234         select tests, pselect tests: Refactor.
15235         * tests/test-select.h: New file, extracted from tests/test-select.c.
15236         (select_fn): New type.
15237         (test, do_select, do_select_nowait, do_select_wait, test_tty,
15238         test_connect_first, test_accept_first, test_pair, test_socket_pair,
15239         test_pipe): Add my_select argument.
15240         (test_function): Renamed from main. Add my_select argument.
15241         * tests/test-select.c: Move most code to tests/test-select.h. Include
15242         test-select.h.
15243         * modules/select-tests (Files): Add tests/test-select.h.
15244         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
15245         (my_select, main): New functions.
15246         * modules/pselect-tests (Files): Add tests/test-select.h,
15247         tests/macros.h, tests/signature.h.
15248         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
15249         (configure.ac): Check for <sys/wait.h>.
15250
15251 2011-07-22  Bruno Haible  <bruno@clisp.org>
15252
15253         sys_select tests: Check the signature of FD_*.
15254         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
15255         signature tests from here...
15256         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
15257         here.
15258         * modules/sys_select-tests (Files): Add tests/signature.h.
15259
15260 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
15261
15262         largefile: new module, replacing large-inode
15263         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
15264         * MODULES.html.sh: Add largefile, remove large-inode.
15265         * modules/largefile, m4/largefile.m4: New files.
15266         * modules/large-inode, m4/large-inode.m4: Remove.
15267
15268         fsusage: port to MacOS X 10.7 with 4 TiB file systems
15269         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
15270         implementations that use only 32 bits to count blocks.
15271         On typical hosts with 1024-byte blocks, this fails with file
15272         systems as small as 4 TiB.  Problem reported by Herb Wartens
15273         <http://debbugs.gnu.org/9140> and this should also fix a similar
15274         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
15275
15276         large-inode: New module
15277         * MODULES.html.sh: Add it.
15278         * modules/large-inode, m4/large-inode.m4: New files.
15279
15280         extensions: Enable extensions on MacOS X 10.5 and later.
15281         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
15282
15283 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
15284
15285         file-has-acl: use acl_extended_file_nofollow if available
15286         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
15287         (acl_extended_file): New macro.
15288         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
15289         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
15290
15291 2011-07-21  Bruno Haible  <bruno@clisp.org>
15292
15293         Declare system functions in a way that works with C++.
15294         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
15295         declare fdopendir as extern "C".
15296         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
15297         declare frexpl as extern "C".
15298         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
15299         declare gai_strerror as extern "C".
15300         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
15301         programs, declare gai_strerror as extern "C".
15302         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
15303         declare getlogin_r as extern "C".
15304         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
15305         as extern "C".
15306         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
15307         declare ldexpl as extern "C".
15308         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
15309         as extern "C".
15310         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
15311         program, declare getmntinfo as extern "C".
15312         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
15313         stpncpy as extern "C".
15314         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
15315         program, declare __xpg_strerror_r as extern "C".
15316         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
15317         strndup as extern "C".
15318         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
15319         declare memset and bzero as extern "C".
15320         Reported by Sam Steingold <sds@gnu.org>.
15321
15322 2011-07-12  Jim Meyering  <meyering@redhat.com>
15323
15324         maint.mk: prohibit inclusion of "verify.h" without use
15325         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
15326
15327 2011-07-19  Pádraig Brady  <P@draigBrady.com>
15328
15329         timer-time: A new module to check for timer_settime()
15330         * m4/timer_time.m4: Check for the posix function.
15331         * modules/timer-time: Add the new module.
15332         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
15333         Mention it.
15334
15335 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
15336             Bruno Haible  <bruno@clisp.org>
15337
15338         pthread_sigmask: assume POSIX threads if --avoid=threadlib
15339         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
15340         not defined, assume POSIX threads and look for pthread_sigmask in
15341         $LIBS, without changing $CPPFLAGS.
15342
15343 2011-07-19  Bruno Haible  <bruno@clisp.org>
15344
15345         strstr: Update cross-compilation guess.
15346         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
15347         CPUs, guess no, in view of glibc
15348         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
15349         Suggested by Eric Blake. Reported by Reuben Thomas.
15350
15351 2011-07-19  Pádraig Brady  <P@draigBrady.com>
15352
15353         getopt-gnu: suppress core dumps from detection code
15354         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
15355         to suppress core dumps that may well occur on glibc systems.
15356         * modules/getopt-gnu: Depend on nocrash.
15357
15358 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
15359
15360         pthread_sigmask: ensure usleep is declared
15361         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
15362         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
15363
15364 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
15365
15366         doc: Document NonStop portability issues.
15367         * doc/posix-functions/sigaction.texi (sigaction):
15368         * doc/posix-headers/signal.texi (signal.h):
15369         Document NonStop.  See Joachim Schmitz in
15370         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
15371
15372 2011-07-15  Bruno Haible  <bruno@clisp.org>
15373
15374         ffsl, ffsll: Avoid unportable behaviour.
15375         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
15376
15377 2011-07-15  Bruno Haible  <bruno@clisp.org>
15378
15379         ffs: More tests.
15380         * tests/test-ffs.c (NBITS): New macro.
15381         (main): Add more tests.
15382         * tests/test-ffsl.c (NBITS): New macro.
15383         (main): Add more tests.
15384         * tests/test-ffsll.c (NBITS): New macro.
15385         (main): Add more tests.
15386
15387 2011-07-15  Eric Blake  <eblake@redhat.com>
15388
15389         ffsl, ffsll: new modules
15390         * modules/ffsl: New file.
15391         * modules/ffsll: Likewise.
15392         * m4/ffsl.m4: Likewise.
15393         * m4/ffsll.m4: Likewise.
15394         * lib/ffsl.c: Likewise.
15395         * lib/ffsl.h: Likewise.
15396         * lib/ffsll.c: Likewise.
15397         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
15398         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
15399         * modules/string (Makefile.am): Substitute witnesses.
15400         * lib/strings.in.h (ffsl, ffsll): Declare.
15401         * modules/ffsl-tests: New test file.
15402         * modules/ffsll-tests: Likewise.
15403         * tests/test-ffsl.c: Likewise.
15404         * tests/test-ffsll.c: Likewise.
15405         * MODULES.html.sh (Integer arithmetic functions): Mention it.
15406         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
15407         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
15408
15409         ffs: fix m4 prerequisite
15410         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
15411
15412         ffs: avoid undefined behavior
15413         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
15414         * tests/test-ffs.c (naive, main): Avoid signed shifts.
15415         Reported by Bruno Haible.
15416
15417 2011-07-12  Bruno Haible  <bruno@clisp.org>
15418
15419         pthread_sigmask: Rely on module 'threadlib'.
15420         * modules/pthread_sigmask (Depends-on): Add threadlib.
15421         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
15422         is defined.
15423
15424 2011-07-12  Bruno Haible  <bruno@clisp.org>
15425
15426         regex: Depend on module 'strcase'.
15427         * modules/regex (Depends-on): Add strcase, for strcasecmp().
15428
15429 2011-07-12  Jim Meyering  <meyering@redhat.com>
15430
15431         warn-on-use: fix typo in file name
15432         * modules/snippet/warn-on-use (Files): Correct file name:
15433         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
15434
15435 2011-07-12  Bruno Haible  <bruno@clisp.org>
15436
15437         strings: Document module.
15438         * doc/posix-headers/strings.texi: Mention module 'strings'.
15439
15440 2011-07-12  Bruno Haible  <bruno@clisp.org>
15441
15442         Rename module '_Noreturn' to 'snippet/_Noreturn'.
15443         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
15444         (Files, Makefile.am): Update.
15445         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
15446         * modules/stdlib (Depends-on): Update.
15447
15448 2011-07-12  Bruno Haible  <bruno@clisp.org>
15449
15450         * NEWS: Mention the changes.
15451
15452         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
15453         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
15454         (Files, Makefile.am): Update.
15455         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
15456         * modules/arpa_inet (Depends-on): Update.
15457         * modules/ctype (Depends-on): Update.
15458         * modules/dirent (Depends-on): Update.
15459         * modules/fcntl-h (Depends-on): Update.
15460         * modules/glob (Depends-on): Update.
15461         * modules/iconv-h (Depends-on): Update.
15462         * modules/inttypes-incomplete (Depends-on): Update.
15463         * modules/langinfo (Depends-on): Update.
15464         * modules/locale (Depends-on): Update.
15465         * modules/math (Depends-on): Update.
15466         * modules/netdb (Depends-on): Update.
15467         * modules/poll-h (Depends-on): Update.
15468         * modules/pty (Depends-on): Update.
15469         * modules/search (Depends-on): Update.
15470         * modules/signal (Depends-on): Update.
15471         * modules/spawn (Depends-on): Update.
15472         * modules/stdio (Depends-on): Update.
15473         * modules/stdlib (Depends-on): Update.
15474         * modules/string (Depends-on): Update.
15475         * modules/strings (Depends-on): Update.
15476         * modules/sys_file (Depends-on): Update.
15477         * modules/sys_ioctl (Depends-on): Update.
15478         * modules/sys_select (Depends-on): Update.
15479         * modules/sys_socket (Depends-on): Update.
15480         * modules/sys_stat (Depends-on): Update.
15481         * modules/sys_time (Depends-on): Update.
15482         * modules/sys_times (Depends-on): Update.
15483         * modules/sys_utsname (Depends-on): Update.
15484         * modules/sys_wait (Depends-on): Update.
15485         * modules/termios (Depends-on): Update.
15486         * modules/time (Depends-on): Update.
15487         * modules/unistd (Depends-on): Update.
15488         * modules/wchar (Depends-on): Update.
15489         * modules/wctype-h (Depends-on): Update.
15490         * MODULES.html.sh (Support for building libraries and executables):
15491         Update.
15492
15493         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
15494         * modules/snippet/unused-parameter: Renamed from
15495         modules/unused-parameter.
15496         (Files, Makefile.am): Update.
15497         * build-aux/snippet/unused-parameter.h: Renamed from
15498         build-aux/unused-parameter.h.
15499         * modules/selinux-h (Depends-on): Update.
15500         * modules/unistr/base (Depends-on): Update.
15501         * MODULES.html.sh (Core language properties): Update.
15502
15503         Rename module 'link-warning' to 'snippet/link-warning'.
15504         * modules/snippet/link-warning: Renamed from modules/link-warning.
15505         (Files, Makefile.am): Update.
15506         * build-aux/snippet/link-warning.h: Renamed from
15507         build-aux/link-warning.h.
15508         * MODULES.html.sh (Support for building libraries and executables):
15509         Update.
15510
15511         Rename module 'c++defs' to 'snippet/c++defs'.
15512         * modules/snippet/c++defs: Renamed from modules/c++defs.
15513         (Files, Makefile.am): Update.
15514         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
15515         * modules/arpa_inet (Depends-on): Update.
15516         * modules/ctype (Depends-on): Update.
15517         * modules/dirent (Depends-on): Update.
15518         * modules/fcntl-h (Depends-on): Update.
15519         * modules/glob (Depends-on): Update.
15520         * modules/iconv-h (Depends-on): Update.
15521         * modules/langinfo (Depends-on): Update.
15522         * modules/locale (Depends-on): Update.
15523         * modules/math (Depends-on): Update.
15524         * modules/netdb (Depends-on): Update.
15525         * modules/poll-h (Depends-on): Update.
15526         * modules/pty (Depends-on): Update.
15527         * modules/search (Depends-on): Update.
15528         * modules/signal (Depends-on): Update.
15529         * modules/spawn (Depends-on): Update.
15530         * modules/stdio (Depends-on): Update.
15531         * modules/stdlib (Depends-on): Update.
15532         * modules/string (Depends-on): Update.
15533         * modules/strings (Depends-on): Update.
15534         * modules/sys_ioctl (Depends-on): Update.
15535         * modules/sys_select (Depends-on): Update.
15536         * modules/sys_socket (Depends-on): Update.
15537         * modules/sys_stat (Depends-on): Update.
15538         * modules/sys_time (Depends-on): Update.
15539         * modules/sys_wait (Depends-on): Update.
15540         * modules/termios (Depends-on): Update.
15541         * modules/time (Depends-on): Update.
15542         * modules/unistd (Depends-on): Update.
15543         * modules/wchar (Depends-on): Update.
15544         * modules/wctype-h (Depends-on): Update.
15545
15546         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
15547         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
15548         (Files, Makefile.am): Update.
15549         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
15550         * modules/argv-iter (Depends-on): Update.
15551         * modules/arpa_inet (Depends-on): Update.
15552         * modules/dirent (Depends-on): Update.
15553         * modules/fcntl-h (Depends-on): Update.
15554         * modules/fnmatch (Depends-on): Update.
15555         * modules/getopt-posix (Depends-on): Update.
15556         * modules/glob (Depends-on): Update.
15557         * modules/iconv-h (Depends-on): Update.
15558         * modules/inttypes-incomplete (Depends-on): Update.
15559         * modules/locale (Depends-on): Update.
15560         * modules/math (Depends-on): Update.
15561         * modules/netdb (Depends-on): Update.
15562         * modules/search (Depends-on): Update.
15563         * modules/signal (Depends-on): Update.
15564         * modules/spawn (Depends-on): Update.
15565         * modules/stdio (Depends-on): Update.
15566         * modules/stdlib (Depends-on): Update.
15567         * modules/string (Depends-on): Update.
15568         * modules/strings (Depends-on): Update.
15569         * modules/sys_socket (Depends-on): Update.
15570         * modules/sys_stat (Depends-on): Update.
15571         * modules/sys_time (Depends-on): Update.
15572         * modules/sys_times (Depends-on): Update.
15573         * modules/sys_utsname (Depends-on): Update.
15574         * modules/time (Depends-on): Update.
15575         * modules/unistd (Depends-on): Update.
15576         * modules/wchar (Depends-on): Update.
15577         * MODULES.html.sh (Support for building libraries and executables):
15578         Update.
15579
15580 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
15581
15582         Improvements on _Noreturn and related modules.
15583
15584         modules/_Exit-tests: test _Noreturn too
15585         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
15586         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
15587         (main): Use them.
15588
15589         stdnoreturn, stdnoreturn-tests: remove modules
15590         They're not needed here and a bit premature for use elsewhere.  See
15591         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
15592         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
15593         * tests/test-stdnoreturn.c: Remove files.
15594         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
15595         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
15596         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
15597         and using noreturn.
15598         * modules/openat, modules/sigpipe-die, modules/xalloc:
15599         * modules/xmemdup0, modules/xstrtol:
15600         Remove dependency on stdnoreturn.
15601
15602         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
15603         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
15604         Reparenthesize to avoid GCC warning.
15605         Support Microsoft's syntax.
15606         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
15607
15608         _Noreturn-tests: remove module
15609         * modules/_Noreturn-tests: Remove.
15610         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
15611         * tests/test-_Noreturn.c: Remove.
15612         * tests/test-stdnoreturn.c: Merge from the old
15613         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
15614
15615 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
15616
15617         _Noreturn, stdnoreturn, and related modules.
15618
15619         * top/maint.mk: Adjust to new noreturn support.
15620         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
15621         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
15622
15623         xalloc: use stdnoreturn.h
15624         * lib/xalloc.h: Include <stdnoreturn.h>.
15625         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
15626         * modules/xalloc (Depends-on): Add stdnoreturn.
15627
15628         xstrtol: use stdnoreturn.h
15629         * lib/xstrtol.h: Include <stdnoreturn.h>.
15630         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
15631         * modules/xstrtol (Depends-on): Add stdnoreturn.
15632
15633         xmemdup0: use stdnoreturn.h
15634         * lib/xmemdup0.h: Include <stdnoreturn.h>.
15635         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
15636         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
15637
15638         sigpipe-die: use stdnoreturn.h
15639         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
15640         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
15641         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
15642
15643         openat: use stdnoreturn.h
15644         * lib/openat.h: Include <stdnoreturn.h>.
15645         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
15646         * modules/openat (Depends-on): Add stdnoreturn.
15647
15648         * lib/openat-die.c (openat_save_fail): Modernize comment.
15649
15650         * lib/xalloc-die.c (xalloc_die): Modernize comment.
15651
15652         * lib/glthread/thread.h: Modernize comment.
15653
15654         obstack: use _Noreturn
15655         * lib/obstack.c (__attribute__): Remove macro.
15656         (print_and_abort): Use _Noreturn.
15657
15658         c-stack: use _Noreturn
15659         * lib/c-stack.c (die, overflow_handler, segv_handler):
15660         Use _Noreturn rather than __attribute__((noreturn)).
15661
15662         argmatch-tests, exclude_tests: use _Noreturn
15663         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
15664         Remove.
15665         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
15666
15667         stdlib: use _Noreturn
15668         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
15669         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
15670         * modules/stdlib (Depends-on): Add _Noreturn.
15671         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
15672
15673         stdnoreturn-tests: new module
15674         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
15675
15676         stdnoreturn: new module
15677         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
15678         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
15679
15680         _Noreturn-tests: new module
15681         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
15682
15683         _Noreturn: new module
15684         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
15685         New section, mentioning it.
15686         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
15687
15688         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
15689
15690 2011-07-11  Eric Blake  <eblake@redhat.com>
15691
15692         ffs: new module
15693         * modules/ffs: New file.
15694         * m4/ffs.m4: Likewise.
15695         * lib/ffs.c: Likewise.
15696         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
15697         * modules/strings (Makefile.am): Substitute witness.
15698         (Depends-on): Add c++defs.
15699         * lib/strings.in.h (ffs): Declare.
15700         * modules/ffs-tests: New test file.
15701         * tests/test-ffs.c: Test new module.
15702         * MODULES.html.sh (Integer arithmetic functions): Mention it.
15703         * doc/posix-functions/ffs.texi (ffs): Likewise.
15704
15705         regex: avoid compiler warning
15706         * lib/regex.c (includes): Include <strings.h>, for use of
15707         strcasecmp in regcomp.c.
15708         Reported by Joachim Schmitz.
15709
15710 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
15711
15712         stdint: respect system's intmax_t if INTMAX_MAX
15713         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
15714         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
15715         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
15716         long but int64_t is long long, and where we will clash with the
15717         system intmax_t if we override it.  See
15718         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
15719         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
15720         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
15721         similarly for UINTMAX_C.
15722
15723 2011-07-08  Bruno Haible  <bruno@clisp.org>
15724
15725         pthread_sigmask tests: Avoid a compiler warning.
15726         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
15727         non-zero.
15728
15729         sigprocmask tests: A better way to avoid a compiler warning.
15730         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
15731         (main): Complain if system() returns non-zero.
15732         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
15733
15734 2011-07-08  Bruno Haible  <bruno@clisp.org>
15735
15736         pthread_sigmask: Work around IRIX bug.
15737         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
15738         bug.
15739         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
15740         there may be unblocked pending signals.
15741         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
15742
15743 2011-07-08  Bruno Haible  <bruno@clisp.org>
15744
15745         pthread_sigmask: Work around Cygwin bug.
15746         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
15747         bug.
15748         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
15749         the system's pthread_sigmask function.
15750         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
15751
15752 2011-07-08  Bruno Haible  <bruno@clisp.org>
15753
15754         pthread_sigmask: Work around bug in single-threaded implementation.
15755         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
15756         FreeBSD, HP-UX, Solaris bug.
15757         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
15758         * lib/pthread_sigmask.c: Include <stddef.h>.
15759         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
15760         the system's pthread_sigmask function.
15761         * modules/pthread_sigmask (configure.ac): Invoke
15762         gl_PREREQ_PTHREAD_SIGMASK.
15763         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
15764         HP-UX, Solaris.
15765
15766 2011-07-08  Eric Blake  <eblake@redhat.com>
15767
15768         test-sigprocmask: avoid compiler warning
15769         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
15770         * tests/test-sigprocmask.c (main): Use it to silence warning.
15771         Reported by Jim Meyering.
15772
15773         test-snprintf: avoid compiler warning
15774         * tests/test-snprintf.c (main): Avoid shadowed declaration.
15775         * tests/test-vsnprintf.c (main): Likewise.
15776         Reported by Jim Meyering.
15777
15778 2011-07-08  Bruno Haible  <bruno@clisp.org>
15779
15780         Tests for module 'pthread_sigmask'.
15781         * modules/pthread_sigmask-tests: New file.
15782         * tests/test-pthread_sigmask1.c: New file, based on
15783         tests/test-sigprocmask.c.
15784         * tests/test-pthread_sigmask2.c: New file.
15785
15786 2011-07-08  Jim Meyering  <meyering@redhat.com>
15787
15788         test-getopt.h: avoid warning about an unused variable
15789         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
15790
15791 2011-07-07  Jim Meyering  <meyering@redhat.com>
15792
15793         maint: reduce list of files exempt from sc_prohibit_leading_TABs
15794         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
15795         now that it no longer contains leading TABs.
15796         Remove unused "url=FIXME" statement.
15797
15798 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
15799
15800         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
15801         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
15802         When gl_THREADLIB is not in use, assume that the POSIX sematics
15803         are desired.  This is better for Emacs, which uses POSIX semantics
15804         on GNUish and/or POSIXish platforms, and does not use threads at
15805         all otherwise.
15806
15807         pthread_sigmask: fix typo when testing for libraries
15808         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
15809         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
15810
15811 2011-07-08  Eric Blake  <eblake@redhat.com>
15812
15813         fts: introduce FTS_NOATIME
15814         * lib/fts_.h (FTS_NOATIME): New bit flag.
15815         (FTS_OPTIONMASK): Adjust.
15816         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
15817         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
15818
15819 2011-07-08  Bruno Haible  <bruno@clisp.org>
15820
15821         Tests for module 'thread'.
15822         * modules/thread-tests: New file.
15823         * tests/test-thread_self.c: New file.
15824         * tests/test-thread_create.cc: New file.
15825
15826 2011-07-08  Bruno Haible  <bruno@clisp.org>
15827
15828         thread: Avoid gcc warnings when using gl_thread_self().
15829         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
15830         'void *'.
15831         (gl_thread_self_pointer): Update.
15832
15833 2011-07-07  Bruno Haible  <bruno@clisp.org>
15834
15835         signal-c++-tests: Check declaration of pthread_sigmask.
15836         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
15837         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
15838         $(LIB_PTHREAD_SIGMASK).
15839
15840 2011-07-07  Bruno Haible  <bruno@clisp.org>
15841
15842         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
15843         * lib/signal.in.h (pthread_sigmask): Override if
15844         REPLACE_PTHREAD_SIGMASK is 1.
15845         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
15846         REPLACE_PTHREAD_SIGMASK.
15847         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
15848         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
15849         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
15850         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
15851         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
15852
15853 2011-07-07  Bruno Haible  <bruno@clisp.org>
15854
15855         pthread_sigmask: Ensure declaration in <signal.h>.
15856         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
15857         include <pthread.h>.
15858         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
15859         problem.
15860
15861 2011-07-07  Bruno Haible  <bruno@clisp.org>
15862
15863         pthread_sigmask: Document the module.
15864         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
15865
15866 2011-07-07  Bruno Haible  <bruno@clisp.org>
15867
15868         pthread_sigmask: Follow gnulib conventions.
15869         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
15870         gl_PTHREAD_SIGMASK.
15871         * modules/pthread_sigmask (configure.ac): Update.
15872
15873 2011-07-07  Bruno Haible  <bruno@clisp.org>
15874
15875         pthread_sigmask: Make declaration C++ safe.
15876         * lib/signal.in.h: In two special conditions, just do an #include_next.
15877         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
15878         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
15879         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
15880         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
15881         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
15882         not REPLACE_PTHREAD_MASK.
15883         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
15884         not REPLACE_PTHREAD_MASK.
15885         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
15886
15887 2011-07-07  Bruno Haible  <bruno@clisp.org>
15888
15889         pthread_sigmask: Fix return value.
15890         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
15891         * lib/pthread_sigmask.c: New file.
15892         * modules/pthread_sigmask (Files): Add it.
15893         (configure.ac): Invoke AC_LIBOBJ.
15894
15895 2011-07-07  Eric Blake  <eblake@redhat.com>
15896
15897         getopt: more portable argv creation
15898         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
15899         const, use char arrays rather than strings.
15900         Suggested by Paul Eggert.
15901
15902 2011-07-07  Bruno Haible  <bruno@clisp.org>
15903
15904         Tests for module 'sigprocmask'.
15905         * modules/sigprocmask-tests: New file.
15906         * tests/test-sigprocmask.c: New file.
15907
15908 2011-07-07  Bruno Haible  <bruno@clisp.org>
15909
15910         float tests: Tweak.
15911         * tests/test-float.c (main): Tweak skip message.
15912
15913 2011-07-07  Eric Blake  <eblake@redhat.com>
15914
15915         getopt: avoid compiler warning during configure
15916         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
15917         assigning string literals to non-const pointer.
15918
15919         getopt-gnu: avoid crash in glibc getopt
15920         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
15921         * tests/test-getopt.h (test_getopt): Enhance test.
15922         * tests/test-getopt_long.h (test_getopt_long): Likewise.
15923         * doc/posix-functions/getopt.texi (getopt): Document it.
15924         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
15925         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
15926         Likewise.
15927
15928 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
15929
15930         getopt: handle W; without long options in getopt [BZ #12922]
15931         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
15932         but no long options are defined, just return 'W'.
15933
15934 2011-07-07  Bruno Haible  <bruno@clisp.org>
15935
15936         Avoid literal tabs.
15937         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
15938         variable containing a tab instead of a literal tab.
15939         Reported by Jim Meyering.
15940
15941 2011-07-07  Bruno Haible  <bruno@clisp.org>
15942
15943         Comments.
15944         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
15945
15946 2011-07-06  Bruno Haible  <bruno@clisp.org>
15947
15948         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
15949         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
15950         <winsock2.h>.
15951         (rpl_fd_isset, FD_ISSET): New definitions, copied from
15952         lib/sys_socket.in.h.
15953         (close, gethostname): Hide declarations from <winsock2.h>.
15954         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
15955         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
15956         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
15957         (select): Don't override if gnulib's <sys/select.h> was already
15958         included.
15959         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
15960         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
15961         setsockopt, shutdown, select): Tweak indentation.
15962
15963 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
15964
15965         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
15966         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
15967         in an application that does not use the sys_select module.
15968
15969 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
15970
15971         poll: do not return 0 on timeout=-1
15972         * lib/poll.c: Loop with yield if no events occurred.
15973
15974 2011-07-06  Eric Blake  <eblake@redhat.com>
15975
15976         pthread_sigmask: always replace when not using pthread
15977         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
15978         replacement when using some threading other than pthread.  Fix
15979         logic bug.
15980
15981 2011-07-06  Bruno Haible  <bruno@clisp.org>
15982
15983         Comments.
15984         * m4/printf.m4: Update comments about mingw.
15985
15986 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
15987
15988         sys_select: define sigset_t more portably
15989         * lib/sys_select.in.h: Always include <sys/types.h>, since
15990         we now need sigset_t and mingw defines it there.
15991         Include <signal.h> before split inclusion guard, to avoid
15992         mishaps on Solaris, whose <signal.h> eventually includes us.
15993         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
15994         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
15995         which come from ...
15996         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
15997         gl_CHECK_TYPE_SIGSET_T.
15998         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
15999         does the real work.
16000         * modules/sys_select (Depends-on): Add 'signal'.
16001
16002         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
16003         Suggested by Bruno Haible.
16004
16005         pselect: Use pthread_sigmask, not sigprocmask.
16006         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
16007         multithreaded apps better than sigprocmask does.
16008         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
16009         sigprocmask directly.
16010
16011 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
16012
16013         * lib/pselect.c (pselect): Use plain name, without "rpl_".
16014         Don't #undef,  since we don't need any underlying pselect.
16015         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
16016         (Depends-on): Add select.
16017         (Link): Add $(LIBSOCKET).
16018         These changes suggested by Bruno Haible.
16019
16020         pselect: document better
16021         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
16022         * doc/posix-functions/pselect.texi (pselect): Document new module.
16023
16024         pthread_sigmask: new module
16025         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
16026         * doc/posix-functions/pthread_sigmask.texi: Document new module.
16027         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
16028         This is done only as a macro; I don't know how well that'll
16029         work for C++.  Move <sys/types.h> include before the include_next,
16030         to avoid mishap on Solaris.
16031         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
16032         * modules/signal (Makefile.am): Substitute the check's results.
16033         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
16034
16035         test-pselect: new module
16036         * modules/pselect-tests, tests/test-pselect.c: New files.
16037         * tests/test-select.c, tests/test-sys_select-c++.cc:
16038         If TEST_PSELECT is defined, test pselect instead of testing select.
16039
16040         * tests/test-sys_select.c (sigset_t): Test for it, too.
16041         Suggested by Bruno Haible.
16042
16043 2011-07-05  Eric Blake  <eblake@redhat.com>
16044
16045         snprintf: guarantee %1$d, for libintl
16046         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
16047         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
16048         * doc/posix-functions/snprintf.texi (snprintf): Update.
16049         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
16050         * tests/test-snprintf.c (main): Enhance test.
16051         * tests/test-vsnprintf.c (main): Likewise.
16052
16053 2011-07-05  Jim Meyering  <meyering@redhat.com>
16054
16055         maint: exempt stdio-read.c and stdio-write.c from the cppi check
16056         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
16057         per Bruno's request, to accommodate this idiom (no space after "#")
16058         even when the function is inside an #if block:
16059         char *
16060         gets (char *s)
16061         #undef gets
16062         {
16063           ...
16064         }
16065
16066 2011-07-04  Jim Meyering  <meyering@redhat.com>
16067
16068         maint: indent with spaces, not TABs, and add a rule to check this
16069         * tests/test-userspec.c: Indent with spaces, not TABs.
16070         * tests/test-argp.c: Likewise.
16071         * tests/test-c-stack2.sh: Likewise.
16072         * tests/test-parse-duration.sh: Likewise
16073         * m4/strtod.m4: Likewise.
16074         * m4/alloca.m4: Likewise.
16075         * m4/pselect.m4: Likewise.
16076         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
16077
16078 2011-07-03  Jim Meyering  <meyering@redhat.com>
16079
16080         maint.mk: correct omissions in prohibit_argmatch_without_use check
16081         This rule would mistakenly report that argmatch.h is included without
16082         use even when both the argmatch and invalid_arg macro were used.
16083         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
16084         of argmatch and invalid_arg.
16085
16086 2011-07-03  Bruno Haible  <bruno@clisp.org>
16087
16088         Comments about EINTR.
16089         * lib/safe-read.h: Explain the purpose of this module.
16090         * lib/safe-write.h: Likewise.
16091         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
16092         module.
16093         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
16094         module.
16095         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
16096
16097 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
16098
16099         xnanosleep: Rewrite to use new dtotimespec module.
16100         It has the conversion code that used to be in xnanosleep.
16101         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
16102         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
16103         (TIME_T_MAX): Remove.
16104         (xnanosleep): Rewrite in terms of dtotimespec.
16105         * modules/xnanosleep (Depends-on): Add dtotimespec.
16106         Remove intprops, stdbool.
16107
16108         timespec-add, timespec-sub: new modules
16109         * lib/timespec.h (timespec_add, timespec_sub): New decls.
16110         * lib/timespec-add.c, lib/timespec-sub.c:
16111         * modules/timespec-add, modules/timespec-sub: New files.
16112
16113         dtotimespec: new module
16114         * lib/timespec.h (dtotimespec): New decl.
16115         * lib/dtotimespec.c, modules/dtotimespec: New files.
16116
16117         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
16118
16119         pselect: new module
16120         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
16121         (pselect): New decls.
16122         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
16123         since the standard pselect decl uses 'restrict'.
16124         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
16125         HAVE_PSELECT, REPLACE_PSELECT.
16126         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
16127         HAVE_PSELECT, REPLACE_PSELECT.
16128         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
16129
16130         sys_select: don't depend on sys_socket
16131         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
16132         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
16133         This fix works on GNU and GNU-like platforms, but has not been tested
16134         on native Windows.
16135         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
16136         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
16137         gl_HEADER_SYS_SOCKET.
16138         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
16139         gl_PREREQ_SYS_H_WINSOCK2.
16140
16141 2011-06-29  Eric Blake  <eblake@redhat.com>
16142
16143         pipe2: fix C89 compile problem
16144         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
16145         Reported by Bruno Haible.
16146
16147         pipe, pipe2: don't corrupt fd on error
16148         * lib/pipe.c (pipe): Leave fd unchanged on error.
16149         * lib/pipe2.c (pipe2): Likewise.
16150         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
16151         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
16152
16153 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
16154
16155         mmap-anon: do not use regular expressions inadvertently
16156         * m4/mmap-anon.m4: Remove trailing period from strings sought
16157         in the output.
16158
16159 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
16160
16161         nanosleep: fix integer overflow problem
16162         * lib/nanosleep.c (my_usleep): Don't assume signed integer
16163         arithmetic wraps around on overflow.
16164
16165         nanosleep: simplify carrying
16166         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
16167         first call to the underyling nanosleep, not for the last one.
16168         This doesn't fix any bugs, but it simplifies the computation of
16169         the remaining delay.  Found while auditing integer overflow issues.
16170
16171         dup2: remove test for existence of fcntl
16172         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
16173         "#if HAVE_FCNTL", in the configure-time test program.
16174         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
16175         and therefore speeds up "configure" a bit.  Found while
16176         adding the dup2 module to Emacs.
16177
16178 2011-06-24  Eric Blake  <eblake@redhat.com>
16179
16180         maint.mk: enhance useless header checks
16181         * top/maint.mk (_sc_header_without_use): Check both include
16182         styles.
16183         (sc_prohibit_assert_without_use)
16184         (sc_prohibit_close_stream_without_use)
16185         (sc_prohibit_getopt_without_use)
16186         (sc_prohibit_quotearg_without_use)
16187         (sc_prohibit_quote_without_use)
16188         (sc_prohibit_long_options_without_use)
16189         (sc_prohibit_inttostr_without_use)
16190         (sc_prohibit_ignore_value_without_use)
16191         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
16192         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
16193         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
16194         (sc_prohibit_hash_pjw_without_use)
16195         (sc_prohibit_safe_read_without_use)
16196         (sc_prohibit_argmatch_without_use)
16197         (sc_prohibit_canonicalize_without_use)
16198         (sc_prohibit_root_dev_ino_without_use)
16199         (sc_prohibit_openat_without_use)
16200         (sc_prohibit_c_ctype_without_use)
16201         (sc_prohibit_signal_without_use)
16202         (sc_prohibit_stdio--_without_use)
16203         (sc_prohibit_stdio-safer_without_use)
16204         (sc_prohibit_strings_without_use)
16205         (sc_prohibit_intprops_without_use)
16206         (sc_prohibit_stddef_without_use)
16207         (sc_prohibit_xfreopen_without_use): Update clients.
16208
16209 2011-06-24  Jim Meyering  <meyering@redhat.com>
16210
16211         syntax-check: keep one maint.mk rule in sync with its header
16212         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
16213         of the bug Eric has just fixed, with today's commit 25e4c2ec.
16214         I prefer to avoid temporary files here, so use <(...), but that
16215         is not supported by /bin/sh, so...
16216         (SHELL): Define to /bin/bash.
16217
16218 2011-06-24  Eric Blake  <eblake@redhat.com>
16219
16220         maint.mk: update sc_prohibit_intprops_without_use
16221         * top/maint.mk (_intprops_names): Match recent changes.
16222
16223 2011-06-24  Bruno Haible  <bruno@clisp.org>
16224
16225         strerror-override: No-op tweak.
16226         * lib/strerror-override.h (strerror_override): Reorder conditions,
16227         for consistency with lib/strerror-override.c.
16228
16229 2011-06-23  Eric Blake  <eblake@redhat.com>
16230
16231         maint.mk: test further PATH_MAX issues
16232         * top/maint.mk (sc_prohibit_path_max_array): Rename...
16233         (sc_prohibit_path_max_allocation): ...and also test alloca.
16234         Suggested by Jim Meyering.
16235
16236 2011-06-22  Eric Blake  <eblake@redhat.com>
16237
16238         maint.mk: add syntax-check to avoid char[PATH_MAX]
16239         * top/maint.mk (sc_prohibit_path_max_array): New rule.
16240
16241         stat: be robust to PATH_MAX definition
16242         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
16243         * modules/stat (Depends-on): Add verify.
16244
16245         link: work around IRIX bug
16246         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
16247         * lib/link.c (rpl_link): Work around it.
16248         * tests/test-link.h (test_link): Enhance test.
16249         * doc/posix-functions/link.texi (link): Document the bug.
16250
16251         getopt: silence clang warning
16252         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
16253         dereference.
16254         Reported by Gustavo Martin Domato.
16255
16256 2011-06-22  Jim Meyering  <meyering@redhat.com>
16257
16258         bootstrap: do not insert a blank line into each .gitignore file
16259         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
16260
16261 2011-06-21  Eric Blake  <eblake@redhat.com>
16262
16263         perror: test for output mismatch
16264         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
16265         perror on IRIX.
16266
16267         strerror_r: fix OpenBSD behavior on out-of-range
16268         * lib/strerror_r.c (strerror_r): Always use maximal string.
16269         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
16270
16271         strerror_r: fix OpenBSD behavior on 0
16272         * lib/strerror-override.c (strerror_override): Also override 0
16273         when needed.
16274         * lib/strerror-override.h (strerror_override): Likewise.
16275         * lib/strerror.c (strerror): Simplify, now that 0 override is done
16276         earlier.
16277         * lib/strerror_r.c (strerror_r): Likewise.
16278         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
16279         behavior...
16280         (gl_FUNC_STRERROR_0): ...into new macro.
16281         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
16282         is overridden.
16283         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
16284         * modules/strerror-override (Files): Add strerror.m4.
16285         (configure.ac): Also provide override for 0 when needed.
16286         * doc/posix-functions/strerror.texi (strerror): Document this.
16287         * doc/posix-functions/perror.texi (perror): Likewise.
16288
16289         perror: adjust array size
16290         * modules/perror (Depends-on): Add strerror-override.
16291         * lib/perror.c (perror): Use it to avoid magic number.
16292
16293         strerror-override: reduce size
16294         * lib/strerror-override.c (strerror_override): Use fewer lines.
16295
16296 2011-06-20  Bruno Haible  <bruno@clisp.org>
16297
16298         pathmax: Ensure correct value for PATH_MAX on HP-UX.
16299         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
16300
16301 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
16302
16303         alloca: port to compilers that can optimize like GCC 4.6.0
16304         * lib/alloca.c (find_stack_direction): New signature, taken from
16305         Autoconf git.  This works with GCC 4.6.0.  This code should never
16306         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
16307         be used with other compilers that optimize as well as GCC 4.6.0 does.
16308         (alloca): Adjust to new signature.
16309         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
16310         New macro, which patches Autoconf in a similar way.
16311
16312         c-stack: stop worrying about stack direction
16313         * lib/c-stack.c (find_stack_direction): Remove.
16314         (segv_handler): Don't worry about stack direction growth, as it's
16315         too much of a pain to configure this correctly, given how compilers
16316         are optimizing-away our stack-growth detection code.  Instead, assume
16317         that any access to just before or just after the stack is OK.
16318         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
16319         Don't require AC_FUNC_ALLOCA; no longer needed.
16320
16321 2011-06-20  Eric Blake  <eblake@redhat.com>
16322
16323         test-stat: don't allocate PATH_MAX bytes
16324         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
16325         PATH_MAX-sized buffer.
16326         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
16327         * modules/stat-tests (Depends-on): Likewise.
16328         * tests/test-fstatat.c (includes): Drop pathmax.h.
16329         * tests/test-stat.c (includes): Likewise.
16330         Reported by Bruno Haible.
16331
16332 2011-06-20  Bruno Haible  <bruno@clisp.org>
16333
16334         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
16335         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
16336         * lib/float.c: New file.
16337         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
16338         REPLACE_FLOAT_LDBL.
16339         * modules/float (Files): Add lib/float.c.
16340         (configure.ac): Invoke AC_LIBOBJ.
16341         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
16342
16343 2011-06-20  Bruno Haible  <bruno@clisp.org>
16344
16345         Tests for module 'float'.
16346         * modules/float-tests: New file.
16347         * tests/test-float.c: New file.
16348
16349 2011-06-19  Bruno Haible  <bruno@clisp.org>
16350
16351         isinf: Coding style.
16352         * lib/isinf.c: Use GNU coding style.
16353
16354 2011-06-19  Bruno Haible  <bruno@clisp.org>
16355
16356         linkat test: Avoid test failure on AIX 7.1.
16357         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
16358         * tests/test-link.h (test_link): Likewise.
16359
16360 2011-06-19  Bruno Haible  <bruno@clisp.org>
16361
16362         pread test: Avoid test failure on OpenBSD 4.9.
16363         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
16364
16365 2011-06-19  Bruno Haible  <bruno@clisp.org>
16366
16367         sprintf-posix: Fix test failure on AIX 7.1.
16368         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
16369         * doc/posix-functions/dprintf.texi: Mention limited precision problem
16370         on AIX.
16371         * doc/posix-functions/fprintf.texi: Likewise.
16372         * doc/posix-functions/printf.texi: Likewise.
16373         * doc/posix-functions/snprintf.texi: Likewise.
16374         * doc/posix-functions/sprintf.texi: Likewise.
16375         * doc/posix-functions/vdprintf.texi: Likewise.
16376         * doc/posix-functions/vfprintf.texi: Likewise.
16377         * doc/posix-functions/vprintf.texi: Likewise.
16378         * doc/posix-functions/vsnprintf.texi: Likewise.
16379         * doc/posix-functions/vsprintf.texi: Likewise.
16380
16381 2011-06-19  Bruno Haible  <bruno@clisp.org>
16382
16383         roundl-ieee: Fix test failure on AIX 7.1.
16384         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
16385         * doc/posix-functions/roundl.texi: Mention problem with negative
16386         arguments.
16387
16388 2011-06-19  Bruno Haible  <bruno@clisp.org>
16389
16390         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
16391         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
16392         * doc/posix-functions/round.texi: Mention problem with negative
16393         arguments.
16394         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
16395
16396 2011-06-19  Bruno Haible  <bruno@clisp.org>
16397
16398         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
16399         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
16400         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
16401         * doc/posix-functions/roundf.texi: Mention problem with negative
16402         arguments.
16403         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
16404
16405 2011-06-19  Bruno Haible  <bruno@clisp.org>
16406
16407         ceilf-ieee: Work around bug on MacOS X 10.5.
16408         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
16409
16410         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
16411         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
16412         IEEE compliant, avoid compiler optimizations.
16413         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
16414         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
16415         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
16416         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
16417         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
16418         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
16419         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
16420         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
16421         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
16422         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
16423
16424 2011-06-19  Bruno Haible  <bruno@clisp.org>
16425
16426         ceilf-ieee: Work around bug on AIX 7.1.
16427         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
16428         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
16429
16430 2011-06-19  Bruno Haible  <bruno@clisp.org>
16431
16432         ceil-ieee: Work around bug on AIX 7.1.
16433         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
16434         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
16435
16436 2011-06-18  Bruno Haible  <bruno@clisp.org>
16437
16438         fsync test: Avoid test failure on MacOS X and AIX.
16439         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
16440         EINVAL.
16441
16442 2011-06-18  Bruno Haible  <bruno@clisp.org>
16443
16444         openat, fdopendir tests: Fix link errors.
16445         * modules/openat-tests (Depends-on): Add progname.
16446         * modules/fdopendir-tests (Depends-on): Likewise.
16447         * tests/test-fchownat.c: Include progname.h.
16448         (main): Call set_program_name.
16449         * tests/test-fstatat.c: Include progname.h.
16450         (main): Call set_program_name.
16451         * tests/test-mkdirat.c: Include progname.h.
16452         (main): Call set_program_name.
16453         * tests/test-openat.c: Include progname.h.
16454         (main): Call set_program_name.
16455         * tests/test-unlinkat.c: Include progname.h.
16456         (main): Call set_program_name.
16457         * tests/test-fdopendir.c: Include progname.h.
16458         (main): Call set_program_name.
16459
16460 2011-06-18  Bruno Haible  <bruno@clisp.org>
16461
16462         Doc update.
16463         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
16464         HP-UX.
16465         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
16466
16467 2011-06-18  Bruno Haible  <bruno@clisp.org>
16468
16469         getcwd tests: Avoid compilation error on HP-UX 11.31.
16470         * modules/getcwd-tests (Depends-on): Add pathmax.
16471         * tests/test-getcwd.c: Include pathmax.h.
16472
16473 2011-06-18  Bruno Haible  <bruno@clisp.org>
16474
16475         isfinite, isinf: Fix link error on AIX 6 and 7.
16476         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
16477         needed, also test the macro with a 'float' argument.
16478         * m4/isinf.m4 (gl_ISINF): Likewise.
16479
16480 2011-06-18  Bruno Haible  <bruno@clisp.org>
16481
16482         getloadavg: Don't clobber LIBS. Regression from previous commit.
16483         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
16484         AC_CHECK_LIB from here...
16485         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
16486         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
16487         gl_func_getloadavg_done.
16488         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16489
16490 2011-06-18  Bruno Haible  <bruno@clisp.org>
16491
16492         clean-temp: Improve documentation.
16493         * lib/clean-temp.h: Explain better how to use this module.
16494         Reported by John Darrington <john@darrington.wattle.id.au>.
16495
16496 2011-06-17  Bruno Haible  <bruno@clisp.org>
16497
16498         pread, pwrite: Avoid cc warning on AIX.
16499         * lib/unistd.in.h (pread): Undefine before defining as a macro.
16500         (pwrite): Likewise.
16501
16502 2011-06-17  Bruno Haible  <bruno@clisp.org>
16503
16504         spawn-pipe tests: Fix link error.
16505         * tests/test-spawn-pipe-child.c: Undefine fprintf.
16506         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16507
16508 2011-06-17  Bruno Haible  <bruno@clisp.org>
16509
16510         Tests: Remove unnecessary dependency.
16511         * modules/canonicalize-tests (Depends-on): Remove progname.
16512         * modules/chown-tests (Depends-on): Likewise.
16513         * modules/dirname-tests (Depends-on): Likewise.
16514         * modules/fdopendir-tests (Depends-on): Likewise.
16515         * modules/fdutimensat-tests (Depends-on): Likewise.
16516         * modules/hash-tests (Depends-on): Likewise.
16517         * modules/lchown-tests (Depends-on): Likewise.
16518         * modules/linkat-tests (Depends-on): Likewise.
16519         * modules/renameat-tests (Depends-on): Likewise.
16520         * modules/spawn-pipe-tests (Depends-on): Likewise.
16521         * modules/utimensat-tests (Depends-on): Likewise.
16522
16523 2011-06-17  Bruno Haible  <bruno@clisp.org>
16524
16525         spawn-pipe tests: Fix link error.
16526         * tests/test-spawn-pipe-child.c: Undefine fflush.
16527
16528 2011-06-17  Bruno Haible  <bruno@clisp.org>
16529
16530         Fix tests link errors.
16531         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
16532         * modules/chown-tests (Makefile.am): Don't link test-chown with
16533         LIBINTL.
16534         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
16535         LIBINTL.
16536         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
16537         LIBINTL.
16538         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
16539         LIBINTL.
16540
16541 2011-06-16  Bruno Haible  <bruno@clisp.org>
16542
16543         crypto/gc-sha1: Fix recent regression.
16544         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
16545         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
16546
16547         crypto/gc-md5: Fix recent regression.
16548         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
16549
16550         crypto/gc-md4: Fix recent regression.
16551         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
16552         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
16553
16554         crypto/gc-arctwo: Fix recent regression.
16555         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
16556         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
16557
16558         crypto/gc-rijndael: Fix recent regression.
16559         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
16560         (configure.ac): Invoke AC_LIBOBJ here.
16561         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
16562         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16563
16564         crypto/gc-hmac-sha1: Fix recent regression.
16565         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
16566         (configure.ac): Invoke AC_LIBOBJ here.
16567         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
16568         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16569
16570         crypto/gc-hmac-md5: Fix recent regression.
16571         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
16572         (configure.ac): Invoke AC_LIBOBJ here.
16573         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
16574         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16575
16576         crypto/gc-des: Fix recent regression.
16577         * modules/crypto/gc-des (Files): Remove m4/des.m4.
16578         (configure.ac): Invoke AC_LIBOBJ here.
16579         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
16580         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16581
16582         crypto/gc-arcfour: Fix recent regression.
16583         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
16584         (configure.ac): Invoke AC_LIBOBJ here.
16585         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
16586         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16587
16588 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
16589
16590         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
16591         After the 2011-05-21 change, this macro requires
16592         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
16593         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
16594
16595 2011-06-16  Bruno Haible  <bruno@clisp.org>
16596
16597         fprintftime: Move AC_LIBOBJ invocations to module description.
16598         * m4/fprintftime.m4: Remove file.
16599         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
16600         (configure.ac): Remove gl_FPRINTFTIME call.
16601         (Makefile.am): Augment lib_SOURCES.
16602         Reported by Jim Meyering.
16603
16604 2011-06-16  Bruno Haible  <bruno@clisp.org>
16605
16606         tmpfile-safer: Finish 2011-05-23 commit.
16607         * m4/stdio-safer.m4: Really remove file.
16608         Reported by Jim Meyering.
16609
16610 2011-06-16  Bruno Haible  <bruno@clisp.org>
16611
16612         syntax-check: Fix typo.
16613         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
16614         printf-posix.m4.
16615         Reported by Jim Meyering.
16616
16617 2011-06-13  Jim Meyering  <meyering@redhat.com>
16618
16619         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
16620         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
16621
16622 2011-05-23  Bruno Haible  <bruno@clisp.org>
16623
16624         yesno: Move AC_LIBOBJ invocations to module description.
16625         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
16626         * modules/yesno (Makefile.am): Augment lib_SOURCES.
16627
16628 2011-05-23  Bruno Haible  <bruno@clisp.org>
16629
16630         xstrtol: Move AC_LIBOBJ invocations to module description.
16631         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
16632         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
16633
16634 2011-05-23  Bruno Haible  <bruno@clisp.org>
16635
16636         xstrtold: Move AC_LIBOBJ invocations to module description.
16637         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
16638         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
16639
16640 2011-05-23  Bruno Haible  <bruno@clisp.org>
16641
16642         xstrtod: Move AC_LIBOBJ invocations to module description.
16643         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
16644         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
16645
16646 2011-05-23  Bruno Haible  <bruno@clisp.org>
16647
16648         xnanosleep: Move AC_LIBOBJ invocations to module description.
16649         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
16650         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
16651
16652 2011-05-23  Bruno Haible  <bruno@clisp.org>
16653
16654         xgetcwd: Move AC_LIBOBJ invocations to module description.
16655         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
16656         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
16657
16658 2011-05-23  Bruno Haible  <bruno@clisp.org>
16659
16660         xalloc: Move AC_LIBOBJ invocations to module description.
16661         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
16662         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
16663
16664 2011-05-23  Bruno Haible  <bruno@clisp.org>
16665
16666         write-any-file: Move AC_LIBOBJ invocations to module description.
16667         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
16668         invocation.
16669         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
16670
16671 2011-05-23  Bruno Haible  <bruno@clisp.org>
16672
16673         utimens: Move AC_LIBOBJ invocations to module description.
16674         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
16675         * modules/utimens (Makefile.am): Augment lib_SOURCES.
16676
16677 2011-05-23  Bruno Haible  <bruno@clisp.org>
16678
16679         utimecmp: Move AC_LIBOBJ invocations to module description.
16680         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
16681         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
16682
16683 2011-05-23  Bruno Haible  <bruno@clisp.org>
16684
16685         userspec: Move AC_LIBOBJ invocations to module description.
16686         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
16687         * modules/userspec (Makefile.am): Augment lib_SOURCES.
16688
16689 2011-05-23  Bruno Haible  <bruno@clisp.org>
16690
16691         unlinkdir: Move AC_LIBOBJ invocations to module description.
16692         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
16693         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
16694
16695 2011-05-23  Bruno Haible  <bruno@clisp.org>
16696
16697         unistd-safer: Move AC_LIBOBJ invocations to module description.
16698         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
16699         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
16700
16701 2011-05-23  Bruno Haible  <bruno@clisp.org>
16702
16703         tempname: Move AC_LIBOBJ invocations to module description.
16704         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
16705         * modules/tempname (Makefile.am): Augment lib_SOURCES.
16706
16707 2011-05-23  Bruno Haible  <bruno@clisp.org>
16708
16709         strftime: Move AC_LIBOBJ invocations to module description.
16710         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
16711         * modules/strftime (Makefile.am): Augment lib_SOURCES.
16712
16713 2011-05-23  Bruno Haible  <bruno@clisp.org>
16714
16715         stdlib-safer: Move AC_LIBOBJ invocations to module description.
16716         * m4/stdlib-safer.m4: Remove file.
16717         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
16718         (configure.ac): Remove gl_STDLIB_SAFER call.
16719         (Makefile.am): Augment lib_SOURCES.
16720
16721 2011-05-23  Bruno Haible  <bruno@clisp.org>
16722
16723         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
16724         * m4/stdio-safer.m4: Remove file.
16725         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
16726         (configure.ac): Remove gl_TMPFILE_SAFER call.
16727         (Makefile.am): Augment lib_SOURCES.
16728
16729 2011-05-23  Bruno Haible  <bruno@clisp.org>
16730
16731         popen-safer: Move AC_LIBOBJ invocations to module description.
16732         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
16733         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
16734         (configure.ac): Remove gl_POPEN_SAFER call.
16735         (Makefile.am): Augment lib_SOURCES.
16736
16737 2011-05-23  Bruno Haible  <bruno@clisp.org>
16738
16739         freopen-safer: Move AC_LIBOBJ invocations to module description.
16740         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
16741         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
16742         (configure.ac): Remove gl_FREOPEN_SAFER call.
16743         (Makefile.am): Augment lib_SOURCES.
16744
16745 2011-05-23  Bruno Haible  <bruno@clisp.org>
16746
16747         fopen-safer: Move AC_LIBOBJ invocations to module description.
16748         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
16749         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
16750         (configure.ac): Remove gl_FOPEN_SAFER call.
16751         (Makefile.am): Augment lib_SOURCES.
16752
16753 2011-05-23  Bruno Haible  <bruno@clisp.org>
16754
16755         crypto/sha512: Move AC_LIBOBJ invocations to module description.
16756         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
16757         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
16758
16759 2011-05-23  Bruno Haible  <bruno@clisp.org>
16760
16761         crypto/sha256: Move AC_LIBOBJ invocations to module description.
16762         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
16763         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
16764
16765 2011-05-23  Bruno Haible  <bruno@clisp.org>
16766
16767         crypto/sha1: Move AC_LIBOBJ invocations to module description.
16768         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
16769         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
16770
16771 2011-05-23  Bruno Haible  <bruno@clisp.org>
16772
16773         settime: Move AC_LIBOBJ invocations to module description.
16774         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
16775         * modules/settime (Makefile.am): Augment lib_SOURCES.
16776
16777 2011-05-23  Bruno Haible  <bruno@clisp.org>
16778
16779         savedir: Move AC_LIBOBJ invocations to module description.
16780         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
16781         * modules/savedir (Makefile.am): Augment lib_SOURCES.
16782
16783 2011-05-23  Bruno Haible  <bruno@clisp.org>
16784
16785         save-cwd: Move AC_LIBOBJ invocations to module description.
16786         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
16787         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
16788
16789 2011-05-23  Bruno Haible  <bruno@clisp.org>
16790
16791         same: Move AC_LIBOBJ invocations to module description.
16792         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
16793         * modules/same (Makefile.am): Augment lib_SOURCES.
16794
16795 2011-05-23  Bruno Haible  <bruno@clisp.org>
16796
16797         safe-write: Move AC_LIBOBJ invocations to module description.
16798         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
16799         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
16800         instead of gl_SAFE_WRITE.
16801         (Makefile.am): Augment lib_SOURCES.
16802
16803 2011-05-23  Bruno Haible  <bruno@clisp.org>
16804
16805         safe-read: Move AC_LIBOBJ invocations to module description.
16806         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
16807         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
16808         of gl_SAFE_READ.
16809         (Makefile.am): Augment lib_SOURCES.
16810
16811 2011-05-23  Bruno Haible  <bruno@clisp.org>
16812
16813         safe-alloc: Move AC_LIBOBJ invocations to module description.
16814         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
16815         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
16816
16817 2011-05-23  Bruno Haible  <bruno@clisp.org>
16818
16819         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
16820         * m4/rijndael.m4: Remove file.
16821         * modules/crypto/rijndael (Files): Remove it.
16822         (configure.ac): Remove gl_RIJNDAEL call.
16823         (Makefile.am): Augment lib_SOURCES.
16824
16825 2011-05-23  Bruno Haible  <bruno@clisp.org>
16826
16827         readtokens: Move AC_LIBOBJ invocations to module description.
16828         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
16829         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
16830
16831 2011-05-23  Bruno Haible  <bruno@clisp.org>
16832
16833         read-file: Move AC_LIBOBJ invocations to module description.
16834         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
16835         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
16836         of gl_FUNC_READ_FILE.
16837         (Makefile.am): Augment lib_SOURCES.
16838
16839 2011-05-23  Bruno Haible  <bruno@clisp.org>
16840
16841         quotearg: Move AC_LIBOBJ invocations to module description.
16842         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
16843         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
16844
16845 2011-05-23  Bruno Haible  <bruno@clisp.org>
16846
16847         quote: Move AC_LIBOBJ invocations to module description.
16848         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
16849         * modules/quote (Makefile.am): Augment lib_SOURCES.
16850
16851 2011-05-23  Bruno Haible  <bruno@clisp.org>
16852
16853         posixver: Move AC_LIBOBJ invocations to module description.
16854         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
16855         * modules/posixver (Makefile.am): Augment lib_SOURCES.
16856
16857 2011-05-23  Bruno Haible  <bruno@clisp.org>
16858
16859         posixtm: Move AC_LIBOBJ invocations to module description.
16860         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
16861         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
16862
16863 2011-05-23  Bruno Haible  <bruno@clisp.org>
16864
16865         physmem: Move AC_LIBOBJ invocations to module description.
16866         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
16867         * modules/physmem (Makefile.am): Augment lib_SOURCES.
16868
16869 2011-05-23  Bruno Haible  <bruno@clisp.org>
16870
16871         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
16872         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
16873         invocation.
16874         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
16875
16876 2011-05-23  Bruno Haible  <bruno@clisp.org>
16877
16878         mpsort: Move AC_LIBOBJ invocations to module description.
16879         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
16880         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
16881
16882 2011-05-23  Bruno Haible  <bruno@clisp.org>
16883
16884         modechange: Move AC_LIBOBJ invocations to module description.
16885         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
16886         * modules/modechange (Makefile.am): Augment lib_SOURCES.
16887
16888 2011-05-23  Bruno Haible  <bruno@clisp.org>
16889
16890         mkdir-p: Move AC_LIBOBJ invocations to module description.
16891         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
16892         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
16893
16894 2011-05-23  Bruno Haible  <bruno@clisp.org>
16895
16896         mkancesdirs: Move AC_LIBOBJ invocations to module description.
16897         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
16898         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
16899
16900 2011-05-23  Bruno Haible  <bruno@clisp.org>
16901
16902         mgetgroups: Move AC_LIBOBJ invocations to module description.
16903         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
16904         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
16905
16906 2011-05-23  Bruno Haible  <bruno@clisp.org>
16907
16908         memxor: Move AC_LIBOBJ invocations to module description.
16909         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
16910         * modules/memxor (Makefile.am): Augment lib_SOURCES.
16911
16912 2011-05-23  Bruno Haible  <bruno@clisp.org>
16913
16914         memcoll: Move AC_LIBOBJ invocations to module description.
16915         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
16916         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
16917
16918 2011-05-23  Bruno Haible  <bruno@clisp.org>
16919
16920         memcasecmp: Move AC_LIBOBJ invocations to module description.
16921         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
16922         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
16923
16924 2011-05-23  Bruno Haible  <bruno@clisp.org>
16925
16926         crypto/md5: Move AC_LIBOBJ invocations to module description.
16927         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
16928         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
16929
16930 2011-05-23  Bruno Haible  <bruno@clisp.org>
16931
16932         crypto/md4: Move AC_LIBOBJ invocations to module description.
16933         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
16934         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
16935
16936 2011-05-23  Bruno Haible  <bruno@clisp.org>
16937
16938         crypto/md2: Move AC_LIBOBJ invocations to module description.
16939         * m4/md2.m4: Remove file.
16940         * modules/crypto/md2 (Files): Remove it.
16941         (configure.ac): Remove gl_MD2 call.
16942         (Makefile.am): Augment lib_SOURCES.
16943
16944 2011-05-23  Bruno Haible  <bruno@clisp.org>
16945
16946         long-options: Move AC_LIBOBJ invocations to module description.
16947         * m4/long-options.m4: Remove file.
16948         * modules/long-options (Files): Remove it.
16949         (configure.ac): Remove gl_LONG_OPTIONS call.
16950         (Makefile.am): Augment lib_SOURCES.
16951
16952 2011-05-23  Bruno Haible  <bruno@clisp.org>
16953
16954         i-ring: Move AC_LIBOBJ invocations to module description.
16955         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
16956         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
16957
16958 2011-05-23  Bruno Haible  <bruno@clisp.org>
16959
16960         idcache: Move AC_LIBOBJ invocations to module description.
16961         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
16962         * modules/idcache (Makefile.am): Augment lib_SOURCES.
16963
16964 2011-05-23  Bruno Haible  <bruno@clisp.org>
16965
16966         human: Move AC_LIBOBJ invocations to module description.
16967         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
16968         * modules/human (Makefile.am): Augment lib_SOURCES.
16969
16970 2011-05-23  Bruno Haible  <bruno@clisp.org>
16971
16972         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
16973         * m4/hmac-sha1.m4: Remove file.
16974         * modules/crypto/hmac-sha1 (Files): Remove it.
16975         (configure.ac): Remove gl_HMAC_SHA1 call.
16976         (Makefile.am): Augment lib_SOURCES.
16977
16978 2011-05-23  Bruno Haible  <bruno@clisp.org>
16979
16980         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
16981         * m4/hmac-md5.m4: Remove file.
16982         * modules/crypto/hmac-md5 (Files): Remove it.
16983         (configure.ac): Remove gl_HMAC_MD5 call.
16984         (Makefile.am): Augment lib_SOURCES.
16985
16986 2011-05-23  Bruno Haible  <bruno@clisp.org>
16987
16988         hash: Move AC_LIBOBJ invocations to module description.
16989         * m4/hash.m4: Remove file.
16990         * modules/hash (Files): Remove it.
16991         (configure.ac): Remove gl_HASH call.
16992         (Makefile.am): Augment lib_SOURCES.
16993
16994 2011-05-23  Bruno Haible  <bruno@clisp.org>
16995
16996         hard-locale: Move AC_LIBOBJ invocations to module description.
16997         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
16998         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
16999
17000 2011-05-23  Bruno Haible  <bruno@clisp.org>
17001
17002         getugroups: Move AC_LIBOBJ invocations to module description.
17003         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
17004         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
17005
17006 2011-05-23  Bruno Haible  <bruno@clisp.org>
17007
17008         gettime: Move AC_LIBOBJ invocations to module description.
17009         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
17010         * modules/gettime (Makefile.am): Augment lib_SOURCES.
17011
17012 2011-05-23  Bruno Haible  <bruno@clisp.org>
17013
17014         getndelim2: Move AC_LIBOBJ invocations to module description.
17015         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
17016         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
17017
17018 2011-05-23  Bruno Haible  <bruno@clisp.org>
17019
17020         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
17021         * m4/gc-pbkdf2-sha1.m4: Remove file.
17022         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
17023         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
17024         (Makefile.am): Augment lib_SOURCES.
17025
17026 2011-05-23  Bruno Haible  <bruno@clisp.org>
17027
17028         fts: Move AC_LIBOBJ invocations to module description.
17029         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
17030         * modules/fts (configure.ac): ... to here.
17031
17032 2011-05-23  Bruno Haible  <bruno@clisp.org>
17033
17034         file-type: Move AC_LIBOBJ invocations to module description.
17035         * m4/file-type.m4: Remove file.
17036         * modules/file-type (Files): Remove it.
17037         (configure.ac): Remove gl_FILE_TYPE call.
17038         (Makefile.am): Augment lib_SOURCES.
17039
17040 2011-05-23  Bruno Haible  <bruno@clisp.org>
17041
17042         filenamecat*: Respect rules for use of AC_LIBOBJ.
17043         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
17044         Remove AC_LIBOBJ invocation.
17045         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
17046         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
17047
17048 2011-05-23  Bruno Haible  <bruno@clisp.org>
17049
17050         filemode: Move AC_LIBOBJ invocations to module description.
17051         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
17052         * modules/filemode (Makefile.am): Augment lib_SOURCES.
17053
17054 2011-05-23  Bruno Haible  <bruno@clisp.org>
17055
17056         openat-safer: Move AC_LIBOBJ invocations to module description.
17057         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
17058         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
17059
17060 2011-05-23  Bruno Haible  <bruno@clisp.org>
17061
17062         fcntl-safer: Move AC_LIBOBJ invocations to module description.
17063         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
17064         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
17065
17066 2011-05-23  Bruno Haible  <bruno@clisp.org>
17067
17068         exclude: Move AC_LIBOBJ invocations to module description.
17069         * m4/exclude.m4: Remove file.
17070         * modules/exclude (Files): Remove it.
17071         (configure.ac): Remove gl_EXCLUDE call.
17072         (Makefile.am): Augment lib_SOURCES.
17073
17074 2011-05-23  Bruno Haible  <bruno@clisp.org>
17075
17076         dirname*: Respect rules for use of AC_LIBOBJ.
17077         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
17078         invocations.
17079         * modules/dirname (Makefile.am): Augment lib_SOURCES.
17080         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
17081
17082 2011-05-23  Bruno Haible  <bruno@clisp.org>
17083
17084         dirent-safer: Move AC_LIBOBJ invocations to module description.
17085         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
17086         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
17087
17088 2011-05-23  Bruno Haible  <bruno@clisp.org>
17089
17090         crypto/des: Move AC_LIBOBJ invocations to module description.
17091         * m4/des.m4: Remove file.
17092         * modules/crypto/des (Files): Remove it.
17093         (configure.ac): Remove gl_DES call.
17094         (Makefile.am): Augment lib_SOURCES.
17095
17096 2011-05-23  Bruno Haible  <bruno@clisp.org>
17097
17098         cycle-check: Move AC_LIBOBJ invocations to module description.
17099         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
17100         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
17101
17102 2011-05-23  Bruno Haible  <bruno@clisp.org>
17103
17104         c-strtold: Move AC_LIBOBJ invocations to module description.
17105         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
17106         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
17107
17108 2011-05-23  Bruno Haible  <bruno@clisp.org>
17109
17110         c-strtod: Move AC_LIBOBJ invocations to module description.
17111         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
17112         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
17113
17114 2011-05-23  Bruno Haible  <bruno@clisp.org>
17115
17116         crc: Move AC_LIBOBJ invocations to module description.
17117         * m4/crc.m4: Remove file.
17118         * modules/crc (Files): Remove it.
17119         (configure.ac): Remove gl_CRC call.
17120         (Makefile.am): Augment lib_SOURCES.
17121
17122 2011-05-23  Bruno Haible  <bruno@clisp.org>
17123
17124         close-stream: Move AC_LIBOBJ invocations to module description.
17125         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
17126         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
17127
17128 2011-05-23  Bruno Haible  <bruno@clisp.org>
17129
17130         closeout: Move AC_LIBOBJ invocations to module description.
17131         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
17132         * modules/closeout (Makefile.am): Augment lib_SOURCES.
17133
17134 2011-05-23  Bruno Haible  <bruno@clisp.org>
17135
17136         closein: Move AC_LIBOBJ invocations to module description.
17137         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
17138         * modules/closein (Makefile.am): Augment lib_SOURCES.
17139
17140 2011-05-23  Bruno Haible  <bruno@clisp.org>
17141
17142         cloexec: Move AC_LIBOBJ invocations to module description.
17143         * m4/cloexec.m4: Remove file.
17144         * modules/cloexec (Files): Remove it.
17145         (configure.ac): Remove gl_CLOEXEC call.
17146         (Makefile.am): Augment lib_SOURCES.
17147
17148 2011-05-23  Bruno Haible  <bruno@clisp.org>
17149
17150         check-version: Move AC_LIBOBJ invocations to module description.
17151         * m4/check-version.m4: Remove file.
17152         * modules/check-version (Files): Remove it.
17153         (configure.ac): Remove gl_CHECK_VERSION call.
17154         (Makefile.am): Augment lib_SOURCES.
17155
17156 2011-05-23  Bruno Haible  <bruno@clisp.org>
17157
17158         chdir-safer: Move AC_LIBOBJ invocations to module description.
17159         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
17160         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
17161
17162 2011-05-23  Bruno Haible  <bruno@clisp.org>
17163
17164         canonicalize: Move AC_LIBOBJ invocations to module description.
17165         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
17166         AC_LIBOBJ invocation.
17167         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
17168
17169 2011-05-23  Bruno Haible  <bruno@clisp.org>
17170
17171         canon-host: Move AC_LIBOBJ invocations to module description.
17172         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
17173         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
17174         instead of gl_CANON_HOST.
17175         (Makefile.am): Augment lib_SOURCES.
17176
17177 2011-05-23  Bruno Haible  <bruno@clisp.org>
17178
17179         backupfile: Move AC_LIBOBJ invocations to module description.
17180         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
17181         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
17182
17183 2011-05-23  Bruno Haible  <bruno@clisp.org>
17184
17185         argmatch: Move AC_LIBOBJ invocations to module description.
17186         * m4/argmatch.m4: Remove file.
17187         * modules/argmatch (Files): Remove it.
17188         (configure.ac): Remove gl_ARGMATCH call.
17189         (Makefile.am): Augment lib_SOURCES.
17190
17191 2011-05-23  Bruno Haible  <bruno@clisp.org>
17192
17193         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
17194         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
17195         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
17196
17197 2011-05-23  Bruno Haible  <bruno@clisp.org>
17198
17199         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
17200         * m4/arcfour.m4: Remove file.
17201         * modules/crypto/arcfour (Files): Remove it.
17202         (configure.ac): Remove gl_ARCFOUR call.
17203         (Makefile.am): Augment lib_SOURCES.
17204
17205 2011-05-22  Bruno Haible  <bruno@clisp.org>
17206
17207         write: Move AC_LIBOBJ invocations to module description.
17208         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
17209         * modules/write (configure.ac): ... to here.
17210
17211 2011-05-22  Bruno Haible  <bruno@clisp.org>
17212
17213         wmemset: Move AC_LIBOBJ invocations to module description.
17214         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
17215         here...
17216         * modules/wmemset (configure.ac): ... to here.
17217
17218 2011-05-22  Bruno Haible  <bruno@clisp.org>
17219
17220         wmemmove: Move AC_LIBOBJ invocations to module description.
17221         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
17222         here...
17223         * modules/wmemmove (configure.ac): ... to here.
17224
17225 2011-05-22  Bruno Haible  <bruno@clisp.org>
17226
17227         wmemcpy: Move AC_LIBOBJ invocations to module description.
17228         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
17229         here...
17230         * modules/wmemcpy (configure.ac): ... to here.
17231
17232 2011-05-22  Bruno Haible  <bruno@clisp.org>
17233
17234         wmemcmp: Move AC_LIBOBJ invocations to module description.
17235         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
17236         here...
17237         * modules/wmemcmp (configure.ac): ... to here.
17238
17239 2011-05-22  Bruno Haible  <bruno@clisp.org>
17240
17241         wmemchr: Move AC_LIBOBJ invocations to module description.
17242         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
17243         here...
17244         * modules/wmemchr (configure.ac): ... to here.
17245
17246 2011-05-22  Bruno Haible  <bruno@clisp.org>
17247
17248         wcswidth: Move AC_LIBOBJ invocations to module description.
17249         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
17250         here...
17251         * modules/wcswidth (configure.ac): ... to here.
17252
17253 2011-05-22  Bruno Haible  <bruno@clisp.org>
17254
17255         wcwidth: Respect rules for use of AC_LIBOBJ.
17256         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
17257         invocation from here...
17258         * modules/wcwidth (configure.ac): ... to here.
17259         (Depends-on): Update conditions.
17260
17261 2011-05-22  Bruno Haible  <bruno@clisp.org>
17262
17263         wctype: Move AC_LIBOBJ invocations to module description.
17264         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
17265         invocation from here...
17266         * modules/wctype (configure.ac): ... to here.
17267         (Depends-on): Update conditions.
17268
17269 2011-05-22  Bruno Haible  <bruno@clisp.org>
17270
17271         wctrans: Move AC_LIBOBJ invocations to module description.
17272         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
17273         invocation from here...
17274         * modules/wctrans (configure.ac): ... to here.
17275
17276 2011-05-22  Bruno Haible  <bruno@clisp.org>
17277
17278         wctomb: Move AC_LIBOBJ invocations to module description.
17279         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
17280         invocations from here...
17281         * modules/wctomb (configure.ac): ... to here.
17282
17283 2011-05-22  Bruno Haible  <bruno@clisp.org>
17284
17285         wctob: Move AC_LIBOBJ invocations to module description.
17286         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
17287         gl_PREREQ_WCTOB invocations from here...
17288         * modules/wctob (configure.ac): ... to here.
17289         (Depends-on): Update conditions.
17290
17291 2011-05-22  Bruno Haible  <bruno@clisp.org>
17292
17293         wcsxfrm: Move AC_LIBOBJ invocations to module description.
17294         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
17295         here...
17296         * modules/wcsxfrm (configure.ac): ... to here.
17297
17298 2011-05-22  Bruno Haible  <bruno@clisp.org>
17299
17300         wcstok: Move AC_LIBOBJ invocations to module description.
17301         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
17302         * modules/wcstok (configure.ac): ... to here.
17303
17304 2011-05-22  Bruno Haible  <bruno@clisp.org>
17305
17306         wcsstr: Move AC_LIBOBJ invocations to module description.
17307         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
17308         * modules/wcsstr (configure.ac): ... to here.
17309
17310 2011-05-22  Bruno Haible  <bruno@clisp.org>
17311
17312         wcsspn: Move AC_LIBOBJ invocations to module description.
17313         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
17314         * modules/wcsspn (configure.ac): ... to here.
17315
17316 2011-05-22  Bruno Haible  <bruno@clisp.org>
17317
17318         wcsrtombs: Move AC_LIBOBJ invocations to module description.
17319         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
17320         gl_PREREQ_WCSRTOMBS invocations from here...
17321         * modules/wcsrtombs (configure.ac): ... to here.
17322
17323 2011-05-22  Bruno Haible  <bruno@clisp.org>
17324
17325         wcsrchr: Move AC_LIBOBJ invocations to module description.
17326         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
17327         here...
17328         * modules/wcsrchr (configure.ac): ... to here.
17329
17330 2011-05-22  Bruno Haible  <bruno@clisp.org>
17331
17332         wcspbrk: Move AC_LIBOBJ invocations to module description.
17333         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
17334         here...
17335         * modules/wcspbrk (configure.ac): ... to here.
17336
17337 2011-05-22  Bruno Haible  <bruno@clisp.org>
17338
17339         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
17340         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
17341         gl_PREREQ_WCSNRTOMBS invocations from here...
17342         * modules/wcsnrtombs (configure.ac): ... to here.
17343
17344 2011-05-22  Bruno Haible  <bruno@clisp.org>
17345
17346         wcsnlen: Move AC_LIBOBJ invocations to module description.
17347         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
17348         here...
17349         * modules/wcsnlen (configure.ac): ... to here.
17350
17351 2011-05-22  Bruno Haible  <bruno@clisp.org>
17352
17353         wcsncpy: Move AC_LIBOBJ invocations to module description.
17354         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
17355         here...
17356         * modules/wcsncpy (configure.ac): ... to here.
17357
17358 2011-05-22  Bruno Haible  <bruno@clisp.org>
17359
17360         wcsncmp: Move AC_LIBOBJ invocations to module description.
17361         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
17362         here...
17363         * modules/wcsncmp (configure.ac): ... to here.
17364
17365 2011-05-22  Bruno Haible  <bruno@clisp.org>
17366
17367         wcsncat: Move AC_LIBOBJ invocations to module description.
17368         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
17369         here...
17370         * modules/wcsncat (configure.ac): ... to here.
17371
17372 2011-05-22  Bruno Haible  <bruno@clisp.org>
17373
17374         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
17375         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
17376         from here...
17377         * modules/wcsncasecmp (configure.ac): ... to here.
17378
17379 2011-05-22  Bruno Haible  <bruno@clisp.org>
17380
17381         wcslen: Move AC_LIBOBJ invocations to module description.
17382         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
17383         * modules/wcslen (configure.ac): ... to here.
17384
17385 2011-05-22  Bruno Haible  <bruno@clisp.org>
17386
17387         wcsdup: Move AC_LIBOBJ invocations to module description.
17388         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
17389         * modules/wcsdup (configure.ac): ... to here.
17390
17391 2011-05-22  Bruno Haible  <bruno@clisp.org>
17392
17393         wcscspn: Move AC_LIBOBJ invocations to module description.
17394         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
17395         here...
17396         * modules/wcscspn (configure.ac): ... to here.
17397
17398 2011-05-22  Bruno Haible  <bruno@clisp.org>
17399
17400         wcscpy: Move AC_LIBOBJ invocations to module description.
17401         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
17402         * modules/wcscpy (configure.ac): ... to here.
17403
17404 2011-05-22  Bruno Haible  <bruno@clisp.org>
17405
17406         wcscoll: Move AC_LIBOBJ invocations to module description.
17407         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
17408         here...
17409         * modules/wcscoll (configure.ac): ... to here.
17410
17411 2011-05-22  Bruno Haible  <bruno@clisp.org>
17412
17413         wcscmp: Move AC_LIBOBJ invocations to module description.
17414         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
17415         * modules/wcscmp (configure.ac): ... to here.
17416
17417 2011-05-22  Bruno Haible  <bruno@clisp.org>
17418
17419         wcschr: Move AC_LIBOBJ invocations to module description.
17420         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
17421         * modules/wcschr (configure.ac): ... to here.
17422
17423 2011-05-22  Bruno Haible  <bruno@clisp.org>
17424
17425         wcscat: Move AC_LIBOBJ invocations to module description.
17426         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
17427         * modules/wcscat (configure.ac): ... to here.
17428
17429 2011-05-22  Bruno Haible  <bruno@clisp.org>
17430
17431         wcscasecmp: Move AC_LIBOBJ invocations to module description.
17432         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
17433         here...
17434         * modules/wcscasecmp (configure.ac): ... to here.
17435
17436 2011-05-22  Bruno Haible  <bruno@clisp.org>
17437
17438         wcrtomb: Move AC_LIBOBJ invocations to module description.
17439         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
17440         invocations from here...
17441         * modules/wcrtomb (configure.ac): ... to here.
17442
17443 2011-05-22  Bruno Haible  <bruno@clisp.org>
17444
17445         wcpncpy: Move AC_LIBOBJ invocations to module description.
17446         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
17447         here...
17448         * modules/wcpncpy (configure.ac): ... to here.
17449
17450 2011-05-22  Bruno Haible  <bruno@clisp.org>
17451
17452         wcpcpy: Move AC_LIBOBJ invocations to module description.
17453         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
17454         * modules/wcpcpy (configure.ac): ... to here.
17455
17456 2011-05-22  Bruno Haible  <bruno@clisp.org>
17457
17458         waitpid: Move AC_LIBOBJ invocations to module description.
17459         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
17460         invocation from here...
17461         * modules/waitpid (configure.ac): ... to here.
17462
17463 2011-05-22  Bruno Haible  <bruno@clisp.org>
17464
17465         utimensat: Move AC_LIBOBJ invocations to module description.
17466         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
17467         here...
17468         * modules/utimensat (configure.ac): ... to here.
17469
17470 2011-05-22  Bruno Haible  <bruno@clisp.org>
17471
17472         usleep: Move AC_LIBOBJ invocations to module description.
17473         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
17474         here...
17475         * modules/usleep (configure.ac): ... to here.
17476
17477 2011-05-22  Bruno Haible  <bruno@clisp.org>
17478
17479         unlockpt: Move AC_LIBOBJ invocations to module description.
17480         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
17481         gl_PREREQ_UNLOCKPT invocations from here...
17482         * modules/unlockpt (configure.ac): ... to here.
17483
17484 2011-05-22  Bruno Haible  <bruno@clisp.org>
17485
17486         unlink: Respect rules for use of AC_LIBOBJ.
17487         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
17488         * modules/unlink (configure.ac): ... to here.
17489
17490 2011-05-22  Bruno Haible  <bruno@clisp.org>
17491
17492         uname: Move AC_LIBOBJ invocations to module description.
17493         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
17494         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
17495         here...
17496         * modules/uname (configure.ac): ... to here.
17497
17498 2011-05-22  Bruno Haible  <bruno@clisp.org>
17499
17500         ttyname_r: Move AC_LIBOBJ invocations to module description.
17501         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
17502         gl_PREREQ_TTYNAME_R invocations from here...
17503         * modules/ttyname_r (configure.ac): ... to here.
17504
17505 2011-05-22  Bruno Haible  <bruno@clisp.org>
17506
17507         tsearch: Move AC_LIBOBJ invocations to module description.
17508         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
17509         invocations from here...
17510         * modules/tsearch (configure.ac): ... to here.
17511
17512 2011-05-22  Bruno Haible  <bruno@clisp.org>
17513
17514         towctrans: Move AC_LIBOBJ invocations to module description.
17515         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
17516         AC_LIBOBJ invocation from here...
17517         * modules/towctrans (configure.ac): ... to here.
17518
17519 2011-05-22  Bruno Haible  <bruno@clisp.org>
17520
17521         tmpfile: Move AC_LIBOBJ invocations to module description.
17522         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
17523         invocations from here...
17524         * modules/tmpfile (configure.ac): ... to here.
17525
17526 2011-05-22  Bruno Haible  <bruno@clisp.org>
17527
17528         times: Move AC_LIBOBJ invocations to module description.
17529         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
17530         * modules/times (configure.ac): ... to here.
17531
17532 2011-05-22  Bruno Haible  <bruno@clisp.org>
17533
17534         time_r: Move AC_LIBOBJ invocations to module description.
17535         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
17536         invocations from here...
17537         * modules/time_r (configure.ac): ... to here.
17538
17539 2011-05-22  Bruno Haible  <bruno@clisp.org>
17540
17541         timegm: Move AC_LIBOBJ invocations to module description.
17542         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
17543         invocations from here...
17544         * modules/timegm (configure.ac): ... to here.
17545
17546 2011-05-22  Bruno Haible  <bruno@clisp.org>
17547
17548         tcgetsid: Move AC_LIBOBJ invocations to module description.
17549         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
17550         and gl_PREREQ_TCGETSID invocations from here...
17551         * modules/tcgetsid (configure.ac): ... to here.
17552         (Depends-on): Update conditions.
17553
17554 2011-05-22  Bruno Haible  <bruno@clisp.org>
17555
17556         symlinkat: Move AC_LIBOBJ invocations to module description.
17557         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
17558         here...
17559         * modules/symlinkat (configure.ac): ... to here.
17560
17561 2011-05-22  Bruno Haible  <bruno@clisp.org>
17562
17563         symlink: Move AC_LIBOBJ invocations to module description.
17564         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
17565         here...
17566         * modules/symlink (configure.ac): ... to here.
17567
17568 2011-05-22  Bruno Haible  <bruno@clisp.org>
17569
17570         strverscmp: Move AC_LIBOBJ invocations to module description.
17571         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
17572         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
17573         from here...
17574         * modules/strverscmp (configure.ac): ... to here.
17575
17576 2011-05-22  Bruno Haible  <bruno@clisp.org>
17577
17578         strtok_r: Move AC_LIBOBJ invocations to module description.
17579         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
17580         and gl_PREREQ_STRTOK_R invocations from here...
17581         * modules/strtok_r (configure.ac): ... to here.
17582         (Depends-on): Update conditions.
17583
17584 2011-05-22  Bruno Haible  <bruno@clisp.org>
17585
17586         strtoumax: Move AC_LIBOBJ invocations to module description.
17587         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
17588         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
17589         from here...
17590         * modules/strtoumax (configure.ac): ... to here.
17591
17592 2011-05-22  Bruno Haible  <bruno@clisp.org>
17593
17594         strtoimax: Move AC_LIBOBJ invocations to module description.
17595         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
17596         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
17597         from here...
17598         * modules/strtoimax (configure.ac): ... to here.
17599
17600 2011-05-22  Bruno Haible  <bruno@clisp.org>
17601
17602         strtoull: Move AC_LIBOBJ invocations to module description.
17603         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
17604         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
17605         from here...
17606         * modules/strtoull (configure.ac): ... to here.
17607
17608 2011-05-22  Bruno Haible  <bruno@clisp.org>
17609
17610         strtoll: Move AC_LIBOBJ invocations to module description.
17611         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
17612         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
17613         here...
17614         * modules/strtoll (configure.ac): ... to here.
17615
17616 2011-05-22  Bruno Haible  <bruno@clisp.org>
17617
17618         strtoul: Move AC_LIBOBJ invocations to module description.
17619         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
17620         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
17621         * modules/strtoul (configure.ac): ... to here.
17622
17623 2011-05-22  Bruno Haible  <bruno@clisp.org>
17624
17625         strtol: Move AC_LIBOBJ invocations to module description.
17626         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
17627         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
17628         * modules/strtol (configure.ac): ... to here.
17629
17630 2011-05-22  Bruno Haible  <bruno@clisp.org>
17631
17632         strtod: Move AC_LIBOBJ invocations to module description.
17633         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
17634         invocations from here...
17635         * modules/strtod (configure.ac): ... to here.
17636
17637 2011-05-22  Bruno Haible  <bruno@clisp.org>
17638
17639         strstr*: Move AC_LIBOBJ invocations to module description.
17640         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
17641         invocations from here...
17642         * modules/strstr-simple (configure.ac): ... to here.
17643         * modules/strstr (configure.ac): ... and here.
17644
17645 2011-05-22  Bruno Haible  <bruno@clisp.org>
17646
17647         strsignal: Move AC_LIBOBJ invocations to module description.
17648         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
17649         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
17650         * modules/strsignal (configure.ac): ... to here.
17651         (Depends-on): Update conditions.
17652
17653 2011-05-22  Bruno Haible  <bruno@clisp.org>
17654
17655         strsep: Move AC_LIBOBJ invocations to module description.
17656         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
17657         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
17658         here...
17659         * modules/strsep (configure.ac): ... to here.
17660
17661 2011-05-22  Bruno Haible  <bruno@clisp.org>
17662
17663         strptime: Move AC_LIBOBJ invocations to module description.
17664         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
17665         gl_PREREQ_STRPTIME invocations from here...
17666         * modules/strptime (configure.ac): ... to here.
17667
17668 2011-05-22  Bruno Haible  <bruno@clisp.org>
17669
17670         strpbrk: Move AC_LIBOBJ invocations to module description.
17671         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
17672         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
17673         here...
17674         * modules/strpbrk (configure.ac): ... to here.
17675
17676 2011-05-22  Bruno Haible  <bruno@clisp.org>
17677
17678         strnlen: Move AC_LIBOBJ invocations to module description.
17679         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
17680         invocations from here...
17681         * modules/strnlen (configure.ac): ... to here.
17682
17683 2011-05-22  Bruno Haible  <bruno@clisp.org>
17684
17685         strndup: Move AC_LIBOBJ invocations to module description.
17686         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
17687         invocations from here...
17688         * modules/strndup (configure.ac): ... to here.
17689         (Depends-on): Update conditions.
17690
17691 2011-05-22  Bruno Haible  <bruno@clisp.org>
17692
17693         strncat: Move AC_LIBOBJ invocations to module description.
17694         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
17695         invocations from here...
17696         * modules/strncat (configure.ac): ... to here.
17697
17698 2011-05-22  Bruno Haible  <bruno@clisp.org>
17699
17700         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
17701         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
17702         invocations from here...
17703         * modules/strdup (configure.ac): ... to here.
17704         * modules/strdup-posix (configure.ac): ... and here.
17705
17706 2011-05-22  Bruno Haible  <bruno@clisp.org>
17707
17708         strcspn: Move AC_LIBOBJ invocations to module description.
17709         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
17710         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
17711         here...
17712         * modules/strcspn (configure.ac): ... to here.
17713
17714 2011-05-22  Bruno Haible  <bruno@clisp.org>
17715
17716         strchrnul: Move AC_LIBOBJ invocations to module description.
17717         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
17718         gl_PREREQ_STRCHRNUL invocations from here...
17719         * modules/strchrnul (configure.ac): ... to here.
17720
17721 2011-05-22  Bruno Haible  <bruno@clisp.org>
17722
17723         strcasestr*: Move AC_LIBOBJ invocations to module description.
17724         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
17725         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
17726         * modules/strcasestr-simple (configure.ac): ... to here.
17727         * modules/strcasestr (configure.ac): ... and here.
17728
17729 2011-05-22  Bruno Haible  <bruno@clisp.org>
17730
17731         strcase: Move AC_LIBOBJ invocations to module description.
17732         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
17733         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
17734         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
17735         gl_PREREQ_STRNCASECMP invocations from here...
17736         * modules/strcase (configure.ac): ... to here.
17737
17738 2011-05-22  Bruno Haible  <bruno@clisp.org>
17739
17740         stpncpy: Move AC_LIBOBJ invocations to module description.
17741         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
17742         here...
17743         * modules/stpncpy (configure.ac): ... to here.
17744
17745 2011-05-22  Bruno Haible  <bruno@clisp.org>
17746
17747         stpcpy: Move AC_LIBOBJ invocations to module description.
17748         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
17749         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
17750         here...
17751         * modules/stpcpy (configure.ac): ... to here.
17752
17753 2011-05-21  Bruno Haible  <bruno@clisp.org>
17754
17755         stat: Move AC_LIBOBJ invocations to module description.
17756         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
17757         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
17758         here...
17759         * modules/stat (configure.ac): ... to here.
17760
17761 2011-05-21  Bruno Haible  <bruno@clisp.org>
17762
17763         sleep: Move AC_LIBOBJ invocations to module description.
17764         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
17765         * modules/sleep (configure.ac): ... to here.
17766
17767 2011-05-21  Bruno Haible  <bruno@clisp.org>
17768
17769         signbit: Move AC_LIBOBJ invocations to module description.
17770         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
17771         * modules/signbit (configure.ac): ... to here.
17772
17773 2011-05-21  Bruno Haible  <bruno@clisp.org>
17774
17775         sigprocmask: Move AC_LIBOBJ invocations to module description.
17776         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
17777         gl_PREREQ_SIGPROMASK invocations from here...
17778         * modules/sigprocmask (configure.ac): ... to here.
17779
17780 2011-05-21  Bruno Haible  <bruno@clisp.org>
17781
17782         sigaction: Move AC_LIBOBJ invocations to module description.
17783         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
17784         gl_PREREQ_SIGACTION invocations from here...
17785         * modules/sigaction (configure.ac): ... to here.
17786
17787 2011-05-21  Bruno Haible  <bruno@clisp.org>
17788
17789         sig2str: Move AC_LIBOBJ invocations to module description.
17790         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
17791         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
17792         here...
17793         * modules/sig2str (configure.ac): ... to here.
17794
17795 2011-05-21  Bruno Haible  <bruno@clisp.org>
17796
17797         setlocale: Move AC_LIBOBJ invocations to module description.
17798         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
17799         gl_PREREQ_SETLOCALE invocations from here...
17800         * modules/setlocale (configure.ac): ... to here.
17801
17802 2011-05-21  Bruno Haible  <bruno@clisp.org>
17803
17804         unsetenv: Move AC_LIBOBJ invocations to module description.
17805         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
17806         and gl_PREREQ_UNSETENV invocations from here...
17807         * modules/unsetenv (configure.ac): ... to here.
17808         (Depends-on): Update.
17809
17810 2011-05-21  Bruno Haible  <bruno@clisp.org>
17811
17812         setenv: Move AC_LIBOBJ invocations to module description.
17813         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
17814         here...
17815         * modules/setenv (configure.ac): ... to here.
17816
17817 2011-05-21  Bruno Haible  <bruno@clisp.org>
17818
17819         selinux-h: Move AC_LIBOBJ invocations to module description.
17820         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
17821         AC_LIBOBJ invocation from here...
17822         * modules/selinux-h (configure.ac): ... to here.
17823
17824 2011-05-21  Bruno Haible  <bruno@clisp.org>
17825
17826         select: Respect rules for use of AC_LIBOBJ.
17827         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
17828         here...
17829         * modules/select (configure.ac): ... to here.
17830
17831 2011-05-21  Bruno Haible  <bruno@clisp.org>
17832
17833         scandir: Move AC_LIBOBJ invocations to module description.
17834         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
17835         invocations from here...
17836         * modules/scandir (configure.ac): ... to here.
17837
17838 2011-05-21  Bruno Haible  <bruno@clisp.org>
17839
17840         rpmatch: Move AC_LIBOBJ invocations to module description.
17841         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
17842         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
17843         here...
17844         * modules/rpmatch (configure.ac): ... to here.
17845
17846 2011-05-21  Bruno Haible  <bruno@clisp.org>
17847
17848         rmdir: Respect rules for use of AC_LIBOBJ.
17849         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
17850         * modules/rmdir (configure.ac): ... to here.
17851
17852 2011-05-21  Bruno Haible  <bruno@clisp.org>
17853
17854         renameat: Move AC_LIBOBJ invocations to module description.
17855         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
17856         here...
17857         * modules/renameat (configure.ac): ... to here.
17858
17859 2011-05-21  Bruno Haible  <bruno@clisp.org>
17860
17861         rename: Respect rules for use of AC_LIBOBJ.
17862         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
17863         here...
17864         * modules/rename (configure.ac): ... to here.
17865
17866 2011-05-21  Bruno Haible  <bruno@clisp.org>
17867
17868         remove: Move AC_LIBOBJ invocations to module description.
17869         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
17870         here...
17871         * modules/remove (configure.ac): ... to here.
17872
17873 2011-05-21  Bruno Haible  <bruno@clisp.org>
17874
17875         relocatable-lib: Move AC_LIBOBJ invocations to module description.
17876         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
17877         macro.
17878         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
17879         * modules/relocatable-lib (configure.ac): ... to here.
17880         * modules/relocatable-prog-wrapper (configure.ac): Invoke
17881         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
17882
17883 2011-05-21  Bruno Haible  <bruno@clisp.org>
17884
17885         relocatable-prog: Move AC_LIBOBJ invocations to module description.
17886         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
17887         here...
17888         * modules/relocatable-prog (configure.ac): ... to here.
17889
17890 2011-05-21  Bruno Haible  <bruno@clisp.org>
17891
17892         regex: Move AC_LIBOBJ invocations to module description.
17893         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
17894         invocations from here...
17895         * modules/regex (configure.ac): ... to here.
17896
17897 2011-05-21  Bruno Haible  <bruno@clisp.org>
17898
17899         realloc-*: Move AC_LIBOBJ invocations to module description.
17900         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
17901         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
17902         AC_LIBOBJ invocations from here...
17903         * modules/realloc-gnu (configure.ac): ... to here.
17904         * modules/realloc-posix (configure.ac): ... and here.
17905
17906 2011-05-21  Bruno Haible  <bruno@clisp.org>
17907
17908         readutmp: Move AC_LIBOBJ invocations to module description.
17909         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
17910         * modules/readutmp (configure.ac): ... to here.
17911
17912 2011-05-21  Bruno Haible  <bruno@clisp.org>
17913
17914         readlinkat: Move AC_LIBOBJ invocations to module description.
17915         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
17916         here...
17917         * modules/readlinkat (configure.ac): ... to here.
17918
17919 2011-05-21  Bruno Haible  <bruno@clisp.org>
17920
17921         readlink: Move AC_LIBOBJ invocations to module description.
17922         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
17923         gl_PREREQ_READLINK invocations from here...
17924         * modules/readlink (configure.ac): ... to here.
17925
17926 2011-05-21  Bruno Haible  <bruno@clisp.org>
17927
17928         readline: Move AC_LIBOBJ invocations to module description.
17929         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
17930         gl_PREREQ_READLINE invocations from here...
17931         * modules/readline (configure.ac): ... to here.
17932
17933 2011-05-21  Bruno Haible  <bruno@clisp.org>
17934
17935         read: Move AC_LIBOBJ invocations to module description.
17936         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
17937         * modules/read (configure.ac): ... to here.
17938
17939 2011-05-21  Bruno Haible  <bruno@clisp.org>
17940
17941         rawmemchr: Move AC_LIBOBJ invocations to module description.
17942         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
17943         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
17944         from here...
17945         * modules/rawmemchr (configure.ac): ... to here.
17946
17947 2011-05-21  Bruno Haible  <bruno@clisp.org>
17948
17949         random_r: Move AC_LIBOBJ invocations to module description.
17950         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
17951         gl_PREREQ_RANDOM_R invocations from here...
17952         * modules/random_r (configure.ac): ... to here.
17953
17954 2011-05-21  Bruno Haible  <bruno@clisp.org>
17955
17956         pwrite: Move AC_LIBOBJ invocations to module description.
17957         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
17958         * modules/pwrite (configure.ac): ... to here.
17959
17960 2011-05-21  Bruno Haible  <bruno@clisp.org>
17961
17962         putenv: Move AC_LIBOBJ invocations to module description.
17963         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
17964         * modules/putenv (configure.ac): ... to here.
17965
17966 2011-05-21  Bruno Haible  <bruno@clisp.org>
17967
17968         login_tty: Move AC_LIBOBJ invocations to module description.
17969         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
17970         * modules/login_tty (configure.ac): ... to here.
17971
17972 2011-05-21  Bruno Haible  <bruno@clisp.org>
17973
17974         openpty: Move AC_LIBOBJ invocations to module description.
17975         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
17976         * modules/openpty (configure.ac): ... to here.
17977
17978 2011-05-21  Bruno Haible  <bruno@clisp.org>
17979
17980         forkpty: Move AC_LIBOBJ invocations to module description.
17981         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
17982         * modules/forkpty (configure.ac): ... to here.
17983
17984 2011-05-21  Bruno Haible  <bruno@clisp.org>
17985
17986         ptsname: Move AC_LIBOBJ invocations to module description.
17987         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
17988         invocations from here...
17989         * modules/ptsname (configure.ac): ... to here.
17990
17991 2011-05-21  Bruno Haible  <bruno@clisp.org>
17992
17993         pread: Move AC_LIBOBJ invocations to module description.
17994         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
17995         * modules/pread (configure.ac): ... to here.
17996
17997 2011-05-21  Bruno Haible  <bruno@clisp.org>
17998
17999         posix_spawn*: Move AC_LIBOBJ invocations to module description.
18000         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
18001         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
18002         * modules/posix_spawn (configure.ac): ... to here.
18003         * modules/posix_spawnp (configure.ac): ... and here.
18004
18005 2011-05-21  Bruno Haible  <bruno@clisp.org>
18006
18007         popen: Move AC_LIBOBJ invocations to module description.
18008         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
18009         invocations from here...
18010         * modules/popen (configure.ac): ... to here.
18011
18012 2011-05-21  Bruno Haible  <bruno@clisp.org>
18013
18014         poll: Move AC_LIBOBJ invocations to module description.
18015         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
18016         invocations from here...
18017         * modules/poll (configure.ac): ... to here.
18018
18019 2011-05-21  Bruno Haible  <bruno@clisp.org>
18020
18021         pipe-posix: Move AC_LIBOBJ invocations to module description.
18022         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
18023         * modules/pipe-posix (configure.ac): ... to here.
18024
18025 2011-05-21  Bruno Haible  <bruno@clisp.org>
18026
18027         openat: Respect rules for use of AC_LIBOBJ.
18028         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
18029         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
18030         * modules/openat (configure.ac): ... to here.
18031
18032 2011-05-21  Bruno Haible  <bruno@clisp.org>
18033
18034         obstack-printf*: Move AC_LIBOBJ invocations to module description.
18035         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
18036         invocation from here...
18037         * modules/obstack-printf (configure.ac): ... to here.
18038         * modules/obstack-printf-posix (configure.ac): ... and here.
18039
18040 2011-05-21  Bruno Haible  <bruno@clisp.org>
18041
18042         nl_langinfo: Move AC_LIBOBJ invocations to module description.
18043         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
18044         from here...
18045         * modules/nl_langinfo (configure.ac): ... to here.
18046
18047 2011-05-21  Bruno Haible  <bruno@clisp.org>
18048
18049         nanosleep: Move AC_LIBOBJ invocations to module description.
18050         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
18051         gl_PREREQ_NANOSLEEP invocations from here...
18052         * modules/nanosleep (configure.ac): ... to here.
18053
18054 2011-05-21  Bruno Haible  <bruno@clisp.org>
18055
18056         mountlist: Move AC_LIBOBJ invocations to module description.
18057         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
18058         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
18059         * modules/mountlist (configure.ac): ... to here.
18060
18061 2011-05-21  Bruno Haible  <bruno@clisp.org>
18062
18063         mktime: Respect rules for use of AC_LIBOBJ.
18064         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
18065         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
18066         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
18067         (gl_FUNC_MKTIME_INTERNAL): ... and here...
18068         * modules/mktime (configure.ac): ... to here.
18069         * modules/mktime-internal (configure.ac): ... and here.
18070         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
18071
18072 2011-05-21  Bruno Haible  <bruno@clisp.org>
18073
18074         mkstemps: Move AC_LIBOBJ invocations to module description.
18075         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
18076         here...
18077         * modules/mkstemps (configure.ac): ... to here.
18078
18079 2011-05-21  Bruno Haible  <bruno@clisp.org>
18080
18081         mkstemp: Move AC_LIBOBJ invocations to module description.
18082         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
18083         gl_PREREQ_MKSTEMP invocations from here...
18084         * modules/mkstemp (configure.ac): ... to here.
18085
18086 2011-05-21  Bruno Haible  <bruno@clisp.org>
18087
18088         mkostemps: Move AC_LIBOBJ invocations to module description.
18089         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
18090         here...
18091         * modules/mkostemps (configure.ac): ... to here.
18092
18093 2011-05-21  Bruno Haible  <bruno@clisp.org>
18094
18095         mkostemp: Move AC_LIBOBJ invocations to module description.
18096         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
18097         gl_PREREQ_MKOSTEMP invocations from here...
18098         * modules/mkostemp (configure.ac): ... to here.
18099
18100 2011-05-21  Bruno Haible  <bruno@clisp.org>
18101
18102         mknod: Move AC_LIBOBJ invocations to module description.
18103         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
18104         * modules/mknod (configure.ac): ... to here.
18105
18106 2011-05-21  Bruno Haible  <bruno@clisp.org>
18107
18108         mkfifoat: Move AC_LIBOBJ invocations to module description.
18109         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
18110         here...
18111         * modules/mkfifoat (configure.ac): ... to here.
18112
18113 2011-05-21  Bruno Haible  <bruno@clisp.org>
18114
18115         mkfifo: Respect rules for use of AC_LIBOBJ.
18116         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
18117         here...
18118         * modules/mkfifo (configure.ac): ... to here.
18119
18120 2011-05-21  Bruno Haible  <bruno@clisp.org>
18121
18122         mkdtemp: Move AC_LIBOBJ invocations to module description.
18123         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
18124         invocations from here...
18125         * modules/mkdtemp (configure.ac): ... to here.
18126
18127 2011-05-21  Bruno Haible  <bruno@clisp.org>
18128
18129         mkdir: Move AC_LIBOBJ invocations to module description.
18130         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
18131         * modules/mkdir (configure.ac): ... to here.
18132
18133 2011-05-21  Bruno Haible  <bruno@clisp.org>
18134
18135         memset: Move AC_LIBOBJ invocations to module description.
18136         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
18137         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
18138         here...
18139         * modules/memset (configure.ac): ... to here.
18140
18141 2011-05-21  Bruno Haible  <bruno@clisp.org>
18142
18143         memrchr: Move AC_LIBOBJ invocations to module description.
18144         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
18145         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
18146         here...
18147         * modules/memrchr (configure.ac): ... to here.
18148
18149 2011-05-21  Bruno Haible  <bruno@clisp.org>
18150
18151         mempcpy: Move AC_LIBOBJ invocations to module description.
18152         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
18153         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
18154         here...
18155         * modules/mempcpy (configure.ac): ... to here.
18156
18157 2011-05-21  Bruno Haible  <bruno@clisp.org>
18158
18159         memmove: Move AC_LIBOBJ invocations to module description.
18160         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
18161         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
18162         here...
18163         * modules/memmove (configure.ac): ... to here.
18164
18165 2011-05-21  Bruno Haible  <bruno@clisp.org>
18166
18167         memmem*: Move AC_LIBOBJ invocations to module description.
18168         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
18169         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
18170         here...
18171         (gl_FUNC_MEMMEM): ... and here...
18172         * modules/memmem-simple (configure.ac): ... to here.
18173         * modules/memmem (configure.ac): ... and here.
18174
18175 2011-05-21  Bruno Haible  <bruno@clisp.org>
18176
18177         memcpy: Move AC_LIBOBJ invocations to module description.
18178         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
18179         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
18180         here...
18181         * modules/memcpy (configure.ac): ... to here.
18182
18183 2011-05-21  Bruno Haible  <bruno@clisp.org>
18184
18185         memcmp: Simplify autoconf macro.
18186         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
18187         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
18188         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
18189
18190 2011-05-21  Bruno Haible  <bruno@clisp.org>
18191
18192         memcmp: Move AC_LIBOBJ invocations to module description.
18193         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
18194         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
18195         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
18196         * modules/memcmp (configure.ac): ... to here.
18197         (Depends-on): Update conditions.
18198
18199 2011-05-21  Bruno Haible  <bruno@clisp.org>
18200
18201         memchr: Respect rules for use of AC_LIBOBJ.
18202         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
18203         invocations from here...
18204         * modules/memchr (configure.ac): ... to here.
18205
18206 2011-05-21  Bruno Haible  <bruno@clisp.org>
18207
18208         mbtowc: Move AC_LIBOBJ invocations to module description.
18209         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
18210         invocations from here...
18211         * modules/mbtowc (configure.ac): ... to here.
18212
18213 2011-05-21  Bruno Haible  <bruno@clisp.org>
18214
18215         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
18216         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
18217         gl_PREREQ_MBSRTOWCS invocations from here...
18218         * modules/mbsrtowcs (configure.ac): ... to here.
18219
18220 2011-05-21  Bruno Haible  <bruno@clisp.org>
18221
18222         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
18223         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
18224         gl_PREREQ_MBSNRTOWCS invocations from here...
18225         * modules/mbsnrtowcs (configure.ac): ... to here.
18226
18227 2011-05-21  Bruno Haible  <bruno@clisp.org>
18228
18229         mbsinit: Move AC_LIBOBJ invocations to module description.
18230         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
18231         invocations from here...
18232         * modules/mbsinit (configure.ac): ... to here.
18233
18234 2011-05-21  Bruno Haible  <bruno@clisp.org>
18235
18236         mbrlen: Move AC_LIBOBJ invocations to module description.
18237         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
18238         invocations from here...
18239         * modules/mbrlen (configure.ac): ... to here.
18240
18241 2011-05-21  Bruno Haible  <bruno@clisp.org>
18242
18243         mbrtowc: Respect rules for use of AC_LIBOBJ.
18244         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
18245         invocations from here...
18246         * modules/mbrtowc (configure.ac): ... to here.
18247
18248 2011-05-21  Bruno Haible  <bruno@clisp.org>
18249
18250         malloc-*: Move AC_LIBOBJ invocations to module description.
18251         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
18252         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
18253         AC_LIBOBJ invocations from here...
18254         * modules/malloc-gnu (configure.ac): ... to here.
18255         * modules/malloc-posix (configure.ac): ... and here.
18256
18257 2011-05-21  Bruno Haible  <bruno@clisp.org>
18258
18259         lstat, openat: Respect rules for use of AC_LIBOBJ.
18260         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
18261         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
18262         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
18263         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
18264         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
18265         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
18266         here.
18267         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
18268
18269 2011-05-21  Bruno Haible  <bruno@clisp.org>
18270
18271         lseek: Move AC_LIBOBJ invocations to module description.
18272         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
18273         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
18274         * modules/lseek (configure.ac): ... to here.
18275
18276 2011-05-21  Bruno Haible  <bruno@clisp.org>
18277
18278         linkat: Move AC_LIBOBJ invocations to module description.
18279         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
18280         here...
18281         * modules/linkat (configure.ac): ... to here.
18282
18283 2011-05-21  Bruno Haible  <bruno@clisp.org>
18284
18285         link: Respect rules for use of AC_LIBOBJ.
18286         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
18287         * modules/link (configure.ac): ... to here.
18288
18289 2011-05-21  Bruno Haible  <bruno@clisp.org>
18290
18291         lchown: Move AC_LIBOBJ invocations to module description.
18292         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
18293         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
18294         * modules/lchown (configure.ac): ... to here.
18295
18296 2011-05-21  Bruno Haible  <bruno@clisp.org>
18297
18298         iswctype: Move AC_LIBOBJ invocations to module description.
18299         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
18300         here...
18301         * modules/iswctype (configure.ac): ... to here.
18302
18303 2011-05-21  Bruno Haible  <bruno@clisp.org>
18304
18305         iswblank: Move AC_LIBOBJ invocations to module description.
18306         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
18307         here...
18308         * modules/iswblank (configure.ac): ... to here.
18309
18310 2011-05-21  Bruno Haible  <bruno@clisp.org>
18311
18312         atanl: Move AC_LIBOBJ invocations to module description.
18313         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
18314         * modules/atanl (configure.ac): ... to here.
18315
18316 2011-05-21  Bruno Haible  <bruno@clisp.org>
18317
18318         acosl: Move AC_LIBOBJ invocations to module description.
18319         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
18320         * modules/acosl (configure.ac): ... to here.
18321
18322 2011-05-21  Bruno Haible  <bruno@clisp.org>
18323
18324         asinl: Respect rules for use of AC_LIBOBJ.
18325         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
18326         * modules/asinl (configure.ac): ... to here.
18327
18328 2011-05-21  Bruno Haible  <bruno@clisp.org>
18329
18330         tanl: Move AC_LIBOBJ invocations to module description.
18331         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
18332         * modules/tanl (configure.ac): ... to here.
18333
18334 2011-05-21  Bruno Haible  <bruno@clisp.org>
18335
18336         cosl: Move AC_LIBOBJ invocations to module description.
18337         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
18338         * modules/cosl (configure.ac): ... to here.
18339
18340 2011-05-21  Bruno Haible  <bruno@clisp.org>
18341
18342         sinl: Move AC_LIBOBJ invocations to module description.
18343         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
18344         * modules/sinl (configure.ac): ... to here.
18345
18346 2011-05-21  Bruno Haible  <bruno@clisp.org>
18347
18348         logl: Move AC_LIBOBJ invocations to module description.
18349         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
18350         * modules/logl (configure.ac): ... to here.
18351
18352 2011-05-21  Bruno Haible  <bruno@clisp.org>
18353
18354         expl: Move AC_LIBOBJ invocations to module description.
18355         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
18356         * modules/expl (configure.ac): ... to here.
18357
18358 2011-05-21  Bruno Haible  <bruno@clisp.org>
18359
18360         roundl: Move AC_LIBOBJ invocations to module description.
18361         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
18362         * modules/roundl (configure.ac): ... to here.
18363
18364 2011-05-21  Bruno Haible  <bruno@clisp.org>
18365
18366         round: Move AC_LIBOBJ invocations to module description.
18367         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
18368         * modules/round (configure.ac): ... to here.
18369
18370 2011-05-21  Bruno Haible  <bruno@clisp.org>
18371
18372         roundf: Move AC_LIBOBJ invocations to module description.
18373         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
18374         * modules/roundf (configure.ac): ... to here.
18375
18376 2011-05-21  Bruno Haible  <bruno@clisp.org>
18377
18378         truncl: Move AC_LIBOBJ invocations to module description.
18379         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
18380         * modules/truncl (configure.ac): ... to here.
18381
18382 2011-05-21  Bruno Haible  <bruno@clisp.org>
18383
18384         trunc: Move AC_LIBOBJ invocations to module description.
18385         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
18386         * modules/trunc (configure.ac): ... to here.
18387
18388 2011-05-21  Bruno Haible  <bruno@clisp.org>
18389
18390         truncf: Move AC_LIBOBJ invocations to module description.
18391         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
18392         * modules/truncf (configure.ac): ... to here.
18393
18394 2011-05-21  Bruno Haible  <bruno@clisp.org>
18395
18396         ceill: Move AC_LIBOBJ invocations to module description.
18397         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
18398         * modules/ceill (configure.ac): ... to here.
18399
18400 2011-05-21  Bruno Haible  <bruno@clisp.org>
18401
18402         ceil: Move AC_LIBOBJ invocations to module description.
18403         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
18404         * modules/ceil (configure.ac): ... to here.
18405
18406 2011-05-21  Bruno Haible  <bruno@clisp.org>
18407
18408         ceilf: Move AC_LIBOBJ invocations to module description.
18409         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
18410         * modules/ceilf (configure.ac): ... to here.
18411
18412 2011-05-21  Bruno Haible  <bruno@clisp.org>
18413
18414         floorl: Respect rules for use of AC_LIBOBJ.
18415         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
18416         * modules/floorl (configure.ac): ... to here.
18417
18418 2011-05-21  Bruno Haible  <bruno@clisp.org>
18419
18420         floor: Respect rules for use of AC_LIBOBJ.
18421         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
18422         * modules/floor (configure.ac): ... to here.
18423
18424 2011-05-21  Bruno Haible  <bruno@clisp.org>
18425
18426         floorf: Move AC_LIBOBJ invocations to module description.
18427         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
18428         * modules/floorf (configure.ac): ... to here.
18429
18430 2011-05-20  Bruno Haible  <bruno@clisp.org>
18431
18432         sqrtl: Respect rules for use of AC_LIBOBJ.
18433         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
18434         * modules/sqrtl (configure.ac): ... to here.
18435
18436 2011-05-20  Bruno Haible  <bruno@clisp.org>
18437
18438         ldexpl: Respect rules for use of AC_LIBOBJ.
18439         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
18440         * modules/ldexpl (configure.ac): ... to here.
18441
18442 2011-05-20  Bruno Haible  <bruno@clisp.org>
18443
18444         frexpl*: Respect rules for use of AC_LIBOBJ.
18445         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
18446         invocation from here...
18447         * modules/frexpl (configure.ac): ... to here.
18448         * modules/frexpl-nolibm (configure.ac): ... and here.
18449
18450 2011-05-20  Bruno Haible  <bruno@clisp.org>
18451
18452         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
18453         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
18454         invocation from here...
18455         * modules/frexp (configure.ac): ... to here.
18456         * modules/frexp-nolibm (configure.ac): ... and here.
18457
18458 2011-05-20  Bruno Haible  <bruno@clisp.org>
18459
18460         isnan: Respect rules for use of AC_LIBOBJ.
18461         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
18462         invocations here.
18463         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
18464         REPLACE_ISNAN.
18465         * modules/isnand (configure.ac): Likewise.
18466         * modules/isnanl (configure.ac): Likewise.
18467
18468 2011-05-20  Bruno Haible  <bruno@clisp.org>
18469
18470         isnanl*: Respect rules for use of AC_LIBOBJ.
18471         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
18472         invocation from here...
18473         * modules/isnanl (configure.ac): ... to here.
18474         * modules/isnanl-nolibm (configure.ac): ... and here.
18475
18476 2011-05-20  Bruno Haible  <bruno@clisp.org>
18477
18478         isnand*: Move AC_LIBOBJ invocations to module description.
18479         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
18480         invocation from here...
18481         * modules/isnand (configure.ac): ... to here.
18482         * modules/isnand-nolibm (configure.ac): ... and here.
18483
18484 2011-05-20  Bruno Haible  <bruno@clisp.org>
18485
18486         isnanf*: Move AC_LIBOBJ invocations to module description.
18487         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
18488         invocation from here...
18489         * modules/isnanf (configure.ac): ... to here.
18490         * modules/isnanf-nolibm (configure.ac): ... and here.
18491
18492 2011-05-20  Bruno Haible  <bruno@clisp.org>
18493
18494         isnan*: Separate the AC_LIBOBJ invocations.
18495         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
18496         AC_LIBOBJ invocation.
18497         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
18498         here.
18499         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
18500         AC_LIBOBJ invocation.
18501         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
18502         here.
18503         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
18504         AC_LIBOBJ invocation.
18505         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
18506         here.
18507         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
18508
18509 2011-05-08  Bruno Haible  <bruno@clisp.org>
18510
18511         isinf: Move AC_LIBOBJ invocations to module description.
18512         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
18513         * modules/isinf (configure.ac): ... to here.
18514
18515 2011-05-08  Bruno Haible  <bruno@clisp.org>
18516
18517         isfinite: Move AC_LIBOBJ invocations to module description.
18518         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
18519         * modules/isfinite (configure.ac): ... to here.
18520
18521 2011-05-08  Bruno Haible  <bruno@clisp.org>
18522
18523         isblank: Move AC_LIBOBJ invocations to module description.
18524         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
18525         here...
18526         * modules/isblank (configure.ac): ... to here.
18527
18528 2011-05-08  Bruno Haible  <bruno@clisp.org>
18529
18530         isapipe: Move AC_LIBOBJ invocations to module description.
18531         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
18532         gl_PREREQ_ISAPIPE invocations from here...
18533         * modules/isapipe (configure.ac): ... to here.
18534         (Depends-on): Update condition.
18535
18536 2011-05-08  Bruno Haible  <bruno@clisp.org>
18537
18538         ioctl: Move AC_LIBOBJ invocations to module description.
18539         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
18540         invocations from here...
18541         * modules/ioctl (configure.ac): ... to here.
18542         (Depends-on): Update condition.
18543
18544 2011-05-08  Bruno Haible  <bruno@clisp.org>
18545
18546         imaxdiv: Move AC_LIBOBJ invocations to module description.
18547         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
18548         invocations from here...
18549         * modules/imaxdiv (configure.ac): ... to here.
18550
18551 2011-05-08  Bruno Haible  <bruno@clisp.org>
18552
18553         imaxabs: Move AC_LIBOBJ invocations to module description.
18554         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
18555         invocations from here...
18556         * modules/imaxabs (configure.ac): ... to here.
18557
18558 2011-05-08  Bruno Haible  <bruno@clisp.org>
18559
18560         getaddrinfo: Move AC_LIBOBJ invocations to module description.
18561         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
18562         AC_LIBOBJ invocations from here...
18563         * modules/getaddrinfo (configure.ac): ... to here.
18564         (Depends-on): Add conditions.
18565
18566 2011-05-08  Bruno Haible  <bruno@clisp.org>
18567
18568         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
18569         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
18570         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
18571         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
18572         (gl_PREREQ_INET_PTON): ... from here.
18573         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
18574         gl_PREREQ_INET_PTON here.
18575         (Depends-on): Update condition.
18576
18577 2011-05-08  Bruno Haible  <bruno@clisp.org>
18578
18579         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
18580         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
18581         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
18582         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
18583         (gl_PREREQ_INET_NTOP): ... from here.
18584         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
18585         gl_PREREQ_INET_NTOP here.
18586         (Depends-on): Update condition.
18587
18588 2011-05-08  Bruno Haible  <bruno@clisp.org>
18589
18590         iconv_open: Move AC_LIBOBJ invocations to module description.
18591         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
18592         AC_LIBOBJ invocations from here...
18593         * modules/iconv_open (configure.ac): ... to here.
18594
18595 2011-05-08  Bruno Haible  <bruno@clisp.org>
18596
18597         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
18598         If module 'iconv_open' is among the main modules and module
18599         'iconv_open-utf' is among the tests dependencies, then
18600         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
18601         return the special iconv_t values. Therefore iconv() and iconv_close()
18602         must support these special iconv_t values, already in lib, not only in
18603         tests.
18604         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
18605         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
18606         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
18607         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
18608         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
18609         (Depends-on): Add the dependencies of iconv_open-utf.
18610         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
18611         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
18612         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
18613
18614 2011-05-08  Bruno Haible  <bruno@clisp.org>
18615
18616         group-member: Move AC_LIBOBJ invocations to module description.
18617         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
18618         gl_PREREQ_GROUP_MEMBER invocations from here...
18619         * modules/group-member (configure.ac): ... to here.
18620
18621 2011-05-08  Bruno Haible  <bruno@clisp.org>
18622
18623         grantpt: Move AC_LIBOBJ invocations to module description.
18624         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
18625         invocations from here...
18626         * modules/grantpt (configure.ac): ... to here.
18627
18628 2011-05-08  Bruno Haible  <bruno@clisp.org>
18629
18630         glob: Move AC_LIBOBJ invocations to module description.
18631         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
18632         from here...
18633         * modules/glob (configure.ac): ... to here.
18634
18635 2011-05-08  Bruno Haible  <bruno@clisp.org>
18636
18637         getusershell: Move AC_LIBOBJ invocations to module description.
18638         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
18639         Move AC_LIBOBJ invocation from here...
18640         * modules/getusershell (configure.ac): ... to here.
18641         (Depends-on): Update condition.
18642
18643 2011-05-08  Bruno Haible  <bruno@clisp.org>
18644
18645         gettimeofday: Move AC_LIBOBJ invocations to module description.
18646         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
18647         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
18648         gl_PREREQ_GETTIMEOFDAY invocations from here...
18649         * modules/gettimeofday (configure.ac): ... to here.
18650
18651 2011-05-08  Bruno Haible  <bruno@clisp.org>
18652
18653         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
18654         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
18655         just gl_FUNC_TZSET.
18656         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
18657         (gl_FUNC_TZSET_CLOBBER): Remove actions.
18658         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
18659         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
18660
18661 2011-05-08  Bruno Haible  <bruno@clisp.org>
18662
18663         getsubopt: Move AC_LIBOBJ invocations to module description.
18664         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
18665         gl_PREREQ_GETSUBOPT invocations from here...
18666         * modules/getsubopt (configure.ac): ... to here.
18667
18668 2011-05-08  Bruno Haible  <bruno@clisp.org>
18669
18670         getpass-gnu: Move AC_LIBOBJ invocations to module description.
18671         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
18672         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
18673         * modules/getpass-gnu (configure.ac): ... to here.
18674
18675 2011-05-08  Bruno Haible  <bruno@clisp.org>
18676
18677         getpass: Move AC_LIBOBJ invocations to module description.
18678         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
18679         gl_PREREQ_GETPASS invocations from here...
18680         * modules/getpass (configure.ac): ... to here.
18681
18682 2011-05-08  Bruno Haible  <bruno@clisp.org>
18683
18684         getpagesize: Move AC_LIBOBJ invocations to module description.
18685         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
18686         from here...
18687         * modules/getpagesize (configure.ac): ... to here.
18688
18689 2011-05-08  Bruno Haible  <bruno@clisp.org>
18690
18691         getopt: Move AC_LIBOBJ invocations to module description.
18692         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
18693         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
18694         invocations from here...
18695         * modules/getopt-gnu (configure.ac): ... to here.
18696         * modules/getopt-posix (configure.ac): ... and here.
18697         (Depends-on): Update condition.
18698
18699 2011-05-08  Bruno Haible  <bruno@clisp.org>
18700
18701         getopt, argp: Respect rules for use of AC_LIBOBJ.
18702         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
18703         (gl_REPLACE_GETOPT_ALWAYS): New macro.
18704         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
18705         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
18706
18707 2011-05-08  Bruno Haible  <bruno@clisp.org>
18708
18709         getlogin_r: Move AC_LIBOBJ invocations to module description.
18710         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
18711         gl_PREREQ_GETLOGIN_R invocations from here...
18712         * modules/getlogin_r (configure.ac): ... to here.
18713
18714 2011-05-08  Bruno Haible  <bruno@clisp.org>
18715
18716         getlogin: Move AC_LIBOBJ invocations to module description.
18717         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
18718         here...
18719         * modules/getlogin (configure.ac): ... to here.
18720
18721 2011-05-08  Bruno Haible  <bruno@clisp.org>
18722
18723         getloadavg: Move AC_LIBOBJ invocations to module description.
18724         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
18725         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
18726         * modules/getloadavg (configure.ac): ... to here.
18727
18728 2011-05-08  Bruno Haible  <bruno@clisp.org>
18729
18730         gethrxtime: Move AC_LIBOBJ invocations to module description.
18731         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
18732         LIB_GETHRXTIME from here...
18733         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
18734         invocations from here...
18735         * modules/gethrxtime (configure.ac): ... to here.
18736
18737 2011-05-08  Bruno Haible  <bruno@clisp.org>
18738
18739         gethostname: Move AC_LIBOBJ invocations to module description.
18740         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
18741         gl_PREREQ_GETHOSTNAME invocations from here...
18742         * modules/gethostname (configure.ac): ... to here.
18743
18744 2011-05-08  Bruno Haible  <bruno@clisp.org>
18745
18746         getgroups: Move AC_LIBOBJ invocations to module description.
18747         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
18748         here...
18749         * modules/getgroups (configure.ac): ... to here.
18750
18751 2011-05-08  Bruno Haible  <bruno@clisp.org>
18752
18753         getdtablesize: Move AC_LIBOBJ invocations to module description.
18754         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
18755         invocation from here...
18756         * modules/getdtablesize (configure.ac): ... to here.
18757
18758 2011-05-08  Bruno Haible  <bruno@clisp.org>
18759
18760         getdomainname: Move AC_LIBOBJ invocations to module description.
18761         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
18762         gl_PREREQ_GETDOMAINNAME invocations from here...
18763         * modules/getdomainname (configure.ac): ... to here.
18764
18765 2011-05-08  Bruno Haible  <bruno@clisp.org>
18766
18767         getline: Move AC_LIBOBJ invocations to module description.
18768         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
18769         invocations from here...
18770         * modules/getline (configure.ac): ... to here.
18771
18772 2011-05-08  Bruno Haible  <bruno@clisp.org>
18773
18774         getline: Simplify.
18775         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
18776         It's already handled through the module dependency.
18777
18778 2011-05-08  Bruno Haible  <bruno@clisp.org>
18779
18780         getdelim: Move AC_LIBOBJ invocations to module description.
18781         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
18782         and gl_PREREQ_GETDELIM invocations from here...
18783         * modules/getdelim (configure.ac): ... to here.
18784         (Depends-on): Fix condition.
18785
18786 2011-05-08  Bruno Haible  <bruno@clisp.org>
18787
18788         getcwd: Move AC_LIBOBJ invocations to module description.
18789         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
18790         invocations from here...
18791         * modules/getcwd (configure.ac): ... to here.
18792
18793 2011-05-08  Bruno Haible  <bruno@clisp.org>
18794
18795         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
18796         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
18797         here...
18798         * modules/getcwd-lgpl (configure.ac): ... to here.
18799
18800 2011-05-07  Bruno Haible  <bruno@clisp.org>
18801
18802         crypto/gc: Move AC_LIBOBJ invocations to module description.
18803         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
18804         * modules/crypto/gc (configure.ac): ... to here.
18805
18806 2011-05-07  Bruno Haible  <bruno@clisp.org>
18807
18808         fwriting: Move AC_LIBOBJ invocations to module description.
18809         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
18810         here...
18811         * modules/fwriting (configure.ac): ... to here.
18812
18813 2011-05-07  Bruno Haible  <bruno@clisp.org>
18814
18815         fwritable: Move AC_LIBOBJ invocations to module description.
18816         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
18817         here...
18818         * modules/fwritable (configure.ac): ... to here.
18819
18820 2011-05-07  Bruno Haible  <bruno@clisp.org>
18821
18822         futimens: Move AC_LIBOBJ invocations to module description.
18823         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
18824         here...
18825         * modules/futimens (configure.ac): ... to here.
18826
18827 2011-05-07  Bruno Haible  <bruno@clisp.org>
18828
18829         ftruncate: Move AC_LIBOBJ invocations to module description.
18830         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
18831         gl_PREREQ_FTRUNCATE invocations from here...
18832         * modules/ftruncate (configure.ac): ... to here.
18833
18834 2011-05-07  Bruno Haible  <bruno@clisp.org>
18835
18836         fsync: Move AC_LIBOBJ invocations to module description.
18837         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
18838         invocations from here...
18839         * modules/fsync (configure.ac): ... to here.
18840
18841 2011-05-07  Bruno Haible  <bruno@clisp.org>
18842
18843         fsusage: Move AC_LIBOBJ invocations to module description.
18844         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
18845         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
18846         * modules/fsusage (configure.ac): ... to here.
18847
18848 2011-05-07  Bruno Haible  <bruno@clisp.org>
18849
18850         freopen: Move AC_LIBOBJ invocations to module description.
18851         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
18852         invocations from here...
18853         * modules/freopen (configure.ac): ... to here.
18854
18855 2011-05-07  Bruno Haible  <bruno@clisp.org>
18856
18857         free: Move AC_LIBOBJ invocations to module description.
18858         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
18859         invocations from here...
18860         * modules/free (configure.ac): ... to here.
18861
18862 2011-05-07  Bruno Haible  <bruno@clisp.org>
18863
18864         freadable: Move AC_LIBOBJ invocations to module description.
18865         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
18866         here...
18867         * modules/freadable (configure.ac): ... to here.
18868
18869 2011-05-07  Bruno Haible  <bruno@clisp.org>
18870
18871         fpurge: Move AC_LIBOBJ invocations to module description.
18872         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
18873         invocations from here...
18874         * modules/fpurge (configure.ac): ... to here.
18875
18876 2011-05-07  Bruno Haible  <bruno@clisp.org>
18877
18878         fpending: Move AC_LIBOBJ invocations to module description.
18879         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
18880         gl_FUNC_FPENDING.
18881         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
18882         invocations from here...
18883         * modules/fpending (configure.ac): ... to here.
18884
18885 2011-05-07  Bruno Haible  <bruno@clisp.org>
18886
18887         fopen: Move AC_LIBOBJ invocations to module description.
18888         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
18889         invocations from here...
18890         * modules/fopen (configure.ac): ... to here.
18891
18892 2011-05-07  Bruno Haible  <bruno@clisp.org>
18893
18894         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
18895         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
18896         gl_FUNC_FNMATCH_POSIX.
18897         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
18898         invocations from here...
18899         * modules/fnmatch (configure.ac): ... to here.
18900         * modules/fnmatch-gnu (configure.ac): ... and here.
18901
18902 2011-05-07  Bruno Haible  <bruno@clisp.org>
18903
18904         flock: Move AC_LIBOBJ invocations to module description.
18905         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
18906         invocations from here...
18907         * modules/flock (configure.ac): ... to here.
18908
18909 2011-05-07  Bruno Haible  <bruno@clisp.org>
18910
18911         fileblocks: Move AC_LIBOBJ invocations to module description.
18912         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
18913         gl_PREREQ_FILEBLOCKS invocations from here...
18914         * modules/fileblocks (configure.ac): ... to here.
18915
18916 2011-05-06  Bruno Haible  <bruno@clisp.org>
18917
18918         fflush: Move AC_LIBOBJ invocations to module description.
18919         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
18920         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
18921         invocations from here...
18922         * modules/fflush (configure.ac): ... to here.
18923
18924 2011-05-06  Bruno Haible  <bruno@clisp.org>
18925
18926         fdopendir: Move AC_LIBOBJ invocations to module description.
18927         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
18928         here...
18929         * modules/fdopendir (configure.ac): ... to here.
18930         (Depends-on): Improve conditions.
18931
18932 2011-05-06  Bruno Haible  <bruno@clisp.org>
18933
18934         _Exit: Move AC_LIBOBJ invocations to module description.
18935         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
18936         invocations from here...
18937         * modules/_Exit (configure.ac): ... to here.
18938
18939 2011-05-21  Bruno Haible  <bruno@clisp.org>
18940
18941         euidaccess: Respect rules for use of AC_LIBOBJ.
18942         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
18943         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
18944         from here...
18945         * modules/euidaccess (configure.ac): ... to here.
18946
18947 2011-05-06  Bruno Haible  <bruno@clisp.org>
18948
18949         error: Move AC_LIBOBJ invocations to module description.
18950         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
18951         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
18952         invocations from here...
18953         * modules/error (configure.ac): ... to here.
18954
18955 2011-05-06  Bruno Haible  <bruno@clisp.org>
18956
18957         duplocale: Move AC_LIBOBJ invocations to module description.
18958         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
18959         gl_PREREQ_DUPLOCALE invocations from here...
18960         * modules/duplocale (configure.ac): ... to here.
18961
18962 2011-05-05  Bruno Haible  <bruno@clisp.org>
18963
18964         dirfd: Move AC_LIBOBJ invocations to module description.
18965         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
18966         gl_FUNC_DIRFD.
18967         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
18968         here...
18969         * modules/dirfd (configure.ac): ... to here.
18970         (Depends-on): Fix condition.
18971
18972 2011-05-05  Bruno Haible  <bruno@clisp.org>
18973
18974         chown: Respect rules for use of AC_LIBOBJ.
18975         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
18976         * modules/chown (configure.ac): ... to here.
18977
18978 2011-05-05  Bruno Haible  <bruno@clisp.org>
18979
18980         chdir-long: Move AC_LIBOBJ invocations to module description.
18981         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
18982         gl_PREREQ_CHDIR_LONG invocations from here...
18983         * modules/chdir-long (configure.ac): ... to here.
18984
18985 2011-05-05  Bruno Haible  <bruno@clisp.org>
18986
18987         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
18988         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
18989         from here...
18990         * modules/canonicalize-lgpl (configure.ac): ... to here.
18991
18992 2011-05-05  Bruno Haible  <bruno@clisp.org>
18993
18994         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
18995         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
18996         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
18997         REPLACE_CALLOC.
18998         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
18999         * modules/calloc-gnu (configure.ac): Likewise.
19000
19001 2011-05-05  Bruno Haible  <bruno@clisp.org>
19002
19003         btowc: Move AC_LIBOBJ invocations to module description.
19004         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
19005         invocations from here...
19006         * modules/btowc (configure.ac): ... to here.
19007
19008 2011-05-21  Bruno Haible  <bruno@clisp.org>
19009
19010         atexit: Move AC_LIBOBJ invocations to module description.
19011         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
19012         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
19013         here...
19014         * modules/atexit (configure.ac): ... to here.
19015
19016 2011-05-05  Bruno Haible  <bruno@clisp.org>
19017
19018         atoll: Move AC_LIBOBJ invocations to module description.
19019         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
19020         invocations from here...
19021         * modules/atoll (configure.ac): ... to here.
19022
19023 2011-05-05  Bruno Haible  <bruno@clisp.org>
19024
19025         argz: Move AC_LIBOBJ invocations to module description.
19026         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
19027         * modules/argz (configure.ac): ... to here.
19028
19029 2011-05-05  Bruno Haible  <bruno@clisp.org>
19030
19031         alphasort: Move AC_LIBOBJ invocations to module description.
19032         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
19033         gl_PREREQ_ALPHASORT invocations from here...
19034         * modules/alphasort (configure.ac): ... to here.
19035
19036 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
19037
19038         verify: new macro verify_expr; verify_true deprecated
19039         * NEWS: Mention this.
19040         * doc/verify.texi (Compile-time Assertions): Document this.
19041         * lib/verify.h (verify_true): Deprecate.
19042         (verify_expr): New macro.
19043         * tests/test-verify.c (function): Test verify_expr.
19044
19045 2011-06-14  Jim Meyering  <meyering@redhat.com>
19046
19047         init.sh: give more portable redirection-related advice in a comment
19048         * tests/init.sh (stderr_fileno_): Update the advice in comments.
19049         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
19050         for lots of discussion.  Stefano Lattarini suggested the solution
19051         of putting "9>&2" after the command.  Reported by Bruno Haible.
19052
19053 2011-06-13  Bruno Haible  <bruno@clisp.org>
19054
19055         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
19056         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
19057         'none'.
19058
19059 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
19060
19061         ftoastr: use strtof only if HAVE_STRTOF
19062         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
19063         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
19064         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
19065         * modules/ftoastr (configure.ac): Check for strtof.
19066
19067 2011-06-13  Bruno Haible  <bruno@clisp.org>
19068
19069         gnulib-tool: Addendum to 2011-06-08 commit.
19070         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
19071         and --witness-c-macro have been given, augment AM_CPPFLAGS.
19072
19073 2011-06-13  Bruno Haible  <bruno@clisp.org>
19074
19075         fseeko: Provide a non-inline replacement of fseek().
19076         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
19077         * modules/fseeko (Depends-on): Add fseek.
19078         * modules/fseek (License): Change to LGPLv2+.
19079
19080 2011-06-13  Bruno Haible  <bruno@clisp.org>
19081
19082         ftello: Provide a non-inline replacement of ftell().
19083         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
19084         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
19085         not have ftello() (such as on mingw).
19086         * modules/ftello (Depends-on): Add ftell.
19087         * modules/ftell (License): Change to LGPLv2+.
19088
19089 2011-05-07  Bruno Haible  <bruno@clisp.org>
19090
19091         ftell: Move AC_LIBOBJ invocations to module description.
19092         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
19093         * modules/ftell (configure.ac): ... to here.
19094
19095 2011-05-07  Bruno Haible  <bruno@clisp.org>
19096
19097         ftello: Respect rules for use of AC_LIBOBJ.
19098         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
19099         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
19100         here...
19101         * modules/ftello (configure.ac): ... to here.
19102
19103 2011-05-07  Bruno Haible  <bruno@clisp.org>
19104
19105         fseeko: Simplify.
19106         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
19107         (gl_FUNC_FSEEKO): Inline it here.
19108
19109 2011-05-07  Bruno Haible  <bruno@clisp.org>
19110
19111         fseek: Move AC_LIBOBJ invocations to module description.
19112         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
19113         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
19114         * modules/fseek (configure.ac): ... to here.
19115
19116 2011-05-07  Bruno Haible  <bruno@clisp.org>
19117
19118         fseek: Respect rules for use of AC_LIBOBJ.
19119         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
19120         here...
19121         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
19122
19123 2011-05-07  Bruno Haible  <bruno@clisp.org>
19124
19125         fseeko: Respect rules for use of AC_LIBOBJ.
19126         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
19127         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
19128         here...
19129         * modules/fseeko (configure.ac): ... to here.
19130
19131 2011-06-13  Bruno Haible  <bruno@clisp.org>
19132
19133         gnulib-tool: Allow comments in the 'Depends-on' section.
19134         * doc/gnulib.texi (Module description): Mention comment syntax in the
19135         Depends-on section.
19136         * gnulib-tool (func_get_dependencies): Filter out comment lines.
19137
19138 2011-06-13  Bruno Haible  <bruno@clisp.org>
19139
19140         file-set.h: guard __attibute__ use, now that it's not always defined
19141         * lib/file-set.h (record_file): Use __attribute__ only with compiler
19142         versions that support it.  This fixes a coreutils build failure with
19143         the vendor cc on HP-UX 11.31.
19144
19145 2011-06-12  Bruno Haible  <bruno@clisp.org>
19146
19147         acl: Add support for HP-UX >= 11.11 JFS ACLs.
19148         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
19149         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
19150         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
19151         (acl, aclsort): New declarations.
19152         (aclv_nontrivial): New declaration.
19153         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
19154         (file_has_acl): Read also the second kind of HP-UX ACLs.
19155         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
19156         kind of HP-UX ACLs if the first kind fails.
19157         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
19158         second kind of HP-UX ACLs.
19159         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
19160         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
19161         agree.
19162         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
19163         hpuxjfs.
19164         Handle hpuxjfs.
19165         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
19166         hpuxjfs.
19167         Handle hpuxjfs.
19168         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
19169         (func_test_same_acls): Use both lsacl and getacl.
19170         Handle hpuxjfs.
19171         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
19172         (func_test_same_acls): Use both lsacl and getacl.
19173         Handle hpuxjfs.
19174
19175 2011-06-12  Bruno Haible  <bruno@clisp.org>
19176
19177         acl: Complete the 2010-08-10 fix.
19178         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
19179         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
19180         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
19181         explicitly.
19182         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
19183         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
19184
19185 2011-06-12  Bruno Haible  <bruno@clisp.org>
19186
19187         spawn-pipe tests: Comments.
19188         * tests/test-spawn-pipe-child.c (main): Update comment.
19189         Reported by James Youngman <jay@gnu.org>.
19190
19191 2011-06-11  James Youngman  <jay@gnu.org>
19192
19193         New module 'stat-size'.
19194         * modules/stat-size: New module.  Provides macros for accessing
19195         file size information in instances of struct stat.  Depends on the
19196         fileblocks module because it calls st_blocks.
19197         * lib/stat-size.h: New file, adapted from coreutils' system.h.
19198         * doc/gnulib.texi: Include stat-size.texi.
19199         * doc/stat-size.texi: Documentation for this module.
19200         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
19201         * m4/fileblocks.m4: Mention that stat-size depends on the call to
19202         AC_STRUCT_ST_BLOCKS.
19203
19204 2011-06-09  Bruno Haible  <bruno@clisp.org>
19205
19206         thread: Support pthreads-win32.
19207         * lib/glthread/thread.h (gl_thread_self): Define differently on
19208         pthreads-win32.
19209         (gl_null_thread): New declaration.
19210         (gl_thread_self_pointer): New macro.
19211         * lib/glthread/thread.c (gl_null_thread): New constant.
19212         * tests/test-lock.c: Use gl_thread_self_pointer instead of
19213         gl_thread_self.
19214         * tests/test-tls.c: Likewise.
19215         Suggested by Paul Eggert. Reported by Eric Blake.
19216
19217 2011-06-09  Bruno Haible  <bruno@clisp.org>
19218
19219         thread: Fix confusion between NULL and 0.
19220         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
19221         Reported by Paul Eggert.
19222
19223 2011-06-09  Bruno Haible  <bruno@clisp.org>
19224
19225         spawn-pipe tests: Avoid test failure on HP-UX 11.
19226         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
19227         is closed.
19228
19229 2011-06-09  Bruno Haible  <bruno@clisp.org>
19230
19231         acl tests: Fix compilation error on HP-UX 11.
19232         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
19233
19234 2011-06-09  Bruno Haible  <bruno@clisp.org>
19235
19236         rmdir: Avoid test failure on HP-UX 10.20.
19237         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
19238         EEXIST.
19239
19240 2011-06-08  Eric Blake  <eblake@redhat.com>
19241
19242         perror: fix test on mingw
19243         * modules/perror-tests (Depends-on): Add dup2.
19244
19245         strerror_r-posix: fix on MacOS
19246         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
19247         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
19248         logic bug.
19249         * lib/strerror_r.c (strerror_r): Fix the bug.
19250         * lib/strerror.c (strerror): Likewise.
19251         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
19252         problem.
19253         * doc/posix-functions/strerror.texi (strerror): Likewise.
19254         * doc/posix-functions/perror.texi (perror): Likewise.
19255         * tests/test-strerror.c (main): Enhance test.
19256         * tests/test-strerror_r.c (main): Likewise.
19257
19258 2011-06-08  Bruno Haible  <bruno@clisp.org>
19259
19260         gnulib-tool: Better isolation between different gnulib-tool invocations.
19261         * gnulib-tool: New option --witness-c-macro.
19262         (witness_c_macro): New variable.
19263         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
19264         AM_CPPFLAGS define it as a C macro.
19265         (func_emit_tests_Makefile_am): Likewise.
19266         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
19267         read it from there.
19268         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
19269         m4_define, not AC_DEFUN.
19270         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
19271         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
19272         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
19273         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
19274         s|...|...|, to substitute the values of the GNULIB_* module indicator
19275         variables.
19276         * modules/dirent (Makefile.am): Likewise.
19277         * modules/fcntl-h (Makefile.am): Likewise.
19278         * modules/iconv-h (Makefile.am): Likewise.
19279         * modules/langinfo (Makefile.am): Likewise.
19280         * modules/locale (Makefile.am): Likewise.
19281         * modules/math (Makefile.am): Likewise.
19282         * modules/netdb (Makefile.am): Likewise.
19283         * modules/poll-h (Makefile.am): Likewise.
19284         * modules/pty (Makefile.am): Likewise.
19285         * modules/search (Makefile.am): Likewise.
19286         * modules/signal (Makefile.am): Likewise.
19287         * modules/spawn (Makefile.am): Likewise.
19288         * modules/stdio (Makefile.am): Likewise.
19289         * modules/stdlib (Makefile.am): Likewise.
19290         * modules/string (Makefile.am): Likewise.
19291         * modules/sys_ioctl (Makefile.am): Likewise.
19292         * modules/sys_select (Makefile.am): Likewise.
19293         * modules/sys_socket (Makefile.am): Likewise.
19294         * modules/sys_stat (Makefile.am): Likewise.
19295         * modules/sys_times (Makefile.am): Likewise.
19296         * modules/sys_utsname (Makefile.am): Likewise.
19297         * modules/sys_wait (Makefile.am): Likewise.
19298         * modules/termios (Makefile.am): Likewise.
19299         * modules/time (Makefile.am): Likewise.
19300         * modules/unistd (Makefile.am): Likewise.
19301         * modules/wchar (Makefile.am): Likewise.
19302
19303 2011-06-08  Eric Blake  <eblake@redhat.com>
19304
19305         strerror: simplify replacement
19306         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
19307         * modules/strerror (configure.ac): No prereqs needed here...
19308         * modules/strerror-override (configure.ac): ...but this needs it.
19309         (Files): Add file for needed prereq macro.
19310
19311 2011-06-08  Bruno Haible  <bruno@clisp.org>
19312
19313         strerror_r-posix: Tweaks.
19314         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
19315         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
19316         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
19317         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
19318         (gl_FUNC_STRERROR_R): ... to here.
19319         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
19320
19321 2011-06-07  Eric Blake  <eblake@redhat.com>
19322
19323         perror: document fixed bugs
19324         * doc/posix-functions/perror.texi (perror): Document recent
19325         patches.
19326
19327 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
19328
19329         stat-time: get_stat_birthtime failure is better-defined
19330         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
19331         return a timestamp whose tv_sec and tv_nsec values are both -1.
19332         Previously, the spec said only that the tv_nsec value was negative.
19333         This upward-compatible change simplifies GNU tar a bit.
19334
19335 2011-06-07  Eric Blake  <eblake@redhat.com>
19336
19337         strerror_r-posix: work around cygwin 1.7.9
19338         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
19339         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
19340         bug without replacing strerror_r.
19341         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
19342         strerror_r is buggy, but without requiring strerror_r compilation.
19343         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
19344
19345         test-perror: relax test to ignore cygwin bug
19346         * tests/test-perror2.c (main): Relax test on requiring detection
19347         of stream errors, and use unbuffered stream.
19348         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
19349         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
19350         * doc/posix-functions/fputc.texi (fputc): Likewise.
19351         * doc/posix-functions/fputs.texi (fputs): Likewise.
19352         * doc/posix-functions/fputws.texi (fputws): Likewise.
19353         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
19354         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
19355         * doc/posix-functions/getopt.texi (getopt): Likewise.
19356         * doc/posix-functions/perror.texi (perror): Likewise.
19357         * doc/posix-functions/printf.texi (printf): Likewise.
19358         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
19359         * doc/posix-functions/psignal.texi (psignal): Likewise.
19360         * doc/posix-functions/putc.texi (putc): Likewise.
19361         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
19362         Likewise.
19363         * doc/posix-functions/putchar.texi (putchar): Likewise.
19364         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
19365         Likewise.
19366         * doc/posix-functions/puts.texi (puts): Likewise.
19367         * doc/posix-functions/putwc.texi (putwc): Likewise.
19368         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
19369         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
19370         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
19371         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
19372         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
19373         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
19374         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
19375         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
19376
19377 2011-05-22  Bruno Haible  <bruno@clisp.org>
19378
19379         strerror: Move AC_LIBOBJ invocations to module description.
19380         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
19381         gl_PREREQ_STRERROR invocations from here...
19382         * modules/strerror (configure.ac): ... to here.
19383
19384 2011-05-21  Bruno Haible  <bruno@clisp.org>
19385
19386         perror: Use common idiom.
19387         * modules/perror (configure.ac): Reorder statements.
19388
19389 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
19390
19391         tests: fix usage message in 'mktempd_'
19392         * tests/init.sh (mktempd_): In the usage message, use literal
19393         'mktempd_', not '$ME' (which is even undefined), as the name of
19394         the subroutine.
19395
19396 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
19397
19398         tests init: new function 'fatal_', for hard errors
19399         Before this patch, the only way offered by tests/init.sh to
19400         properly signal a hard error was the `framework_failure_'
19401         function.  But the error message issued by that function,
19402         as its name would suggest, refers to a set-up failure in the
19403         testsuite, while hard errors can obviously also be due to
19404         other reasons.  The best way to fix this inconsistency is to
19405         introduce a new function with a more general error message.
19406         * tests/init.sh (fatal_): New function.
19407
19408 2011-06-06  Eric Blake  <eblake@redhat.com>
19409
19410         canonicalize-lgpl: use common idiom
19411         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
19412         over newer POSIX -Rf.
19413         Reported by Bruno Haible.
19414
19415         canonicalize-lgpl: work around AIX realpath bug
19416         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
19417         * doc/posix-functions/realpath.texi (realpath): Document it.
19418         Reported by Bruno Haible.
19419
19420         strerror: work around FreeBSD bug
19421         * lib/strerror.c (strerror): Special case 0.
19422         Reported by Bruno Haible.
19423
19424         strerror-override: avoid bloating errno module
19425         * modules/errno (Files, configure.ac): Move replacement strings...
19426         * modules/strerror-override: ...to new module.
19427         * modules/strerror (Depends-on): Add strerror-override.
19428         * modules/strerror_r-posix (Depends-on): Likewise.
19429         * MODULES.html.sh: Document new module.
19430         Reported by Bruno Haible.
19431
19432 2011-06-06  Bruno Haible  <bruno@clisp.org>
19433
19434         spawn-pipe tests: Rename program.
19435         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
19436         * tests/test-spawn-pipe-child.c: Update comment.
19437         * tests/test-spawn-pipe.sh: Update.
19438         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
19439
19440         spawn-pipe tests: Link the child program only against libc.
19441         * tests/test-spawn-pipe-child.c: New file, extracted from
19442         tests/test-spawn-pipe.c.
19443         (main): Expect only one argument.
19444         (is_open): New function, copied from tests/test-pipe.c.
19445         * tests/test-spawn-pipe.c: Don't include <errno.h>.
19446         (child_main): Remove function.
19447         (test_pipe): Pass only one argument to the child program.
19448         (main): Remove child process code. Expect the child program's name as
19449         first argument.
19450         * tests/test-spawn-pipe.sh: Pass the child program's name as first
19451         argument.
19452         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
19453         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
19454         test-spawn-pipe-child against no libraries.
19455
19456 2011-06-06  Bruno Haible  <bruno@clisp.org>
19457
19458         careadlinkat: Avoid mismatch between ssize_t and int.
19459         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
19460         * lib/careadlinkat.c (careadlinkatcwd): Define always.
19461
19462 2011-06-06  Jim Meyering  <meyering@redhat.com>
19463
19464         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
19465         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
19466         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
19467
19468 2011-06-05  Bruno Haible  <bruno@clisp.org>
19469
19470         ansi-c++-opt: Interoperability with libtool.
19471         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
19472         set the variable to "no", not to ":".
19473         * NEWS: Mention the change.
19474
19475 2011-06-05  Bruno Haible  <bruno@clisp.org>
19476
19477         acl: Fix test failure on AIX 7.
19478         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
19479         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
19480
19481 2011-06-05  Bruno Haible  <bruno@clisp.org>
19482
19483         pipe-filter-ii: Fix test failure on AIX and IRIX.
19484         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
19485         with EAGAIN, retry with a smaller buffer size.
19486
19487 2011-06-05  Bruno Haible  <bruno@clisp.org>
19488
19489         localename: Fix link dependencies.
19490         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
19491         * modules/localename-tests (Makefile.am): Link test-localename with
19492         $(LIBTHREAD).
19493
19494 2011-06-05  Bruno Haible  <bruno@clisp.org>
19495
19496         error: Avoid gcc warning.
19497         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
19498
19499 2011-06-05  Bruno Haible  <bruno@clisp.org>
19500
19501         unsetenv: Avoid gcc warning.
19502         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
19503
19504 2011-06-05  Bruno Haible  <bruno@clisp.org>
19505
19506         setenv: Avoid gcc warning.
19507         * lib/setenv.c (setenv): Provide declaration if system lacks it.
19508
19509 2011-06-05  Bruno Haible  <bruno@clisp.org>
19510
19511         sys_select: Ensure memset is declared also on AIX 7.
19512         * lib/sys_select.in.h: Include <string.h> also on AIX.
19513         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
19514         self-contained also on AIX 7.1.
19515
19516 2011-06-04  Jim Meyering  <meyering@redhat.com>
19517
19518         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
19519         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
19520         function name, "error".
19521         (_gl_translatable_diag_func_re): New configurable variable.
19522
19523 2011-06-04  Bruno Haible  <bruno@clisp.org>
19524
19525         getopt: Avoid gcc warning.
19526         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
19527
19528 2011-06-04  Bruno Haible  <bruno@clisp.org>
19529
19530         strerror_r: Fix comments.
19531         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
19532         commit.
19533
19534 2011-06-04  Bruno Haible  <bruno@clisp.org>
19535
19536         perror: Fix compilation error.
19537         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
19538         Undefine fprintf, not sprintf.
19539         * modules/perror (Depends-on): Remove intprops, verify.
19540
19541 2011-06-04  Bruno Haible  <bruno@clisp.org>
19542
19543         setlocale: Enable replacement on Cygwin 1.5.
19544         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
19545         Cygwin 1.5.x.
19546         * doc/posix-functions/setlocale.texi: Mention that the problem with the
19547         LC_CTYPE category also exists on Cygwin 1.5.x.
19548
19549 2011-06-04  Bruno Haible  <bruno@clisp.org>
19550
19551         strerror-override: Don't disable symbol renamings.
19552         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
19553         * lib/strerror-override.c: Include config.h.
19554         (strerror_override): Don't undefine.
19555
19556 2011-06-03  Bruno Haible  <bruno@clisp.org>
19557
19558         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
19559         * lib/localename.h: Update copyright header.
19560         * lib/localename.c: Likewise.
19561         * lib/relocatable.h: Likewise.
19562         * lib/relocatable.c: Likewise.
19563
19564 2011-06-02  Bruno Haible  <bruno@clisp.org>
19565
19566         doc: Fix a module name.
19567         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
19568
19569 2011-06-02  Bruno Haible  <bruno@clisp.org>
19570
19571         pipe2: Remove dependency on 'nonblocking' module.
19572         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
19573         O_NONBLOCK is defined by gnulib.
19574         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
19575         is zero.
19576         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
19577         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
19578         defined by gnulib.
19579         (get_nonblocking_flag): New function.
19580         (main): Test O_NONBLOCK flag only if it is nonzero.
19581         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
19582
19583 2011-06-03  Jim Meyering  <meyering@redhat.com>
19584
19585         maint: three new prohibit-header-without-use rules
19586         Prohibit use of cloexec.h, posixver.h, same.h without use.
19587         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
19588         (sc_prohibit_posixver_without_use): Likewise.
19589         (sc_prohibit_same_without_use): Likewise.
19590
19591 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
19592
19593         allocator: 'die' routine is now given requested size
19594         * lib/allocator.h (struct allocator.die): New size arg.
19595         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
19596         If the actual problem is an ssize_t limitation, not a size_t or
19597         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
19598
19599 2011-06-01  Eric Blake  <eblake@redhat.com>
19600
19601         strerror: drop strerror_r dependency
19602         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
19603         * lib/strerror-override.c (strerror_override): ...to new file.
19604         * lib/strerror-override.h: Add prototype.
19605         * lib/strerror-impl.h: Delete.
19606         * lib/strerror.c (strerror): New implementation.
19607         * modules/errno (Files): Add new files.
19608         (configure.ac): Compile new file as appropriate.
19609         * modules/strerror (Files): Drop unused file.
19610         (Depends-on): Drop strerror_r-posix.
19611         * MODULES.html.sh: Document strerror_r-posix.
19612         Requested by Sam Steingold.
19613
19614         perror: call strerror_r directly
19615         * modules/perror (Files): Drop strerror-impl.h.
19616         * lib/perror.c (perror): Use our own stack buffer, rather than
19617         calling a wrapper that uses static storage.
19618         * doc/posix-functions/perror.texi (perror): Document a limitation
19619         of our replacement.
19620
19621         strerror_r: fix includes for FreeBSD
19622         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
19623         since we use abort on some platforms.
19624         Reported by Matthias Bolte.
19625
19626 2011-05-31  Bruno Haible  <bruno@clisp.org>
19627
19628         Fix link errors in tests: openat-die uses gettext-h.
19629         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
19630         against $(LIBINTL).
19631         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
19632         against $(LIBINTL).
19633         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
19634         $(LIBINTL).
19635         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
19636         against $(LIBINTL).
19637         * modules/linkat-tests (Makefile.am): Link test-linkat against
19638         $(LIBINTL).
19639         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
19640         $(LIBINTL).
19641         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
19642         against $(LIBINTL).
19643         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
19644         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
19645         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
19646         $(LIBINTL).
19647         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
19648         $(LIBINTL).
19649         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
19650         $(LIBINTL).
19651         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
19652
19653 2011-05-31  Bruno Haible  <bruno@clisp.org>
19654
19655         Fix link errors in tests: wait-process uses gettext-h.
19656         * modules/nonblocking-pipe-tests (Makefile.am): Set
19657         test_nonblocking_pipe_main_LDADD.
19658         * modules/nonblocking-socket-tests (Makefile.am): Link
19659         test-nonblocking-socket-main against $(LIBINTL).
19660         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
19661
19662 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
19663
19664         assert-h: work around 'verify' incompatibility
19665         * lib/verify.h: Use @...@ directives, not ifdef.
19666         * modules/assert-h (assert.h): Implement the directives.
19667         (assert.h): Substitute the symbol-prefix more consistently.
19668
19669 2011-05-29  Jim Meyering  <meyering@redhat.com>
19670
19671         trim: remove three superfluous assignments
19672         * lib/trim.c (trim2): Remove three superfluous assignments
19673         and correct brace positioning.
19674
19675 2011-05-29  Bruno Haible  <bruno@clisp.org>
19676
19677         wctype-h: Avoid namespace pollution on Solaris 2.6.
19678         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
19679         identifiers.
19680         * doc/posix-headers/wctype.texi: Mention the problem.
19681         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
19682
19683 2011-05-28  Jim Meyering  <meyering@redhat.com>
19684
19685         parse-datetime.y: accommodate -Wstrict-overflow
19686         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
19687         placate -Wstrict-overflow.
19688
19689         trim: avoid a warning from -O2 -Wstrict-overflow
19690         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
19691
19692 2011-05-29  Bruno Haible  <bruno@clisp.org>
19693
19694         gnulib-tool: Fix bug in yesterday's commit.
19695         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
19696         twice.
19697
19698 2011-05-29  Bruno Haible  <bruno@clisp.org>
19699
19700         Allow multiple gnulib generated include files to be combined.
19701         * gnulib-tool (func_compute_include_guard_prefix): New function.
19702         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
19703         ${gl_include_guard_prefix} references.
19704         (func_import, func_create_testdir): Invoke
19705         func_compute_include_guard_prefix.
19706         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
19707         * lib/ctype.in.h: Likewise.
19708         * lib/dirent.in.h: Likewise.
19709         * lib/errno.in.h: Likewise.
19710         * lib/fcntl.in.h: Likewise.
19711         * lib/float.in.h: Likewise.
19712         * lib/getopt.in.h: Likewise.
19713         * lib/iconv.in.h: Likewise.
19714         * lib/langinfo.in.h: Likewise.
19715         * lib/locale.in.h: Likewise.
19716         * lib/math.in.h: Likewise.
19717         * lib/netdb.in.h: Likewise.
19718         * lib/netinet_in.in.h: Likewise.
19719         * lib/poll.in.h: Likewise.
19720         * lib/pthread.in.h: Likewise.
19721         * lib/pty.in.h: Likewise.
19722         * lib/sched.in.h: Likewise.
19723         * lib/se-selinux.in.h: Likewise.
19724         * lib/search.in.h: Likewise.
19725         * lib/signal.in.h: Likewise.
19726         * lib/spawn.in.h: Likewise.
19727         * lib/stdarg.in.h: Likewise.
19728         * lib/stddef.in.h: Likewise.
19729         * lib/stdint.in.h: Likewise.
19730         * lib/stdio.in.h: Likewise.
19731         * lib/stdlib.in.h: Likewise.
19732         * lib/string.in.h: Likewise.
19733         * lib/strings.in.h: Likewise.
19734         * lib/sys_file.in.h: Likewise.
19735         * lib/sys_ioctl.in.h: Likewise.
19736         * lib/sys_select.in.h: Likewise.
19737         * lib/sys_socket.in.h: Likewise.
19738         * lib/sys_stat.in.h: Likewise.
19739         * lib/sys_time.in.h: Likewise.
19740         * lib/sys_times.in.h: Likewise.
19741         * lib/sys_uio.in.h: Likewise.
19742         * lib/sys_utsname.in.h: Likewise.
19743         * lib/sys_wait.in.h: Likewise.
19744         * lib/sysexits.in.h: Likewise.
19745         * lib/termios.in.h: Likewise.
19746         * lib/time.in.h: Likewise.
19747         * lib/unistd.in.h: Likewise.
19748         * lib/wchar.in.h: Likewise.
19749         * lib/wctype.in.h: Likewise.
19750         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
19751         * modules/ctype (Makefile.am): Likewise.
19752         * modules/dirent (Makefile.am): Likewise.
19753         * modules/errno (Makefile.am): Likewise.
19754         * modules/fcntl-h (Makefile.am): Likewise.
19755         * modules/float (Makefile.am): Likewise.
19756         * modules/getopt-posix (Makefile.am): Likewise.
19757         * modules/iconv-h (Makefile.am): Likewise.
19758         * modules/langinfo (Makefile.am): Likewise.
19759         * modules/locale (Makefile.am): Likewise.
19760         * modules/math (Makefile.am): Likewise.
19761         * modules/netdb (Makefile.am): Likewise.
19762         * modules/netinet_in (Makefile.am): Likewise.
19763         * modules/poll-h (Makefile.am): Likewise.
19764         * modules/pthread (Makefile.am): Likewise.
19765         * modules/pty (Makefile.am): Likewise.
19766         * modules/sched (Makefile.am): Likewise.
19767         * modules/search (Makefile.am): Likewise.
19768         * modules/selinux-h (Makefile.am): Likewise.
19769         * modules/signal (Makefile.am): Likewise.
19770         * modules/spawn (Makefile.am): Likewise.
19771         * modules/stdarg (Makefile.am): Likewise.
19772         * modules/stddef (Makefile.am): Likewise.
19773         * modules/stdint (Makefile.am): Likewise.
19774         * modules/stdio (Makefile.am): Likewise.
19775         * modules/stdlib (Makefile.am): Likewise.
19776         * modules/string (Makefile.am): Likewise.
19777         * modules/strings (Makefile.am): Likewise.
19778         * modules/sys_file (Makefile.am): Likewise.
19779         * modules/sys_ioctl (Makefile.am): Likewise.
19780         * modules/sys_select (Makefile.am): Likewise.
19781         * modules/sys_socket (Makefile.am): Likewise.
19782         * modules/sys_stat (Makefile.am): Likewise.
19783         * modules/sys_time (Makefile.am): Likewise.
19784         * modules/sys_times (Makefile.am): Likewise.
19785         * modules/sys_uio (Makefile.am): Likewise.
19786         * modules/sys_utsname (Makefile.am): Likewise.
19787         * modules/sys_wait (Makefile.am): Likewise.
19788         * modules/sysexits (Makefile.am): Likewise.
19789         * modules/termios (Makefile.am): Likewise.
19790         * modules/time (Makefile.am): Likewise.
19791         * modules/unistd (Makefile.am): Likewise.
19792         * modules/wchar (Makefile.am): Likewise.
19793         * modules/wctype-h (Makefile.am): Likewise.
19794         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
19795
19796 2011-05-29  Bruno Haible  <bruno@clisp.org>
19797
19798         assert-h: Allow multiple gnulib generated replacements to coexist.
19799         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
19800
19801 2011-05-29  Bruno Haible  <bruno@clisp.org>
19802
19803         argp: Allow coexistence with strerror_r-posix module.
19804         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
19805         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
19806         by gnulib's <string.h> replacement), assume it has the POSIX signature,
19807         not the glibc signature.
19808
19809 2011-05-28  Bruno Haible  <bruno@clisp.org>
19810
19811         gnulib-tool: Alternative structure of testdirs, similar to --import.
19812         * gnulib-tool: New option --single-configure.
19813         (func_usage): Document it.
19814         (single_configure): New variable.
19815         (func_modules_transitive_closure_separately,
19816         func_modules_transitive_closure_separately,
19817         func_determine_use_libtests, func_modules_add_dummy_separately,
19818         func_modules_to_filelist_separately): New functions, extracted from
19819         func_import.
19820         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
19821         (func_import): Use the new functions.
19822         (func_create_testdir): Set final_modules. Handle $single_configure =
19823         true case.
19824
19825 2011-05-28  Bruno Haible  <bruno@clisp.org>
19826
19827         getloadavg: Remove an unreliable safety check.
19828         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
19829         getloadavg.c is in place.
19830         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
19831         Reported by Sam Steingold <sds@gnu.org>.
19832
19833 2011-05-28  Bruno Haible  <bruno@clisp.org>
19834
19835         doc: Cleanup yet another file produced by texinfo.tex.
19836         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
19837
19838 2011-05-28  Bruno Haible  <bruno@clisp.org>
19839
19840         Finish the conditional dependencies mechanism.
19841         * gnulib-tool: New option --no-conditional-dependencies.
19842         (func_usage): Document it. Don't mark --conditional-dependencies as
19843         experimental.
19844         (cond_dependencies): The possible values can now be true, false, empty.
19845         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
19846         (func_import): Store setting in gnulib-cache.m4 and read it from there.
19847         * doc/gnulib-tool.texi (Conditional dependencies): New section.
19848
19849 2011-05-28  Bruno Haible  <bruno@clisp.org>
19850
19851         doc: Use a recent texinfo.tex.
19852         * doc/Makefile (tex_opts): New variable.
19853         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
19854
19855 2011-05-28  Jim Meyering  <meyering@redhat.com>
19856
19857         intprops.h: adjust comment to match code change
19858         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
19859         only once, it *may* have side effects.  Also fix an unrelated typo.
19860         (_GL_INT_SIGNED): Likewise.
19861
19862 2011-05-26  Simon Josefsson  <simon@josefsson.org>
19863
19864         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
19865
19866 2011-05-26  Bruno Haible  <bruno@clisp.org>
19867
19868         mbsrchr: Avoid collision with system function on Interix.
19869         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
19870         Reported by Markus Duft <mduft@gentoo.org>.
19871
19872 2011-05-15  James Youngman  <jay@gnu.org>
19873
19874         getopt: for ambiguous options, enumerate the possibilities.
19875         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
19876         the ambiguous options when an ambiguous prefix is given. This was
19877         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
19878         glibc change was
19879         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
19880
19881 2011-05-25  Eric Blake  <eblake@redhat.com>
19882
19883         getcwd: work around mingw bug
19884         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
19885         * doc/posix-functions/getcwd.texi (getcwd): Document it.
19886         Reported by Matthias Bolte.
19887
19888 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
19889
19890         test-intprops: disable -Wtype-limits diagnostics
19891         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
19892         diagnostics.  Otherwise, the integer overflow macros generate many
19893         diagnostics.  Reported by Jim Meyering in
19894         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
19895
19896         intprops: shorten, to pacify gcc -Woverlength-strings
19897         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
19898         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
19899         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
19900         likely to run afoul of C compiler limits for string constant lengths.
19901         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
19902
19903 2011-05-24  Eric Blake  <eblake@redhat.com>
19904
19905         docs: document recently fixed glibc printf bug
19906         * doc/posix-functions/fprintf.texi (fprintf): Document it.
19907         * doc/posix-functions/printf.texi (printf): Likewise.
19908         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
19909         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
19910
19911         closein-tests: convert to init.sh
19912         * modules/closein-tests (Files): Add init.sh
19913         * tests/test-closein.sh Use it.
19914
19915         yesno-tests: convert to init.sh
19916         * modules/yesno-tests (Files): Add init.sh.
19917         * tests/test-yesno.sh: Use it.
19918
19919         atexit-tests: ensure reliable exit status
19920         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
19921         Reported by Bruno Haible.
19922
19923 2011-05-24  Bruno Haible  <bruno@clisp.org>
19924
19925         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
19926         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
19927         gl_PREREQ_STRERROR_R invocations from here...
19928         * modules/strerror_r-posix (configure.ac): ... to here.
19929
19930 2011-05-24  Eric Blake  <eblake@redhat.com>
19931
19932         strerror_r: fix missing header
19933         * lib/strerror_r.c: Avoid compiler warning about snprintf.
19934
19935         strerror_r: fix AIX test failures
19936         * lib/strerror_r.c (strerror_r): Convert silent truncation to
19937         ERANGE failure.
19938
19939         strerror_r: fix Solaris test failures
19940         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
19941         failures.
19942         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
19943
19944         strerror_r: enforce POSIX recommendations
19945         * lib/strerror_r.c (safe_copy): New helper method.
19946         (strerror_r): Guarantee a non-empty string.
19947         * tests/test-strerror_r.c (main): Enhance tests to incorporate
19948         recent POSIX rulings and to match our strerror guarantees.
19949         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
19950
19951 2011-05-24  Jim Meyering  <meyering@redhat.com>
19952
19953         test-perror2.c: avoid warning about unused variable
19954         * tests/test-perror2.c (main): Remove declaration of unused "fp".
19955
19956 2011-05-24  Eric Blake  <eblake@redhat.com>
19957
19958         perror: avoid spurious test failure on HP-UX
19959         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
19960
19961         tests: fix logic bug in init.sh
19962         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
19963         shell.
19964
19965 2011-05-24  Jim Meyering  <meyering@redhat.com>
19966
19967         utimensat: do not reference an out-of-scope buffer
19968         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
19969         declared in an inner scope, yet "times" would be dereferenced outside
19970         the scope in which "ts" was valid.
19971         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
19972         of ts[2] "out/up", so that the use of aliased "times" (via
19973         "times = ts;") does not end up referencing an out-of-scope "ts"
19974
19975         opendir-safer.c: don't clobber errno; don't close negative FD
19976         * lib/opendir-safer.c (opendir_safer):
19977         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
19978         file descriptor, and more importantly, don't clobber the
19979         offending errno value with EINVAL.  Before, upon failure
19980         of dup_safer, we would pass the negative file descriptor to
19981         fdopendir, which would clobber errno.
19982
19983 2011-05-23  Bruno Haible  <bruno@clisp.org>
19984
19985         idcache: Fix module description.
19986         * modules/idcache (Include): Set to "idcache.h".
19987
19988 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
19989
19990         gnulib-tool: fix portability problem with MacOS sed
19991         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
19992         before the "}".  Problem reported by Leo in
19993         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
19994         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
19995         sed_extract_condition1, sed_extract_condition2.
19996
19997 2011-05-23  Bruno Haible  <bruno@clisp.org>
19998
19999         hash: Simplify autoconf macro.
20000         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
20001
20002 2011-05-23  Bruno Haible  <bruno@clisp.org>
20003
20004         getugroups: Fix module description.
20005         * modules/getugroups (Include): Set to "getugroups.h".
20006
20007 2011-05-23  Bruno Haible  <bruno@clisp.org>
20008
20009         linkat: Simplify autoconf macro.
20010         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
20011
20012 2011-05-23  Bruno Haible  <bruno@clisp.org>
20013             Eric Blake  <eblake@redhat.com>
20014
20015         linkat, renameat: Update dependencies.
20016         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
20017         * modules/linkat (Depends-on): Likewise. Remove also readlink,
20018         symlinkat.
20019
20020 2011-05-23  Jim Meyering  <meyering@redhat.com>
20021
20022         maint.mk: more tight_scope improvements
20023         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
20024         (_gl_TS_headers): Define only in if-0'd block.
20025         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
20026         sometimes we must *not* use it.  Adjust uses accordingly.
20027         (sc_tight_scope): Use much simpler grep-based test to determine
20028         whether we skip this rule.
20029
20030         maint.mk: generalize/improve the tight-scope rule
20031         * top/maint.mk: Emit a warning when the test is skipped.
20032         (_gl_TS_dir): Add $(srcdir)/ prefix.
20033         (_gl_TS_function_match): Simplify, rather than trying
20034         to enumerate common types.  Otherwise, it would fail to match an
20035         "extern unsigned char const *" declaration in idutils.
20036         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
20037         a way to support use of that type of macro.
20038         (_gl_TS_var_match): Simplify regexp.
20039         (_gl_TS_obj_files): New configurable variable.
20040         (_gl_TS_headers): Likewise.
20041
20042 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
20043
20044         verify: fix bug when gnulib <assert.h> is also included
20045         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
20046         is defined, not if _GL_STATIC_ASSERT_H is not defined.
20047         Perhaps there's a better way, but this fixes the immediate problem.
20048         Problem reported by Bruno Haible in
20049         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
20050
20051 2011-05-22  Bruno Haible  <bruno@clisp.org>
20052
20053         xgetcwd: Simplify autoconf macro.
20054         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
20055
20056 2011-05-22  Bruno Haible  <bruno@clisp.org>
20057
20058         New module 'mktime-internal'.
20059         * modules/mktime-internal: New file.
20060         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
20061         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
20062         mktime_internal as a C macro if libc has __mktime_internal.
20063         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
20064         conditions.
20065         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
20066
20067 2011-05-22  Bruno Haible  <bruno@clisp.org>
20068
20069         timegm: Correct mktime replacement statements.
20070         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
20071         defining mktime as a C macro. This completes a 2009-07-28 commit.
20072
20073 2011-05-22  Bruno Haible  <bruno@clisp.org>
20074
20075         timegm: Simplify autoconf macro.
20076         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
20077
20078 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
20079
20080         clock-time: change to LGPLv2+.
20081         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
20082         BSD-like but we have no mark for that; this is good enough for now.
20083
20084 2011-05-21  Bruno Haible  <bruno@clisp.org>
20085
20086         strerror_r: Fix comments.
20087         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
20088
20089 2011-05-21  Bruno Haible  <bruno@clisp.org>
20090
20091         relocatable-prog-wrapper: Fix possible link error.
20092         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
20093         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
20094         (gl_FUNC_SETENV): ... to here.
20095         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
20096         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
20097
20098 2011-05-21  Bruno Haible  <bruno@clisp.org>
20099
20100         relocatable-prog-wrapper: Assume strerror() exists.
20101         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
20102         m4/strerror.m4.
20103         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
20104         * lib/relocwrapper.c: Remove mention of strerror module.
20105         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
20106         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
20107         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
20108         C macro.
20109
20110 2011-05-21  Bruno Haible  <bruno@clisp.org>
20111
20112         select: Simplify replacement idiom.
20113         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
20114         Win32 platforms.
20115         * lib/sys_select.in.h (select): Simplify accordingly.
20116         * modules/select (Depends-on): Likewise.
20117
20118 2011-05-21  Bruno Haible  <bruno@clisp.org>
20119
20120         mkdir-p: Simplify autoconf macro.
20121         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
20122         gl_FUNC_LCHOWN.
20123
20124 2011-05-21  Eric Blake  <eblake@redhat.com>
20125
20126         strerror_r: avoid clobbering strerror on cygwin
20127         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
20128         fall back instead to sys_errlist.
20129         * modules/strerror (configure.ac): Add witness.
20130         * tests/test-strerror_r.c (main): Enhance test.
20131         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
20132         * tests/test-perror2.c (main): Free memory before exit.
20133
20134 2011-05-21  Bruno Haible  <bruno@clisp.org>
20135
20136         mkdtemp: Use gnulib naming conventions.
20137         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
20138         * modules/mkdtemp (configure.ac): Update.
20139
20140 2011-05-20  Eric Blake  <eblake@redhat.com>
20141
20142         strerror_r: avoid corrupting errno on Solaris
20143         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
20144         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
20145
20146         strerror_r: avoid compiler warning
20147         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
20148
20149         strerror_r: simplify AIX code
20150         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
20151
20152         test-perror: avoid spurious failure on FreeBSD
20153         * modules/perror-tests (Depends-on): Add strerror, now that
20154         strerror_r no longer pulls it in.
20155
20156 2011-05-20  Bruno Haible  <bruno@clisp.org>
20157
20158         strerror_r-posix: Remove unused dependencies.
20159         * modules/strerror_r-posix (Depends-on): Remove strerror.
20160         Reported by Eric Blake.
20161
20162 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
20163
20164         intprops: remove assumption about A|B representation
20165         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
20166         is a valid integer if both A and B are.  Although this is true for
20167         all known practical hosts, the C standard doesn't guarantee it,
20168         and the code need not assume it.  Also, this change may work around
20169         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
20170         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
20171
20172 2011-05-20  Eric Blake  <eblake@redhat.com>
20173
20174         perror: work around FreeBSD bug
20175         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
20176         is broken.  Move AC_LIBOBJ...
20177         * modules/perror (configure.ac): Here.
20178         * doc/posix-functions/perror.texi (perror): Document this.
20179         * tests/test-perror2.c (main): Enhance test.
20180
20181         test-perror: check for strerror interactions
20182         * tests/macros.h (STREQ): Add macro.
20183         * modules/perror-tests (Files): Add second test.
20184         * tests/test-perror2.c (main): New file.
20185         * doc/posix-functions/perror.texi (perror): Document glibc bug.
20186
20187         test-perror: rewrite to use init script
20188         * modules/perror-tests (Files): Add init.sh.
20189         * tests/test-perror.sh: Use temporary directory.
20190
20191 2011-05-20  Jim Meyering  <meyering@redhat.com>
20192
20193         maint: replace misused "a" with "an"
20194         * doc/intprops.texi: "a integer"
20195         * doc/regex.texi: "a explanation"
20196         * lib/alignof.h: "a object"
20197         * lib/argmatch.h: "a explanation"
20198         * lib/argp-help.c: "a option" and "a OPTION_DOC"
20199         * lib/stdint.in.h: "a integer"
20200         * lib/userspec.c: "a owner"
20201         * doc/gnulib.texi: Fix "a idea", and reword.
20202
20203 2011-05-19  Jim Meyering  <meyering@redhat.com>
20204
20205         maint: correct misuse of "a" and "an"
20206         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
20207         * lib/argp-help.c: "an docum...": s/an/a/
20208         * lib/argp-parse.c: "An vector": s/An/A/
20209         * lib/execute.c: "an native": s/an/a/
20210         * lib/spawn-pipe.c: Likewise.
20211         * lib/gc.h: "an Gc_rc": s/an/a/
20212         * lib/unigbrk.in.h: "an grapheme": s/an/a/
20213         * lib/fts.c: "an stat.st_dev": s/an/a/
20214
20215 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
20216
20217         intprops-tests: work around HP-UX 11.23 cc bug with constants
20218         * tests/test-intprops.c (VERIFY): New macro.
20219         (main): Use it, instead of verify, to work around the compiler bug; see
20220         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
20221
20222         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
20223         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
20224         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
20225         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
20226         (_GL_REMAINDER_OVERFLOW): Use it.
20227
20228         intprops-tests: revert unsigned part of previous change
20229         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
20230         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
20231         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
20232         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
20233
20234 2011-05-19  Bruno Haible  <bruno@clisp.org>
20235
20236         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
20237         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
20238         strerror_r() returned without filling the buffer.
20239         Reported by Eric Blake.
20240
20241 2011-05-19  Eric Blake  <eblake@redhat.com>
20242
20243         strerror_r: guarantee unchanged errno
20244         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
20245         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
20246         failure.
20247         * tests/test-strerror_r.c (main): Enhance test.
20248
20249 2011-05-19  Bruno Haible  <bruno@clisp.org>
20250
20251         strerror_r: Reorder #if blocks.
20252         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
20253         for consistency with the previous commit.
20254
20255 2011-05-19  Bruno Haible  <bruno@clisp.org>
20256
20257         perror: Avoid clobbering the strerror buffer when possible.
20258         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
20259         * lib/strerror.c: Include it.
20260         * modules/strerror (Files): Add lib/strerror-impl.h.
20261         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
20262         (my_strerror): New function, defined through lib/strerror-impl.h.
20263         (perror): Use it instead of strerror.
20264         * modules/perror (Files): Add lib/strerror-impl.h.
20265         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
20266
20267 2011-05-19  Eric Blake  <eblake@redhat.com>
20268
20269         strerror_r: fix on newer cygwin
20270         * lib/strerror_r.c (strerror_r): Cygwin now has
20271         __xpg_strerror_r, use it.
20272
20273 2011-05-19  Bruno Haible  <bruno@clisp.org>
20274
20275         strerror_r: Avoid clobbering the strerror buffer when possible.
20276         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
20277         (sys_nerr, sys_errlist): New declarations.
20278         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
20279         HP-UX, native Win32, IRIX, and 32-bit Solaris.
20280         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
20281
20282 2011-05-19  Bruno Haible  <bruno@clisp.org>
20283
20284         strerror_r: Fix test failure on mingw.
20285         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
20286         EXTEND_STRERROR_R.
20287         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
20288         macros from errno.in.h instead.
20289
20290 2011-05-19  Eric Blake  <eblake@redhat.com>
20291
20292         strerror: relax test for Solaris
20293         * tests/test-strerror.c (main): Permit Solaris behavior.
20294         * tests/test-strerror_r.c (main): Likewise.
20295
20296         strerror: enforce POSIX ruling on strerror(0)
20297         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
20298         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
20299         * lib/strerror_r.c (rpl_strerror_r): Work around it.
20300         * doc/posix-functions/strerror.texi (strerror): Document it.
20301         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
20302         * tests/test-strerror.c (main): Strengthen test.
20303         * tests/test-strerror_r.c (main): Likewise.
20304
20305 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
20306
20307         intprop-tests: port to older and more-pedantic compilers
20308         * modules/intprops-tests (Files): Add tests/macros.h.
20309         * tests/test-intprops.c: Include macros.h.
20310         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
20311         it's no longer documented to expand to an integer constant expression.
20312         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
20313         argument is floating point, as it's no longer documented to expand
20314         to an integer constant expression in that case.
20315         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
20316         compiler bugs reported by Bruno Haible.  See
20317         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
20318         (U0, U1): New constants, to work around the same bugs.  Also,
20319         in tests, use e.g., "(unsigned int) 39" rather than "39u".
20320
20321         intprops: work around C compiler bugs
20322         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
20323         bug in Sun C 5.11 2010/08/13 and other compilers; see
20324         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
20325
20326         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
20327         * doc/intprops.texi (Integer Type Determination): Fix
20328         documentation for TYPE_IS_INTEGER: it returns an constant
20329         expression, not an integer constant expression.  Fix doc for
20330         TYPE_SIGNED: it returns an integer constant expression only if its
20331         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
20332         hardly worth documented that way....)
20333
20334 2011-05-18  Bruno Haible  <bruno@clisp.org>
20335
20336         strerror_r: Avoid clobbering the strerror buffer when possible.
20337         * lib/strerror_r.c (strerror_r): Merge the three implementations.
20338         Handle gnulib defined errno values here. When strerror() returns NULL
20339         or an empty string, return EINVAL.
20340         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
20341         gnulib defined errno values here.
20342         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
20343
20344 2011-05-18  Eric Blake  <eblake@redhat.com>
20345
20346         fnmatch: avoid compiler warning
20347         * lib/fnmatch_loop.c (FCT): Use correct type.
20348         Reported by Matthias Bolte.
20349
20350 2011-05-13  Jim Meyering  <meyering@redhat.com>
20351
20352         maint.mk: three new prohibit_<HDR>_without_use rules
20353         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
20354         (sc_prohibit_stdio-safer_without_use): Likewise.
20355         (sc_prohibit_xfreopen_without_use): Likewise.
20356
20357 2011-05-17  Jim Meyering  <meyering@redhat.com>
20358
20359         announce-gen: fail if the NEWS delta is empty
20360         If there's nothing noteworthy in NEWS, then either you forgot
20361         or you shouldn't be releasing.
20362         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
20363
20364 2011-05-17  Pádraig Brady <P@draigBrady.com>
20365
20366         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
20367         reserved symbols starting with double underscore from the check.
20368
20369 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
20370
20371         intprops: add doc
20372         * doc/intprops.texi: New file, documenting intprops.
20373         * doc/gnulib.texi (Particular Modules): Include it.
20374
20375         verify: add doc to gnulib manual and fix example
20376         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
20377         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
20378         (Compile-time Assertions): Fix example so it can't overflow.
20379
20380 2011-05-17  Jim Meyering  <meyering@redhat.com>
20381
20382         warnings.m4: don't usurp save_CPPFLAGS variable name
20383         * m4/warnings.m4: Prefix local temporary variable name with gl_.
20384
20385         doc: fix typo
20386         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
20387
20388 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
20389             Bruno Haible  <bruno@clisp.org>
20390
20391         doc: Tweak recent change.
20392         * README (Portability guidelines): Tweak new text.
20393         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
20394         Interix 6.1.
20395
20396 2011-05-16  Eric Blake  <eblake@redhat.com>
20397
20398         inttypes: avoid autoconf warning
20399         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
20400         * m4/stdint.m4 (gl_STDINT_H): Likewise.
20401
20402 2011-05-16  Sam Steingold <sds@gnu.org>
20403         and Eric Blake  <eblake@redhat.com>
20404
20405         vc-list-files: accept multiple directory operands
20406         * build-aux/vc-list-files: Iterate over all remaining operands.
20407
20408 2011-05-16  Bruno Haible  <bruno@clisp.org>
20409
20410         Fix confusion regarding deprecated modules.
20411         * modules/calloc (Status, Notice): Mark module as deprecated, not
20412         obsolete.
20413         * modules/fnmatch-posix (Status, Notice): Likewise.
20414         * modules/getdate (Status, Notice): Likewise.
20415         * modules/getopt (Status, Notice): Likewise.
20416         * modules/malloc (Status, Notice): Likewise.
20417         * modules/pipe (Status, Notice): Likewise.
20418         * modules/realloc (Status, Notice): Likewise.
20419         * modules/rename-dest-slash (Status, Notice): Likewise.
20420         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
20421         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
20422         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
20423         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
20424         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
20425
20426 2011-05-16  Bruno Haible  <bruno@clisp.org>
20427
20428         doc: List the target platforms.
20429         * doc/gnulib-intro.texi (Target Platforms): New section.
20430         * doc/gnulib.texi (Introduction): Update menu.
20431         * README (Portability guidelines): Refer to the new section. Update
20432         statement about oldest supported environment. Remove rationale why
20433         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
20434         unportable C89 function.
20435         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
20436         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
20437
20438 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
20439
20440         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
20441
20442 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
20443
20444         intprops-tests: new module
20445         * modules/intprops-tests, tests/test-intprops.c: New files.
20446
20447         intprops: add safe, portable integer overflow checking
20448         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
20449         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
20450         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
20451         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
20452         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
20453         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
20454         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
20455         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
20456         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
20457         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
20458         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
20459
20460 2011-05-12  James Youngman  <jay@gnu.org>
20461
20462         Add a test for glibc's Bugzilla bug #12378.
20463         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
20464         doesn't allow the literal matching of a lone "[" (which is
20465         required by POSIX).
20466         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
20467
20468 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
20469
20470         Sync glibc change fixing Bugzilla bug #12378.
20471         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
20472         beginning and fall back to matching as normal character if the
20473         string ends before the matching ']' is found.  This is what POSIX
20474         requires.
20475
20476 2011-05-13  Eric Blake  <eblake@redhat.com>
20477
20478         getcwd-lgpl: relax test for FreeBSD
20479         * doc/posix-functions/getcwd.texi (getcwd): Document portability
20480         issue.
20481         * tests/test-getcwd-lgpl.c (main): Relax test.
20482         Reported by Matthias Bolte.
20483
20484 2011-05-11  Eric Blake  <eblake@redhat.com>
20485
20486         test-fflush: silence compiler warning
20487         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
20488
20489 2011-05-11  Bruno Haible  <bruno@clisp.org>
20490
20491         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
20492         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
20493         * modules/canonicalize (Depends-on): Add 'nocrash'.
20494         * modules/canonicalize-lgpl (Depends-on): Likewise.
20495         * doc/posix-functions/realpath.texi: Update platforms list.
20496         Reported by Ryan Schmidt <ryandesign@macports.org>.
20497
20498 2011-05-11  Bruno Haible  <bruno@clisp.org>
20499
20500         group-member: Declare function in <unistd.h>.
20501         * lib/unistd.in.h (group_member): New declaration.
20502         * lib/group-member.h: Remove file.
20503         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
20504         * tests/test-unistd-c++.cc: Check signature of group_member.
20505         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
20506         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
20507         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
20508         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
20509         HAVE_GROUP_MEMBER.
20510         * modules/group-member (Files): Remove lib/group-member.h.
20511         (Depends-on): Add unistd. Specify conditions.
20512         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
20513         (Include): Change to <unistd.h>.
20514         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
20515         HAVE_GROUP_MEMBER.
20516         * NEWS: Mention the change.
20517         * lib/euidaccess.c: Don't include group-member.h.
20518
20519 2011-05-11  Bruno Haible  <bruno@clisp.org>
20520
20521         group-member: Document module.
20522         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
20523         module.
20524
20525 2011-05-11  Bruno Haible  <bruno@clisp.org>
20526
20527         fclose: Fix mistake earlier today.
20528         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
20529
20530 2011-05-11  Eric Blake  <eblake@redhat.com>
20531
20532         fclose: preserve fflush errors
20533         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
20534         Reported by Jim Meyering.
20535
20536         bootstrap: support a prereq of 'rpcgen -' on RHEL5
20537         * build-aux/bootstrap (check_versions): When no specific version
20538         is required, merely check that the app produces an exit status
20539         that indicates its existence.
20540
20541         maint.mk: drop redundant check
20542         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
20543         the same but better.
20544
20545 2011-05-11  Bruno Haible  <bruno@clisp.org>
20546
20547         fclose: Fix possible link error.
20548         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
20549         unregister_shadow_fd. Improve comments.
20550         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
20551         Eric Blake.
20552
20553 2011-05-11  Jim Meyering  <meyering@redhat.com>
20554
20555         maint.mk: improve "can not" detection and generalize rule name
20556         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
20557         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
20558         Use the same technique as in sc_prohibit_doubled_word, so that
20559         we recognize "can not" also when the words are separated by a newline.
20560         Suggested by Eric Blake.
20561         (perl_filename_lineno_text_): Define.  Factored out of...
20562         (prohibit_doubled_word_): ...here.  Use the new definition.
20563         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
20564         (prohibit_undesirable_word_seq_RE_): New overridable variable.
20565         (ignore_undesirable_word_sequence_RE_): New overridable variable.
20566
20567 2011-05-10  Eric Blake  <eblake@redhat.com>
20568
20569         fclose: avoid double close race when possible
20570         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
20571         all but WINDOWS_SOCKETS.
20572
20573 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
20574
20575         openat: correct new comment
20576         * lib/openat-proc.c (openat_proc_name): Correct the comment.
20577
20578 2011-05-10  Jim Meyering  <meyering@redhat.com>
20579
20580         openat: add comments
20581         * lib/openat-proc.c (openat_proc_name): Add comments,
20582         mostly from Eric Blake.
20583
20584 2011-05-09  Eric Blake  <eblake@redhat.com>
20585
20586         openat: reduce syscalls in first probe of /proc
20587         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
20588         be a directory.  Simplify the probe for .. bugs.
20589         * modules/openat (Depends-on): Drop same-inode.
20590         Reported by Bastien ROUCARIES.
20591
20592 2011-05-09  Jim Meyering  <meyering@redhat.com>
20593
20594         maint.mk: change semantics/name of tight_scope variables
20595         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
20596         Rename variables to align with semantics that make them more useful.
20597
20598         maint.mk: tweak new rule's name not to impinge
20599         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
20600         (sc_tight_scope): Use new rule name rather than $@-0.
20601
20602         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
20603         * top/maint.mk (sc_tight_scope): New rule.
20604         (sc_tight_scope-0): New rule, ifdef'd out.
20605         (_gl_TS_dir): Default.
20606         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
20607         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
20608
20609 2011-05-09  Simon Josefsson  <simon@josefsson.org>
20610
20611         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
20612         Haible <bruno@clisp.org>.
20613
20614 2011-05-08  Bruno Haible  <bruno@clisp.org>
20615
20616         Comments.
20617         * m4/isnanf.m4: Add comment.
20618         * m4/isnanl.m4: Likewise.
20619
20620 2011-05-08  Bruno Haible  <bruno@clisp.org>
20621
20622         glob: Remove obsolete macro.
20623         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
20624
20625 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
20626
20627         intprops: Sun C 5.11 supports __typeof__
20628         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
20629         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
20630         which is new.
20631         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
20632
20633         intprops: switch to usual gnulib indenting and naming
20634         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
20635         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
20636
20637         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
20638
20639 2011-05-08  Jim Meyering  <meyering@redhat.com>
20640
20641         maint.mk: suppress "Entering/Leaving directory" diag in announcement
20642         * top/maint.mk (release-prep): Use make's --no-print-directory
20643         option when generating the announcement.  This eliminates the
20644         pesky "make[2]: Entering/Leaving directory" diagnostics in the
20645         generated announcement template.
20646
20647 2011-05-08  Bruno Haible  <bruno@clisp.org>
20648
20649         tzset: Fix gettimeofday wrapper on Solaris 2.6.
20650         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
20651         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
20652
20653 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
20654
20655         ignore-value, verify: Omit include files from lib_SOURCES.
20656         * modules/ignore-value, modules/verify (Makefile.am):
20657         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
20658         that leads Automake to duplicate use of am__objects_... variables
20659         in Makefile.in.  See
20660         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
20661
20662 2011-05-07  Bruno Haible  <bruno@clisp.org>
20663
20664         fclose: Simplify autoconf macro.
20665         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
20666         defined.
20667
20668 2011-05-07  Bruno Haible  <bruno@clisp.org>
20669
20670         canonicalize-lgpl: Fix autoconf macro ordering bug.
20671         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
20672         gl_STDLIB_H_DEFAULTS.
20673
20674 2011-05-06  Eric Blake  <eblake@redhat.com>
20675
20676         maintainer-makefile: make sc_po_check easier to tune
20677         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
20678         to probe for strings, such as an alternate location for gnulib.
20679
20680         fclose: guarantee behavior on seekable stdin
20681         * modules/fclose (Depends-on): Add fflush.
20682         * doc/posix-functions/fclose.texi (fclose): Document this.
20683         * tests/test-fclose.c (main): Make test for this unconditional.
20684
20685 2011-05-06  Bruno Haible  <bruno@clisp.org>
20686
20687         fflush, fpurge: Relicense under LGPLv2+.
20688         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
20689         * modules/fpurge (License): Likewise.
20690         With permission from Eric Blake and Jim Meyering.
20691         Suggested by Eric Blake.
20692
20693 2011-05-06  Karl Berry  <karl@gnu.org>
20694
20695         * MODULES.html.sh (func_all_modules): remove exit.
20696
20697 2011-05-06  Jim Meyering  <meyering@redhat.com>
20698
20699         maint.mk: use info-gnu@ as the default only for a stable release
20700         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
20701         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
20702         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
20703         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
20704
20705 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
20706
20707         assert-h: new module, which supports C1X-style static_assert
20708         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
20709         * lib/verify.h: Revamp so that this can be copied into assert.h,
20710         while retaining the ability to use it standalone as before.
20711         Rename private identifiers so as not to encroach on the
20712         standard C namespace, since this is now used by assert.h.
20713         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
20714         the old verify_true.
20715         (_GL_VERIFY_TRUE): New macro, with much of the contents of
20716         the old verify_true.  Use _GL_VERIFY_TYPE.
20717         (_GL_VERIFY): New macro, with much of the contents of the old verify.
20718         (static_assert): New macro, if _GL_STATIC_ASSERT_H
20719         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
20720         defined when this file is copied into the replacement assert.h.
20721         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
20722         and _Static_assert is not built in.
20723         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
20724         defined, and use the new macros mentioned above.
20725         * doc/posix-headers/assert.texi: Document this.
20726
20727 2011-05-05  Bruno Haible  <bruno@clisp.org>
20728
20729         fclose, fflush: Respect rules for use of AC_LIBOBJ.
20730         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
20731         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
20732         gl_REPLACE_FCLOSE here.
20733         * modules/fflush (Depends-on): Remove fclose.
20734         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
20735         combination with module 'fclose'.
20736
20737 2011-05-05  Bruno Haible  <bruno@clisp.org>
20738
20739         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
20740         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
20741         gl_FUNC_FFLUSH.
20742         (gl_FUNC_FFLUSH): Use it.
20743         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
20744         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
20745         gl_REPLACE_FSEEKO here.
20746
20747 2011-05-05  Bruno Haible  <bruno@clisp.org>
20748
20749         tzset: Relicense under LGPL.
20750         * modules/tzset (License): Change to LGPL.
20751         No agreement needed; it's a no-op.
20752
20753         strtoimax, strtoumax: Relicense under LGPL.
20754         * modules/strtoimax (License): Change to LGPL.
20755         * modules/strtoumax (License): Likewise.
20756         With permission from Jim Meyering, Paul Eggert:
20757         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
20758         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
20759
20760         getgroups: Relicense under LGPL.
20761         * modules/getgroups (License): Change to LGPL.
20762         With permission from Jim Meyering, Paul Eggert, Eric Blake:
20763         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
20764         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
20765         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
20766
20767         nanosleep: Relicense under LGPL.
20768         * modules/nanosleep (License): Change to LGPL.
20769         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
20770         Haible:
20771         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
20772         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
20773         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
20774         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
20775
20776         futimens: Relicense under LGPL.
20777         * modules/futimens (License): Change to LGPL.
20778         With permission from Eric Blake:
20779         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
20780
20781         fflush: Relicense under LGPL.
20782         * modules/fflush (License): Change to LGPL.
20783         With permission from Eric Blake, Bruno Haible, Jim Meyering:
20784         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
20785         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
20786         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
20787
20788         tmpfile: Relicense under LGPL.
20789         * modules/tmpfile (License): Change to LGPL.
20790         With permission from Ben Pfaff:
20791         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
20792
20793         isfinite: Relicense under LGPL.
20794         * modules/isfinite (License): Change to LGPL.
20795         With permission from Ben Pfaff, Bruno Haible:
20796         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
20797         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
20798
20799         acosl..tanl: Relicense under LGPL.
20800         * modules/acosl (License): Change to LGPL.
20801         * modules/asinl (License): Likewise.
20802         * modules/atanl (License): Likewise.
20803         * modules/cosl (License): Likewise.
20804         * modules/expl (License): Likewise.
20805         * modules/logl (License): Likewise.
20806         * modules/sinl (License): Likewise.
20807         * modules/sqrtl (License): Likewise.
20808         * modules/tanl (License): Likewise.
20809         Source code originally from glibc and Paolo Bonzini. Agreements:
20810         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
20811         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
20812
20813 2011-05-05  Bruno Haible  <bruno@clisp.org>
20814
20815         signal: Define sighandler_t.
20816         * lib/signal.in.h (sighandler_t): New type.
20817         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
20818         whether sighandler_t is defined.
20819         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
20820         * modules/signal (Depends-on): Add extensions.
20821         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
20822         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
20823         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
20824
20825 2011-05-05  Eric Blake  <eblake@redhat.com>
20826
20827         maint: remove useless REPLACE_*_H macros
20828         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
20829         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
20830         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
20831         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
20832         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
20833         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
20834         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
20835         * m4/btowc.m4: Update callers.
20836         * m4/dirfd.m4: Likewise.
20837         * m4/duplocale.m4: Likewise.
20838         * m4/fchdir.m4: Likewise.
20839         * m4/fdopendir.m4: Likewise.
20840         * m4/inet_ntop.m4: Likewise.
20841         * m4/inet_pton.m4: Likewise.
20842         * m4/ioctl.m4: Likewise.
20843         * m4/mbrlen.m4: Likewise.
20844         * m4/mbrtowc.m4: Likewise.
20845         * m4/mbsinit.m4: Likewise.
20846         * m4/mbsnrtowcs.m4: Likewise.
20847         * m4/mbsrtowcs.m4: Likewise.
20848         * m4/poll.m4: Likewise.
20849         * m4/setlocale.m4: Likewise.
20850         * m4/wcrtomb.m4: Likewise.
20851         * m4/wcsnrtombs.m4: Likewise.
20852         * m4/wcsrtombs.m4: Likewise.
20853         * m4/wctob.m4: Likewise.
20854         * m4/wcwidth.m4: Likewise.
20855         * modules/posix_spawn: Likewise.
20856         * modules/posix_spawn_file_actions_addclose: Likewise.
20857         * modules/posix_spawn_file_actions_adddup2: Likewise.
20858         * modules/posix_spawn_file_actions_addopen: Likewise.
20859         * modules/posix_spawn_file_actions_destroy: Likewise.
20860         * modules/posix_spawn_file_actions_init: Likewise.
20861         * modules/posix_spawnattr_destroy: Likewise.
20862         * modules/posix_spawnattr_getflags: Likewise.
20863         * modules/posix_spawnattr_getpgroup: Likewise.
20864         * modules/posix_spawnattr_getschedparam: Likewise.
20865         * modules/posix_spawnattr_getschedpolicy: Likewise.
20866         * modules/posix_spawnattr_getsigdefault: Likewise.
20867         * modules/posix_spawnattr_getsigmask: Likewise.
20868         * modules/posix_spawnattr_init: Likewise.
20869         * modules/posix_spawnattr_setflags: Likewise.
20870         * modules/posix_spawnattr_setpgroup: Likewise.
20871         * modules/posix_spawnattr_setschedparam: Likewise.
20872         * modules/posix_spawnattr_setschedpolicy: Likewise.
20873         * modules/posix_spawnattr_setsigdefault: Likewise.
20874         * modules/posix_spawnattr_setsigmask: Likewise.
20875         * modules/posix_spawnp: Likewise.
20876
20877 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
20878
20879         Add option to do-release-commit-and-tag to specify branch.
20880         * build-aux/do-release-commit-and-tag: Add --branch.
20881
20882 2011-05-03  Bruno Haible  <bruno@clisp.org>
20883
20884         Avoid unnecessary compilation units, through conditional dependencies.
20885         * modules/accept (Depends-on): Add conditions to the dependencies.
20886         * modules/acosl (Depends-on): Likewise.
20887         * modules/argz (Depends-on): Likewise.
20888         * modules/asinl (Depends-on): Likewise.
20889         * modules/atanl (Depends-on): Likewise.
20890         * modules/atoll (Depends-on): Likewise.
20891         * modules/bind (Depends-on): Likewise.
20892         * modules/btowc (Depends-on): Likewise.
20893         * modules/canonicalize-lgpl (Depends-on): Likewise.
20894         * modules/ceil (Depends-on): Likewise.
20895         * modules/ceilf (Depends-on): Likewise.
20896         * modules/ceill (Depends-on): Likewise.
20897         * modules/chdir-long (Depends-on): Likewise.
20898         * modules/chown (Depends-on): Likewise.
20899         * modules/close (Depends-on): Likewise.
20900         * modules/connect (Depends-on): Likewise.
20901         * modules/cosl (Depends-on): Likewise.
20902         * modules/dirfd (Depends-on): Likewise.
20903         * modules/dprintf (Depends-on): Likewise.
20904         * modules/dprintf-posix (Depends-on): Likewise.
20905         * modules/error (Depends-on): Likewise.
20906         * modules/euidaccess (Depends-on): Likewise.
20907         * modules/expl (Depends-on): Likewise.
20908         * modules/faccessat (Depends-on): Likewise.
20909         * modules/fchdir (Depends-on): Likewise.
20910         * modules/fclose (Depends-on): Likewise.
20911         * modules/fcntl (Depends-on): Likewise.
20912         * modules/fdopendir (Depends-on): Likewise.
20913         * modules/fflush (Depends-on): Likewise.
20914         * modules/floor (Depends-on): Likewise.
20915         * modules/floorf (Depends-on): Likewise.
20916         * modules/floorl (Depends-on): Likewise.
20917         * modules/fnmatch (Depends-on): Likewise.
20918         * modules/fopen (Depends-on): Likewise.
20919         * modules/fprintf-posix (Depends-on): Likewise.
20920         * modules/frexp (Depends-on): Likewise.
20921         * modules/frexp-nolibm (Depends-on): Likewise.
20922         * modules/frexpl (Depends-on): Likewise.
20923         * modules/frexpl-nolibm (Depends-on): Likewise.
20924         * modules/fseek (Depends-on): Likewise.
20925         * modules/fsusage (Depends-on): Likewise.
20926         * modules/ftell (Depends-on): Likewise.
20927         * modules/ftello (Depends-on): Likewise.
20928         * modules/futimens (Depends-on): Likewise.
20929         * modules/getcwd (Depends-on): Likewise.
20930         * modules/getcwd-lgpl (Depends-on): Likewise.
20931         * modules/getdelim (Depends-on): Likewise.
20932         * modules/getdomainname (Depends-on): Likewise.
20933         * modules/getgroups (Depends-on): Likewise.
20934         * modules/gethostname (Depends-on): Likewise.
20935         * modules/getline (Depends-on): Likewise.
20936         * modules/getlogin_r (Depends-on): Likewise.
20937         * modules/getopt-posix (Depends-on): Likewise.
20938         * modules/getpeername (Depends-on): Likewise.
20939         * modules/getsockname (Depends-on): Likewise.
20940         * modules/getsockopt (Depends-on): Likewise.
20941         * modules/getsubopt (Depends-on): Likewise.
20942         * modules/getusershell (Depends-on): Likewise.
20943         * modules/glob (Depends-on): Likewise.
20944         * modules/grantpt (Depends-on): Likewise.
20945         * modules/iconv_open (Depends-on): Likewise.
20946         * modules/iconv_open-utf (Depends-on): Likewise.
20947         * modules/inet_ntop (Depends-on): Likewise.
20948         * modules/inet_pton (Depends-on): Likewise.
20949         * modules/ioctl (Depends-on): Likewise.
20950         * modules/isapipe (Depends-on): Likewise.
20951         * modules/isfinite (Depends-on): Likewise.
20952         * modules/isinf (Depends-on): Likewise.
20953         * modules/lchown (Depends-on): Likewise.
20954         * modules/ldexpl (Depends-on): Likewise.
20955         * modules/link (Depends-on): Likewise.
20956         * modules/linkat (Depends-on): Likewise.
20957         * modules/listen (Depends-on): Likewise.
20958         * modules/logl (Depends-on): Likewise.
20959         * modules/lstat (Depends-on): Likewise.
20960         * modules/mbrlen (Depends-on): Likewise.
20961         * modules/mbrtowc (Depends-on): Likewise.
20962         * modules/mbsinit (Depends-on): Likewise.
20963         * modules/mbsnrtowcs (Depends-on): Likewise.
20964         * modules/mbsrtowcs (Depends-on): Likewise.
20965         * modules/mbtowc (Depends-on): Likewise.
20966         * modules/memcmp (Depends-on): Likewise.
20967         * modules/mkdir (Depends-on): Likewise.
20968         * modules/mkdtemp (Depends-on): Likewise.
20969         * modules/mkfifo (Depends-on): Likewise.
20970         * modules/mkfifoat (Depends-on): Likewise.
20971         * modules/mknod (Depends-on): Likewise.
20972         * modules/mkostemp (Depends-on): Likewise.
20973         * modules/mkostemps (Depends-on): Likewise.
20974         * modules/mkstemp (Depends-on): Likewise.
20975         * modules/mkstemps (Depends-on): Likewise.
20976         * modules/mktime (Depends-on): Likewise.
20977         * modules/nanosleep (Depends-on): Likewise.
20978         * modules/open (Depends-on): Likewise.
20979         * modules/openat (Depends-on): Likewise.
20980         * modules/perror (Depends-on): Likewise.
20981         * modules/poll (Depends-on): Likewise.
20982         * modules/popen (Depends-on): Likewise.
20983         * modules/posix_spawn (Depends-on): Likewise.
20984         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
20985         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
20986         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
20987         * modules/posix_spawnp (Depends-on): Likewise.
20988         * modules/pread (Depends-on): Likewise.
20989         * modules/printf-posix (Depends-on): Likewise.
20990         * modules/ptsname (Depends-on): Likewise.
20991         * modules/putenv (Depends-on): Likewise.
20992         * modules/pwrite (Depends-on): Likewise.
20993         * modules/readline (Depends-on): Likewise.
20994         * modules/readlink (Depends-on): Likewise.
20995         * modules/readlinkat (Depends-on): Likewise.
20996         * modules/recv (Depends-on): Likewise.
20997         * modules/recvfrom (Depends-on): Likewise.
20998         * modules/regex (Depends-on): Likewise.
20999         * modules/remove (Depends-on): Likewise.
21000         * modules/rename (Depends-on): Likewise.
21001         * modules/renameat (Depends-on): Likewise.
21002         * modules/rmdir (Depends-on): Likewise.
21003         * modules/round (Depends-on): Likewise.
21004         * modules/roundf (Depends-on): Likewise.
21005         * modules/roundl (Depends-on): Likewise.
21006         * modules/rpmatch (Depends-on): Likewise.
21007         * modules/select (Depends-on): Likewise.
21008         * modules/send (Depends-on): Likewise.
21009         * modules/sendto (Depends-on): Likewise.
21010         * modules/setenv (Depends-on): Likewise.
21011         * modules/setlocale (Depends-on): Likewise.
21012         * modules/setsockopt (Depends-on): Likewise.
21013         * modules/shutdown (Depends-on): Likewise.
21014         * modules/sigaction (Depends-on): Likewise.
21015         * modules/signbit (Depends-on): Likewise.
21016         * modules/sigprocmask (Depends-on): Likewise.
21017         * modules/sinl (Depends-on): Likewise.
21018         * modules/sleep (Depends-on): Likewise.
21019         * modules/snprintf (Depends-on): Likewise.
21020         * modules/snprintf-posix (Depends-on): Likewise.
21021         * modules/socket (Depends-on): Likewise.
21022         * modules/sprintf-posix (Depends-on): Likewise.
21023         * modules/sqrtl (Depends-on): Likewise.
21024         * modules/stat (Depends-on): Likewise.
21025         * modules/strchrnul (Depends-on): Likewise.
21026         * modules/strdup-posix (Depends-on): Likewise.
21027         * modules/strerror (Depends-on): Likewise.
21028         * modules/strerror_r-posix (Depends-on): Likewise.
21029         * modules/strndup (Depends-on): Likewise.
21030         * modules/strnlen (Depends-on): Likewise.
21031         * modules/strptime (Depends-on): Likewise.
21032         * modules/strsep (Depends-on): Likewise.
21033         * modules/strsignal (Depends-on): Likewise.
21034         * modules/strstr-simple (Depends-on): Likewise.
21035         * modules/strtod (Depends-on): Likewise.
21036         * modules/strtoimax (Depends-on): Likewise.
21037         * modules/strtok_r (Depends-on): Likewise.
21038         * modules/strtoumax (Depends-on): Likewise.
21039         * modules/symlink (Depends-on): Likewise.
21040         * modules/symlinkat (Depends-on): Likewise.
21041         * modules/tanl (Depends-on): Likewise.
21042         * modules/tcgetsid (Depends-on): Likewise.
21043         * modules/tmpfile (Depends-on): Likewise.
21044         * modules/trunc (Depends-on): Likewise.
21045         * modules/truncf (Depends-on): Likewise.
21046         * modules/truncl (Depends-on): Likewise.
21047         * modules/uname (Depends-on): Likewise.
21048         * modules/unlink (Depends-on): Likewise.
21049         * modules/unlockpt (Depends-on): Likewise.
21050         * modules/unsetenv (Depends-on): Likewise.
21051         * modules/usleep (Depends-on): Likewise.
21052         * modules/utimensat (Depends-on): Likewise.
21053         * modules/vasprintf (Depends-on): Likewise.
21054         * modules/vdprintf (Depends-on): Likewise.
21055         * modules/vdprintf-posix (Depends-on): Likewise.
21056         * modules/vfprintf-posix (Depends-on): Likewise.
21057         * modules/vprintf-posix (Depends-on): Likewise.
21058         * modules/vsnprintf (Depends-on): Likewise.
21059         * modules/vsnprintf-posix (Depends-on): Likewise.
21060         * modules/vsprintf-posix (Depends-on): Likewise.
21061         * modules/wcrtomb (Depends-on): Likewise.
21062         * modules/wcscasecmp (Depends-on): Likewise.
21063         * modules/wcscspn (Depends-on): Likewise.
21064         * modules/wcsdup (Depends-on): Likewise.
21065         * modules/wcsncasecmp (Depends-on): Likewise.
21066         * modules/wcsnrtombs (Depends-on): Likewise.
21067         * modules/wcspbrk (Depends-on): Likewise.
21068         * modules/wcsrtombs (Depends-on): Likewise.
21069         * modules/wcsspn (Depends-on): Likewise.
21070         * modules/wcsstr (Depends-on): Likewise.
21071         * modules/wcstok (Depends-on): Likewise.
21072         * modules/wcswidth (Depends-on): Likewise.
21073         * modules/wctob (Depends-on): Likewise.
21074         * modules/wctomb (Depends-on): Likewise.
21075         * modules/wctype (Depends-on): Likewise.
21076         * modules/wcwidth (Depends-on): Likewise.
21077         * modules/write (Depends-on): Likewise.
21078
21079 2011-05-03  Bruno Haible  <bruno@clisp.org>
21080
21081         Support for conditional dependencies.
21082         * doc/gnulib.texi (Module description): Document the syntax of
21083         conditional dependencies.
21084         * gnulib-tool: New option --conditional-dependencies.
21085         (func_usage): Document it.
21086         (cond_dependencies): New variable.
21087         (func_get_automake_snippet_conditional,
21088         func_get_automake_snippet_unconditional): New functions, extracted from
21089         func_get_automake_snippet.
21090         (func_get_automake_snippet): Use them.
21091         (sed_first_32_chars): New variable.
21092         (func_module_shellfunc_name): New function.
21093         (func_module_shellvar_name): New function.
21094         (func_module_conditional_name): New function.
21095         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
21096         func_cond_module_condition): New functions.
21097         (func_modules_transitive_closure): Add support for conditional
21098         dependencies.
21099         (func_emit_lib_Makefile_am): For a conditional module, enclose the
21100         conditional automake snippet in an automake conditional.
21101         (func_emit_autoconf_snippets): Emit shell functions that contain the
21102         code for conditional modules.
21103         (func_import, func_create_testdir): Update specification.
21104
21105 2011-05-03  Eric Blake  <eblake@redhat.com>
21106
21107         test-getaddrinfo: report error information
21108         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
21109
21110 2011-05-03  Jim Meyering  <meyering@redhat.com>
21111
21112         bootstrap: avoid build failure when $GZIP is set
21113         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
21114         program name.  If defined at all, it is supposed to list gzip options.
21115         Reported by Alan Curry in http://debbugs.gnu.org/8609
21116
21117 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
21118
21119         readme-release: new module with release instructions
21120         * modules/readme-release: New module.
21121         * top/README-release: New file, from coreutils, grep, diffutils.
21122         * MODULES.html.sh (Support for maintaining and releasing): Add it.
21123
21124 2011-05-02  Eric Blake  <eblake@redhat.com>
21125
21126         fflush: also replace fclose when fixing fflush
21127         * modules/fflush (Depends-on): Add fclose.
21128         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
21129         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
21130         memstreams with no backing fd.
21131         * doc/posix-functions/fclose.texi (fclose): Document the use of
21132         fflush module to fix the bug.
21133         * tests/test-fclose.c (main): Relax test when fclose is used in
21134         isolation.
21135
21136         fclose: add some tests
21137         * modules/fclose-tests: New test module.
21138         * tests/test-fclose.c: New file.
21139         * doc/posix-functions/fclose.texi (fclose): Document the bug.
21140
21141         fclose: reduced dependencies
21142         * modules/fclose (Depends-on): Switch from fflush/fseeko to
21143         simpler lseek.
21144         * lib/fclose.c (rpl_fclose): Likewise.
21145         Reported by Simon Josefsson.
21146
21147         exit: drop remaining clients
21148         * modules/argmatch (Depends-on): Replace exit with stdlib.
21149         * modules/copy-file (Depends-on): Likewise.
21150         * modules/execute (Depends-on): Likewise.
21151         * modules/exitfail (Depends-on): Likewise.
21152         * modules/obstack (Depends-on): Likewise.
21153         * modules/pagealign_alloc (Depends-on): Likewise.
21154         * modules/pipe-filter-gi (Depends-on): Likewise.
21155         * modules/pipe-filter-ii (Depends-on): Likewise.
21156         * modules/savewd (Depends-on): Likewise.
21157         * modules/spawn-pipe (Depends-on): Likewise.
21158         * modules/wait-process (Depends-on): Likewise.
21159         * modules/xsetenv (Depends-on): Likewise.
21160         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
21161         * modules/git-merge-changelog (Depends-on): Likewise.
21162         * modules/long-options (Depends-on): Likewise.
21163         * modules/pt_chown (Depends-on): Likewise.
21164         * modules/sysexits (Depends-on): Likewise.
21165
21166         freading: relax license from LGPLv3+ to LGPLv2+
21167         * modules/freading (License): Relax LGPL version.
21168
21169 2011-05-02  Bruno Haible  <bruno@clisp.org>
21170
21171         fchdir: Remove unused dependencies.
21172         * modules/fchdir (Depends-on): Remove include_next.
21173
21174 2011-05-02  Bruno Haible  <bruno@clisp.org>
21175
21176         gnulib-tool: Refactor.
21177         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
21178         from func_emit_autoconf_snippets.
21179         (func_emit_autoconf_snippets): Use it.
21180
21181 2011-05-02  Simon Josefsson  <simon@josefsson.org>
21182
21183         * NEWS: Document removal of 'exit'.
21184         * modules/exit: Remove file.
21185
21186 2011-05-01  Bruno Haible  <bruno@clisp.org>
21187
21188         Update DEPENDENCIES.
21189         * DEPENDENCIES (gettext): Recommend the newest release.
21190         Reported by Simon Josefsson.
21191
21192 2011-05-01  Bruno Haible  <bruno@clisp.org>
21193
21194         gnulib-tool: Reduce code duplication.
21195         * gnulib-tool (func_emit_autoconf_snippets): New function.
21196         (func_import, func_create_testdir): Use it.
21197
21198 2011-04-30  Eric Blake  <eblake@redhat.com>
21199
21200         fclose: don't fail on non-seekable input stream
21201         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
21202         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
21203         since fflush is allowed to fail in that case.
21204
21205 2011-04-30  Bruno Haible  <bruno@clisp.org>
21206
21207         dup3: cleanup
21208         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
21209
21210 2011-04-30  Bruno Haible  <bruno@clisp.org>
21211
21212         netdb: Make it work in C++ mode.
21213         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
21214         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
21215         module.
21216         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
21217         gl_MODULE_INDICATOR_FOR_TESTS.
21218         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
21219         * modules/netdb-c++-tests: New file.
21220         * tests/test-netdb-c++.cc: New file.
21221
21222 2011-04-30  Bruno Haible  <bruno@clisp.org>
21223
21224         New modules 'vfscanf', 'vscanf'.
21225         * modules/vfscanf: New file.
21226         * modules/vscanf: New file.
21227         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
21228         here.
21229         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
21230         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
21231
21232 2011-04-30  Bruno Haible  <bruno@clisp.org>
21233
21234         passfd: Add comments.
21235         * lib/passfd.c: Add comments about platforms.
21236
21237 2011-04-30  Bruno Haible  <bruno@clisp.org>
21238
21239         sys_uio: Make <sys/uio.h> self-contained.
21240         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
21241         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
21242
21243 2011-04-30  Bruno Haible  <bruno@clisp.org>
21244
21245         sys_socket: Ensure 'struct iovec' definition.
21246         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
21247         <sys/socket.h>.
21248         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
21249
21250 2011-04-30  Bruno Haible  <bruno@clisp.org>
21251
21252         sys_uio: Protect definition of 'struct iovec'.
21253         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
21254         it as a C struct.
21255
21256 2011-04-30  Bruno Haible  <bruno@clisp.org>
21257
21258         manywarnings: fix indentation
21259         * m4/manywarnings.m4: Indent by 2 spaces consistently.
21260
21261 2011-04-30  Pádraig Brady <P@draigBrady.com>
21262
21263         manywarnings: add -Wno-missing-field-initializers if needed.
21264         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
21265         option if it's needed to allow initialization with { 0, }
21266
21267 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
21268
21269         announce-gen: cosmetic improvement
21270         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
21271
21272 2011-04-29  Jim Meyering  <meyering@redhat.com>
21273
21274         vc-list-files: indent with spaces, not TABs
21275         * build-aux/vc-list-files: Convert leading TABs to spaces,
21276         to match the style of most other files in gnulib.
21277
21278         announce-gen: indent with spaces, not TABs
21279         * build-aux/announce-gen: Convert all TABs to spaces, to match
21280         the style of most other files in gnulib.
21281
21282 2011-04-29  Eric Blake  <eblake@redhat.com>
21283
21284         quotearg: avoid uninitialized variable use
21285         * lib/quotearg.c (quoting_options_from_style): Initialize
21286         remaining fields, and ensure that custom styles are only used via
21287         quoting_options rather than quoting_style.
21288
21289 2011-04-29  Jim Meyering  <meyering@redhat.com>
21290
21291         maint.mk: remove unused VC-tag variable
21292         * top/maint.mk (VC-tag): Remove unused variable.
21293
21294 2011-04-29  Bruno Haible  <bruno@clisp.org>
21295
21296         netdb: fix gai_strerror replacements
21297         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
21298         * modules/netdb: Substitute it.
21299
21300 2011-04-29  Jim Meyering  <meyering@redhat.com>
21301
21302         test-getcwd.c: avoid new set-but-not-used warning
21303         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
21304         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
21305         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
21306         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
21307
21308         test-hash.c: avoid a new shadowing warning
21309         * tests/test-hash.c (main): Don't shadow "dup".
21310
21311 2011-04-28  Eric Blake  <eblake@redhat.com>
21312
21313         getaddrinfo: fix gai_strerror signature
21314         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
21315         and work around mingw with UNICODE defined.
21316         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
21317         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
21318         * modules/netdb (Makefile.am): Substitute it.
21319         * lib/netdb.in.h (gai_strerror): Declare replacement.
21320         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
21321         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
21322         the fix.
21323
21324         getsockopt: avoid compiler warning
21325         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
21326         Reported by Matthias Bolte.
21327
21328         tests: drop unused link dependency
21329         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
21330         * modules/dirent-safer-tests (Makefile.am): Likewise.
21331         * modules/fdopendir-tests (Makefile.am): Likewise.
21332         * modules/mkfifoat-tests (Makefile.am): Likewise.
21333         * modules/openat-safer-tests (Makefile.am): Likewise.
21334         * modules/openat-tests (Makefile.am): Likewise.
21335         * modules/readlinkat-tests (Makefile.am): Likewise.
21336         * modules/symlinkat-tests (Makefile.am): Likewise.
21337         * modules/linkat-tests (Makefile.am): Likewise.
21338         (Depends-on): Switch to filenamecat-lgpl.
21339         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
21340         LIBINTL.
21341         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
21342         * tests/test-linkat.c (main): Don't require xalloc.
21343
21344         hash, mgetgroups: drop xalloc dependency
21345         * lib/hash.c (includes): Adjust includes.
21346         * lib/mgetgroups.c (includes): Likewise.
21347         (xgetgroups): Move...
21348         * lib/xgetgroups.c: ...to new file.
21349         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
21350         * modules/xgetgroups: New file, split from...
21351         * modules/mgetgroups: ...here.
21352         (Depends-on): Add xalloc-oversized.
21353         * modules/hash (Depends-on): Likewise.
21354         * modules/hash-tests (Depends-on): Drop xalloc.
21355         (test_hash_LDADD): Drop unused library.
21356         * tests/test-hash.c (main): Break xalloc dependency.
21357         (includes): Drop unused include.
21358
21359         xalloc-oversized: new module
21360         * modules/xalloc-oversized: New module.
21361         * modules/xalloc (Depends-on): Add it.
21362         * lib/xalloc.h (xalloc_oversized): Move...
21363         * lib/xalloc-oversized.h: ...into new file.
21364
21365         utimecmp: drop dependency on xmalloc
21366         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
21367         due to memory pressure.
21368         * modules/utimecmp (Depends-on): Drop xalloc.
21369
21370 2011-04-27  Eric Blake  <eblake@redhat.com>
21371
21372         getcwd: fix mingw bugs
21373         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
21374         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
21375         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
21376
21377 2011-04-27  Bruno Haible  <bruno@clisp.org>
21378
21379         mkstemps: Ensure declaration on MacOS X 10.5.
21380         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
21381         * doc/glibc-functions/mkstemps.texi: Document header file problem on
21382         MacOS X.
21383
21384 2011-04-27  Bruno Haible  <bruno@clisp.org>
21385
21386         mkstemp: More documentation.
21387         * doc/posix-functions/mkstemp.texi: Document header file problem on
21388         MacOS X.
21389
21390 2011-04-27  Bruno Haible  <bruno@clisp.org>
21391
21392         mkstemp: Tweak configure message when cross-compiling.
21393         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
21394         result as a guess.
21395
21396 2011-04-27  Bruno Haible  <bruno@clisp.org>
21397
21398         clean-temp: Clarify what it does.
21399         * lib/clean-temp.h: Add more comments.
21400         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
21401         module.
21402         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
21403         * doc/glibc-functions/mkstemps.texi: Likewise.
21404         * doc/glibc-functions/mkostemps.texi: Likewise.
21405
21406 2011-04-27  Eric Blake  <eblake@redhat.com>
21407
21408         fchdir: avoid extra chdir and fix test
21409         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
21410         getcwd-lgpl.
21411         * lib/fchdir.c (get_name): Any absolute name will do; it does not
21412         have to be canonical.
21413         (canonicalize_file_name): Drop unused macro.
21414         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
21415
21416         filenamecat-lgpl: fix licence
21417         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
21418         when it was first created.
21419
21420         linkat, renameat: add missing dependency
21421         * modules/linkat (Depends-on): Require getcwd-lgpl.
21422         * modules/renameat (Depends-on): Likewise.
21423
21424         tests: reduce dependencies
21425         * tests/test-linkat.c (main): Use lighter-weight getcwd.
21426         * tests/test-renameat.c (main): Likewise.
21427         * modules/linkat-tests (Depends-on): Relax dependency.
21428         * modules/renameat-tests (Depends-on): Likewise.
21429         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
21430         dependency explicit.
21431
21432         save-cwd: reduce default dependency
21433         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
21434         * lib/save-cwd.c: Update comments.
21435         * NEWS: Document the semantic change.
21436
21437         getcwd: enhance tests
21438         * tests/test-getcwd-lgpl.c: New file, taken from...
21439         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
21440         repeat long path stress tests from m4 probe.
21441         * modules/getcwd-lgpl-tests: New module.
21442         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
21443         * m4/getcwd-abort-bug.m4: Update comment.
21444         * m4/getcwd-path-max.m4: Likewise.
21445
21446         getcwd-lgpl: new module
21447         * modules/getcwd-lgpl: New module.
21448         * lib/getcwd-lgpl.c: New file.
21449         * doc/posix-functions/getcwd.texi (getcwd): Document it.
21450         * MODULES.html.sh (lacking POSIX:2008): Likewise.
21451         * modules/getcwd (configure.ac): Set C witness.
21452         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
21453
21454         getcwd: tweak comments
21455         * m4/getcwd-abort-bug.m4: Fix comments.
21456         * m4/getcwd-path-max.m4: Likewise.
21457         * m4/getcwd.m4: Likewise.
21458
21459 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
21460         and Eric Blake  <eblake@redhat.com>
21461
21462         mkstemp: replace if system version uses wrong permissions
21463         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
21464         read/write mode bits set in file created by mkstemp.
21465         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
21466
21467 2011-04-27  Eric Blake  <eblake@redhat.com>
21468
21469         passfd: avoid compiler warning
21470         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
21471         Reported by Laine Stump.
21472
21473 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
21474
21475         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
21476         required by the NetBSD (and perhaps other 4.4BSD derived) join.
21477
21478 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
21479         and Eric Blake  <eblake@redhat.com>
21480
21481         mkstemp: mention clean-temp module
21482         * lib/mkstemp.c: Add comment.
21483         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
21484
21485 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
21486
21487         inttypes: also provide default values for 32-bit tests
21488         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
21489         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
21490
21491 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
21492
21493         strtoumax: remove dependency on strtoimax
21494         This is like the strtoull change of yesterday.
21495         * modules/strtoumax (Files): Add lib/strtoimax.c.
21496         (Depends-on): Remove strtoimax and add verify.
21497
21498         inttypes-incomplete: new module
21499         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
21500         all but the PRI* and SCN* parts of gl_INTTYPES_H.
21501         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
21502         of gl_INTTYPES_H.
21503         (gl_INTTYPES_H): Rewrite in terms of these new macros.
21504         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
21505         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
21506         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
21507         * modules/strtoumax, modules/xstrtol (Depends-on):
21508         Depend on inttypes-incomplete, not inttypes.
21509         * modules/inttypes-incomplete: New module, containing the contents
21510         of the old modules/inttypes module, except that the Files: section
21511         omits m4/inttypes-pri.m4, and the configure.ac section invokes
21512         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
21513         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
21514         (Depends-on): Depend only on inttypes-incomplete.
21515         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
21516
21517         inttypes: omit now-redundant strtoimax and strtoumax work
21518         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
21519         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
21520
21521         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
21522         This supports apps that need pointers to strtoimax and strtoumax,
21523         and ports to HP-UX 11.00 64.bit, which has macros that expand to
21524         nonexistent functions.  See
21525         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
21526         et seq.
21527         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
21528         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
21529         a macro.
21530         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
21531
21532 2011-04-25  Simon Josefsson  <simon@josefsson.org>
21533
21534         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
21535
21536 2011-04-25  Bruno Haible  <bruno@clisp.org>
21537
21538         strtol, strtoul: Mark modules as obsolete.
21539         * modules/strtol (Status, Notice): New sections.
21540         * modules/strtoul (Status, Notice): New sections.
21541
21542 2011-04-25  Bruno Haible  <bruno@clisp.org>
21543
21544         strtod: Remove check for strtod, unless supporting old platforms.
21545         * modules/strtod-obsolete: New file.
21546         * m4/strtod-obsolete.m4: New file.
21547         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
21548         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
21549         * modules/strtod (Depends-on): Add strtod-obsolete.
21550         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
21551
21552 2011-04-25  Bruno Haible  <bruno@clisp.org>
21553
21554         strcase: Make module obsolete.
21555         * modules/strcase (Status, Notice): New sections.
21556
21557 2011-04-25  Bruno Haible  <bruno@clisp.org>
21558
21559         dup2: Remove check for dup2, unless supporting old obsolete platforms.
21560         * modules/dup2-obsolete: New file.
21561         * m4/dup2-obsolete.m4: New file.
21562         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
21563         gl_FUNC_DUP2_OBSOLETE is not also defined.
21564         * modules/dup2 (Depends-on): Add dup2-obsolete.
21565         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
21566
21567 2011-04-25  Bruno Haible  <bruno@clisp.org>
21568
21569         strnlen: Avoid memchr related link error on old obsolete platforms.
21570         * modules/memchr-obsolete: New file.
21571         * m4/memchr-obsolete.m4: New file.
21572         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
21573         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
21574         * modules/memchr (Depends-on): Add memchr-obsolete.
21575         * modules/strnlen (Depends-on): Likewise.
21576         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
21577
21578 2011-04-25  Jim Meyering  <meyering@redhat.com>
21579
21580         maint.mk: makefile_at_at_check extend and clean up
21581         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
21582         in addition to */Makefile.am.
21583         Exempt legitimate uses of @VAR@ notation, e.g.,
21584         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
21585         Remove obsolete coreutils-specific comment.
21586         Prompted by discussion here:
21587         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
21588
21589 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
21590
21591         strtoul: remove dependency on strtol
21592         This is so that 'configure' need not check for strtol merely because
21593         the application needs strtoul.
21594         * modules/strtoul (Files): Add lib/strtol.c.
21595         (Depends-on): Remove strtol.
21596
21597         strtoull: remove dependency on strtoul
21598         This is like the strtoll change.
21599         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
21600         (Depends-on): Remove strtoul.
21601
21602         strtoll: remove dependency on strtol
21603         This is so that 'configure' need not check for strtol merely because
21604         the application needs strtoll.
21605         * modules/strtoll (Files): Add lib/strtol.c.
21606         (Depends-on): Remove strtol.
21607
21608 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
21609
21610         inttypes: Move some configure check to module 'imaxdiv'.
21611         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
21612         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
21613         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
21614
21615 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
21616
21617         inttypes: Move some configure check to module 'imaxabs'.
21618         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
21619         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
21620         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
21621
21622 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
21623
21624         inttypes: Remove configure tests that are not needed since 2009-12-31.
21625         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
21626         gl_cv_header_working_inttypes_h.
21627
21628 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
21629
21630         * modules/strnlen (Depends-on): Remove memchr.
21631         The strnlen implementation doesn't need the memchr module's fixes; see
21632         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
21633
21634         strtol: remove dependency on wchar
21635         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
21636         * modules/strtol (Depends-on): Remove wchar.
21637
21638 2011-04-21  Eric Blake  <eblake@redhat.com>
21639
21640         passfd: fix test regression on Linux
21641         * modules/passfd-tests (configure.ac): Correct socketpair check.
21642
21643         passfd: speed up configure and drop unused code
21644         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
21645         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
21646         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
21647         Instead of probing at configure for unix_scm_rights_bsd44_way,
21648         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
21649         check to a struct member probe.
21650         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
21651         (sendfd, recvfd): Update preprocessor checks.
21652         * modules/passfd (Files): Reflect rename, and drop unused file.
21653         (Depends-on): Drop unused dependency.
21654
21655         passfd: allow compilation on mingw
21656         * modules/sys_socket (Depends-on): Add sys_uio.
21657         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
21658         iovec and a minimal struct msghdr.
21659         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
21660         * tests/test-sys_socket.c (main): Enhance test.
21661         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
21662         guaranteed to provide what we need.
21663         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
21664         * modules/passfd-tests (Depends-on): Add sys_wait.
21665         * tests/test-passfd.c (main): Skip test on mingw, for now.
21666         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
21667         partial 'struct msghdr' implementation.
21668
21669         sys_uio: new module
21670         * modules/sys_uio: New module.
21671         * modules/sys_uio-tests: Likewise.
21672         * lib/sys_uio.in.h: New file.
21673         * m4/sys_uio_h.m4: Likewise.
21674         * tests/test-sys_uio.c: Likewise.
21675         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
21676         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
21677
21678 2011-04-20  Jim Meyering  <meyering@redhat.com>
21679
21680         useless-if-before-free: avoid false-positive
21681         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
21682         disjunct so that it too requires a terminating ";".  Without that,
21683         this script would identify as useless one statement from gcc that
21684         was not:
21685           if (aligned_ptr)
21686             free (((void **) aligned_ptr) [-1]);
21687
21688 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
21689
21690         doc: update users.txt.
21691         * users.txt: Add barcode.
21692
21693 2011-04-19  Bruno Haible  <bruno@clisp.org>
21694
21695         ioctl: Remove link dependency on native Windows.
21696         * lib/fd-hook.h: Renamed from lib/close-hook.h.
21697         (gl_close_fn, gl_ioctl_fn): New types.
21698         (struct fd_hook): Renamed from struct close_hook. Change type of
21699         private_close_fn field. Add private_ioctl_fn field.
21700         (close_hook_fn): Add parameter for primary close method.
21701         (execute_close_hooks, execute_all_close_hooks): Likewise.
21702         (ioctl_hook_fn): New type.
21703         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
21704         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
21705         argument.
21706         (unregister_fd_hook): Renamed from unregister_close_hook.
21707         * lib/fd-hook.c: Renamed from lib/close-hook.c.
21708         Don't include <unistd.h>.
21709         (close): Remove undef.
21710         (anchor): Update.
21711         (execute_close_hooks): Add argument for primary close method.
21712         (execute_all_close_hooks): Likewise.
21713         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
21714         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
21715         argument. Allow each argument to be NULL.
21716         (unregister_fd_hook): Renamed from unregister_close_hook.
21717         * lib/close.c (rpl_close): Pass 'close' function pointer to
21718         execute_all_close_hooks.
21719         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
21720         (primary_ioctl): New function.
21721         (ioctl): Don't call ioctlsocket here. Instead, call
21722         execute_all_ioctl_hooks.
21723         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
21724         close method.
21725         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
21726         (fd_sockets_hook): Renamed from close_sockets_hook.
21727         (gl_sockets_startup, gl_sockets_cleanup): Update.
21728         * modules/fd-hook: Renamed from modules/close-hook. Update.
21729         * modules/close (Depends-on): Add fd-hook, remove close-hook.
21730         * modules/sockets (Depends-on): Likewise.
21731         * modules/ioctl (Depends-on): Add fd-hook.
21732         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
21733         GNULIB_SOCKET.
21734
21735 2011-04-19  Bruno Haible  <bruno@clisp.org>
21736
21737         Move the support of O_NONBLOCK in open() to the 'open' module.
21738         * modules/nonblocking (Depends-on): Remove 'open'.
21739         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
21740         gl_cv_have_open_O_NONBLOCK.
21741         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
21742         O_NONBLOCK support.
21743         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
21744
21745 2011-04-17  Bruno Haible  <bruno@clisp.org>
21746
21747         pipe2: Simplify code.
21748         * lib/pipe2.c (pipe2): Reduce code duplication.
21749
21750 2011-04-17  Bruno Haible  <bruno@clisp.org>
21751
21752         nonblocking: Add comment.
21753         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
21754
21755 2011-04-17  Bruno Haible  <bruno@clisp.org>
21756
21757         nonblocking: Add tests for sockets.
21758         * tests/test-nonblocking-socket.sh: New file.
21759         * tests/test-nonblocking-socket-main.c: New file.
21760         * tests/test-nonblocking-socket-child.c: New file.
21761         * tests/test-nonblocking-socket.h: New file.
21762         * tests/socket-server.h: New file.
21763         * tests/socket-client.h: New file.
21764         * modules/nonblocking-socket-tests: New file.
21765         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
21766
21767 2011-04-17  Bruno Haible  <bruno@clisp.org>
21768
21769         nonblocking: Add tests for pipes.
21770         * tests/test-nonblocking-pipe.sh: New file.
21771         * tests/test-nonblocking-pipe-main.c: New file.
21772         * tests/test-nonblocking-pipe-child.c: New file.
21773         * tests/test-nonblocking-pipe.h: New file.
21774         * tests/test-nonblocking-writer.h: New file.
21775         * tests/test-nonblocking-reader.h: New file.
21776         * tests/test-nonblocking-misc.h: New file.
21777         * modules/nonblocking-pipe-tests: New file.
21778         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
21779
21780 2011-04-16  Bruno Haible  <bruno@clisp.org>
21781
21782         gettext: Clarify the needed programmer actions.
21783         * modules/gettext (Notice): New field.
21784         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
21785
21786 2011-04-16  Bruno Haible  <bruno@clisp.org>
21787
21788         strchrnul: Tweak last commit.
21789         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
21790         bug.
21791         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
21792         as in _GL_FUNCDECL_SYS.
21793         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
21794         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
21795
21796 2011-04-15  Eric Blake  <eblake@redhat.com>
21797
21798         strchrnul: work around cygwin bug
21799         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
21800         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
21801         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
21802         * modules/string (Makefile.am): Substitute it.
21803         * lib/string.in.h (strchrnul): Use it.
21804
21805 2011-04-15  Bruno Haible  <bruno@clisp.org>
21806
21807         Don't require lib/stdio-write.c when only module 'stdio' is used.
21808         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
21809         invocation.
21810         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
21811
21812 2011-04-14  Bruno Haible  <bruno@clisp.org>
21813
21814         Support non-blocking pipe I/O in read() on native Windows.
21815         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
21816         (read): New declaration.
21817         * lib/read.c: New file.
21818         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
21819         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
21820         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
21821         vscanf): New declarations.
21822         * lib/stdio-read.c: New file.
21823         * m4/read.m4: New file.
21824         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
21825         REPLACE_READ.
21826         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
21827         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
21828         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
21829         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
21830         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
21831         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
21832         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
21833         * modules/read: New file.
21834         * modules/nonblocking (Files): Add lib/stdio-read.c.
21835         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
21836         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
21837         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
21838         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
21839         * modules/pread (Depends-on): Add read.
21840         * modules/safe-read (Depends-on): Likewise.
21841         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
21842         gets, scanf, vfscanf, vscanf): Verify signatures.
21843         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
21844         problem with non-blocking pipes.
21845         * doc/posix-functions/fgetc.texi: Likewise.
21846         * doc/posix-functions/fgets.texi: Likewise.
21847         * doc/posix-functions/fread.texi: Likewise.
21848         * doc/posix-functions/fscanf.texi: Likewise.
21849         * doc/posix-functions/getc.texi: Likewise.
21850         * doc/posix-functions/getchar.texi: Likewise.
21851         * doc/posix-functions/gets.texi: Likewise.
21852         * doc/posix-functions/scanf.texi: Likewise.
21853         * doc/posix-functions/vfscanf.texi: Likewise.
21854         * doc/posix-functions/vscanf.texi: Likewise.
21855
21856 2011-04-14  Bruno Haible  <bruno@clisp.org>
21857
21858         Support non-blocking pipe I/O in write() on native Windows.
21859         * lib/write.c (rpl_write): Split a write request that failed merely
21860         because the byte count was larger than the pipe buffer's size.
21861         * doc/posix-functions/write.texi: Mention the problem with large byte
21862         counts.
21863
21864 2011-04-14  Bruno Haible  <bruno@clisp.org>
21865
21866         wchar: Ensure that wchar_t gets defined on uClibc.
21867         * lib/wchar.in.h: On uClibc, include <stddef.h>.
21868         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
21869
21870 2011-04-13  Bruno Haible  <bruno@clisp.org>
21871
21872         safe-write, full-read: Avoid unnecessary compilation units.
21873         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
21874         (Depends-on): Remove safe-read. Add ssize_t.
21875         * modules/full-read (Files): Add lib/full-write.c.
21876         (Depends-on): Add full-write.
21877
21878 2011-04-13  Bruno Haible  <bruno@clisp.org>
21879
21880         Support non-blocking pipe I/O and SIGPIPE in pwrite().
21881         * modules/pwrite (Depends-on): Add 'write'.
21882
21883 2011-04-13  Bruno Haible  <bruno@clisp.org>
21884
21885         Support non-blocking pipe I/O in write() on native Windows.
21886         * lib/unistd.in.h (write): Enable replacement also if
21887         GNULIB_UNISTD_H_NONBLOCKING is 1.
21888         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
21889         (rpl_write): When failing to write on a non-blocking pipe, change
21890         errno from ENOSPC to EAGAIN.
21891         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
21892         putchar, puts, vfprintf, vprintf): Enable replacement also if
21893         GNULIB_STDIO_H_NONBLOCKING is 1.
21894         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
21895         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
21896         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
21897         CALL_WITH_SIGPIPE_EMULATION.
21898         (CALL_WITH_SIGPIPE_EMULATION): Use them.
21899         * m4/nonblocking.m4: New file.
21900         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
21901         for non-blocking I/O support.
21902         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
21903         GNULIB_UNISTD_H_NONBLOCKING.
21904         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
21905         required for non-blocking I/O support.
21906         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
21907         * modules/nonblocking (Files): Add m4/nonblocking.m4,
21908         lib/stdio-write.c, m4/asm-underscore.m4.
21909         (Depends-on): Add stdio, unistd.
21910         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
21911         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
21912         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
21913         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
21914         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
21915         problem with non-blocking pipes.
21916         * doc/posix-functions/fputc.texi: Likewise.
21917         * doc/posix-functions/fputs.texi: Likewise.
21918         * doc/posix-functions/fwrite.texi: Likewise.
21919         * doc/posix-functions/printf.texi: Likewise.
21920         * doc/posix-functions/putc.texi: Likewise.
21921         * doc/posix-functions/putchar.texi: Likewise.
21922         * doc/posix-functions/puts.texi: Likewise.
21923         * doc/posix-functions/vfprintf.texi: Likewise.
21924         * doc/posix-functions/vprintf.texi: Likewise.
21925         * doc/posix-functions/write.texi: Likewise.
21926
21927 2011-04-10  Jim Meyering  <meyering@redhat.com>
21928
21929         maint.mk: prohibit doubled words
21930         Detect them also when they're separated by a newline.
21931         There are 3 ways to customize it:
21932           - disable the test on a per file basis, as usual with rules using
21933             $(VC_LIST_EXCEPT)
21934           - replace the default doubled-word-selecting regexp (affects all files)
21935           - ignore a particular file-vs-doubled-word match
21936         I nearly used that last one to ignore the "is is" match in
21937         coreutils' NEWS file, since the text was "ls -is is ..."
21938         To do that, I would have added this line to cfg.mk:
21939           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
21940         but it would have ignored any "is is" match in NEWS.
21941         Low probability, but still...
21942         Instead, I changed the text, slightly:
21943           -  ls -is is now consistent with ls -lis in ignoring values returned
21944           +  "ls -is" is now consistent with ls -lis in ignoring values returned
21945         * top/maint.mk (prohibit_double_word_RE_): Provide default.
21946         (prohibit_doubled_word_): Define.
21947         (sc_prohibit_doubled_word): New rule.
21948         (sc_prohibit_the_the): Remove.  Subsumed by the above.
21949
21950 2011-04-10  Jim Meyering  <meyering@redhat.com>
21951
21952         maint: fix doubled-word typo in comment
21953         * m4/gethostname.m4: s/is is/it is/
21954         * m4/getdomainname.m4: Likewise.
21955
21956 2011-04-10  Jim Meyering  <meyering@redhat.com>
21957
21958         maint: remove doubled word: s/it it/it/
21959         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
21960
21961 2011-04-10  Jim Meyering  <meyering@redhat.com>
21962
21963         maint.mk: remove useless semicolon and backslash
21964         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
21965         semicolon and backslash.
21966
21967 2011-04-10  Bruno Haible  <bruno@clisp.org>
21968
21969         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
21970         * modules/stdint-tests (Depends-on): Add wchar.
21971
21972 2011-04-10  Jim Meyering  <meyering@redhat.com>
21973
21974         maint: remove doubled words in comments, e.g., s/a a/a/
21975         * lib/strptime.c (day_of_the_week): s/the the/the/
21976         * tests/test-chown.h (test_chown): s/a a/a/
21977
21978         test-chown.h: correct a cast
21979         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
21980         when the destination is a stat.st_gid.
21981
21982 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
21983
21984         getaddrinfo: Fix test for sa_len member.
21985         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
21986         include <sys/types.h> before <sys/socket.h>.
21987
21988 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
21989
21990         maint: change "can not" to "cannot"
21991         * doc/posix-functions/iconv.texi (iconv): This one crossed line
21992         boundaries.
21993
21994 2011-04-09  Jim Meyering  <meyering@redhat.com>
21995
21996         maint: change "a a" to "a"
21997         * tests/test-lchown.h (test_lchown): s/a a/a/
21998
21999         maint.mk: prohibit \<the the\>
22000         * top/maint.mk (sc_prohibit_the_the): New rule.
22001
22002         maint: fix "the the" in comment
22003         * lib/count-one-bits.h: s/the the/the/
22004
22005         maint: change "can not" to "cannot"
22006         But do not change the occurrences in maintain.texi or in
22007         build-aux/po/Makefile.in.in, which I presume comes from gettext.
22008         * doc/gnulib-tool.texi: s/can not/cannot/
22009         * doc/posix-functions/accept.texi (accept): Likewise.
22010         * doc/posix-functions/socket.texi (socket): Likewise.
22011         * lib/mbrtowc.c: Likewise.
22012
22013         maint.mk: prohibit use of "can not"
22014         * top/maint.mk (sc_prohibit_can_not): New rule.
22015         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
22016
22017 2011-04-09  Bruno Haible  <bruno@clisp.org>
22018
22019         careadlinkat: Guard against misuse of careadlinkatcwd.
22020         * lib/careadlinkat.c: Include <stdlib.h>.
22021         (careadlinkatcwd): Check that the fd argument is as expected.
22022
22023 2011-04-09  Bruno Haible  <bruno@clisp.org>
22024
22025         careadlinkat: Use common coding style.
22026         * lib/careadlinkat.c: Move gnulib includes after system includes.
22027
22028 2011-04-09  Bruno Haible  <bruno@clisp.org>
22029
22030         careadlinkat: Clarify specification.
22031         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
22032         (careadlinkatcwd): Add comment.
22033         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
22034
22035 2011-04-09  Bruno Haible  <bruno@clisp.org>
22036
22037         areadlinkat: Avoid link error on many platforms.
22038         * modules/areadlinkat (Depends-on): Add areadlink.
22039
22040 2011-04-09  Bruno Haible  <bruno@clisp.org>
22041
22042         allocator, careadlinkat: Fix double-inclusion guard.
22043         * lib/allocator.h: Fix double-inclusion guard.
22044         * lib/careadlinkat.h: Likewise.
22045
22046 2011-04-09  Bruno Haible  <bruno@clisp.org>
22047
22048         relocatable-prog-wrapper: Update after module 'areadlink' changed.
22049         * lib/relocwrapper.c: Update dependencies hierarchy.
22050         * build-aux/install-reloc: Update list of files to be compiled.
22051         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
22052         lib/allocator.[hc].
22053
22054 2011-04-08  Eric Blake  <eblake@redhat.com>
22055
22056         strftime: silence gnulib-tool warning
22057         * modules/strftime-tests (Depends-on): Drop automatic dependency.
22058
22059 2011-04-08  Bruno Haible  <bruno@clisp.org>
22060
22061         verify: Fix syntax error with GCC 4.6 in C++ mode.
22062         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
22063         (HAVE_STATIC_ASSERT): New macro.
22064         (verify_true, verify): Use 'static_assert' if it is supported and
22065         '_Static_assert' is not supported.
22066
22067 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
22068
22069         allocator: New module.
22070         * modules/allocator, lib/allocator.c: New files.
22071         * lib/allocator.h (stdlib_allocator): New decl.
22072         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
22073         Remove.  Do not include <stdlib.h>.
22074         (careadlinkat): Use stdlib_allocator instead of rolling our own.
22075         * modules/careadlinkat (Files): Remove lib/allocator.h.
22076         (Depends-on): Add allocator.
22077
22078         stdlib: let modules use system malloc, realloc
22079         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
22080         if !_GL_USE_STDLIB_ALLOC.
22081         (malloc, realloc): Limit this change to a smaller scope.
22082
22083         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
22084         (malloc, realloc): Don't #undef; no longer needed.
22085         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
22086         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
22087         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
22088         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
22089         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
22090         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
22091         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
22092         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
22093
22094         careadlinkat: rename members to avoid problem
22095         * lib/allocator.h (struct allocator): Rename members from
22096         malloc/realloc to allocate/reallocate, to avoid problems if malloc
22097         and realloc are #define'd.  Reported by Eric Blake in
22098         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
22099         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
22100
22101 2011-04-08  Eric Blake  <eblake@redhat.com>
22102
22103         nonblocking: reduce dependency
22104         * tests/test-nonblocking.c: Only test sockets when in use.
22105         * modules/nonblocking-tests (Depends-on): Drop socket.
22106         (Makefile.am): Link even if sockets are not present.
22107         * modules/pipe2-tests (Makefile.am): Likewise.
22108         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
22109
22110         pipe2: fix O_NONBLOCK support on mingw
22111         * modules/pipe2 (Depends-on): Add nonblocking.
22112         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
22113         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
22114         * tests/test-nonblocking.c (main): Likewise.
22115         * modules/pipe2-tests (Makefile.am): Avoid link failure.
22116
22117         fcntl-h: fix O_ACCMODE on cygwin
22118         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
22119         * lib/fcntl.in.h (O_ACCMODE): Fix it.
22120
22121         pipe-filter: drop O_NONBLOCK workarounds
22122         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
22123         * modules/pipe-filter-ii (Depends-on): Likewise.
22124         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
22125
22126         nonblocking: provide O_NONBLOCK for mingw
22127         * modules/nonblocking (Depends-on): Add open.
22128         (configure.ac): Set new witness macro.
22129         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
22130         * modules/fcntl-h (Makefile.am): Substitute it.
22131         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
22132         nonblocking module is in use.
22133         * lib/nonblocking.c: Adjust portability test.
22134         * lib/open.c (open): Don't let native open see gnulib flag.
22135         * tests/test-fcntl-h.c (main): Enhance test.
22136         * tests/test-open.h (test_open): Likewise.
22137         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
22138
22139         careadlinkat: fix compilation error on mingw
22140         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
22141         within struct allocator.
22142
22143 2011-04-06  Eric Blake  <eblake@redhat.com>
22144
22145         binary-io: relicense under LGPLv2+
22146         * modules/binary-io (License): Relax to LGPLv2+.
22147         Requested for libvirt, and required by pipe2.
22148
22149 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
22150
22151         verify: use _Static_assert if available
22152         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
22153         (verify_true, verify): Use it if available.  This generates better
22154         diagnostics with GCC 4.6.0 and later.
22155
22156 2011-04-05  Bruno Haible  <bruno@clisp.org>
22157
22158         Remove leftover generated .h files after config.status changed.
22159
22160         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
22161         GL_GENERATE_ALLOCA_H.
22162         * modules/alloca-opt (Makefile.am): Remove alloca.h if
22163         GL_GENERATE_ALLOCA_H evaluates to false.
22164
22165         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
22166         GL_GENERATE_ARGZ_H.
22167         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
22168         evaluates to false.
22169
22170         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
22171         GL_GENERATE_BYTESWAP_H.
22172         * modules/byteswap (Makefile.am): Remove byteswap.h if
22173         GL_GENERATE_BYTESWAP_H evaluates to false.
22174
22175         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
22176         GL_GENERATE_ERRNO_H.
22177         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
22178         evaluates to false.
22179
22180         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
22181         GL_GENERATE_FLOAT_H.
22182         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
22183         evaluates to false.
22184
22185         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
22186         GL_GENERATE_FNMATCH_H.
22187         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
22188         GL_GENERATE_FNMATCH_H evaluates to false.
22189
22190         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
22191         GL_GENERATE_GLOB_H.
22192         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
22193         evaluates to false.
22194
22195         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
22196         automake conditional GL_GENERATE_ICONV_H.
22197         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
22198         evaluates to false.
22199
22200         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
22201         GL_GENERATE_NETINET_IN_H.
22202         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
22203         GL_GENERATE_NETINET_IN_H evaluates to false.
22204
22205         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
22206         conditional GL_GENERATE_PTHREAD_H.
22207         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
22208         * modules/pthread (Makefile.am): Remove pthread.h if
22209         GL_GENERATE_PTHREAD_H evaluates to false.
22210
22211         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
22212         GL_GENERATE_SCHED_H.
22213         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
22214         evaluates to false.
22215
22216         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
22217         conditional GL_GENERATE_SELINUX_CONTEXT_H.
22218         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
22219         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
22220
22221         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
22222         GL_GENERATE_STDARG_H.
22223         * modules/stdarg (Makefile.am): Remove stdarg.h if
22224         GL_GENERATE_STDARG_H evaluates to false.
22225
22226         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
22227         GL_GENERATE_STDBOOL_H.
22228         * modules/stdbool (Makefile.am): Remove stdbool.h if
22229         GL_GENERATE_STDBOOL_H evaluates to false.
22230
22231         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
22232         conditional GL_GENERATE_STDDEF_H.
22233         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
22234         * modules/stddef (Makefile.am): Remove stddef.h if
22235         GL_GENERATE_STDDEF_H evaluates to false.
22236
22237         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
22238         GL_GENERATE_STDINT_H.
22239         * modules/stdint (Makefile.am): Remove stdint.h if
22240         GL_GENERATE_STDINT_H evaluates to false.
22241
22242         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
22243         GL_GENERATE_SYSEXITS_H.
22244         * modules/sysexits (Makefile.am): Remove sysexits.h if
22245         GL_GENERATE_SYSEXITS_H evaluates to false.
22246
22247         Reported by Karl Berry and Ralf Wildenhues.
22248
22249 2011-04-05  Bruno Haible  <bruno@clisp.org>
22250
22251         Ensure to rebuild generated .h files when config.status has changed.
22252         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
22253         config.status.
22254         * modules/ctype (Makefile.am): Likewise.
22255         * modules/dirent (Makefile.am): Likewise.
22256         * modules/errno (Makefile.am): Likewise.
22257         * modules/fcntl-h (Makefile.am): Likewise.
22258         * modules/float (Makefile.am): Likewise.
22259         * modules/getopt-posix (Makefile.am): Likewise.
22260         * modules/glob (Makefile.am): Likewise.
22261         * modules/iconv-h (Makefile.am): Likewise.
22262         * modules/inttypes (Makefile.am): Likewise.
22263         * modules/langinfo (Makefile.am): Likewise.
22264         * modules/locale (Makefile.am): Likewise.
22265         * modules/math (Makefile.am): Likewise.
22266         * modules/netdb (Makefile.am): Likewise.
22267         * modules/netinet_in (Makefile.am): Likewise.
22268         * modules/poll-h (Makefile.am): Likewise.
22269         * modules/pthread (Makefile.am): Likewise.
22270         * modules/pty (Makefile.am): Likewise.
22271         * modules/sched (Makefile.am): Likewise.
22272         * modules/search (Makefile.am): Likewise.
22273         * modules/selinux-h (Makefile.am): Likewise.
22274         * modules/signal (Makefile.am): Likewise.
22275         * modules/spawn (Makefile.am): Likewise.
22276         * modules/stdarg (Makefile.am): Likewise.
22277         * modules/stdbool (Makefile.am): Likewise.
22278         * modules/stddef (Makefile.am): Likewise.
22279         * modules/stdint (Makefile.am): Likewise.
22280         * modules/stdio (Makefile.am): Likewise.
22281         * modules/stdlib (Makefile.am): Likewise.
22282         * modules/string (Makefile.am): Likewise.
22283         * modules/strings (Makefile.am): Likewise.
22284         * modules/sys_file (Makefile.am): Likewise.
22285         * modules/sys_ioctl (Makefile.am): Likewise.
22286         * modules/sys_select (Makefile.am): Likewise.
22287         * modules/sys_socket (Makefile.am): Likewise.
22288         * modules/sys_stat (Makefile.am): Likewise.
22289         * modules/sys_time (Makefile.am): Likewise.
22290         * modules/sys_times (Makefile.am): Likewise.
22291         * modules/sys_utsname (Makefile.am): Likewise.
22292         * modules/sys_wait (Makefile.am): Likewise.
22293         * modules/sysexits (Makefile.am): Likewise.
22294         * modules/termios (Makefile.am): Likewise.
22295         * modules/time (Makefile.am): Likewise.
22296         * modules/unistd (Makefile.am): Likewise.
22297         * modules/wchar (Makefile.am): Likewise.
22298         * modules/wctype-h (Makefile.am): Likewise.
22299         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
22300
22301 2011-04-05  Bruno Haible  <bruno@clisp.org>
22302
22303         pipe2: Relicense under LGPLv2+.
22304         * modules/pipe2 (License): Change to LGPLv2+.
22305         Requested by Eric Blake, for libvirt.
22306
22307 2011-04-05  Bruce Korb  <bkorb@gnu.org>
22308
22309         bootstrap: compute gnulib_extra_files after updating build_aux
22310         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
22311         change build_aux or also supply gnulib_extra_files.  Handle correctly.
22312
22313 2011-04-05  Eric Blake  <eblake@redhat.com>
22314
22315         bootstrap: preserve git whitelist item sorting
22316         * build-aux/bootstrap (sort_patterns): New function.
22317         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
22318
22319 2011-04-05  Simon Josefsson  <simon@josefsson.org>
22320
22321         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
22322         sc_space_tab check.
22323
22324 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
22325
22326         areadlink, areadlinkat: rewrite in terms of careadlinkat
22327         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
22328         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
22329         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
22330         (malloc, realloc): Remove #undefs.
22331         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
22332         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
22333         readlink, ssize_t, stdint, unistd.
22334         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
22335         areadlink, stdint.
22336
22337         careadlinkat: new module
22338         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
22339         * modules/careadlinkat: New files, written by me with
22340         a review and feedback from Ben Pfaff in
22341         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
22342
22343 2011-04-01  Bruno Haible  <bruno@clisp.org>
22344
22345         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
22346         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
22347         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
22348         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
22349         Reported by Bruce Korb <bruce.korb@gmail.com>.
22350
22351 2011-04-01  Bruno Haible  <bruno@clisp.org>
22352
22353         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
22354         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
22355         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
22356         * modules/wcpcpy (Depends-on): Add extensions.
22357         * modules/wcpncpy (Depends-on): Likewise.
22358         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
22359         systems.
22360         * doc/posix-functions/wcpncpy.texi: Likewise.
22361         * doc/posix-functions/wcwidth.texi: Likewise.
22362
22363 2011-03-31  Eric Blake  <eblake@redhat.com>
22364
22365         nonblocking: fix mingw test failures
22366         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
22367         non-blocking flag on regular file.
22368         (get_nonblocking_flag): Set errno on invalid fd.
22369         * tests/test-nonblocking.c (main): Avoid test failure on
22370         directories if fchdir is not active.
22371         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
22372
22373 2011-03-31  Bruno Haible  <bruno@clisp.org>
22374
22375         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
22376         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
22377         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
22378         Reported by Simon Josefsson <simon@josefsson.org>.
22379
22380 2011-03-31  Bruno Haible  <bruno@clisp.org>
22381         and Eric Blake  <eblake@redhat.com>
22382
22383         nonblocking: new module
22384         * modules/nonblocking: New module.
22385         * modules/nonblocking-tests: Likewise.
22386         * lib/nonblocking.h: New file.
22387         * lib/nonblocking.c: Likewise.
22388         * tests/test-nonblocking.c: New test.
22389         * lib/ioctl.c (ioctl) [mingw]: Update comment.
22390
22391 2011-03-30  Bruno Haible  <bruno@clisp.org>
22392
22393         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
22394         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
22395         instead of 'printf' format for GCC >= 4.4.
22396         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
22397         (fprintf, printf, vfprintf, vprintf): Declare with
22398         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
22399         the system's vfprintf() function.
22400         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
22401
22402 2011-03-30  Eric Blake  <eblake@redhat.com>
22403
22404         passfd: fix scoping bug
22405         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
22406         before sendmsg/recvmsg.
22407
22408         passfd: standardize coding conventions
22409         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
22410         can be learned at compile time.
22411         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
22412         ifdefs.
22413         (sendfd, recvfd): Follow gnulib code conventions.
22414
22415         passfd: fix incorrect sendmsg arguments
22416         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
22417         incorrect msg_controllen value.
22418         * modules/passfd-tests (Depends-on): Check for alarm.
22419         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
22420         Reported by Bastien ROUCARIES.
22421
22422 2011-03-30  Bruno Haible  <bruno@clisp.org>
22423
22424         c-strcasestr: Relicense under LGPLv2+.
22425         * modules/c-strcasestr (License): Change to LGPLv2+.
22426         Requested by Eric Blake, for libvirt.
22427
22428 2011-03-30  Simon Josefsson  <simon@josefsson.org>
22429
22430         * users.txt: Add libidn2.  Fix libtasn1 link.
22431
22432 2011-03-30  Jim Meyering  <meyering@redhat.com>
22433
22434         tests: readlink* ("",... fails with EINVAL on newer kernels
22435         readlink and readlinkat have typically failed with ENOENT for
22436         the invalid, empty file name,  "".  However, with the advent
22437         of linux-2.6.39, they fail with EINVAL.
22438         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
22439         when operating on the empty file name.
22440         * tests/test-readlink.h (test_readlink): Likewise.
22441
22442 2011-03-29  Bruno Haible  <bruno@clisp.org>
22443
22444         Relicense some modules under LGPLv2+, for libidn2.
22445         * modules/array-mergesort (License): Change to LGPLv2+.
22446         * modules/c-strcaseeq (License): Likewise.
22447         * modules/striconveh (License): Likewise.
22448         * modules/striconveha (License): Likewise.
22449         * modules/uniconv/base (License): Likewise.
22450         * modules/uniconv/u8-conv-from-enc (License): Likewise.
22451         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
22452         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
22453         * modules/unictype/base (License): Likewise.
22454         * modules/unictype/bidiclass-of (License): Likewise.
22455         * modules/unictype/category-M (License): Likewise.
22456         * modules/unictype/category-none (License): Likewise.
22457         * modules/unictype/category-of (License): Likewise.
22458         * modules/unictype/category-test (License): Likewise.
22459         * modules/unictype/category-test-withtable (License): Likewise.
22460         * modules/unictype/combining-class (License): Likewise.
22461         * modules/unictype/joiningtype-of (License): Likewise.
22462         * modules/unictype/scripts (License): Likewise.
22463         * modules/uninorm/base (License): Likewise.
22464         * modules/uninorm/canonical-decomposition (License): Likewise.
22465         * modules/uninorm/composition (License): Likewise.
22466         * modules/uninorm/decompose-internal (License): Likewise.
22467         * modules/uninorm/decomposition-table (License): Likewise.
22468         * modules/uninorm/nfc (License): Likewise.
22469         * modules/uninorm/nfd (License): Likewise.
22470         * modules/uninorm/u32-normalize (License): Likewise.
22471         * modules/unistr/base (License): Likewise.
22472         * modules/unistr/u32-cpy (License): Likewise.
22473         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
22474         * modules/unistr/u32-to-u8 (License): Likewise.
22475         * modules/unistr/u32-uctomb (License): Likewise.
22476         * modules/unistr/u8-check (License): Likewise.
22477         * modules/unistr/u8-mblen (License): Likewise.
22478         * modules/unistr/u8-mbtouc (License): Likewise.
22479         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
22480         * modules/unistr/u8-mbtoucr (License): Likewise.
22481         * modules/unistr/u8-prev (License): Likewise.
22482         * modules/unistr/u8-strlen (License): Likewise.
22483         * modules/unistr/u8-to-u32 (License): Likewise.
22484         * modules/unistr/u8-uctomb (License): Likewise.
22485         * modules/unitypes (License): Likewise.
22486         Requested by Simon Josefsson.
22487
22488 2011-03-29  Simon Josefsson  <simon@josefsson.org>
22489
22490         lib-symbol-visibility: Add a notice.
22491         * modules/lib-symbol-visibility (Notice): New field.
22492
22493 2011-03-29  Bruno Haible  <bruno@clisp.org>
22494
22495         getaddrinfo: Doc fix.
22496         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
22497         section "fixed in Gnulib".
22498
22499 2011-03-28  Simon Josefsson  <simon@josefsson.org>
22500
22501         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
22502         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
22503
22504 2011-03-26  Bruno Haible  <bruno@clisp.org>
22505
22506         unictype/property-byname: Reduce the number of load-time relocations.
22507         * lib/unictype/pr_byname.c: Include <stdlib.h>.
22508         (UC_PROPERTY_INDEX_*): New enumeration values.
22509         (uc_property_byname): Convert an index from the lookup table to an
22510         uc_property_t.
22511         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
22512         values.
22513
22514 2011-03-26  Bruno Haible  <bruno@clisp.org>
22515
22516         unictype/property-byname: Allow omitted word separators and aliases.
22517         * lib/unictype/pr_byname.gperf: Add property names without word
22518         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
22519         for 'space'.
22520
22521 2011-03-26  Bruno Haible  <bruno@clisp.org>
22522
22523         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
22524         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
22525         also hyphens to space.
22526         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
22527         without spaces.
22528         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
22529
22530 2011-03-26  Bruno Haible  <bruno@clisp.org>
22531
22532         unictype/joiningtype-byname: Recognize long names as well.
22533         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
22534         a long name.
22535         * lib/unictype/joiningtype_byname.c: Include <string.h>,
22536         unictype/joiningtype_byname.h.
22537         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
22538         * lib/unictype/joiningtype_byname.gperf: New file.
22539         * modules/unictype/joiningtype-byname (Files): Add
22540         lib/unictype/joiningtype_byname.gperf.
22541         (Depends-on): Add gperf.
22542         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
22543         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
22544         long names.
22545
22546         Tests for module 'unictype/joiningtype-longname'.
22547         * modules/unictype/joiningtype-longname-tests: New file.
22548         * tests/unictype/test-joiningtype_longname.c: New file.
22549
22550         New module 'unictype/joiningtype-longname'.
22551         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
22552         * lib/unictype/joiningtype_longname.c: New file.
22553         * modules/unictype/joiningtype-longname: New file.
22554         * modules/unictype/joiningtype-all (Depends-on): Add
22555         unictype/joiningtype-longname.
22556
22557 2011-03-26  Bruno Haible  <bruno@clisp.org>
22558
22559         unictype/bidiclass-byname: Recognize long names as well.
22560         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
22561         name.
22562         * lib/unictype/bidi_byname.c: Include <string.h>,
22563         unictype/bidi_byname.h.
22564         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
22565         * lib/unictype/bidi_byname.gperf: New file.
22566         * modules/unictype/bidiclass-byname (Files): Add
22567         lib/unictype/bidi_byname.gperf.
22568         (Depends-on): Add gperf.
22569         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
22570         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
22571         long names.
22572
22573         Tests for module 'unictype/bidiclass-longname'.
22574         * modules/unictype/bidiclass-longname-tests: New file.
22575         * tests/unictype/test-bidi_longname.c: New file.
22576
22577         New module 'unictype/bidiclass-longname'.
22578         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
22579         * lib/unictype/bidi_longname.c: New file.
22580         * modules/unictype/bidiclass-longname: New file.
22581         * modules/unictype/bidiclass-all (Depends-on): Add
22582         unictype/bidiclass-longname.
22583
22584 2011-03-26  Bruno Haible  <bruno@clisp.org>
22585
22586         unictype/bidi*: Rename modules.
22587         * modules/unictype/bidiclass-all: Renamed from
22588         modules/unictype/bidicategory-all.
22589         * modules/unictype/bidiclass-name: Renamed from
22590         modules/unictype/bidiclass-name.
22591         (Description): Update.
22592         * modules/unictype/bidiclass-name-tests: Renamed from
22593         modules/unictype/bidicategory-name-tests.
22594         * modules/unictype/bidiclass-byname: Renamed from
22595         modules/unictype/bidicategory-byname.
22596         (Description): Update.
22597         * modules/unictype/bidiclass-byname-tests: Renamed from
22598         modules/unictype/bidicategory-byname-tests.
22599         * modules/unictype/bidiclass-of: Renamed from
22600         modules/unictype/bidicategory-of.
22601         (Description): Update.
22602         * modules/unictype/bidiclass-of-tests: Renamed from
22603         modules/unictype/bidicategory-of-tests.
22604         * modules/unictype/bidiclass-test: Renamed from
22605         modules/unictype/bidicategory-test.
22606         (Description): Update.
22607         * modules/unictype/bidiclass-test-tests: Renamed from
22608         modules/unictype/bidicategory-test-tests.
22609         * modules/unictype/bidicategory-all: New file, a simple redirection.
22610         * modules/unictype/bidicategory-name: Likewise.
22611         * modules/unictype/bidicategory-byname: Likewise.
22612         * modules/unictype/bidicategory-of: Likewise.
22613         * modules/unictype/bidicategory-test: Likewise.
22614         * modules/unictype/property-bidi-* (Dependencies): Update.
22615         * lib/unictype/bidi_*.c: Update comment.
22616
22617 2011-03-26  Bruno Haible  <bruno@clisp.org>
22618
22619         unictype/bidi*: Rename functions, part 2.
22620         * modules/unictype/bidicategory-name (configure.ac): Update required
22621         libunistring version.
22622         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
22623
22624 2011-03-25  Bruno Haible  <bruno@clisp.org>
22625
22626         New module 'unictype/combining-class-all'.
22627         * modules/unictype/combining-class-all: New file.
22628
22629         Tests for module 'unictype/combining-class-byname'.
22630         * modules/unictype/combining-class-byname-tests: New file.
22631         * tests/unictype/test-combiningclass_byname.c: New file.
22632
22633         New module 'unictype/combining-class-byname'.
22634         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
22635         * lib/unictype/combiningclass_byname.c: New file.
22636         * lib/unictype/combiningclass_byname.gperf: New file.
22637         * modules/unictype/combining-class-byname: New file.
22638
22639         Tests for module 'unictype/combining-class-longname'.
22640         * modules/unictype/combining-class-longname-tests: New file.
22641         * tests/unictype/test-combiningclass_longname.c: New file.
22642
22643         New module 'unictype/combining-class-longname'.
22644         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
22645         * lib/unictype/combiningclass_longname.c: New file.
22646         * modules/unictype/combining-class-longname: New file.
22647
22648         Tests for module 'unictype/combining-class-name'.
22649         * modules/unictype/combining-class-name-tests: New file.
22650         * tests/unictype/test-combiningclass_name.c: New file.
22651
22652         New module 'unictype/combining-class-name'.
22653         * lib/unictype.in.h (uc_combining_class_name): New declaration.
22654         * lib/unictype/combiningclass_name.c: New file.
22655         * modules/unictype/combining-class-name: New file.
22656
22657 2011-03-25  Bruno Haible  <bruno@clisp.org>
22658
22659         unictype/combining-class: Rename source files.
22660         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
22661         of unictype/combining.h.
22662         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
22663         Update.
22664         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
22665         * modules/unictype/combining-class (Description): Fix.
22666         (Files, Makefile.am): Update.
22667         * tests/unictype/test-combiningclass.c: Renamed from
22668         tests/unictype/test-combining.c.
22669         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
22670
22671 2011-03-25  Bruno Haible  <bruno@clisp.org>
22672
22673         unictype: Update list of canonical combining classes.
22674         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
22675
22676 2011-03-25  Bruno Haible  <bruno@clisp.org>
22677
22678         unictype/category-byname: Recognize long names as well.
22679         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
22680         a long name.
22681         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
22682         unictype/categ_byname.h.
22683         (UC_CATEGORY_INDEX_*): New enumeration values.
22684         (uc_general_category_byname): Use uc_general_category_lookup and
22685         convert from index to value.
22686         * lib/unictype/categ_byname.gperf: New file.
22687         * modules/unictype/category-byname (Files): Add
22688         lib/unictype/categ_byname.gperf.
22689         (Depends-on): Add gperf.
22690         (Makefile.am): Add rule for generating unictype/categ_byname.h.
22691         * tests/unictype/test-categ_byname.c (main): Test the recognition of
22692         long names.
22693
22694         Tests for module 'unictype/category-longname'.
22695         * modules/unictype/category-longname-tests: New file.
22696         * tests/unictype/test-categ_longname.c: New file.
22697
22698         New module 'unictype/category-longname'.
22699         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
22700         * lib/unictype/categ_longname.c: New file.
22701         * modules/unictype/category-longname: New file.
22702         * modules/unictype/category-all (Depends-on): Add it.
22703
22704 2011-03-25  Bruno Haible  <bruno@clisp.org>
22705
22706         Tests for module 'unictype/category-LC'.
22707         * modules/unictype/category-LC-tests: New file.
22708         * tests/unictype/test-categ_LC.c: New file, automatically generated.
22709
22710         New module 'unictype/category-LC'.
22711         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
22712         (UC_CATEGORY_LC): New declaration.
22713         (UC_CASED_LETTER): New macro.
22714         * lib/gen-uni-tables.c (is_category_LC): New function.
22715         (output_categories): Also handle category LC.
22716         (UC_CATEGORY_MASK_LC): New enumeration value.
22717         (general_category_byname): Also handle category LC.
22718         * lib/unictype/categ_LC.c: New file.
22719         * lib/unictype/categ_LC.h: New file, automatically generated.
22720         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
22721         category LC.
22722         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
22723         * modules/unictype/category-LC: New file.
22724         * modules/unictype/category-byname (Depends-on): Add
22725         unictype/category-LC.
22726         * modules/unictype/category-all (Depends-on): Likewise.
22727
22728 2011-03-25  Eric Blake  <eblake@redhat.com>
22729
22730         xmalloc: revert yesterday's regression
22731         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
22732         realloc's underlying behavior (allowing allocation of zero-size
22733         objects, especially if malloc-gnu is also in use).
22734
22735 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
22736
22737         maint.mk: add missing version to VC-tag
22738         * top/maint.mk: git tag was missing actual tag name; add it.
22739
22740         valgrind: do leak checking, and exit with code 1 on error (not 0)
22741         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
22742         to VALGRIND.
22743
22744 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
22745
22746         posix-modules: say what it does.
22747         * posix-modules: Add a line to the --help output saying what it does.
22748
22749 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
22750
22751         xmalloc: Do not leak if underlying realloc is C99 compatible.
22752         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
22753         This avoids a leak on C99-based systems.  See
22754         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
22755
22756 2011-03-24  Eric Blake  <eblake@redhat.com>
22757
22758         realloc: document portability problem
22759         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
22760         passing 0 size to realloc.
22761
22762 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
22763
22764         doc: update users.txt
22765         * users.txt: Add cvsps, tmpwatch
22766
22767 2011-03-23  Matt Rice  <ratmice@gmail.com>
22768
22769         doc: update users.txt
22770         * users.txt: Add gdb.
22771
22772 2011-03-23  Jim Meyering  <meyering@redhat.com>
22773
22774         doc: update users.txt
22775         Looking through matches up to the following URL (there are still
22776         several more pages), I found several projects that use gnulib:
22777         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
22778         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
22779         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
22780
22781 2011-03-22  Bruno Haible  <bruno@clisp.org>
22782
22783         unictype/bidi*: Rename functions.
22784         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
22785         uc_bidi_class, uc_is_bidi_class): New declarations.
22786         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
22787         uc_bidi_category_byname.
22788         (uc_bidi_category_byname): New function.
22789         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
22790         u_bidi_category_name.
22791         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
22792         (uc_bidi_category_name): New function.
22793         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
22794         uc_bidi_category.
22795         (uc_bidi_category): New function.
22796         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
22797         uc_is_bidi_category. Invoke uc_bidi_class.
22798         (uc_is_bidi_category): New function.
22799         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
22800         instead of uc_bidi_category_byname.
22801         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
22802         instead of uc_bidi_category_name.
22803         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
22804         uc_bidi_category.
22805         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
22806         instead of uc_is_bidi_category.
22807
22808 2011-03-21  Bruno Haible  <bruno@clisp.org>
22809
22810         New module 'unictype/joininggroup-all'.
22811         * modules/unictype/joininggroup-all: New file.
22812
22813         Tests for module 'unictype/joininggroup-of'.
22814         * modules/unictype/joininggroup-of-tests: New file.
22815         * tests/unictype/test-joininggroup_of.c: New file.
22816         * tests/unictype/test-joininggroup_of.h: New file, automatically
22817         generated by gen-uni-tables.
22818
22819         New module 'unictype/joininggroup-of'.
22820         * modules/unictype/joininggroup-of: New file.
22821         * lib/unictype/joininggroup_of.c: New file.
22822         * lib/unictype/joininggroup_of.h: New file, automatically generated by
22823         gen-uni-tables.
22824
22825         Tests for module 'unictype/joininggroup-byname'.
22826         * modules/unictype/joininggroup-byname-tests: New file.
22827         * tests/unictype/test-joininggroup_byname.c: New file.
22828
22829         New module 'unictype/joininggroup-byname'.
22830         * modules/unictype/joininggroup-byname: New file.
22831         * lib/unictype/joininggroup_byname.c: New file.
22832         * lib/unictype/joininggroup_byname.gperf: New file.
22833
22834         Tests for module 'unictype/joininggroup-name'.
22835         * modules/unictype/joininggroup-name-tests: New file.
22836         * tests/unictype/test-joininggroup_name.c: New file.
22837
22838         New module 'unictype/joininggroup-name'.
22839         * modules/unictype/joininggroup-name: New file.
22840         * lib/unictype/joininggroup_name.c: New file.
22841         * lib/unictype/joininggroup_name.h: New file.
22842
22843         New module 'unictype/joiningtype-all'.
22844         * modules/unictype/joiningtype-all: New file.
22845
22846         Tests for module 'unictype/joiningtype-of'.
22847         * modules/unictype/joiningtype-of-tests: New file.
22848         * tests/unictype/test-joiningtype_of.c: New file.
22849         * tests/unictype/test-joiningtype_of.h: New file, automatically
22850         generated by gen-uni-tables.
22851
22852         New module 'unictype/joiningtype-of'.
22853         * modules/unictype/joiningtype-of: New file.
22854         * lib/unictype/joiningtype_of.c: New file.
22855         * lib/unictype/joiningtype_of.h: New file, automatically generated by
22856         gen-uni-tables.
22857
22858         Tests for module 'unictype/joiningtype-byname'.
22859         * modules/unictype/joiningtype-byname-tests: New file.
22860         * tests/unictype/test-joiningtype_byname.c: New file.
22861
22862         New module 'unictype/joiningtype-byname'.
22863         * modules/unictype/joiningtype-byname: New file.
22864         * lib/unictype/joiningtype_byname.c: New file.
22865
22866         Tests for module 'unictype/joiningtype-name'.
22867         * modules/unictype/joiningtype-name-tests: New file.
22868         * tests/unictype/test-joiningtype_name.c: New file.
22869
22870         New module 'unictype/joiningtype-name'.
22871         * modules/unictype/joiningtype-name: New file.
22872         * lib/unictype/joiningtype_name.c: New file.
22873
22874         unictype: Add support for Arabic shaping properties.
22875         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
22876         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
22877         declarations.
22878         (UC_JOINING_GROUP_*): New enumeration values.
22879         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
22880         declarations.
22881         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
22882         (unicode_joining_type): New variable.
22883         (UC_JOINING_GROUP_*): New enumeration values.
22884         (unicode_joining_group): New variable.
22885         (fill_arabicshaping, joining_type_as_c_identifier,
22886         output_joining_type_test, output_joining_type,
22887         joining_group_as_c_identifier, output_joining_group_test,
22888         output_joining_group): New functions.
22889         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
22890         fill_arabicshaping and output_joining_type_test, output_joining_type,
22891         output_joining_group_test, output_joining_group.
22892         Reported by Simon Josefsson.
22893
22894 2011-03-21  Jim Meyering  <meyering@redhat.com>
22895
22896         strftime: fix a bug in yesterday's change
22897         * lib/strftime.c (add): Accommodate width's initial value of -1.
22898         Otherwise, nstrftime would copy uninitialized data into
22899         the result buffer.
22900
22901 2011-03-21  Jim Meyering  <meyering@redhat.com>
22902
22903         tests: add strftime-tests module
22904         * tests/test-strftime.c: New file.
22905         * modules/strftime-tests: New module.
22906
22907 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
22908
22909         strftime: don't assume a byte count fits in 'int'
22910         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
22911         found this problem by static analysis, using gcc -Wstrict-overflow
22912         (GCC 4.5.2, x86-64).  This reported an optimization that depended
22913         on an integer overflow having undefined behavior, but it turns out
22914         that the argument is a size, which might not fit in 'int' anyway,
22915
22916 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
22917
22918         stdio: don't require ignore_value around fwrite
22919
22920         This patch works around libc bug 11959
22921         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
22922         Without this patch, applications must often write
22923         ignore_value (fwrite (...)) even though the ignore_value is
22924         not helpful here.  It's common to write many objects, using
22925         fwrite/printf/etc., and then use ferror to detect output error.
22926
22927         I considered making this patch optional, but decided against it,
22928         because libc is obviously being inconsistent here: there is no
22929         reason libc should insist that user code must inspect fwrite
22930         return's value without also insisting that it inspect printf's,
22931         putchar's, etc.  If user code wants to have a strict style where
22932         all these functions' values are checked (so that ferror need not
22933         be checked), we could add support for that style in a new gnulib
22934         module, but in the meantime it's better to be consistent and to
22935         support common usage.
22936
22937         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
22938         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
22939         that we are compiling in checking mode, and if not C++, and
22940         if not already wrapping fwrite for some other reason.
22941         (fwrite): #define to rpl_fwrite if the latter is defined.
22942
22943 2011-03-20  Bruno Haible  <bruno@clisp.org>
22944
22945         verror: Fix compilation error introduced on 2011-02-13.
22946         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
22947         instead of __attribute__.
22948         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
22949
22950 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
22951             Bruno Haible  <bruno@clisp.org>
22952
22953         socklen: do not depend on sys_socket
22954         While trying to modify Emacs to use gnulib's socklen module,
22955         I discovered a circular dependency: socklen depends on sys_socket
22956         and vice versa.  Emacs can use socklen, but it does not need
22957         sys_socket because it has its own substitute for sys/socket.h.
22958         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
22959         gl_TYPE_SOCKLEN_T.
22960         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
22961         gl_PREREQ_SYS_H_SOCKET.
22962         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
22963         gl_PREREQ_SYS_H_SOCKET.
22964         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
22965         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
22966         * modules/socklen (Depends-on): Do not depend on sys_socket.
22967         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
22968
22969 2011-03-20  Jim Meyering  <meyering@redhat.com>
22970
22971         maint.mk: sort file names *after* new transformation
22972         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
22973         prefix would have led to an unwarranted failure in GNU parted.
22974         Sort after that transformation.
22975
22976 2011-03-19  Jim Meyering  <meyering@redhat.com>
22977
22978         maint.mk: fix po-file syntax-check rule
22979         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
22980         Patch by Bruno Haible.
22981
22982 2011-03-19  Bruno Haible  <bruno@clisp.org>
22983
22984         socklen: Update comment.
22985         * m4/socklen.m4: Update comment about platforms.
22986
22987 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
22988             Bruno Haible  <bruno@clisp.org>
22989
22990         inet_ntop, inet_pton: Simplify.
22991         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
22992         documented to provide socklen_t and we already depend on sys_socket.
22993         * modules/inet_pton (Depends-on): Likewise.
22994         * lib/arpa_inet.in.h: Adjust comment.
22995
22996 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
22997             Bruno Haible  <bruno@clisp.org>
22998
22999         netdb: Simplify.
23000         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
23001         documented to provide socklen_t and we already depend on sys_socket.
23002         * lib/netdb.in.h: Adjust comment.
23003
23004 2011-03-19  Bruno Haible  <bruno@clisp.org>
23005
23006         sys_socket, netdb: Document problem with socklen_t.
23007         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
23008         platforms.
23009         * doc/posix-headers/netdb.texi: Likewise.
23010
23011 2011-03-18  Eric Blake  <eblake@redhat.com>
23012
23013         maint.mk: let po check work in VPATH build
23014         * top/maint.mk (po_file): Allow cfg.mk override.
23015         (sc_po_check): Allow VPATH use.
23016         Reported by Jiri Denemark.
23017
23018 2011-03-16  Jim Meyering  <meyering@redhat.com>
23019
23020         maint.mk: allow fine-grained syntax-check exclusion via Make variables
23021         Before, you would have had to create one .x-sc_ file per rule in order
23022         to exempt offending files.  Now, you may instead use a Make variable --
23023         usually defined in cfg.mk -- whose name identifies the affected rule.
23024         * top/maint.mk (_sc_excl): Define.
23025         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
23026         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
23027
23028 2011-03-13  Bruno Haible  <bruno@clisp.org>
23029
23030         ignore-value tests: Avoid warnings.
23031         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
23032         empty for gcc < 3.4.
23033
23034 2011-03-13  Bruno Haible  <bruno@clisp.org>
23035
23036         passfd: Fix link error on Solaris.
23037         * modules/passfd (Description): Correct.
23038         (Depends-on): Add socketlib.
23039         (Link): New section.
23040         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
23041
23042 2011-03-13  Bruno Haible  <bruno@clisp.org>
23043
23044         passfd: Fix link error on AIX 5.2.
23045         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
23046
23047 2011-03-13  Bruno Haible  <bruno@clisp.org>
23048
23049         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
23050         * lib/sys_socket.in.h: Include <stddef.h>.
23051         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
23052         CMSG_FIRSTHDR. Remove unused variable.
23053
23054 2011-03-13  Bruno Haible  <bruno@clisp.org>
23055
23056         passfd: Fix compilation error on OpenBSD.
23057         * lib/passfd.c: Include <sys/uio.h>.
23058
23059 2011-03-13  Bruno Haible  <bruno@clisp.org>
23060
23061         passfd test: Fix warnings.
23062         * tests/test-passfd.c: Include <sys/wait.h>.
23063         (main): Fix typo.
23064
23065 2011-03-13  Bruno Haible  <bruno@clisp.org>
23066
23067         passfd module, part 4, tweaks.
23068         * tests/test-passfd.c: Reorder includes.
23069         (main): Fix perror and printf calls.
23070
23071 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
23072
23073         passfd module, part 4.
23074         * modules/passfd-tests: New file.
23075         * tests/test-passfd.c: New file.
23076
23077 2011-03-13  Jim Meyering  <meyering@redhat.com>
23078
23079         Makefile: rely on GNU make; derive syntax-check rule names
23080         Rather than requiring that each sc_ rule be listed as a dependent
23081         of "check", use features of GNU make to derive the list.
23082         * Makefile (syntax-check-rules): Define.
23083         (check): Depend on the new variable, not the hard-coded list.
23084
23085 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
23086             Bruno Haible  <bruno@clisp.org>
23087
23088         passfd module, part 3.
23089         * lib/passfd.h (recvfd): Add a flags argument.
23090         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
23091         (recvfd): Add a flags argument.
23092         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
23093         exists.
23094         * modules/passfd (Depends-on): Add cloexec.
23095         Suggested by Eric Blake.
23096
23097 2011-03-13  Bruno Haible  <bruno@clisp.org>
23098
23099         passfd module, part 2, tweaks.
23100         * modules/passfd (Files): Reorder.
23101         (Depends-on): Remove errno.
23102         (Include): Remove <sys/socket.h>, <sys/un.h>.
23103         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
23104         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
23105         specification header. Include <sys/socket.h> always. Don't include
23106         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
23107         (sendfd): Clarify that it sets errno when it fails.
23108         (recvfd): Fix specification.
23109
23110 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
23111
23112         passfd module, part 2.
23113         * modules/passfd: New file.
23114         * lib/passfd.h: New file.
23115         * lib/passfd.c: New file.
23116
23117 2011-03-12  Bruno Haible  <bruno@clisp.org>
23118
23119         wcswidth, mbswidth: Avoid integer overflow.
23120         * lib/wcswidth.c: Include <limits.h>.
23121         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
23122         * lib/mbswidth.c: Include <limits.h>.
23123         (mbsnwidth): Avoid 'int' overflow.
23124         Reported by Jim Meyering.
23125
23126 2011-03-12  Bruno Haible  <bruno@clisp.org>
23127
23128         futimens, utimensat: Avoid endless recursion on Solaris 10.
23129         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
23130         Solaris.
23131         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
23132         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
23133
23134 2011-03-11  Jim Meyering  <meyering@redhat.com>
23135
23136         maint.mk: relax a regexp to accommodate other formatting styles
23137         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
23138         between "ngettext" and the following "(".
23139
23140 2011-03-11  Pádraig Brady <P@draigBrady.com>
23141
23142         maint.mk: suppress a false positive warning
23143         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
23144         diagnostics are marked with ngettext.
23145
23146 2011-03-10  Eric Blake  <eblake@redhat.com>
23147
23148         wchar: add explicit dependencies, for Tru64
23149         * modules/mbmemcasecoll (Depends-on): Add wchar.
23150         * modules/mbtowc (Depends-on): Likewise.
23151         * modules/vasnprintf (Depends-on): Likewise.
23152         * modules/unistdio/u-printf-args (Depends-on): Likewise.
23153         * modules/wctomb (Depends-on): Likewise.
23154         Reported by Peter O'Gorman.
23155
23156 2011-03-08  Bruno Haible  <bruno@clisp.org>
23157
23158         passfd module, part 1, tweaks.
23159         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
23160         Improve indentation. Improve AC_MSG_CHECKING messages.
23161         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
23162         gl_SOCKET_FAMILIES.
23163
23164 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
23165
23166         passfd module, part 1.
23167         * m4/afunix.m4: New file.
23168         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
23169         sockets.
23170
23171 2011-03-08  Bruno Haible  <bruno@clisp.org>
23172
23173         regex-quote: New API.
23174         * lib/regex-quote.h: Include <stdbool.h>.
23175         (struct regex_quote_spec): New type.
23176         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
23177         New declarations.
23178         (regex_quote_length, regex_quote_copy, regex_quote): Take a
23179         'const struct regex_quote_spec *' argument.
23180         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
23181         (pcre_special): New constant.
23182         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
23183         New functions.
23184         (regex_quote_length, regex_quote_copy, regex_quote): Take a
23185         'const struct regex_quote_spec *' argument.
23186         * modules/regex-quote (Depends-on): Add stdbool.
23187         * tests/test-regex-quote.c (check): Update for new API. Add test for
23188         anchored results.
23189         * NEWS: Mention the API change.
23190         Reported by Reuben Thomas and Eric Blake.
23191
23192 2011-03-06  Bruno Haible  <bruno@clisp.org>
23193
23194         regex-quote: Fix creation of POSIX extended regular expressions.
23195         * lib/regex-quote.c (ere_special): Add grouping and alternation
23196         operators.
23197
23198 2011-03-05  Bruno Haible  <bruno@clisp.org>
23199
23200         doc: Improve doc regarding autopoint vs. gnulib.
23201         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
23202         disable autopoint while running autoreconf.
23203         Suggested by Ralf Wildenhues.
23204
23205 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23206
23207         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
23208         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
23209
23210 2011-03-03  Bruce Korb  <bkorb@gnu.org>
23211
23212         parse-duration: remove xalloc.h dependency
23213         * lib/parse-duration.c (parse_period): handle NULL return from
23214         strdup instead of calling xstrdup().
23215         * modules/parse-duration: remove "xalloc" dependency
23216
23217 2011-03-03  Matthew Booth  <mbooth@redhat.com>
23218
23219         bootstrap: honor m4_base when running aclocal
23220         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
23221
23222 2011-03-02  Jim Meyering  <meyering@redhat.com>
23223
23224         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
23225         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
23226         on request from Matt Booth.
23227
23228 2011-03-01  Eric Blake  <eblake@redhat.com>
23229
23230         test-link: work on Hurd
23231         * tests/test-link.h (test_link): Hurd rejects linking directories
23232         with EISDIR instead of the POSIX-mandated EPERM.
23233
23234 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
23235
23236         stdio: simplify by moving files to printf-posix, sigpipe
23237         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
23238         since this symbol is needed only if printf is replaced.
23239         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
23240         Require gl_ASM_SYMBOL_PREFIX.
23241         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
23242         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
23243         (Depends-on): Add 'raise'.
23244         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
23245         * modules/stdio (Files): Remove lib/stdio-write.c,
23246         m4/asm-underscore.m4.
23247         (Depends-on): Remove 'raise'.
23248
23249         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
23250         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
23251         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
23252         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
23253
23254 2011-02-28  Bruno Haible  <bruno@clisp.org>
23255
23256         localcharset: Assume ANSI C behaviour of free().
23257         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
23258         calling free().
23259         Suggested by Simon Josefsson <simon@josefsson.org>.
23260
23261 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
23262             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
23263             Bruno Haible  <bruno@clisp.org>  (tiny change)
23264
23265         On Cygwin, use /proc file system instead of win32 API.
23266         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
23267         Win32 file names.
23268         (DllMain): Simplify by removing Cygwin specific code.
23269         (find_shared_library_fullname): Use Linux specific implementation also
23270         for Cygwin.
23271         (get_shared_library_fullname): Update accordingly.
23272         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
23273         Win32 file names.
23274         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
23275         Cygwin specific code.
23276
23277 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
23278             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
23279
23280         Fix OpenMP flag detection for various Fortran compilers.
23281         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
23282         OpenMP-conditional compilation construct, to force compile
23283         failure with missing OpenMP flag.
23284         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
23285
23286 2011-02-25  Eric Blake  <eblake@redhat.com>
23287
23288         strstr: expand test coverage
23289         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
23290         compilation.
23291         * tests/test-memmem.c (main): Duplicate tests.
23292         * tests/test-strcasestr.c (main): Likewise.
23293         * tests/test-c-strcasestr.c (main): Likewise.
23294
23295 2011-02-25  Jim Meyering  <meyering@redhat.com>
23296
23297         maint.mk: detect missing-NL-at-EOF, too
23298         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
23299         it also detects when a file lacks a newline at EOF.
23300         (require_exactly_one_NL_at_EOF_): Renamed from
23301         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
23302         since people may well have .x-sc_... file names tied to the
23303         existing name.  Suggested by Eric Blake.
23304
23305 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
23306
23307         dirname: move m4/dos.m4 functionality into lib/dosname.h
23308
23309         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
23310         extracts symbols from it, puts them into config.h; but it's much
23311         easier to use the symbols directly.  filename.h already does this,
23312         but it disagrees with dos.m4 in some respects.  This patch
23313         introduces a different include file dosname.h that packages up
23314         dos.m4, and then later we can work on merging filename.h and
23315         dosname.h.  Applications that need only the easy-to-configure
23316         symbols should consider including dosname.h rather than dirname.h.
23317         * NEWS: Mention incompatible changes.
23318         * m4/dos.m4: Remove.
23319         * lib/dosname.h, modules/dosname: New files.
23320         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
23321         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
23322         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
23323         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
23324         Include dosname.h, not dirname.h.
23325         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
23326         Include dosname.h, for definitions of symbols like ISSLASH
23327         that used to be in config.h.
23328         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
23329         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
23330         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
23331         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
23332         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
23333         * modules/rmdir (Files): Likewise.
23334         * modules/stat (Files): Likewise.
23335         * modules/unlink (Files): Likewise.
23336         * modules/dirname-lgpl (Depends-on): Add dosname.
23337         * modules/lstat (Depends-on): Likewise.
23338         * modules/openat (Depends-on): Likewise.
23339         * modules/rmdir (Depends-on): Likewise.
23340         * modules/savewd (Depends-on): Likewise.
23341         * modules/stat (Depends-on): Likewise.
23342         * modules/unlink (Depends-on): Likewise.
23343         * modules/openat (Depends-on): Remove dirname-lgpl.
23344         * modules/savewd (Depends-on): Likewise.
23345         * tests/test-dirname.c: Do not use removed symbols like
23346         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
23347         the remaining symbols, e.g., ISSLASH ('\\').
23348
23349 2011-02-25  Eric Blake  <eblake@redhat.com>
23350
23351         strstr: revert patches that introduced bug and pessimization
23352         * lib/str-two-way.h: Add another reference.
23353         (two_way_short_needle, two_way_long_needle): Revert changes from
23354         2011-02-24; they pessimize search speed.
23355         (critical_factorization): Partially revert changes from
23356         2010-06-22; they violate the requirement that the left half of the
23357         needle be smaller than the period of the needle.
23358
23359 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
23360
23361         filenamecat: remove unnecessary dependency on dirname-lgpl
23362         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
23363         is no direct dependency, just an indirect one via filenamecat-lgpl.
23364
23365         remove: remove unnecessary use of m4/dos.m4
23366         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
23367         * modules/remove (FILES): Remove m4/dos.m4.
23368
23369         * lib/openat-proc.c: Don't include dirname.h; not needed.
23370
23371         backupfile: remove unnecessary use of m4/dos.m4
23372         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
23373         of its symbols are used by the backupfile code.  backupfile.c does
23374         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
23375         for the rare case of programs that want all their backup file
23376         names to live within 8+3 limits, and dos.m4 doesn't address that.
23377         * modules/backupfile (Files): Remove m4/dos.m4.
23378
23379 2011-02-24  Jim Meyering  <meyering@redhat.com>
23380
23381         strstr: fix a bug whereby strstr would mistakenly return NULL
23382         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
23383         in period calculation.
23384         (two_way_long_needle): Likewise.
23385         The original problem was reported by Mike Stump in
23386         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
23387         Ralf Wildenhues provided the short needle and haystack.
23388         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
23389         Add a more involved test to trigger the bug in two_way_long_needle.
23390
23391 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
23392
23393         gnulib-tool: remove use of bold display in help screen
23394         * gnulib-tool (func_usage): Do not use bold display anymore in the
23395         help screen.  That was just meant to be a temporary emphasis for a
23396         backward-incompatible change.
23397
23398 2011-02-23  Bruno Haible  <bruno@clisp.org>
23399
23400         Fix misindentation of preprocessor directives.
23401         * lib/argp-namefrob.h: Reindent preprocessor directives.
23402         * lib/getopt_int.h (struct _getopt_data): Likewise.
23403         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
23404         * lib/vasnprintf.c (decode_long_double): Likewise.
23405         * tests/test-argmatch.c: Insert blank lines, for clarity.
23406         * tests/test-exclude.c: Likewise.
23407
23408 2011-02-22  Bruno Haible  <bruno@clisp.org>
23409
23410         ioctl: Fix for MacOS X in 64-bit mode.
23411         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
23412         value.
23413         Suggested by Eric Blake.
23414         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
23415
23416 2011-02-22  Jim Meyering  <meyering@redhat.com>
23417
23418         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
23419         * Makefile (sc_cpp_indent_check): Don't limit the check to files
23420         in lib/.
23421
23422 2011-02-22  Eric Blake  <eblake@redhat.com>
23423
23424         maint: avoid any CDPATH issue
23425         * Makefile (sc_cpp_indent_check): Anchor cd argument.
23426
23427         maint: adjust cpp indentation for my modules, as well
23428         * Makefile (sc_cpp_indent_check): Add my name.
23429         * lib/fbufmode.c: Filter through cppi.
23430         * lib/fpurge.c: Likewise.
23431         * lib/freadable.c: Likewise.
23432         * lib/freading.c: Likewise.
23433         * lib/fwritable.c: Likewise.
23434         * lib/fwriting.c: Likewise.
23435         * lib/sigaction.c: Likewise.
23436
23437 2011-02-22  Jim Meyering  <meyering@redhat.com>
23438
23439         maint: adjust cpp indentation to reflect nesting depth
23440         I.e., in a block of code that begins with an unnested "#if",
23441         put one space between the "#" in column 1 and following token.
23442         For example,
23443         -#include <sys/vfs.h>
23444         +# include <sys/vfs.h>
23445         Do this only in .c files that are part of a module I maintain.
23446         * lib/linkat.c: Filter through cppi.
23447         * lib/nanosleep.c: Likewise.
23448         * lib/openat.c: Likewise.
23449         * lib/openat-die.c: Likewise.
23450         * lib/dup3.c: Likewise.
23451         * lib/fchownat.c: Likewise.
23452         * lib/flock.c: Likewise.
23453         * lib/fsync.c: Likewise.
23454         * lib/fts.c: Likewise.
23455         * lib/getpass.c: Likewise.
23456         * lib/gettimeofday.c: Likewise.
23457         * lib/userspec.c: Likewise.
23458         * Makefile (sc_cpp_indent_check): New rule, to check this.
23459
23460 2011-02-22  Bruno Haible  <bruno@clisp.org>
23461
23462         New module 'wctomb'.
23463         * lib/stdlib.in.h (wctomb): New declaration.
23464         * lib/wctomb.c: New file.
23465         * lib/wctomb-impl.h: New file.
23466         * m4/wctomb.m4: New file.
23467         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
23468         REPLACE_WCTOMB.
23469         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
23470         REPLACE_WCTOMB.
23471         * modules/wctomb: New file.
23472         * tests/test-stdlib-c++.cc: Test signature of wctomb.
23473         * doc/posix-functions/wctomb.texi: Mention the new module.
23474         * modules/wctob (Depends-on): Add wctomb.
23475
23476 2011-02-22  Bruno Haible  <bruno@clisp.org>
23477
23478         New module 'mbtowc'.
23479         * lib/stdlib.in.h (mbtowc): New declaration.
23480         * lib/mbtowc.c: New file.
23481         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
23482         * m4/mbtowc.m4: New file.
23483         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
23484         REPLACE_MBTOWC.
23485         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
23486         REPLACE_MBTOWC.
23487         * modules/mbtowc: New file.
23488         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
23489         * doc/posix-functions/mbtowc.texi: Mention the new module.
23490         * modules/btowc (Depends-on): Add mbtowc.
23491
23492 2011-02-22  Bruno Haible  <bruno@clisp.org>
23493
23494         wcrtomb: Add more tests for native Windows platforms.
23495         * tests/test-wcrtomb-w32-1.sh: New file.
23496         * tests/test-wcrtomb-w32-2.sh: New file.
23497         * tests/test-wcrtomb-w32-3.sh: New file.
23498         * tests/test-wcrtomb-w32-4.sh: New file.
23499         * tests/test-wcrtomb-w32-5.sh: New file.
23500         * tests/test-wcrtomb-w32.c: New file.
23501         * modules/wcrtomb-tests (Files): Add them.
23502         (Makefile.am): Arrange to run these tests.
23503         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
23504         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
23505
23506 2011-02-20  Bruno Haible  <bruno@clisp.org>
23507
23508         wcrtomb: Enhance test.
23509         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
23510
23511 2011-02-20  Bruno Haible  <bruno@clisp.org>
23512
23513         mbrtowc: Tiny optimization.
23514         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
23515
23516 2011-02-20  Jim Meyering  <meyering@redhat.com>
23517
23518         test-exclude.c: remove unmatched #endif
23519         * tests/test-exclude.c: Remove stray #endif, left over from
23520         the change of a week ago.
23521
23522 2011-02-19  Jim Meyering  <meyering@redhat.com>
23523
23524         git-version-gen: skip "-dirty" check when appropriate
23525         * build-aux/git-version-gen: Don't run any git commands when the
23526         version string comes from .tarball-version.  Prior to this, we
23527         would run git update-index --refresh even from a just-unpacked
23528         tarball directory, and that could affect a .git/ directory in a
23529         parent of the build directory.  Reported by Mike Frysinger.
23530
23531 2011-02-19  Bruno Haible  <bruno@clisp.org>
23532
23533         unictype/property-byname: Reduce the size of the 'data' segment.
23534         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
23535
23536 2011-02-19  Bruno Haible  <bruno@clisp.org>
23537
23538         unictype/scripts: Reduce the size of the 'data' segment.
23539         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
23540         '%pic'.
23541         * lib/unictype/scripts_byname.gperf: Regenerated.
23542
23543 2011-02-19  Bruno Haible  <bruno@clisp.org>
23544
23545         stdint: Update documentation.
23546         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
23547
23548 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
23549
23550         stdint: omit redundant check for wchar.h
23551         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
23552         always tests whether wchar.h exists, so remove the now-redundant test.
23553
23554 2011-02-18  Bruno Haible  <bruno@clisp.org>
23555
23556         stdint: Cut dependency to module 'wchar'.
23557         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
23558         include the necessary prerequisites.
23559         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
23560         * modules/stdint (Depends-on): Remove wchar.
23561         (Makefile.am): Substitute HAVE_WCHAR_H.
23562         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
23563
23564 2011-02-18  Eric Blake  <eblake@redhat.com>
23565
23566         longlong: skip, rather than fail, on cross-compilation
23567         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
23568         when cross-compiling; regression from 2011-02-16.
23569
23570 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
23571
23572         * NEWS: Mention 2011-02-08 change to stdlib.
23573
23574 2011-02-17  Bruno Haible  <bruno@clisp.org>
23575
23576         getloadavg: Add comments about platforms.
23577         * m4/getloadavg.m4: Add comment.
23578         * lib/getloadavg.c: Likewise.
23579
23580 2011-02-17  Bruno Haible  <bruno@clisp.org>
23581
23582         getloadavg: Fix link error on Solaris 2.6.
23583         * modules/getloadavg (Link): New section.
23584         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
23585         linking test-getloadavg.
23586         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
23587         getloadavg.
23588
23589 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
23590
23591         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
23592         It was 'int', but this doesn't match the IRIX 6.5 manual.
23593         Suggested by Bruno Haible in
23594         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
23595
23596 2011-02-17  Bruno Haible  <bruno@clisp.org>
23597
23598         havelib: Fix comments.
23599         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
23600         change.
23601
23602 2011-02-17  Bruno Haible  <bruno@clisp.org>
23603
23604         havelib: Update config.rpath.
23605         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
23606
23607 2011-02-17  Bruno Haible  <bruno@clisp.org>
23608
23609         getloadavg test: Add some plausibility checks.
23610         * tests/test-getloadavg.c (check_avg): Print a warning when the value
23611         is improbable.
23612
23613 2011-02-16  Eric Blake  <eblake@redhat.com>
23614
23615         maintainer-makefile: make syntax-check a no-op from tarballs
23616         * top/maint.mk (no-vc-detected): New rule.
23617         (local-checks-available): Use it to avoid hanging if someone tries
23618         'make syntax-check' from a tarball.  Also append to any non-syntax
23619         checks already defined in cfg.mk.
23620
23621 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
23622
23623         longlong: tune, particularly for common case of c99
23624
23625         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
23626         or running anything if c99, or if unsigned long long int does not
23627         work.  In either case, we know the answer without further tests.
23628         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
23629         it at most once, and use its results for both long long int and
23630         unsigned long long int.  This is more likely to be efficient in
23631         the common case where the program wants to check for both long
23632         long int and unsigned long long int.
23633         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
23634         since the answer is already known.
23635
23636 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
23637
23638         getloadavg: set errno
23639         * lib/getloadavg.c: Set errno when returning -1.  If no other
23640         error number looks appropriate, set it to ENOSYS if the getloadavg
23641         looks like it can't possibly ever work, ENOTSUP otherwise.
23642         Suggested by Bruno Haible in
23643         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
23644
23645         getloadavg: trim unused parts and speed up 'configure'
23646         * NEWS: Document this.
23647         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
23648         always compiled if getloadavg is absent.
23649         Move test code to ...
23650         * tests/test-getloadavg.c: New file, containing previous
23651         contents of test from lib/getloadavg.c.  It also contains
23652         suggestions by Bruno Haible in
23653         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
23654         * modules/getloadavg-tests: New file.
23655         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
23656         Do tests in the same order as they're needed for getloadavg.c.
23657         Omit setgid-related tests that generate symbols KMEM_GROUP,
23658         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
23659         Do only the tests that are needed to see whether the system has
23660         getloadavg, moving the other tests into ...
23661         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
23662         NLIST_NAME_UNION; nobody should be using it.  Do not define
23663         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
23664         relevant, as the user of this module shouldn't care how getloadavg
23665         is implemented.
23666
23667         getloadavg: omit unused var
23668         * lib/getloadavg.c (getloadavg): Omit unused local variable.
23669
23670 2011-02-15  Jim Meyering  <meyering@redhat.com>
23671
23672         doc: update users.txt
23673         * users.txt: Update iwhd's URL.
23674
23675 2011-02-13  Bruno Haible  <bruno@clisp.org>
23676
23677         Consistent macro naming for macros that use GCC __attribute__.
23678         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
23679         _ATTRIBUTE_NONNULL_.
23680         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
23681         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
23682         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
23683         ATTRIBUTE_DEPRECATED.
23684         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
23685         ATTRIBUTE_NORETURN.
23686         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
23687         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
23688         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
23689         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
23690         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
23691         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
23692         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
23693         ATTRIBUTE_SENTINEL.
23694         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
23695         ATTRIBUTE_RETURN_CHECK.
23696         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
23697         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
23698         ATTRIBUTE_NORETURN.
23699         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
23700         Reported by Paul Eggert.
23701
23702 2011-02-13  Bruno Haible  <bruno@clisp.org>
23703
23704         Don't interfere with a program's definition of __attribute__.
23705         * lib/argp.h (__attribute__): Remove definition.
23706         (_GL_ATTRIBUTE_FORMAT): New macro.
23707         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
23708         * lib/argp-fmtstream.h (__attribute__): Remove definition.
23709         (_GL_ATTRIBUTE_FORMAT): New macro.
23710         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
23711         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
23712         GCC 3 or newer.
23713         * lib/error.h (__attribute__): Remove definition.
23714         (_GL_ATTRIBUTE_FORMAT): New macro.
23715         (error, error_at_line): Use it.
23716         * lib/hash.h (__attribute__): Remove definition.
23717         (ATTRIBUTE_WUR): Update definition. Define always.
23718         * lib/openat.h (__attribute__): Remove definition.
23719         (ATTRIBUTE_NORETURN): Update definition. Define always.
23720         * lib/sigpipe-die.h (__attribute__): Remove definition.
23721         (ATTRIBUTE_NORETURN): Update definition. Define always.
23722         * lib/vasnprintf.h (__attribute__): Remove definition.
23723         (_GL_ATTRIBUTE_FORMAT): New macro.
23724         (asnprintf, vasnprintf): Use it.
23725         * lib/xalloc.h (__attribute__): Remove definition.
23726         (ATTRIBUTE_NORETURN): Update definition. Define always.
23727         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
23728         * lib/xmemdup0.h (__attribute__): Remove definition.
23729         (ATTRIBUTE_NORETURN): Update definition. Define always.
23730         * lib/xprintf.h (__attribute__): Remove definition.
23731         (_GL_ATTRIBUTE_FORMAT): New macro.
23732         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
23733         * lib/xstrtol.h (__attribute__): Remove definition.
23734         (ATTRIBUTE_NORETURN): Update definition. Define always.
23735         * lib/xvasprintf.h (__attribute__): Remove definition.
23736         (_GL_ATTRIBUTE_FORMAT): New macro.
23737         (xasprintf, xvasprintf): Use it.
23738         * tests/test-argmatch.c (__attribute__): Remove definition.
23739         (ATTRIBUTE_NORETURN): Update definition. Define always.
23740         * tests/test-exclude.c (__attribute__): Remove definition.
23741         (ATTRIBUTE_NORETURN): Update definition. Define always.
23742         Reported by Paul Eggert.
23743
23744 2011-02-13  Bruno Haible  <bruno@clisp.org>
23745
23746         mbrtowc: Add more tests for native Windows platforms.
23747         * tests/test-mbrtowc-w32-1.sh: New file.
23748         * tests/test-mbrtowc-w32-2.sh: New file.
23749         * tests/test-mbrtowc-w32-3.sh: New file.
23750         * tests/test-mbrtowc-w32-4.sh: New file.
23751         * tests/test-mbrtowc-w32-5.sh: New file.
23752         * tests/test-mbrtowc-w32.c: New file.
23753         * modules/mbrtowc-tests (Files): Add them.
23754         (Makefile.am): Arrange to run these tests.
23755         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
23756         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
23757
23758 2011-02-13  Bruno Haible  <bruno@clisp.org>
23759
23760         mbrtowc: Work around native Windows bug.
23761         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
23762         guess when no suitable locale for testing was found.
23763         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
23764
23765 2011-02-13  Bruno Haible  <bruno@clisp.org>
23766
23767         mbsinit: Work around mingw bug.
23768         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
23769         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
23770         Windows.
23771         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
23772
23773 2011-02-13  Bruno Haible  <bruno@clisp.org>
23774
23775         mbsinit: Don't crash for a NULL argument.
23776         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
23777         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
23778
23779 2011-02-13  Bruno Haible  <bruno@clisp.org>
23780
23781         Don't interfere with a program's definition of __attribute__.
23782         * lib/stdio.in.h (__attribute__): Remove definition.
23783         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
23784         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
23785         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
23786         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
23787         * lib/string.in.h (__attribute__): Remove definition.
23788         Reported by Paul Eggert.
23789
23790 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
23791
23792         stdlib: don't get in the way of non-GCC __attribute__
23793         See thread starting at
23794         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
23795         Revert previous stdlib change, installing the following instead:
23796         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
23797         to get in the way of a non-GCC compiler that supports __attribute__.
23798         (_GL_ATTRIBUTE_RETURN): New macro.
23799         (_Exit): Use it instead of __attribute__.
23800
23801 2011-02-12  Bruno Haible  <bruno@clisp.org>
23802
23803         quotearg test: Avoid test failure on mingw.
23804         * tests/test-quotearg.sh: Convert the locale identifier from native
23805         Windows syntax to Unix syntax.
23806
23807 2011-02-12  Bruno Haible  <bruno@clisp.org>
23808
23809         setlocale: Prefer gnulib's override over libintl's override.
23810         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
23811         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
23812         GNULIB_defined_setlocale is set.
23813
23814 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
23815
23816         stdlib: support non-GCC __attribute__
23817
23818         Fix a serious and tricky problem encountered when attempting to
23819         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
23820         5.5, but it crashed due to memory corruption on Solaris 10 with
23821         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
23822         bits that are otherwise zero.  This tagging is optional inside
23823         Emacs but is preferred and is used when __attribute__ ((__aligned
23824         (8))) works, as it does with both recent-enough GCC and with Sun C
23825         5.11.  However, Sun C 5.11 is not GCC and does not #define
23826         __GNUC__ and __GNUC_MINOR__.
23827
23828         When I added the getloadavg module to Emacs, it brought in
23829         stdlib.in.h, which contained this fragment:
23830
23831            #ifndef __attribute__
23832            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
23833            #  define __attribute__(Spec)   /* empty */
23834            # endif
23835            #endif
23836
23837         When files that include <stdlib.h> were compiled with Sun C 5.11,
23838         the above code disabled __attribute__ ((__aligned (8))), which
23839         caused variables to not be properly aligned, which eventually led
23840         to the pointer corruption mentioned above.  (This was a bit hard
23841         to diagnose, unfortunately.)
23842
23843         Several "#define __attribute__(X) /* empty */" code snippets need
23844         to be eradicated from Gnulib to work with non-GCC compilers that
23845         support __attribute__.  The Autoconf way to do this is to test for
23846         each kind of attribute that we want support for, and selectively
23847         enable that in source code.
23848
23849         Fix this problem just for stdlib.h, by adding a test for the
23850         __noreturn__ attribute, and change stdlib.in.h to use that test
23851         when needed.  This technique can be easily generalized to the
23852         other *.in.h files and attributes, and a similar technique can be
23853         used for *.h and *.c files.  This patch is enough to solve the
23854         problem for Emacs + getloadavg, and I thought I'd publish it for
23855         feedback before undertaking further, similar fixes in other
23856         modules.
23857
23858         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
23859         because it's not needed for stdlib.h.  It merely substitutes the
23860         value directly into stdlib.h.  We may well need to #define it, or
23861         similar symbols, for other modules, but it's nice to also have an
23862         option to not #define it for applications like Emacs that do not
23863         need it.
23864
23865         * lib/stdlib.in.h (__attribute__): Do not #define.
23866         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
23867         be defined only if the _Exit module is also used.
23868         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
23869         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
23870         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
23871         platforms.
23872         * modules/_Exit (Files): Add m4/attribute.m4.
23873         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
23874         * m4/attribute.m4: New file.
23875
23876 2011-02-12  Bruno Haible  <bruno@clisp.org>
23877
23878         wcsrtombs: Work around bug on native Windows.
23879         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
23880         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
23881         instead of len.
23882         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
23883
23884 2011-02-12  Bruno Haible  <bruno@clisp.org>
23885
23886         mbsrtowcs: Work around bug on native Windows.
23887         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
23888         against mingw bug.
23889         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
23890
23891 2011-02-12  Bruno Haible  <bruno@clisp.org>
23892
23893         Avoid setlocale bugs in tests.
23894         * modules/btowc (Dependencies): Add setlocale.
23895         * modules/c-strcase (Dependencies): Likewise.
23896         * modules/mbmemcasecmp (Dependencies): Likewise.
23897         * modules/mbmemcasecoll (Dependencies): Likewise.
23898         * modules/mbrtowc (Dependencies): Likewise.
23899         * modules/mbscasecmp (Dependencies): Likewise.
23900         * modules/mbscasestr (Dependencies): Likewise.
23901         * modules/mbschr (Dependencies): Likewise.
23902         * modules/mbscspn (Dependencies): Likewise.
23903         * modules/mbsinit (Dependencies): Likewise.
23904         * modules/mbsncasecmp (Dependencies): Likewise.
23905         * modules/mbsnrtowcs (Dependencies): Likewise.
23906         * modules/mbspbrk (Dependencies): Likewise.
23907         * modules/mbspcasecmp (Dependencies): Likewise.
23908         * modules/mbsrchr (Dependencies): Likewise.
23909         * modules/mbsrtowcs (Dependencies): Likewise.
23910         * modules/mbsspn (Dependencies): Likewise.
23911         * modules/mbsstr (Dependencies): Likewise.
23912         * modules/nl_langinfo (Dependencies): Likewise.
23913         * modules/quotearg (Dependencies): Likewise.
23914         * modules/unicase/locale-language (Dependencies): Likewise.
23915         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
23916         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
23917         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
23918         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
23919         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
23920         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
23921         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
23922         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
23923         * modules/vasnprintf-posix (Dependencies): Likewise.
23924         * modules/wcrtomb (Dependencies): Likewise.
23925         * modules/wcsnrtombs (Dependencies): Likewise.
23926         * modules/wcsrtombs (Dependencies): Likewise.
23927
23928 2011-02-12  Bruno Haible  <bruno@clisp.org>
23929
23930         setlocale: Workaround native Windows bug.
23931         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
23932         succeeds but sets LC_CTYPE to "C", report a failure.
23933         * tests/test-setlocale2.sh: New file.
23934         * tests/test-setlocale2.c: New file.
23935         * modules/setlocale-tests (Files): Add the new files.
23936         (Makefile.am): Enable test-setlocale2.sh test.
23937         * doc/posix-functions/setlocale.texi: Mention workaround.
23938
23939 2011-02-11  Bruno Haible  <bruno@clisp.org>
23940
23941         Tests for module 'setlocale'.
23942         * modules/setlocale-tests: New file.
23943         * tests/test-setlocale1.sh: New file.
23944         * tests/test-setlocale1.c: New file.
23945
23946         New module 'setlocale'.
23947         * lib/locale.in.h (setlocale): New declaration.
23948         * lib/setlocale.c: New file, based on
23949         gettext/gettext-runtime/intl/setlocale.c.
23950         * m4/setlocale.m4: New file.
23951         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
23952         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
23953         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
23954         REPLACE_SETLOCALE.
23955         * modules/setlocale: New file.
23956         * tests/test-locale-c++.cc: Test the declaration of setlocale.
23957         * doc/posix-functions/setlocale.texi: Mention the new module.
23958
23959 2011-02-11  Bruno Haible  <bruno@clisp.org>
23960
23961         Prepare for locale dependent tests on mingw.
23962         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
23963         because it has the wrong locale encoding.
23964         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
23965         French_France.1252 instead of "fr".
23966         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
23967         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
23968         because it has the wrong locale encoding.
23969         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
23970         native Windows, try Turkish_Turkey.65001.
23971         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
23972         Chinese_China.54936.
23973
23974         Prepare for locale dependent tests on mingw.
23975         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
23976         differently.
23977         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
23978         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
23979         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
23980         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
23981
23982 2011-02-11  Eric Blake  <eblake@redhat.com>
23983
23984         strptime: avoid compiler warnings
23985         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
23986         compiler warnings about dead code.
23987         Reported by Daniel P. Berrange.
23988
23989 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
23990
23991         doc: update users.txt
23992         * users.txt: Add rcs.
23993
23994 2011-02-10  John W. Eaton  <jwe@gnu.org>
23995
23996         doc: update users.txt
23997         * users.txt: Add octave.
23998
23999 2011-02-10  Jim Meyering  <meyering@redhat.com>
24000
24001         doc: update users.txt
24002         * users.txt: Add iwhd.
24003
24004 2011-02-09  Bruno Haible  <bruno@clisp.org>
24005
24006         gnulib-tool: Make copyright notice adjustment more robust.
24007         * gnulib-tool (func_import): In sed_transform_main_lib_file,
24008         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
24009         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
24010         License".
24011         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
24012
24013 2011-02-06  Bruno Haible  <bruno@clisp.org>
24014
24015         New module 'towctrans'.
24016         * modules/towctrans: New file.
24017         * lib/wctype.in.h (towctrans): New declaration.
24018         * lib/towctrans.c: New file.
24019         * lib/towctrans-impl.h: New file.
24020         * m4/towctrans.m4: New file.
24021         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
24022         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
24023         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
24024         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
24025         * doc/posix-functions/towctrans.texi: Mention the new module.
24026
24027 2011-02-06  Bruno Haible  <bruno@clisp.org>
24028
24029         New module 'wctrans'.
24030         * modules/wctrans: New file.
24031         * lib/wctype.in.h (wctrans): New declaration.
24032         * lib/wctrans.c: New file.
24033         * lib/wctrans-impl.h: New file.
24034         * m4/wctrans.m4: New file.
24035         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
24036         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
24037         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
24038         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
24039         * doc/posix-functions/wctrans.texi: Mention the new module.
24040
24041 2011-02-06  Bruno Haible  <bruno@clisp.org>
24042
24043         New module 'iswctype'.
24044         * modules/iswctype: New file.
24045         * lib/wctype.in.h (iswctype): New declaration.
24046         * lib/iswctype.c: New file.
24047         * lib/iswctype-impl.h: New file.
24048         * m4/iswctype.m4: New file.
24049         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
24050         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
24051         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
24052         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
24053         * doc/posix-functions/iswctype.texi: Mention the new module and the
24054         HP-UX 11.00 problem.
24055
24056 2011-02-06  Bruno Haible  <bruno@clisp.org>
24057
24058         New module 'wctype'.
24059         * modules/wctype: Change to represent the wctype() substitute.
24060         * lib/wctype.in.h (wctype): New declaration.
24061         * lib/wctype.c: New file.
24062         * lib/wctype-impl.h: New file.
24063         * m4/wctype.m4: New file.
24064         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
24065         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
24066         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
24067         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
24068         * doc/posix-functions/wctype.texi: Mention the new module and the
24069         HP-UX 11.00 problem.
24070
24071 2011-02-06  Bruno Haible  <bruno@clisp.org>
24072
24073         wctype-h: Ensure wctype_t and wctrans_t are defined.
24074         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
24075         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
24076         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
24077         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
24078         HAVE_WCTRANS_T.
24079         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
24080
24081 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
24082
24083         flock: fix license typo
24084
24085         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
24086         omitted.
24087
24088 2011-02-08  Bruno Haible  <bruno@clisp.org>
24089
24090         Split large sed scripts, for HP-UX sed.
24091         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
24092         to avoid HP-UX limit of 99 commands, in the near future.
24093         * modules/stdlib (Makefile.am): Likewise.
24094         * modules/unistd (Makefile.am): Likewise.
24095         * modules/wchar (Makefile.am): Likewise.
24096         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
24097         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
24098         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
24099
24100 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
24101             Bruno Haible  <bruno@clisp.org>
24102
24103         stdlib: improve random_r modularization
24104         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
24105         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
24106         you also need the random_r module to get this material right.
24107         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
24108         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
24109         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
24110
24111 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
24112
24113         stdlib: don't depend on stdint
24114         * lib/stdlib.in.h: Don't include <stdint.h> merely because
24115         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
24116         be independent of whether stdint.h is needed.
24117         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
24118         here, instead of ...
24119         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
24120         struct random_data should be using the random_r module, not just
24121         the stdlib module (which wouldn't make sense: what package needs
24122         just struct random_data without also needing random_r?).
24123         * modules/stdlib (Depends-on): Remove stdint.
24124
24125         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
24126         See the thread rooted at
24127         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
24128         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
24129         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
24130         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
24131         __VMS)); previously it was always included (via fcntl--.h).
24132         (getloadavg): Do not use c_strtod.  Instead, approximate it by
24133         hand; this is good enough for load averages.  Also, do not use
24134         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
24135         flags directly if available and don't bother otherwise.  (Packages
24136         that need the extra reliability should use the modules that define
24137         these flags on older platforms that lack them.)
24138         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
24139         fcntl-safer.
24140
24141 2011-02-08  Jim Meyering  <meyering@redhat.com>
24142
24143         di-set.h, ino-map.h: add multiple-inclusion guard
24144         Technically, the guard is required only for ino-map.h, due to its
24145         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
24146         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
24147         * lib/ino-map.h: Likewise.
24148
24149 2011-02-06  Bruno Haible  <bruno@clisp.org>
24150
24151         iswblank: Ensure declaration on glibc systems.
24152         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
24153         * modules/iswblank (Dependencies): Add 'extensions'.
24154         * doc/posix-functions/iswblank.texi: Document the glibc problem.
24155
24156 2011-02-06  Bruno Haible  <bruno@clisp.org>
24157
24158         New module 'iswblank'.
24159         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
24160         * modules/iswblank: New file.
24161         * modules/wctype-h (Files): Remove lib/iswblank.c.
24162         (Makefile.am): Substitute GNULIB_ISWBLANK.
24163         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
24164         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
24165         (gl_WCTYPE_H_DEFAULTS): New macro.
24166         (gl_WCTYPE_H): Require it. Remove iswblank related code.
24167         * modules/iswblank-tests: New file.
24168         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
24169         * tests/test-wctype-h.c (main): Remove iswblank tests.
24170         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
24171         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
24172         of 'wctype-h'.
24173         * NEWS: Mention the change.
24174         * modules/mbchar (Depends-on): Add iswblank.
24175
24176 2011-02-08  Bruno Haible  <bruno@clisp.org>
24177
24178         di-set tests: Refactor.
24179         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
24180         unnecessary includes.
24181         (ASSERT): Remove macro.
24182         (main): Make C90 compliant by avoiding variable declaration after
24183         statement.
24184         * modules/di-set-tests (Files): Add tests/macros.h.
24185
24186 2011-02-08  Bruno Haible  <bruno@clisp.org>
24187
24188         ino-map tests: Refactor.
24189         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
24190         unnecessary includes.
24191         (ASSERT): Remove macro.
24192         (main): Make C90 compliant by avoiding variable declaration after
24193         statement.
24194         * modules/ino-map-tests (Files): Add tests/macros.h.
24195
24196 2011-02-08  Jim Meyering  <meyering@redhat.com>
24197
24198         di-set: add "const" to a cast
24199         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
24200         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
24201
24202 2011-02-06  Bruno Haible  <bruno@clisp.org>
24203
24204         Rename module 'wctype' to 'wctype-h'.
24205         * modules/wctype-h: Renamed from modules/wctype.
24206         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
24207         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
24208         (Files, Depends-on, Makefile.am): Update.
24209         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
24210         (Files, Makefile.am): Update.
24211         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
24212         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
24213         * doc/posix-headers/wctype.texi: Update.
24214         * doc/posix-functions/iswalnum.texi: Update.
24215         * doc/posix-functions/iswalpha.texi: Update.
24216         * doc/posix-functions/iswblank.texi: Update.
24217         * doc/posix-functions/iswcntrl.texi: Update.
24218         * doc/posix-functions/iswdigit.texi: Update.
24219         * doc/posix-functions/iswgraph.texi: Update.
24220         * doc/posix-functions/iswlower.texi: Update.
24221         * doc/posix-functions/iswprint.texi: Update.
24222         * doc/posix-functions/iswpunct.texi: Update.
24223         * doc/posix-functions/iswspace.texi: Update.
24224         * doc/posix-functions/iswupper.texi: Update.
24225         * doc/posix-functions/iswxdigit.texi: Update.
24226         * doc/posix-functions/towlower.texi: Update.
24227         * doc/posix-functions/towupper.texi: Update.
24228         * NEWS: Mention the change.
24229         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
24230         * modules/mbchar (Dependencies): Likewise.
24231         * modules/mbswidth (Dependencies): Likewise.
24232         * modules/quotearg (Dependencies): Likewise.
24233         * modules/regex (Dependencies): Likewise.
24234         * modules/wcscasecmp (Dependencies): Likewise.
24235         * modules/wcsncasecmp (Dependencies): Likewise.
24236         * modules/wcwidth (Dependencies): Likewise.
24237
24238 2011-02-06  Bruno Haible  <bruno@clisp.org>
24239
24240         New module 'wcswidth'.
24241         * modules/wcswidth: New file.
24242         * lib/wchar.in.h (wcswidth): New declaration.
24243         * lib/wcswidth.c: New file.
24244         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
24245         * m4/wcswidth.m4: New file.
24246         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
24247         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
24248         REPLACE_WCSWIDTH.
24249         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
24250         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
24251         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
24252         * doc/posix-functions/wcswidth.texi: Mention the new module.
24253
24254 2011-02-06  Bruno Haible  <bruno@clisp.org>
24255
24256         New module 'wcstok'.
24257         * modules/wcstok: New file.
24258         * lib/wchar.in.h (wcstok): New declaration.
24259         * lib/wcstok.c: New file.
24260         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
24261         * m4/wcstok.m4: New file.
24262         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
24263         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
24264         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
24265         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
24266         * doc/posix-functions/wcstok.texi: Mention the new module.
24267
24268 2011-02-06  Bruno Haible  <bruno@clisp.org>
24269
24270         New module 'wcsstr'.
24271         * modules/wcsstr: New file.
24272         * lib/wchar.in.h (wcsstr): New declaration.
24273         * lib/wcsstr.c: New file.
24274         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
24275         * m4/wcsstr.m4: New file.
24276         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
24277         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
24278         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
24279         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
24280         * doc/posix-functions/wcsstr.texi: Mention the new module.
24281
24282 2011-02-06  Bruno Haible  <bruno@clisp.org>
24283
24284         New module 'wcspbrk'.
24285         * modules/wcspbrk: New file.
24286         * lib/wchar.in.h (wcspbrk): New declaration.
24287         * lib/wcspbrk.c: New file.
24288         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
24289         * m4/wcspbrk.m4: New file.
24290         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
24291         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
24292         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
24293         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
24294         * doc/posix-functions/wcspbrk.texi: Mention the new module.
24295
24296 2011-02-06  Bruno Haible  <bruno@clisp.org>
24297
24298         New module 'wcsspn'.
24299         * modules/wcsspn: New file.
24300         * lib/wchar.in.h (wcsspn): New declaration.
24301         * lib/wcsspn.c: New file.
24302         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
24303         * m4/wcsspn.m4: New file.
24304         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
24305         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
24306         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
24307         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
24308         * doc/posix-functions/wcsspn.texi: Mention the new module.
24309
24310 2011-02-06  Bruno Haible  <bruno@clisp.org>
24311
24312         New module 'wcscspn'.
24313         * modules/wcscspn: New file.
24314         * lib/wchar.in.h (wcscspn): New declaration.
24315         * lib/wcscspn.c: New file.
24316         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
24317         * m4/wcscspn.m4: New file.
24318         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
24319         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
24320         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
24321         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
24322         * doc/posix-functions/wcscspn.texi: Mention the new module.
24323
24324 2011-02-06  Bruno Haible  <bruno@clisp.org>
24325
24326         New module 'wcsrchr'.
24327         * modules/wcsrchr: New file.
24328         * lib/wchar.in.h (wcsrchr): New declaration.
24329         * lib/wcsrchr.c: New file.
24330         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
24331         * m4/wcsrchr.m4: New file.
24332         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
24333         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
24334         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
24335         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
24336         * doc/posix-functions/wcsrchr.texi: Mention the new module.
24337
24338 2011-02-06  Bruno Haible  <bruno@clisp.org>
24339
24340         New module 'wcschr'.
24341         * modules/wcschr: New file.
24342         * lib/wchar.in.h (wcschr): New declaration.
24343         * lib/wcschr.c: New file.
24344         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
24345         * m4/wcschr.m4: New file.
24346         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
24347         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
24348         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
24349         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
24350         * doc/posix-functions/wcschr.texi: Mention the new module.
24351
24352 2011-02-06  Bruno Haible  <bruno@clisp.org>
24353
24354         New module 'wcsdup'.
24355         * modules/wcsdup: New file.
24356         * lib/wchar.in.h (wcsdup): New declaration.
24357         * lib/wcsdup.c: New file.
24358         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
24359         * m4/wcsdup.m4: New file.
24360         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
24361         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
24362         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
24363         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
24364         * doc/posix-functions/wcsdup.texi: Mention the new module.
24365
24366 2011-02-06  Bruno Haible  <bruno@clisp.org>
24367
24368         New module 'wcsxfrm'.
24369         * modules/wcsxfrm: New file.
24370         * lib/wchar.in.h (wcsxfrm): New declaration.
24371         * lib/wcsxfrm.c: New file.
24372         * lib/wcsxfrm-impl.h: New file.
24373         * m4/wcsxfrm.m4: New file.
24374         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
24375         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
24376         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
24377         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
24378         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
24379
24380 2011-02-06  Bruno Haible  <bruno@clisp.org>
24381
24382         New module 'wcscoll'.
24383         * modules/wcscoll: New file.
24384         * lib/wchar.in.h (wcscoll): New declaration.
24385         * lib/wcscoll.c: New file.
24386         * lib/wcscoll-impl.h: New file.
24387         * m4/wcscoll.m4: New file.
24388         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
24389         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
24390         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
24391         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
24392         * doc/posix-functions/wcscoll.texi: Mention the new module.
24393
24394 2011-02-06  Bruno Haible  <bruno@clisp.org>
24395
24396         New module 'wcsncasecmp'.
24397         * modules/wcsncasecmp: New file.
24398         * lib/wchar.in.h (wcsncasecmp): New declaration.
24399         * lib/wcsncasecmp.c: New file.
24400         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
24401         * m4/wcsncasecmp.m4: New file.
24402         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
24403         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
24404         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
24405         HAVE_WCSNCASECMP.
24406         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
24407         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
24408
24409 2011-02-06  Bruno Haible  <bruno@clisp.org>
24410
24411         New module 'wcscasecmp'.
24412         * modules/wcscasecmp: New file.
24413         * lib/wchar.in.h (wcscasecmp): New declaration.
24414         * lib/wcscasecmp.c: New file.
24415         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
24416         * m4/wcscasecmp.m4: New file.
24417         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
24418         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
24419         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
24420         HAVE_WCSCASECMP.
24421         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
24422         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
24423
24424 2011-02-05  Bruno Haible  <bruno@clisp.org>
24425
24426         New module 'wcsncmp'.
24427         * modules/wcsncmp: New file.
24428         * lib/wchar.in.h (wcsncmp): New declaration.
24429         * lib/wcsncmp.c: New file.
24430         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
24431         * m4/wcsncmp.m4: New file.
24432         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
24433         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
24434         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
24435         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
24436         * doc/posix-functions/wcsncmp.texi: Mention the new module.
24437
24438 2011-02-05  Bruno Haible  <bruno@clisp.org>
24439
24440         New module 'wcscmp'.
24441         * modules/wcscmp: New file.
24442         * lib/wchar.in.h (wcscmp): New declaration.
24443         * lib/wcscmp.c: New file.
24444         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
24445         * m4/wcscmp.m4: New file.
24446         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
24447         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
24448         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
24449         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
24450         * doc/posix-functions/wcscmp.texi: Mention the new module.
24451
24452 2011-02-05  Bruno Haible  <bruno@clisp.org>
24453
24454         New module 'wcsncat'.
24455         * modules/wcsncat: New file.
24456         * lib/wchar.in.h (wcsncat): New declaration.
24457         * lib/wcsncat.c: New file.
24458         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
24459         * m4/wcsncat.m4: New file.
24460         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
24461         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
24462         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
24463         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
24464         * doc/posix-functions/wcsncat.texi: Mention the new module.
24465
24466 2011-02-05  Bruno Haible  <bruno@clisp.org>
24467
24468         New module 'wcscat'.
24469         * modules/wcscat: New file.
24470         * lib/wchar.in.h (wcscat): New declaration.
24471         * lib/wcscat.c: New file.
24472         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
24473         * m4/wcscat.m4: New file.
24474         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
24475         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
24476         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
24477         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
24478         * doc/posix-functions/wcscat.texi: Mention the new module.
24479
24480 2011-02-05  Bruno Haible  <bruno@clisp.org>
24481
24482         New module 'wcpncpy'.
24483         * modules/wcpncpy: New file.
24484         * lib/wchar.in.h (wcpncpy): New declaration.
24485         * lib/wcpncpy.c: New file.
24486         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
24487         * m4/wcpncpy.m4: New file.
24488         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
24489         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
24490         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
24491         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
24492         * doc/posix-functions/wcpncpy.texi: Mention the new module.
24493
24494 2011-02-05  Bruno Haible  <bruno@clisp.org>
24495
24496         New module 'wcsncpy'.
24497         * modules/wcsncpy: New file.
24498         * lib/wchar.in.h (wcsncpy): New declaration.
24499         * lib/wcsncpy.c: New file.
24500         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
24501         * m4/wcsncpy.m4: New file.
24502         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
24503         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
24504         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
24505         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
24506         * doc/posix-functions/wcsncpy.texi: Mention the new module.
24507
24508 2011-02-05  Bruno Haible  <bruno@clisp.org>
24509
24510         New module 'wcpcpy'.
24511         * modules/wcpcpy: New file.
24512         * lib/wchar.in.h (wcpcpy): New declaration.
24513         * lib/wcpcpy.c: New file.
24514         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
24515         * m4/wcpcpy.m4: New file.
24516         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
24517         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
24518         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
24519         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
24520         * doc/posix-functions/wcpcpy.texi: Mention the new module.
24521
24522 2011-02-05  Bruno Haible  <bruno@clisp.org>
24523
24524         New module 'wcscpy'.
24525         * modules/wcscpy: New file.
24526         * lib/wchar.in.h (wcscpy): New declaration.
24527         * lib/wcscpy.c: New file.
24528         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
24529         * m4/wcscpy.m4: New file.
24530         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
24531         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
24532         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
24533         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
24534         * doc/posix-functions/wcscpy.texi: Mention the new module.
24535
24536 2011-02-05  Bruno Haible  <bruno@clisp.org>
24537
24538         New module 'wcsnlen'.
24539         * modules/wcsnlen: New file.
24540         * lib/wchar.in.h (wcsnlen): New declaration.
24541         * lib/wcsnlen.c: New file.
24542         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
24543         * m4/wcsnlen.m4: New file.
24544         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
24545         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
24546         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
24547         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
24548         * doc/posix-functions/wcsnlen.texi: Mention the new module.
24549
24550 2011-02-05  Bruno Haible  <bruno@clisp.org>
24551
24552         New module 'wcslen'.
24553         * modules/wcslen: New file.
24554         * lib/wchar.in.h (wcslen): New declaration.
24555         * lib/wcslen.c: New file.
24556         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
24557         * m4/wcslen.m4: New file.
24558         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
24559         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
24560         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
24561         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
24562         * doc/posix-functions/wcslen.texi: Mention the new module.
24563
24564 2011-02-05  Bruno Haible  <bruno@clisp.org>
24565
24566         New module 'wmemset'.
24567         * modules/wmemset: New file.
24568         * lib/wchar.in.h (wmemset): New declaration.
24569         * lib/wmemset.c: New file.
24570         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
24571         * m4/wmemset.m4: New file.
24572         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
24573         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
24574         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
24575         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
24576         * doc/posix-functions/wmemset.texi: Mention the new module.
24577
24578 2011-02-05  Bruno Haible  <bruno@clisp.org>
24579
24580         New module 'wmemmove'.
24581         * modules/wmemmove: New file.
24582         * lib/wchar.in.h (wmemmove): New declaration.
24583         * lib/wmemmove.c: New file.
24584         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
24585         * m4/wmemmove.m4: New file.
24586         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
24587         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
24588         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
24589         HAVE_WMEMMOVE.
24590         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
24591         * doc/posix-functions/wmemmove.texi: Mention the new module.
24592
24593 2011-02-05  Bruno Haible  <bruno@clisp.org>
24594
24595         New module 'wmemcpy'.
24596         * modules/wmemcpy: New file.
24597         * lib/wchar.in.h (wmemcpy): New declaration.
24598         * lib/wmemcpy.c: New file.
24599         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
24600         * m4/wmemcpy.m4: New file.
24601         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
24602         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
24603         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
24604         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
24605         * doc/posix-functions/wmemcpy.texi: Mention the new module.
24606
24607 2011-02-05  Bruno Haible  <bruno@clisp.org>
24608
24609         New module 'wmemcmp'.
24610         * modules/wmemcmp: New file.
24611         * lib/wchar.in.h (wmemcmp): New declaration.
24612         * lib/wmemcmp.c: New file.
24613         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
24614         * m4/wmemcmp.m4: New file.
24615         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
24616         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
24617         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
24618         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
24619         * doc/posix-functions/wmemcmp.texi: Mention the new module.
24620
24621 2011-02-07  Jim Meyering  <meyering@redhat.com>
24622
24623         di-set, ino-map: new modules, from coreutils
24624         * lib/di-set.c: New file.
24625         * lib/di-set.h: Likewise.
24626         * lib/ino-map.c: Likewise.
24627         * lib/ino-map.h: Likewise.
24628         * modules/di-set: Likewise.
24629         * modules/di-set-tests: Likewise.
24630         * modules/ino-map: Likewise.
24631         * modules/ino-map-tests: Likewise.
24632         * tests/test-di-set.c: Likewise.
24633         * tests/test-ino-map.c: Likewise.
24634
24635 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
24636
24637         getloadavg: merge minor changes from Emacs
24638
24639         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
24640         (getloadavg): Use memset, not bzero.
24641
24642         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
24643         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
24644         clash (bug#86).
24645
24646 2010-11-14  Bruno Haible  <bruno@clisp.org>
24647
24648         Allow multiple gnulib generated replacements to coexist.
24649         * lib/getopt.in.h (struct option): Avoid identical redefinition.
24650         * lib/inttypes.in.h (imaxdiv_t): Likewise.
24651         * lib/langinfo.in.h (nl_item): Likewise.
24652         * lib/math.in.h (_NaN, NAN): Likewise.
24653         * lib/netdb.in.h (struct addrinfo): Likewise.
24654         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
24655         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
24656         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
24657         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
24658         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
24659         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
24660         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
24661         pthread_mutexattr_init, pthread_mutexattr_settype,
24662         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
24663         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
24664         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
24665         pthread_spin_trylock, pthread_spin_unlock): Likewise.
24666         * lib/sched.in.h (struct sched_param): Likewise.
24667         * lib/se-selinux.in.h (security_class_t, security_context_t,
24668         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
24669         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
24670         lsetfilecon, fsetfilecon, security_check_context,
24671         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
24672         Likewise.
24673         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
24674         Likewise.
24675         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
24676         _gl_function_taking_int_returning_void_t, union sigval,
24677         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
24678         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
24679         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
24680         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
24681         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
24682         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
24683         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
24684         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
24685         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
24686         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
24687         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
24688         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
24689         socklen_t, rpl_fd_isset): Likewise.
24690         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
24691         * lib/sys_time.in.h (struct timeval): Likewise.
24692         * lib/sys_times.in.h (struct tms): Likewise.
24693         * lib/sys_utsname.in.h (struct utsname):
24694         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
24695         * lib/unistd.in.h (getpagesize): Likewise.
24696         * lib/wchar.in.h (mbstate_t): Likewise.
24697         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
24698         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
24699         towlower, towupper): Likewise.
24700         Reported by Sam Steingold <sds@gnu.org>.
24701
24702 2011-02-05  Eric Blake  <eblake@redhat.com>
24703
24704         unsetenv: work around Haiku issues
24705         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
24706         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
24707
24708 2010-12-30  Bruce Korb  <bkorb@gnu.org>
24709
24710         libposix: avoid calling error() within libposix
24711         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
24712         is defined.
24713
24714 2011-02-05  Eric Blake  <eblake@redhat.com>
24715
24716         strerror_r-posix: port to cygwin
24717         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
24718         implementation.
24719         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
24720         * tests/test-strerror_r.c (main): Fix test.
24721         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
24722         issue.
24723
24724 2011-02-05  Bruno Haible  <bruno@clisp.org>
24725
24726         New module 'wmemchr'.
24727         * modules/wmemchr: New file.
24728         * lib/wchar.in.h (wmemchr): New declaration.
24729         * lib/wmemchr.c: New file.
24730         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
24731         * m4/wmemchr.m4: New file.
24732         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
24733         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
24734         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
24735         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
24736         * doc/posix-functions/wmemchr.texi: Mention the new module.
24737
24738 2011-02-04  Eric Blake  <eblake@redhat.com>
24739
24740         fdopendir: detect FreeBSD bug
24741         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
24742         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
24743
24744 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
24745
24746         stdbool: do not define HAVE_STDBOOL_H
24747         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
24748         AC_HEADER_STDBOOL.  All uses changed.  Do not define
24749         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
24750         imported from the latest Autoconf git.  It was motivated by Emacs,
24751         which uses gnulib but does not need HAVE_STDBOOL_H.
24752
24753 2011-02-04  Bruno Haible  <bruno@clisp.org>
24754
24755         wcsnrtombs: Prepare for new module wwcsnrtombs.
24756         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
24757         * lib/wcsnrtombs.c: Include it.
24758         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
24759
24760         wcsrtombs: Prepare for new module wwcsrtombs.
24761         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
24762         * lib/wcsrtombs.c: Include it.
24763         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
24764
24765         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
24766         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
24767         * lib/mbsnrtowcs.c: Include it.
24768         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
24769
24770         mbsrtowcs: Prepare for new module mbsrtowwcs.
24771         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
24772         * lib/mbsrtowcs.c: Include it.
24773         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
24774
24775 2011-02-04  Bruno Haible  <bruno@clisp.org>
24776
24777         vasnprintf: Reduce use of malloc for small format strings.
24778         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
24779         (arguments): Add room for the first 7 arguments.
24780         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
24781         (char_directives, u8_directives, u16_directives, u32_directives): Add
24782         room for the first 7 directives.
24783         * lib/printf-parse.c: Include <string.h>.
24784         (PRINTF_PARSE): Change memory handling code so that it uses the first
24785         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
24786         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
24787         Reported by Pádraig Brady <P@draigbrady.com>.
24788
24789 2011-01-31  Eric Blake  <eblake@redhat.com>
24790
24791         dup2: work around Haiku bug
24792         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
24793         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
24794         * doc/posix-functions/dup2.texi (dup2): Document the bug.
24795         * tests/test-dup2.c (main): Enhance test.
24796
24797 2011-01-31  Simon Josefsson  <simon@josefsson.org>
24798
24799         doc: off_t is not available in eglibc 2.11.2 stdio.h.
24800         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
24801         declared by eglibc 2.11.2.
24802         * lib/stdio.in.h: Likewise.
24803
24804 2011-01-31  Eric Blake  <eblake@redhat.com>
24805
24806         ignore-value: add missing test dependency
24807         * tests/test-ignore-value.c: Revert previous change; stdio.h
24808         provides off_t.
24809         * modules/ignore-value-tests (Depends-on): Add missing dependency.
24810
24811 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
24812
24813         mktime: clarify long_int width checking
24814         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
24815         the top level, to make it clearer that the assumption about
24816         long_int width is being checked.  See
24817         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
24818
24819 2011-01-30  Simon Josefsson  <simon@josefsson.org>
24820
24821         ignore-value: Fix self-test.
24822         * tests/test-ignore-value.c: Include sys/types.h for off_t.
24823
24824 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
24825
24826         TYPE_MAXIMUM: avoid theoretically undefined behavior
24827         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
24828         negative number, which the C Standard says has undefined behavior.
24829         In practice this is not a problem, but might as well do it by the book.
24830         Reported by Rich Felker and Eric Blake; see
24831         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
24832         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
24833         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
24834         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
24835         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
24836         * m4/stdint.m4 (gl_STDINT_H): Likewise.
24837         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
24838
24839         mktime: #undef mktime before #defining it
24840         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
24841
24842         mktime: systematically normalize tm_isdst comparisons
24843         * lib/mktime.c (isdst_differ): New function.
24844         (__mktime_internal): Use it systematically for all isdst comparisons.
24845         This completes the fix for libc BZ #6723, and removes the need for
24846         normalizing tm_isdst.  See
24847         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
24848         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
24849
24850         mktime: fix some integer overflow issues and sidestep the rest
24851
24852         This was prompted by a bug report by Benjamin Lindner for MinGW
24853         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
24854         His bug is due to signed integer overflow (0 - INT_MIN), and I
24855         I scanned through mktime.c looking for other integer overflow
24856         problems, fixing all the bugs I found.
24857
24858         Although the C Standard says the resulting code is still not safe
24859         in the presence of integer overflow, in practice it should be good
24860         enough for all real-world two's-complement implementations, except
24861         for debugging environments that deliberately trap on integer
24862         overflow (e.g., gcc -ftrapv).
24863
24864         * lib/mktime.c (WRAPV): New macro.
24865         (SHR): Also check that long_int and time_t shift right in the
24866         usual way, before using the fast-but-unportable method.
24867         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
24868         used.  The code already assumed two's complement, so there's
24869         no need to test for alternatives.  All uses removed.
24870         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
24871         the C standard.  Problem reported by Rich Felker in
24872         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
24873         (twos_complement_arithmetic): Also check long_int and time_t.
24874         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
24875         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
24876         (__mktime_internal): Avoid integer overflow with unary subtraction
24877         in two instances where -1 - X is an adequate replacement for -X,
24878         since the calculations are approximate.
24879
24880 2011-01-29  Eric Blake  <eblake@redhat.com>
24881
24882         mktime: avoid infinite loop
24883         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
24884         type; behavior is still undefined but portable to all known targets.
24885         Reported by Rich Felker.
24886
24887 2011-01-29  Simon Josefsson  <simon@josefsson.org>
24888
24889         rename, unlink, same-inode: Relicense.
24890         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
24891         * modules/unlink (License): Likewise.
24892         * modules/same-inode (License): Likewise.
24893
24894 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
24895
24896         mktime: avoid problems on NetBSD 5 / i386
24897         * lib/mktime.c (long_int): New type.  This works around a problem
24898         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
24899         but time_t is 64 bits, and where I expect the existing code is
24900         wrong in some cases.
24901         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
24902         (ydhms_diff): Bring back the compile-time check for wide-enough
24903         year and yday.
24904
24905         mktime: fix misspelling in comment
24906         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
24907         This merges all recent glibc changes of importance.
24908
24909 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24910
24911         move-if-change: cope with concurrent mv of identical file.
24912         * build-aux/move-if-change (CMPPROG): Accept environment
24913         variable as an override for `cmp'.
24914         (usage): Document CMPPROG.
24915         Adjust comparison to drop stdout.  Cope with failure of mv if
24916         the target file exists and is identical to the source, for
24917         parallel builds.
24918         Report from H.J. Lu against binutils in PR binutils/12283.
24919
24920 2011-01-28  Bruce Korb  <bkorb@gnu.org>
24921
24922         * users.txt: Mention sharutils.
24923
24924 2011-01-28  Simon Josefsson  <simon@josefsson.org>
24925
24926         * users.txt: Mention OATH Toolkit.
24927
24928 2011-01-27  Bruno Haible  <bruno@clisp.org>
24929
24930         Prepare for supporting FreeBSD 10.
24931         * build-aux/config.libpath: Remove handling of freebsd1*.
24932
24933 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
24934
24935         Prepare for supporting FreeBSD 10.
24936         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
24937         match FreeBSD 10.0.
24938
24939 2011-01-27  Bruno Haible  <bruno@clisp.org>
24940
24941         vma-iter, get-rusage-as: Add OpenBSD support.
24942         * modules/vma-iter (configure.ac): Test for mquery.
24943         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
24944         * lib/vma-iter.c: Include <sys/mman.h>.
24945         (vma_iterate): Add an implementation based on mquery().
24946         * lib/resource-ext.h (get_rusage_as): Update comments.
24947         * lib/get-rusage-as.c: Likewise.
24948         * lib/get-rusage-data.c: Likewise.
24949
24950 2011-01-26  Karl Berry  <karl@gnu.org>
24951
24952         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
24953         variables to make it easier to override the makeinfo program used.
24954
24955 2011-01-26  Eric Blake  <eblake@redhat.com>
24956
24957         fcntl: work around Haiku F_DUPFD bugs
24958         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
24959         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
24960         cloexec bit on duplication.
24961         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
24962
24963 2011-01-26  Bruno Haible  <bruno@clisp.org>
24964
24965         Enable memory leak tests on AIX.
24966         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
24967         * tests/test-fprintf-posix3.c (main): Likewise.
24968
24969 2011-01-26  Bruno Haible  <bruno@clisp.org>
24970
24971         Tests for module 'get-rusage-data'.
24972         * modules/get-rusage-data-tests: New file.
24973         * tests/test-get-rusage-data.c: New file.
24974
24975         New module 'get-rusage-data'.
24976         * lib/resource-ext.h (get_rusage_data): New declaration.
24977         * lib/get-rusage-data.c: New file.
24978         * modules/get-rusage-data: New file.
24979
24980 2011-01-25  Bruno Haible  <bruno@clisp.org>
24981
24982         get-rusage-as: Allow for easier testing.
24983         * lib/resource-ext.h (get_rusage_as): Add comment.
24984         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
24985         (main): New function for interactive testing.
24986
24987 2011-01-25  Bruno Haible  <bruno@clisp.org>
24988
24989         vma-iter: Treat Haiku like BeOS.
24990         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
24991         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
24992
24993 2011-01-25  Eric Blake  <eblake@redhat.com>
24994
24995         c-stack: fix regression on cygwin when libsigsegv is present
24996         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
24997
24998 2011-01-24  Bruno Haible  <bruno@clisp.org>
24999
25000         vma-iter: Avoid empty intervals.
25001         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
25002         on an empty interval.
25003
25004 2011-01-24  Jim Meyering  <meyering@redhat.com>
25005
25006         u64: remove unnecessary #include
25007         * lib/u64.h: Don't include <stddef.h>.  It was not used.
25008
25009 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
25010
25011         Allow the user to avoid the HAVE_RAW_DECL_* macros.
25012         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
25013
25014 2011-01-23  Bruno Haible  <bruno@clisp.org>
25015
25016         New module 'vma-iter'.
25017         * lib/vma-iter.h: New file.
25018         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
25019         * modules/vma-iter: New file.
25020         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
25021         for get_rusage_as_via_iterator.
25022         (vma_iterate_callback): New function.
25023         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
25024         * modules/get-rusage-as (Depends-on): Add vma-iter.
25025
25026 2011-01-23  Bruno Haible  <bruno@clisp.org>
25027
25028         uninorm: Tweak includes.
25029         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
25030         Reported by Jim Meyering.
25031
25032 2011-01-23  Bruno Haible  <bruno@clisp.org>
25033
25034         get-rusage-as: Improve on NetBSD.
25035         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
25036         /proc, like on FreeBSD.
25037
25038 2011-01-23  Jim Meyering  <meyering@redhat.com>
25039
25040         xreadlink.h: remove unnecessary #include
25041         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
25042
25043         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
25044         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
25045
25046 2011-01-23  Bruno Haible  <bruno@clisp.org>
25047
25048         get-rusage-as: Fix bug.
25049         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
25050         original limit when aborting the first loop.
25051
25052 2011-01-23  Bruno Haible  <bruno@clisp.org>
25053
25054         wctype: Ensure valid C syntax.
25055         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
25056         unconditionally, instead of gl_NEXT_HEADERS conditionally.
25057
25058 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
25059
25060         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
25061         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
25062         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
25063         as they are needed only for configure's test case.
25064         This removes two unnecessary symbols from config.h.
25065
25066         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
25067         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
25068         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
25069         AC_CHECK_HEADERS_ONCE on a header that we also invoke
25070         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
25071         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
25072         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
25073         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
25074         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
25075         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
25076         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
25077         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
25078         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
25079         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
25080         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
25081         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
25082         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
25083         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
25084
25085 2011-01-21  Eric Blake  <eblake@redhat.com>
25086
25087         maintainer-makefile: work with older git for submodule check
25088         * top/maint.mk (public-submodule-commit): Rewrite to avoid
25089         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
25090         Reported by Matthias Bolte.
25091
25092         bootstrap: minor portability fixes
25093         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
25094         (usage): Omit leading capital and trailing . on help phrases, per
25095         GNU Coding Standards.
25096         (check_versions, top level): Prefix messages with script name.
25097
25098 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
25099
25100         bootstrap: support --no-git option
25101         * build-aux/bootstrap: Add --no-git option, to be used when
25102         --gnulib-srcdir points to the exact desired checkout.
25103
25104 2011-01-21  Eric Blake  <eblake@redhat.com>
25105
25106         strerror_r-posix: work with glibc 2.13
25107         * lib/strerror_r.c (strerror_r): Fix return type.
25108
25109 2011-01-21  Pádraig Brady  <P@draigBrady.com>
25110             Bruno Haible  <bruno@clisp.org>
25111
25112         uN_strstr: New unit tests.
25113         * modules/unistr/u8-strstr-tests: New file.
25114         * modules/unistr/u16-strstr-tests: New file.
25115         * modules/unistr/u32-strstr-tests: New file.
25116         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
25117         * tests/unistr/test-u8-strstr.c: New file.
25118         * tests/unistr/test-u16-strstr.c: New file.
25119         * tests/unistr/test-u32-strstr.c: New file.
25120
25121 2011-01-21  Pádraig Brady  <P@draigBrady.com>
25122             Bruno Haible  <bruno@clisp.org>
25123
25124         Make uN_strstr functions O(n) worst-case.
25125         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
25126         16-bit and 32-bit unit cases, use the unibyte algorithm from
25127         lib/mbsstr.c.
25128         * lib/unistr/u8-strstr.c: Include <string.h>.
25129         (UNIT_IS_UINT8_T): New macro.
25130         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
25131         (U_STRLEN, U_STRNLEN): New macros.
25132         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
25133         (U_STRLEN, U_STRNLEN): New macros.
25134         * modules/unistr/u8-strstr (Depends-on): Add strstr.
25135         (configure.ac): Update required libunistring version.
25136         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
25137         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
25138         malloca.
25139         (configure.ac): Update required libunistring version.
25140         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
25141         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
25142         malloca.
25143         (configure.ac): Update required libunistring version.
25144
25145 2011-01-21  Pádraig Brady  <P@draigBrady.com>
25146             Bruno Haible  <bruno@clisp.org>
25147
25148         Prepare for faster uN_strstr functions.
25149         * lib/str-kmp.h: Support definable UNITs.
25150         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
25151         needle_len argument.
25152         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
25153         * lib/mbscasestr.c (mbscasestr): Likewise.
25154
25155 2011-01-21  Pádraig Brady <P@draigBrady.com>
25156
25157         malloca-tests: make faster by unsetting MALLOC_PERTURB_
25158         * tests/test-malloca.c (main): Unset the environment variable
25159         to greatly speed up the test.
25160         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
25161         * modules/malloca-tests: Depend on unsetenv.
25162
25163 2011-01-21  Pádraig Brady <P@draigBrady.com>
25164
25165         ignore-value: remove stdint dependency
25166         * lib/ignore-value.h: Remove <stdint.h>
25167         * modules/ignore-value: Remove stdint dependency.
25168
25169 2011-01-21  Jim Meyering  <meyering@redhat.com>
25170
25171         maint.mk: adjust variable name to be consistent with other gl_ vars
25172         * top/maint.mk (gl_public_submodule_commit): Rename the variable
25173         to be lower case.
25174
25175 2011-01-20  Jim Meyering  <meyering@redhat.com>
25176
25177         maint.mk: make "check" depend on public-submodule-commit by default
25178         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
25179
25180 2011-01-20  Bruno Haible  <bruno@clisp.org>
25181
25182         mbfile, mbiter: Complete change from 2008-12-21.
25183         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
25184         * m4/mbiter.m4 (gl_MBITER): Likewise.
25185
25186 2011-01-20  Jim Meyering  <meyering@redhat.com>
25187
25188         init.sh: insert space between each function name and "()"
25189         * tests/init.sh: Make it a little easier to see that a function's
25190         name is "warn_", and not "warn" when looking at the first part of
25191         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
25192
25193 2011-01-20  Jim Meyering  <meyering@redhat.com>
25194
25195         mountlist: clean up code formatting
25196         * lib/mountlist.c (read_file_system_list): Split a long line,
25197         correct bracing style, use NULL in place of "(struct statfs *)0",
25198         don't parenthesize return value, add spaces around "=" and after
25199         ";-in-for-stmt".
25200
25201 2011-01-14  Markus Duft <mduft@gentoo.org>
25202
25203         mountlist: add support for Interix
25204         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
25205         Apply statvfs to all entries of /dev/fs.
25206         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
25207         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
25208
25209 2011-01-20  Jim Meyering  <meyering@redhat.com>
25210
25211         maint.mk: improve the public-submodule-commit rule
25212         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
25213         to suppress printing of its commands... unless V=1.
25214         Add git submodule's --quiet option to suppress printing of e.g.,
25215         "Entering gnulib" output.
25216         "cd" into $(srcdir) before running git submodule.
25217
25218 2011-01-20  Bruno Haible  <bruno@clisp.org>
25219
25220         include_next: Fix bug introduced on 2011-01-18.
25221         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
25222         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
25223         ac_cv_header_... variable if the second argument is not 'check'.
25224         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
25225         gl_NEXT_HEADERS_INTERNAL.
25226
25227 2011-01-20  Bruno Haible  <bruno@clisp.org>
25228
25229         Allow the user to avoid the GNULIB_TEST_* macros.
25230         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
25231         Suggested by Paul Eggert.
25232
25233 2011-01-14  Jim Meyering  <meyering@redhat.com>
25234
25235         bootstrap: avoid failure when there is no .gitmodules file
25236         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
25237         has been assigned to, even when its value is the empty string.
25238         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
25239         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
25240         Reported by John W. Eaton <jwe@gnu.org>.
25241
25242 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
25243
25244         assume <ctype.h>, ..., <time.h> exist
25245         For years gnulib has been assuming the existence of the headers
25246         <ctype.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
25247         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
25248         them, since they don't appear to be needed.
25249         * README (Portability guidelines): Document this.
25250         * lib/flock.c: Assume <fcntl.h> exists.
25251         * lib/regex_internal.h: Assume <locale.h> exists.
25252         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
25253         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
25254         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
25255         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
25256         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
25257         * m4/regex.m4 (gl_REGEX): Likewise.
25258         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
25259         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
25260         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
25261         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
25262         * tests/test-argp.c: Likewise.
25263         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
25264
25265         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
25266         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
25267         AA_APPLE_UNIVERSAL_BUILD.  See
25268         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
25269         * NEWS: Document this.
25270
25271 2011-01-19  Eric Blake  <eblake@redhat.com>
25272
25273         c-stack: assume stack overflow if SA_SIGINFO unsupported
25274         * lib/c-stack.c (SIGACTION_WORKS): Rename...
25275         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
25276         sigaction will work.
25277         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
25278         behavior match Linux.
25279         * tests/test-c-stack.c (main): Prefer NULL for pointers.
25280
25281         stdbool-tests: accommodate Haiku
25282         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
25283
25284         binary-io: fix O_TEXT on Haiku
25285         * modules/binary-io (Depends-on): Add fcntl-h.
25286         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
25287         than blindly undefining O_TEXT.
25288         Reported by Scott McCreary.
25289
25290 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
25291
25292         include_next: do not check for standard headers like stddef.h
25293
25294         I found this problem when modifying Emacs to use gnulib.
25295         I noticed that it added HAVE_STDDEF_H to config.h, even though
25296         gnulib always assumes <stddef.h> exists as per README and this
25297         symbol is unnecessary.
25298         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
25299         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
25300         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
25301         faster for headers like stddef.h that are known to exist.
25302         (gl_CHECK_NEXT_HEADERS): Use it.
25303         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
25304         rather than gl_CHECK_NEXT_HEADERS.
25305         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
25306         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
25307
25308 2011-01-18  Eric Blake  <eblake@redhat.com>
25309
25310         ansi-c++-opt: skip C++ dependency style if C++ is unused
25311         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
25312         tests when we know C++ compilation is not desired.
25313         Reported by Scott McCreary.
25314
25315 2011-01-18  Bruno Haible  <bruno@clisp.org>
25316
25317         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
25318         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
25319         (main): Perform test also when getrlimit and setrlimit don't exist or
25320         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
25321         limiting the address space size using setrlimit, compare the address
25322         space size before and after the the test.
25323         * tests/test-dprintf-posix2.c: Likewise.
25324         * tests/test-fprintf-posix3.sh: Update skip messages.
25325         * tests/test-dprintf-posix2.sh: Likewise.
25326         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
25327         * modules/dprintf-posix-tests (Depends-on): Likewise.
25328         Reported by Bruce Korb <bkorb@gnu.org> and
25329         Gary V. Vaughan <gary@gnu.org>.
25330
25331 2011-01-18  Bruno Haible  <bruno@clisp.org>
25332
25333         get-rusage-as: Improvement for Cygwin.
25334         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
25335         areas that are merely reserved.
25336
25337 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
25338
25339         strftime: remove dependencies on multibyte modules
25340
25341         strftime depended on mbrlen, mbsinit, and wchar, but these modules
25342         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
25343         only if __osf__ is defined, and I suspect OSF doesn't need these
25344         other modules.  If my guess is wrong, we'll need to come up with a
25345         variant of strftime that doesn't need the multibyte modules.
25346
25347         I discovered this problem when attempting modify Emacs to use the
25348         strftime module.  With the previous gnulib, this caused Emacs to
25349         need 31 new files, ranging from lib/config.charset to
25350         m4/wint_t.m4.  This was overkill and I expect would be offputting
25351         to the Emacs maintainers.  After this change, only 6 new files are
25352         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
25353         stdbool.m4, and tm_gmtoff.m4.
25354
25355         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
25356         Suggested by Bruno Haible in
25357         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
25358         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
25359         and do not check for wchar.h.
25360         * modules/strftime (Files): Remove m4/mbstate_t.m4.
25361         (Depends-on): Remove mbrlen, mbsinit, wchar.
25362
25363 2011-01-18  Bruno Haible  <bruno@clisp.org>
25364
25365         Tests for module 'get-rusage-as'.
25366         * modules/get-rusage-as-tests: New file.
25367         * tests/test-get-rusage-as.c: New file.
25368
25369         New module 'get-rusage-as'.
25370         * modules/get-rusage-as: New file.
25371         * lib/resource-ext.h: New file.
25372         * lib/get-rusage-as.c: New file.
25373
25374 2011-01-17  Eric Blake  <eblake@redhat.com>
25375
25376         sigaction: relax license from LGPLv3+ to LGPLv2+
25377         * modules/sigaction (License): Relax to LGPLv2+.
25378
25379 2011-01-14  Bruno Haible  <bruno@clisp.org>
25380
25381         filemode: Make function declarations usable in C++ mode.
25382         * lib/filemode.h: Enclose function declarations in extern "C" block.
25383         Reported by John W. Eaton <jwe@gnu.org>.
25384
25385 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
25386
25387         save-cwd: no longer include "xgetcwd.h"
25388         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
25389         This avoids a compilation failure in projects that use save-cwd
25390         without also using the xgetcwd module.
25391
25392 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
25393
25394         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
25395         This is so that a program like Emacs, which needs only dtoastr,
25396         does not have to bother with distributing and compiling ftoastr
25397         and ldtoastr.
25398         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
25399         * modules/dtoastr, modules/ldtoastr: New files.
25400         * modules/ftoastr: Now works just for 'float'.
25401         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
25402         (Makefile.am): Remove ftoastr.h (not needed and no effect),
25403         dtoastr.c, ldtoastr.c.
25404
25405 2011-01-11  Jim Meyering  <meyering@redhat.com>
25406
25407         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
25408         There is no need to work around the lack of the fchdir function,
25409         since gnulib can now provide a replacement when required.
25410         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
25411         * modules/save-cwd (Depends-on): Add fchdir.
25412
25413 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
25414
25415         openat, save-cwd: avoid xmalloc
25416
25417         This removes a direct (but undocumented) dependency of openat on
25418         xalloc, along with an indirect dependency via save-cwd.  It also
25419         removes a dependency of save-cwd on xgetcwd, and thereby
25420         indirectly on xalloc.  This change causes the openat substitute
25421         to fall back on save_cwd when memory is tight, and for save_cwd to
25422         fail instead of dying when memory is tight, but that's good enough.
25423         Problem and initial idea for fix reported by Bastien Roucaries in
25424         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
25425
25426         * lib/openat-proc.c: Include stdlib.h (for malloc), not
25427         xalloc.h (for xmalloc).
25428         (openat_proc_name): Use malloc, not xmalloc.
25429         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
25430         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
25431
25432         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
25433         This avoids heap allocation for file names whose lengths are in
25434         the range 512..1023, with the upper bound increasing to at most
25435         4031 depending on the platform's PATH_MAX.  (We do not want
25436         pathmax.h here as it might supply a non-constant PATH_MAX.)
25437         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
25438         Perhaps they should be moved to malloca.h?
25439         (OPENAT_BUFFER_SIZE): Use them.
25440
25441 2011-01-10  Bruno Haible  <bruno@clisp.org>
25442
25443         doc: Update users.txt.
25444         * users.txt: Add recutils.
25445
25446 2011-01-09  Karl Berry  <karl@gnu.org>
25447
25448         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
25449
25450         * doc/configmake.texi: New file.
25451         * doc/gnulib.texi: Include it.
25452         * modules/configmake: Move documentation from here.
25453
25454 2011-01-09  Bruno Haible  <bruno@clisp.org>
25455
25456         Update to Unicode 6.0.0.
25457         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
25458         (get_lbp): Update for Unicode 6.0.0.
25459         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
25460         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
25461         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
25462         U+11001, U+11038..U+11046. Remove U+06DE.
25463         (uc_width): Fix bounds of planes.
25464         * tests/uniwidth/test-uc_width2.sh: Same updates as in
25465         lib/uniwidth/width.c.
25466         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
25467         trailing whitespace removed.
25468         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
25469         without comments, but with the original copyright notice.
25470         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
25471         * lib/unicase/ignorable.h: Likewise.
25472         * lib/unicase/tocasefold.h: Likewise.
25473         * lib/unicase/tolower.h: Likewise.
25474         * lib/unicase/totitle.h: Likewise.
25475         * lib/unicase/toupper.h: Likewise.
25476         * lib/unictype/bidi_of.h: Likewise.
25477         * lib/unictype/blocks.h: Likewise.
25478         * lib/unictype/categ_C.h: Likewise.
25479         * lib/unictype/categ_Cn.h: Likewise.
25480         * lib/unictype/categ_L.h: Likewise.
25481         * lib/unictype/categ_Ll.h: Likewise.
25482         * lib/unictype/categ_Lm.h: Likewise.
25483         * lib/unictype/categ_Lo.h: Likewise.
25484         * lib/unictype/categ_Lu.h: Likewise.
25485         * lib/unictype/categ_M.h: Likewise.
25486         * lib/unictype/categ_Mc.h: Likewise.
25487         * lib/unictype/categ_Me.h: Likewise.
25488         * lib/unictype/categ_Mn.h: Likewise.
25489         * lib/unictype/categ_N.h: Likewise.
25490         * lib/unictype/categ_Nd.h: Likewise.
25491         * lib/unictype/categ_No.h: Likewise.
25492         * lib/unictype/categ_P.h: Likewise.
25493         * lib/unictype/categ_Po.h: Likewise.
25494         * lib/unictype/categ_S.h: Likewise.
25495         * lib/unictype/categ_Sc.h: Likewise.
25496         * lib/unictype/categ_Sk.h: Likewise.
25497         * lib/unictype/categ_Sm.h: Likewise.
25498         * lib/unictype/categ_So.h: Likewise.
25499         * lib/unictype/categ_of.h: Likewise.
25500         * lib/unictype/combining.h: Likewise.
25501         * lib/unictype/ctype_alnum.h: Likewise.
25502         * lib/unictype/ctype_alpha.h: Likewise.
25503         * lib/unictype/ctype_graph.h: Likewise.
25504         * lib/unictype/ctype_lower.h: Likewise.
25505         * lib/unictype/ctype_print.h: Likewise.
25506         * lib/unictype/ctype_punct.h: Likewise.
25507         * lib/unictype/ctype_upper.h: Likewise.
25508         * lib/unictype/decdigit.h: Likewise.
25509         * lib/unictype/digit.h: Likewise.
25510         * lib/unictype/numeric.h: Likewise.
25511         * lib/unictype/pr_alphabetic.h: Likewise.
25512         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
25513         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
25514         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
25515         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
25516         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
25517         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
25518         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
25519         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
25520         * lib/unictype/pr_case_ignorable.h: Likewise.
25521         * lib/unictype/pr_cased.h: Likewise.
25522         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
25523         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
25524         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
25525         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
25526         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
25527         * lib/unictype/pr_combining.h: Likewise.
25528         * lib/unictype/pr_composite.h: Likewise.
25529         * lib/unictype/pr_currency_symbol.h: Likewise.
25530         * lib/unictype/pr_decimal_digit.h: Likewise.
25531         * lib/unictype/pr_deprecated.h: Likewise.
25532         * lib/unictype/pr_format_control.h: Likewise.
25533         * lib/unictype/pr_grapheme_base.h: Likewise.
25534         * lib/unictype/pr_grapheme_extend.h: Likewise.
25535         * lib/unictype/pr_grapheme_link.h: Likewise.
25536         * lib/unictype/pr_id_continue.h: Likewise.
25537         * lib/unictype/pr_id_start.h: Likewise.
25538         * lib/unictype/pr_ideographic.h: Likewise.
25539         * lib/unictype/pr_lowercase.h: Likewise.
25540         * lib/unictype/pr_math.h: Likewise.
25541         * lib/unictype/pr_numeric.h: Likewise.
25542         * lib/unictype/pr_other_alphabetic.h: Likewise.
25543         * lib/unictype/pr_other_id_continue.h: Likewise.
25544         * lib/unictype/pr_other_math.h: Likewise.
25545         * lib/unictype/pr_punctuation.h: Likewise.
25546         * lib/unictype/pr_sentence_terminal.h: Likewise.
25547         * lib/unictype/pr_terminal_punctuation.h: Likewise.
25548         * lib/unictype/pr_unassigned_code_value.h: Likewise.
25549         * lib/unictype/pr_unified_ideograph.h: Likewise.
25550         * lib/unictype/pr_uppercase.h: Likewise.
25551         * lib/unictype/pr_xid_continue.h: Likewise.
25552         * lib/unictype/pr_xid_start.h: Likewise.
25553         * lib/unictype/scripts.h: Likewise.
25554         * lib/unictype/scripts_byname.gperf: Likewise.
25555         * lib/unictype/sy_java_ident.h: Likewise.
25556         * lib/unigbrk/gbrkprop.h: Likewise.
25557         * lib/unilbrk/lbrkprop1.h: Likewise.
25558         * lib/unilbrk/lbrkprop2.h: Likewise.
25559         * lib/uninorm/decomposition-table2.h: Likewise.
25560         * lib/uniwbrk/wbrkprop.h: Likewise.
25561         * tests/unicase/test-cased.c: Likewise.
25562         * tests/unicase/test-ignorable.c: Likewise.
25563         * tests/unicase/test-uc_tolower.c: Likewise.
25564         * tests/unicase/test-uc_totitle.c: Likewise.
25565         * tests/unicase/test-uc_toupper.c: Likewise.
25566         * tests/unictype/test-categ_C.c: Likewise.
25567         * tests/unictype/test-categ_Cn.c: Likewise.
25568         * tests/unictype/test-categ_L.c: Likewise.
25569         * tests/unictype/test-categ_Ll.c: Likewise.
25570         * tests/unictype/test-categ_Lm.c: Likewise.
25571         * tests/unictype/test-categ_Lo.c: Likewise.
25572         * tests/unictype/test-categ_Lu.c: Likewise.
25573         * tests/unictype/test-categ_M.c: Likewise.
25574         * tests/unictype/test-categ_Mc.c: Likewise.
25575         * tests/unictype/test-categ_Me.c: Likewise.
25576         * tests/unictype/test-categ_Mn.c: Likewise.
25577         * tests/unictype/test-categ_N.c: Likewise.
25578         * tests/unictype/test-categ_Nd.c: Likewise.
25579         * tests/unictype/test-categ_No.c: Likewise.
25580         * tests/unictype/test-categ_P.c: Likewise.
25581         * tests/unictype/test-categ_Po.c: Likewise.
25582         * tests/unictype/test-categ_S.c: Likewise.
25583         * tests/unictype/test-categ_Sc.c: Likewise.
25584         * tests/unictype/test-categ_Sk.c: Likewise.
25585         * tests/unictype/test-categ_Sm.c: Likewise.
25586         * tests/unictype/test-categ_So.c: Likewise.
25587         * tests/unictype/test-ctype_alnum.c: Likewise.
25588         * tests/unictype/test-ctype_alpha.c: Likewise.
25589         * tests/unictype/test-ctype_graph.c: Likewise.
25590         * tests/unictype/test-ctype_lower.c: Likewise.
25591         * tests/unictype/test-ctype_print.c: Likewise.
25592         * tests/unictype/test-ctype_punct.c: Likewise.
25593         * tests/unictype/test-ctype_upper.c: Likewise.
25594         * tests/unictype/test-decdigit.h: Likewise.
25595         * tests/unictype/test-digit.h: Likewise.
25596         * tests/unictype/test-numeric.h: Likewise.
25597         * tests/unictype/test-pr_alphabetic.c: Likewise.
25598         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
25599         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
25600         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
25601         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
25602         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
25603         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
25604         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
25605         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
25606         * tests/unictype/test-pr_case_ignorable.c: Likewise.
25607         * tests/unictype/test-pr_cased.c: Likewise.
25608         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
25609         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
25610         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
25611         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
25612         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
25613         * tests/unictype/test-pr_combining.c: Likewise.
25614         * tests/unictype/test-pr_composite.c: Likewise.
25615         * tests/unictype/test-pr_currency_symbol.c: Likewise.
25616         * tests/unictype/test-pr_decimal_digit.c: Likewise.
25617         * tests/unictype/test-pr_deprecated.c: Likewise.
25618         * tests/unictype/test-pr_format_control.c: Likewise.
25619         * tests/unictype/test-pr_grapheme_base.c: Likewise.
25620         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
25621         * tests/unictype/test-pr_grapheme_link.c: Likewise.
25622         * tests/unictype/test-pr_id_continue.c: Likewise.
25623         * tests/unictype/test-pr_id_start.c: Likewise.
25624         * tests/unictype/test-pr_ideographic.c: Likewise.
25625         * tests/unictype/test-pr_lowercase.c: Likewise.
25626         * tests/unictype/test-pr_math.c: Likewise.
25627         * tests/unictype/test-pr_numeric.c: Likewise.
25628         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
25629         * tests/unictype/test-pr_other_id_continue.c: Likewise.
25630         * tests/unictype/test-pr_other_math.c: Likewise.
25631         * tests/unictype/test-pr_punctuation.c: Likewise.
25632         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
25633         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
25634         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
25635         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
25636         * tests/unictype/test-pr_uppercase.c: Likewise.
25637         * tests/unictype/test-pr_xid_continue.c: Likewise.
25638         * tests/unictype/test-pr_xid_start.c: Likewise.
25639         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
25640         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
25641         changes.
25642         * lib/unictype/categ_Cc.h: Likewise.
25643         * lib/unictype/categ_Cf.h: Likewise.
25644         * lib/unictype/categ_Co.h: Likewise.
25645         * lib/unictype/categ_Cs.h: Likewise.
25646         * lib/unictype/categ_Lt.h: Likewise.
25647         * lib/unictype/categ_Nl.h: Likewise.
25648         * lib/unictype/categ_Pc.h: Likewise.
25649         * lib/unictype/categ_Pd.h: Likewise.
25650         * lib/unictype/categ_Pe.h: Likewise.
25651         * lib/unictype/categ_Pf.h: Likewise.
25652         * lib/unictype/categ_Pi.h: Likewise.
25653         * lib/unictype/categ_Ps.h: Likewise.
25654         * lib/unictype/categ_Z.h: Likewise.
25655         * lib/unictype/categ_Zl.h: Likewise.
25656         * lib/unictype/categ_Zp.h: Likewise.
25657         * lib/unictype/categ_Zs.h: Likewise.
25658         * lib/unictype/ctype_blank.h: Likewise.
25659         * lib/unictype/ctype_cntrl.h: Likewise.
25660         * lib/unictype/ctype_digit.h: Likewise.
25661         * lib/unictype/ctype_space.h: Likewise.
25662         * lib/unictype/ctype_xdigit.h: Likewise.
25663         * lib/unictype/mirror.h: Likewise.
25664         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
25665         * lib/unictype/pr_bidi_block_separator.h: Likewise.
25666         * lib/unictype/pr_bidi_common_separator.h: Likewise.
25667         * lib/unictype/pr_bidi_control.h: Likewise.
25668         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
25669         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
25670         * lib/unictype/pr_bidi_european_digit.h: Likewise.
25671         * lib/unictype/pr_bidi_pdf.h: Likewise.
25672         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
25673         * lib/unictype/pr_bidi_whitespace.h: Likewise.
25674         * lib/unictype/pr_dash.h: Likewise.
25675         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
25676         * lib/unictype/pr_diacritic.h: Likewise.
25677         * lib/unictype/pr_extender.h: Likewise.
25678         * lib/unictype/pr_hex_digit.h: Likewise.
25679         * lib/unictype/pr_hyphen.h: Likewise.
25680         * lib/unictype/pr_ids_binary_operator.h: Likewise.
25681         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
25682         * lib/unictype/pr_ignorable_control.h: Likewise.
25683         * lib/unictype/pr_iso_control.h: Likewise.
25684         * lib/unictype/pr_join_control.h: Likewise.
25685         * lib/unictype/pr_left_of_pair.h: Likewise.
25686         * lib/unictype/pr_line_separator.h: Likewise.
25687         * lib/unictype/pr_logical_order_exception.h: Likewise.
25688         * lib/unictype/pr_non_break.h: Likewise.
25689         * lib/unictype/pr_not_a_character.h: Likewise.
25690         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
25691         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
25692         * lib/unictype/pr_other_id_start.h: Likewise.
25693         * lib/unictype/pr_other_lowercase.h: Likewise.
25694         * lib/unictype/pr_other_uppercase.h: Likewise.
25695         * lib/unictype/pr_paired_punctuation.h: Likewise.
25696         * lib/unictype/pr_paragraph_separator.h: Likewise.
25697         * lib/unictype/pr_pattern_syntax.h: Likewise.
25698         * lib/unictype/pr_pattern_white_space.h: Likewise.
25699         * lib/unictype/pr_private_use.h: Likewise.
25700         * lib/unictype/pr_quotation_mark.h: Likewise.
25701         * lib/unictype/pr_radical.h: Likewise.
25702         * lib/unictype/pr_soft_dotted.h: Likewise.
25703         * lib/unictype/pr_space.h: Likewise.
25704         * lib/unictype/pr_titlecase.h: Likewise.
25705         * lib/unictype/pr_variation_selector.h: Likewise.
25706         * lib/unictype/pr_white_space.h: Likewise.
25707         * lib/unictype/pr_zero_width.h: Likewise.
25708         * lib/unictype/sy_c_ident.h: Likewise.
25709         * lib/unictype/sy_c_whitespace.h: Likewise.
25710         * lib/unictype/sy_java_whitespace.h: Likewise.
25711         * lib/uninorm/composition-table.gperf: Likewise.
25712         * lib/uninorm/decomposition-table1.h: Likewise.
25713         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
25714         LB8.
25715         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
25716         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
25717         * modules/unictype/*: Bump version number of expected libunistring
25718         version.
25719
25720 2011-01-09  Bruno Haible  <bruno@clisp.org>
25721
25722         Update to Unicode 5.2.0.
25723         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
25724         trailing whitespace removed.
25725
25726 2011-01-09  Bruno Haible  <bruno@clisp.org>
25727
25728         New Unicode character properties, from Unicode 5.2.0.
25729         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
25730         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
25731         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
25732         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
25733         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
25734         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
25735         uc_is_property_cased, uc_is_property_case_ignorable,
25736         uc_is_property_changes_when_lowercased,
25737         uc_is_property_changes_when_uppercased,
25738         uc_is_property_changes_when_titlecased,
25739         uc_is_property_changes_when_casefolded,
25740         uc_is_property_changes_when_casemapped): New declarations.
25741         * lib/unictype/pr_byname.gperf: Add the new properties.
25742         * modules/unictype/property-byname (Depends-on): Depend on the new
25743         properties modules.
25744         * modules/unictype/property-all (Depends-on): Likewise.
25745         * MODULES.html.sh (Unicode string functions): Add
25746         unictype/property-case-ignorable, unictype/property-cased,
25747         unictype/property-changes-when-casefolded,
25748         unictype/property-changes-when-casemapped,
25749         unictype/property-changes-when-lowercased,
25750         unictype/property-changes-when-titlecased,
25751         unictype/property-changes-when-uppercased.
25752
25753         New module 'unictype/property-changes-when-casemapped'.
25754         * modules/unictype/property-changes-when-casemapped: New file.
25755         * lib/unictype/pr_changes_when_casemapped.c: New file.
25756         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
25757         generated by gen-uni-tables.
25758         * modules/unictype/property-changes-when-casemapped-tests: New file.
25759         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
25760         automatically generated by gen-uni-tables.
25761
25762         New module 'unictype/property-changes-when-casefolded'.
25763         * modules/unictype/property-changes-when-casefolded: New file.
25764         * lib/unictype/pr_changes_when_casefolded.c: New file.
25765         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
25766         generated by gen-uni-tables.
25767         * modules/unictype/property-changes-when-casefolded-tests: New file.
25768         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
25769         automatically generated by gen-uni-tables.
25770
25771         New module 'unictype/property-changes-when-titlecased'.
25772         * modules/unictype/property-changes-when-titlecased: New file.
25773         * lib/unictype/pr_changes_when_titlecased.c: New file.
25774         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
25775         generated by gen-uni-tables.
25776         * modules/unictype/property-changes-when-titlecased-tests: New file.
25777         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
25778         automatically generated by gen-uni-tables.
25779
25780         New module 'unictype/property-changes-when-uppercased'.
25781         * modules/unictype/property-changes-when-uppercased: New file.
25782         * lib/unictype/pr_changes_when_uppercased.c: New file.
25783         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
25784         generated by gen-uni-tables.
25785         * modules/unictype/property-changes-when-uppercased-tests: New file.
25786         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
25787         automatically generated by gen-uni-tables.
25788
25789         New module 'unictype/property-changes-when-lowercased'.
25790         * modules/unictype/property-changes-when-lowercased: New file.
25791         * lib/unictype/pr_changes_when_lowercased.c: New file.
25792         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
25793         generated by gen-uni-tables.
25794         * modules/unictype/property-changes-when-lowercased-tests: New file.
25795         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
25796         automatically generated by gen-uni-tables.
25797
25798         New module 'unictype/property-case-ignorable'.
25799         * modules/unictype/property-case-ignorable: New file.
25800         * lib/unictype/pr_case_ignorable.c: New file.
25801         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
25802         by gen-uni-tables.
25803         * modules/unictype/property-case-ignorable-tests: New file.
25804         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
25805         generated by gen-uni-tables.
25806
25807         New module 'unictype/property-cased'.
25808         * modules/unictype/property-cased: New file.
25809         * lib/unictype/pr_cased.c: New file.
25810         * lib/unictype/pr_cased.h: New file, automatically generated by
25811         gen-uni-tables.
25812         * modules/unictype/property-cased-tests: New file.
25813         * tests/unictype/test-pr_cased.c: New file, automatically generated by
25814         gen-uni-tables.
25815
25816 2011-01-09  Bruno Haible  <bruno@clisp.org>
25817
25818         Update to Unicode 5.2.0.
25819         * lib/gen-uni-tables.c (output_predicate, output_category,
25820         output_combclass, output_bidi_category, output_decimal_digit_test,
25821         output_decimal_digit, output_digit_test, output_digit,
25822         output_numeric_test, output_numeric, output_mirror, output_scripts,
25823         output_scripts_byname, output_blocks, output_ident_category): Fix
25824         comment header.
25825         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
25826         get_wbp.
25827         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
25828         items.
25829         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
25830         Changes_When_Lowercased, Changes_When_Uppercased,
25831         Changes_When_Titlecased, Changes_When_Casefolded,
25832         Changes_When_Casemapped.
25833         (is_property_alphabetic, is_property_default_ignorable_code_point):
25834         Update for Unicode 5.2.0.
25835         (is_property_cased, is_property_case_ignorable,
25836         is_property_changes_when_lowercased,
25837         is_property_changes_when_uppercased,
25838         is_property_changes_when_titlecased,
25839         is_property_changes_when_casefolded,
25840         is_property_changes_when_casemapped): New functions.
25841         (output_properties): Output also the properties cased, case_ignorable,
25842         changes_when_lowercased, changes_when_uppercased,
25843         changes_when_titlecased, changes_when_casefolded,
25844         changes_when_casemapped.
25845         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
25846         Unicode TR#11 revision 17 -> 19.
25847         (LBP_CP): New enumeration value.
25848         (LBP_*): Adjust values accordingly.
25849         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
25850         TR#14 revision 22 -> 24.
25851         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
25852         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
25853         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
25854         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
25855         is_WBP_MIDLETTER.
25856         (output_composition_tables): Allow for 24 bits instead of 16 bits in
25857         the code1 and code2 of each composition rule.
25858         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
25859         * lib/unicase/ignorable.h: Likewise.
25860         * lib/unicase/tocasefold.h: Likewise.
25861         * lib/unicase/tolower.h: Likewise.
25862         * lib/unicase/totitle.h: Likewise.
25863         * lib/unicase/toupper.h: Likewise.
25864         * lib/unictype/bidi_of.h: Likewise.
25865         * lib/unictype/blocks.h: Likewise.
25866         * lib/unictype/categ_C.h: Likewise.
25867         * lib/unictype/categ_Cf.h: Likewise.
25868         * lib/unictype/categ_Cn.h: Likewise.
25869         * lib/unictype/categ_L.h: Likewise.
25870         * lib/unictype/categ_Ll.h: Likewise.
25871         * lib/unictype/categ_Lm.h: Likewise.
25872         * lib/unictype/categ_Lo.h: Likewise.
25873         * lib/unictype/categ_Lu.h: Likewise.
25874         * lib/unictype/categ_M.h: Likewise.
25875         * lib/unictype/categ_Mc.h: Likewise.
25876         * lib/unictype/categ_Mn.h: Likewise.
25877         * lib/unictype/categ_N.h: Likewise.
25878         * lib/unictype/categ_Nd.h: Likewise.
25879         * lib/unictype/categ_Nl.h: Likewise.
25880         * lib/unictype/categ_No.h: Likewise.
25881         * lib/unictype/categ_P.h: Likewise.
25882         * lib/unictype/categ_Pd.h: Likewise.
25883         * lib/unictype/categ_Po.h: Likewise.
25884         * lib/unictype/categ_S.h: Likewise.
25885         * lib/unictype/categ_Sc.h: Likewise.
25886         * lib/unictype/categ_So.h: Likewise.
25887         * lib/unictype/categ_of.h: Likewise.
25888         * lib/unictype/combining.h: Likewise.
25889         * lib/unictype/ctype_alnum.h: Likewise.
25890         * lib/unictype/ctype_alpha.h: Likewise.
25891         * lib/unictype/ctype_graph.h: Likewise.
25892         * lib/unictype/ctype_lower.h: Likewise.
25893         * lib/unictype/ctype_print.h: Likewise.
25894         * lib/unictype/ctype_punct.h: Likewise.
25895         * lib/unictype/ctype_upper.h: Likewise.
25896         * lib/unictype/decdigit.h: Likewise.
25897         * lib/unictype/digit.h: Likewise.
25898         * lib/unictype/numeric.h: Likewise.
25899         * lib/unictype/pr_alphabetic.h: Likewise.
25900         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
25901         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
25902         * lib/unictype/pr_bidi_european_digit.h: Likewise.
25903         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
25904         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
25905         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
25906         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
25907         * lib/unictype/pr_combining.h: Likewise.
25908         * lib/unictype/pr_composite.h: Likewise.
25909         * lib/unictype/pr_currency_symbol.h: Likewise.
25910         * lib/unictype/pr_dash.h: Likewise.
25911         * lib/unictype/pr_decimal_digit.h: Likewise.
25912         * lib/unictype/pr_deprecated.h: Likewise.
25913         * lib/unictype/pr_diacritic.h: Likewise.
25914         * lib/unictype/pr_extender.h: Likewise.
25915         * lib/unictype/pr_grapheme_base.h: Likewise.
25916         * lib/unictype/pr_grapheme_extend.h: Likewise.
25917         * lib/unictype/pr_grapheme_link.h: Likewise.
25918         * lib/unictype/pr_id_continue.h: Likewise.
25919         * lib/unictype/pr_id_start.h: Likewise.
25920         * lib/unictype/pr_ideographic.h: Likewise.
25921         * lib/unictype/pr_ignorable_control.h: Likewise.
25922         * lib/unictype/pr_logical_order_exception.h: Likewise.
25923         * lib/unictype/pr_lowercase.h: Likewise.
25924         * lib/unictype/pr_numeric.h: Likewise.
25925         * lib/unictype/pr_other_alphabetic.h: Likewise.
25926         * lib/unictype/pr_punctuation.h: Likewise.
25927         * lib/unictype/pr_sentence_terminal.h: Likewise.
25928         * lib/unictype/pr_terminal_punctuation.h: Likewise.
25929         * lib/unictype/pr_unassigned_code_value.h: Likewise.
25930         * lib/unictype/pr_unified_ideograph.h: Likewise.
25931         * lib/unictype/pr_uppercase.h: Likewise.
25932         * lib/unictype/pr_xid_continue.h: Likewise.
25933         * lib/unictype/pr_xid_start.h: Likewise.
25934         * lib/unictype/pr_zero_width.h: Likewise.
25935         * lib/unictype/scripts.h: Likewise.
25936         * lib/unictype/scripts_byname.gperf: Likewise.
25937         * lib/unictype/sy_java_ident.h: Likewise.
25938         * lib/unigbrk/gbrkprop.h: Likewise.
25939         * lib/unilbrk/lbrkprop1.h: Likewise.
25940         * lib/unilbrk/lbrkprop2.h: Likewise.
25941         * lib/unilbrk/lbrktables.h: Likewise.
25942         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
25943         LBP_CP. Implement rule LB30.
25944         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
25945         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
25946         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
25947         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
25948         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
25949         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
25950         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
25951         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
25952         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
25953         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
25954         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
25955         bits instead of 16 bits in the code1 and code2 of each composition
25956         rule.
25957         (uc_composition): Update for Unicode 5.2.0.
25958         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
25959         * lib/uninorm/decomposition-table2.h: Likewise.
25960         * lib/uniwbrk/wbrkprop.h: Likewise.
25961         * tests/unicase/test-cased.c: Likewise.
25962         * tests/unicase/test-ignorable.c: Likewise.
25963         * tests/unicase/test-uc_tolower.c: Likewise.
25964         * tests/unicase/test-uc_totitle.c: Likewise.
25965         * tests/unicase/test-uc_toupper.c: Likewise.
25966         * tests/unictype/test-categ_C.c: Likewise.
25967         * tests/unictype/test-categ_Cf.c: Likewise.
25968         * tests/unictype/test-categ_Cn.c: Likewise.
25969         * tests/unictype/test-categ_L.c: Likewise.
25970         * tests/unictype/test-categ_Ll.c: Likewise.
25971         * tests/unictype/test-categ_Lm.c: Likewise.
25972         * tests/unictype/test-categ_Lo.c: Likewise.
25973         * tests/unictype/test-categ_Lu.c: Likewise.
25974         * tests/unictype/test-categ_M.c: Likewise.
25975         * tests/unictype/test-categ_Mc.c: Likewise.
25976         * tests/unictype/test-categ_Mn.c: Likewise.
25977         * tests/unictype/test-categ_N.c: Likewise.
25978         * tests/unictype/test-categ_Nd.c: Likewise.
25979         * tests/unictype/test-categ_Nl.c: Likewise.
25980         * tests/unictype/test-categ_No.c: Likewise.
25981         * tests/unictype/test-categ_P.c: Likewise.
25982         * tests/unictype/test-categ_Pd.c: Likewise.
25983         * tests/unictype/test-categ_Po.c: Likewise.
25984         * tests/unictype/test-categ_S.c: Likewise.
25985         * tests/unictype/test-categ_Sc.c: Likewise.
25986         * tests/unictype/test-categ_So.c: Likewise.
25987         * tests/unictype/test-ctype_alnum.c: Likewise.
25988         * tests/unictype/test-ctype_alpha.c: Likewise.
25989         * tests/unictype/test-ctype_graph.c: Likewise.
25990         * tests/unictype/test-ctype_lower.c: Likewise.
25991         * tests/unictype/test-ctype_print.c: Likewise.
25992         * tests/unictype/test-ctype_punct.c: Likewise.
25993         * tests/unictype/test-ctype_upper.c: Likewise.
25994         * tests/unictype/test-decdigit.h: Likewise.
25995         * tests/unictype/test-digit.h: Likewise.
25996         * tests/unictype/test-numeric.h: Likewise.
25997         * tests/unictype/test-pr_alphabetic.c: Likewise.
25998         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
25999         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
26000         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
26001         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
26002         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
26003         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
26004         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
26005         * tests/unictype/test-pr_combining.c: Likewise.
26006         * tests/unictype/test-pr_composite.c: Likewise.
26007         * tests/unictype/test-pr_currency_symbol.c: Likewise.
26008         * tests/unictype/test-pr_dash.c: Likewise.
26009         * tests/unictype/test-pr_decimal_digit.c: Likewise.
26010         * tests/unictype/test-pr_deprecated.c: Likewise.
26011         * tests/unictype/test-pr_diacritic.c: Likewise.
26012         * tests/unictype/test-pr_extender.c: Likewise.
26013         * tests/unictype/test-pr_grapheme_base.c: Likewise.
26014         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
26015         * tests/unictype/test-pr_grapheme_link.c: Likewise.
26016         * tests/unictype/test-pr_id_continue.c: Likewise.
26017         * tests/unictype/test-pr_id_start.c: Likewise.
26018         * tests/unictype/test-pr_ideographic.c: Likewise.
26019         * tests/unictype/test-pr_ignorable_control.c: Likewise.
26020         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
26021         * tests/unictype/test-pr_lowercase.c: Likewise.
26022         * tests/unictype/test-pr_numeric.c: Likewise.
26023         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
26024         * tests/unictype/test-pr_punctuation.c: Likewise.
26025         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
26026         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
26027         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
26028         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
26029         * tests/unictype/test-pr_uppercase.c: Likewise.
26030         * tests/unictype/test-pr_xid_continue.c: Likewise.
26031         * tests/unictype/test-pr_xid_start.c: Likewise.
26032         * tests/unictype/test-pr_zero_width.c: Likewise.
26033         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
26034         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
26035         changed behaviour: line breaking is now disallowed between a letter
26036         or '=' and '('.
26037         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
26038         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
26039         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
26040         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
26041         * tests/uniwidth/test-uc_width2.sh: Same updates as in
26042         lib/uniwidth/width.c.
26043         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
26044         without comments, but with the original copyright notice.
26045         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
26046         changes.
26047         * lib/unictype/categ_Cc.h: Likewise.
26048         * lib/unictype/categ_Co.h: Likewise.
26049         * lib/unictype/categ_Cs.h: Likewise.
26050         * lib/unictype/categ_Lt.h: Likewise.
26051         * lib/unictype/categ_Me.h: Likewise.
26052         * lib/unictype/categ_Pc.h: Likewise.
26053         * lib/unictype/categ_Pe.h: Likewise.
26054         * lib/unictype/categ_Pf.h: Likewise.
26055         * lib/unictype/categ_Pi.h: Likewise.
26056         * lib/unictype/categ_Ps.h: Likewise.
26057         * lib/unictype/categ_Sk.h: Likewise.
26058         * lib/unictype/categ_Sm.h: Likewise.
26059         * lib/unictype/categ_Z.h: Likewise.
26060         * lib/unictype/categ_Zl.h: Likewise.
26061         * lib/unictype/categ_Zp.h: Likewise.
26062         * lib/unictype/categ_Zs.h: Likewise.
26063         * lib/unictype/ctype_blank.h: Likewise.
26064         * lib/unictype/ctype_cntrl.h: Likewise.
26065         * lib/unictype/ctype_digit.h: Likewise.
26066         * lib/unictype/ctype_space.h: Likewise.
26067         * lib/unictype/ctype_xdigit.h: Likewise.
26068         * lib/unictype/mirror.h: Likewise.
26069         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
26070         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
26071         * lib/unictype/pr_bidi_block_separator.h: Likewise.
26072         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
26073         * lib/unictype/pr_bidi_common_separator.h: Likewise.
26074         * lib/unictype/pr_bidi_control.h: Likewise.
26075         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
26076         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
26077         * lib/unictype/pr_bidi_pdf.h: Likewise.
26078         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
26079         * lib/unictype/pr_bidi_whitespace.h: Likewise.
26080         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
26081         * lib/unictype/pr_format_control.h: Likewise.
26082         * lib/unictype/pr_hex_digit.h: Likewise.
26083         * lib/unictype/pr_hyphen.h: Likewise.
26084         * lib/unictype/pr_ids_binary_operator.h: Likewise.
26085         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
26086         * lib/unictype/pr_iso_control.h: Likewise.
26087         * lib/unictype/pr_join_control.h: Likewise.
26088         * lib/unictype/pr_left_of_pair.h: Likewise.
26089         * lib/unictype/pr_line_separator.h: Likewise.
26090         * lib/unictype/pr_math.h: Likewise.
26091         * lib/unictype/pr_non_break.h: Likewise.
26092         * lib/unictype/pr_not_a_character.h: Likewise.
26093         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
26094         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
26095         * lib/unictype/pr_other_id_continue.h: Likewise.
26096         * lib/unictype/pr_other_id_start.h: Likewise.
26097         * lib/unictype/pr_other_lowercase.h: Likewise.
26098         * lib/unictype/pr_other_math.h: Likewise.
26099         * lib/unictype/pr_other_uppercase.h: Likewise.
26100         * lib/unictype/pr_paired_punctuation.h: Likewise.
26101         * lib/unictype/pr_paragraph_separator.h: Likewise.
26102         * lib/unictype/pr_pattern_syntax.h: Likewise.
26103         * lib/unictype/pr_pattern_white_space.h: Likewise.
26104         * lib/unictype/pr_private_use.h: Likewise.
26105         * lib/unictype/pr_quotation_mark.h: Likewise.
26106         * lib/unictype/pr_radical.h: Likewise.
26107         * lib/unictype/pr_soft_dotted.h: Likewise.
26108         * lib/unictype/pr_space.h: Likewise.
26109         * lib/unictype/pr_titlecase.h: Likewise.
26110         * lib/unictype/pr_variation_selector.h: Likewise.
26111         * lib/unictype/pr_white_space.h: Likewise.
26112         * lib/unictype/sy_c_ident.h: Likewise.
26113         * lib/unictype/sy_c_whitespace.h: Likewise.
26114         * lib/unictype/sy_java_whitespace.h: Likewise.
26115         * modules/uni*/*: Bump version number of expected libunistring version.
26116         Reported by Simon Josefsson.
26117
26118 2011-01-09  Karl Heuer  <kwzh@gnu.org>
26119
26120         useless-if-before-free: fix typo in --help and make the internal,
26121         automatic version date update process work once again.
26122         --help output contained a NUL character instead of the
26123         backslash-zero that was intended.  Also, the "must lie within
26124         the first 8 lines" line is on line 9, and hence not getting
26125         automatically updated.
26126         * build-aux/useless-if-before-free: Fix the former by adding a
26127         backslash, and the latter by condensing the three lines of what-it-does
26128         to a single line, leaving one line of slack for the future.
26129
26130 2011-01-09  Bruno Haible  <bruno@clisp.org>
26131
26132         uniwidth/width: Fix width of U+1D173..U+1D17A.
26133         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
26134         symbolic_width, output_width_property_test): New functions.
26135         (main): Invoke output_nonspacing_property, output_width_property_test.
26136         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
26137         U+1D173..U+1D17A.
26138         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
26139         1.
26140         * modules/uniwidth/*: Bump version number of expected libunistring
26141         version.
26142         * modules/unilbrk/*: Likewise.
26143
26144 2011-01-08  Bruno Haible  <bruno@clisp.org>
26145
26146         uninorm tests: Preserve copyright of Unicode data file.
26147         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
26148         Mention modifications.
26149
26150 2011-01-08  Bruno Haible  <bruno@clisp.org>
26151
26152         gen-uni-tables: Prepare for Unicode 5.2.0.
26153         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
26154         (debug_output_lbp, output_lbp): Update.
26155
26156 2011-01-08  Bruno Haible  <bruno@clisp.org>
26157
26158         unilbrk: Clarify gen-uni-tables.c code.
26159         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
26160         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
26161         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
26162
26163 2011-01-07  Bruno Haible  <bruno@clisp.org>
26164
26165         strtod: Restore errno when successfully parsing Infinity or NaN.
26166         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
26167         restore the original errno.
26168
26169 2011-01-07  Bruno Haible  <bruno@clisp.org>
26170
26171         remove test: Avoid failure on HP-UX 11.
26172         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
26173
26174 2011-01-07  Bruno Haible  <bruno@clisp.org>
26175
26176         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
26177         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
26178         error code.
26179
26180 2011-01-07  Pádraig Brady <P@draigBrady.com>
26181
26182         ignore-value: fixup comments, and add Eric Blake
26183         as an author since he rewrote the macros.
26184         * lib/ignore-value.h (ignore_value):  State that
26185         we now support aggregates.  Also specify exactly
26186         when the GCC warn_unused_result feature was added.
26187
26188 2011-01-06  Eric Blake  <eblake@redhat.com>
26189
26190         ignore-value: support aggregate types
26191         * lib/ignore-value.h (ignore_value): Provide separate gcc
26192         definition.
26193         * modules/ignore-value-tests: New test module.
26194         * tests/test-ignore-value.c: New test.
26195
26196         maint.mk: improve sc_prohibit_strcmp regex
26197         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
26198         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
26199         definition of STRNEQ.
26200
26201         signal: work around Haiku issue with SIGBUS
26202         * lib/siglist.h: Add comment.
26203         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
26204         strsignal's favoring of SIGSEGV.
26205         * tests/test-signal.c (main): Avoid test failure.
26206         * doc/posix-headers/signal.texi (signal.h): Document the issue.
26207         Reported by Scott McCreary.
26208
26209         maint.mk: add pre-release check to ensure submodule commits are public
26210         * top/maint.mk (public-submodule-commit): New rule.
26211         (submodule-checks): New variable.
26212         (alpha beta stable): Depend on the variable.
26213
26214 2011-01-05  Pádraig Brady <P@draigBrady.com>
26215         and Jim Meyering  <meyering@redhat.com>
26216
26217         ignore-value: make ignore_value more generic; deprecate ignore_ptr
26218         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
26219         (ATTRIBUTE_DEPRECATED): Define.
26220         (_ignore_case): New function.
26221         (ignore_value): New macro, to replace the old function.
26222         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
26223         * modules/ignore-value (Depends-on): Add stdint.
26224
26225 2011-01-04  Eric Blake  <eblake@redhat.com>
26226
26227         doc: regenerate INSTALL
26228         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
26229         @firstparagraphindent support, now that autoconf dropped it.
26230         (INSTALL_PRELUDE): Reinstate old macro.
26231         * doc/install.texi: Resync from autoconf.
26232         * doc/INSTALL: Reflect recent autoconf update.
26233         * doc/INSTALL.ISO: Likewise.
26234         * doc/INSTALL.UTF-8: Likewise.
26235         Reported by Karl Berry.
26236
26237 2011-01-04  Bruce Korb  <address@hidden>
26238
26239         git-version-gen: avoid a sub-shell
26240         * build-aux/git-version-gen: Redirect stderr in `...` via
26241         "exec 2>...", rather than via an added sub-shell.
26242
26243 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
26244
26245         git-version-gen: use (...) rather than sh -c '...'
26246         * build-aux/git-version-gen: Rather than hard-coding a shell's name
26247         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
26248
26249 2011-01-03  Jim Meyering  <meyering@redhat.com>
26250
26251         git-version-gen: convert leading TABs to spaces
26252         * build-aux/git-version-gen: Expand leading TABs.
26253
26254         git-version-gen: handle failed "git rev-list"
26255         * build-aux/git-version-gen: Rather than leaking a "fatal" error
26256         from git and proceeding as if it had succeeded but printed no SHA1
26257         checksums, suppress the diagnostic and handle the failure.
26258         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
26259
26260         git-version-gen: include command name in one more diagnostic
26261         * build-aux/git-version-gen: When the required .tarball-version file
26262         was missing or unreadable, you might see the diagnostic from "cat",
26263         but no trace of the name of the invoking script.  Now, you still see
26264         the diagnostic from cat, but also get one from "git-version-gen: ".
26265         Inspired by a patch from Bruce Korb.
26266
26267         update-copyright: adjust test to match changed code
26268         * tests/test-update-copyright.sh: Change test's expected output
26269         to match new actual output.
26270
26271 2011-01-02  Bruno Haible  <bruno@clisp.org>
26272
26273         getlogin_r: Avoid test failure on HP-UX 11.
26274         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
26275         ERANGE when the second argument is zero.
26276         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
26277         portability problem.
26278
26279 2011-01-02  Bruce Korb  <bkorb@gnu.org>
26280
26281         * build-aux/update-copyright: doc Simon's changes
26282
26283 2011-01-02  Simon Josefsson  <simon@josefsson.org>
26284
26285         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
26286         environment variable.
26287
26288 2011-01-02  Bruno Haible  <bruno@clisp.org>
26289
26290         unigbrk: Avoid gcc warnings.
26291         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
26292         unused variable.
26293         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
26294         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
26295         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
26296         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
26297         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
26298         Change type of first argument to 'const char *'.
26299         (main): Remove unused variable.
26300         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
26301         type of first argument to 'const char *'.
26302         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
26303         Likewise.
26304         (main): Change type of variable 's'.
26305         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
26306         to 'int'.
26307
26308 2011-01-02  Bruno Haible  <bruno@clisp.org>
26309
26310         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
26311         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
26312         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
26313         bug.
26314         * lib/pwrite.c: Undo 2010-12-31 patch.
26315         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
26316
26317 2011-01-02  Bruno Haible  <bruno@clisp.org>
26318
26319         pread: Fix test whether it works.
26320         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
26321
26322 2011-01-02  Bruno Haible  <bruno@clisp.org>
26323
26324         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
26325         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
26326         ends in "6". Don't require a specific month name. Try also the locale
26327         names found on HP-UX 11 and Solaris 7.
26328
26329 2011-01-02  Bruno Haible  <bruno@clisp.org>
26330
26331         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
26332         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
26333         C linkage.
26334         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
26335
26336 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
26337
26338         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
26339         for consistency, since the "cluster" term is not used elsewhere.
26340         * lib/unigbrk.in.h: Update name.
26341         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
26342         * lib/unigbrk/u16-grapheme-next.c: Update name.
26343         * lib/unigbrk/u16-grapheme-prev.c: Update name.
26344         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
26345         * lib/unigbrk/u32-grapheme-next.c: Update name.
26346         * lib/unigbrk/u32-grapheme-prev.c: Update name.
26347         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
26348         * lib/unigbrk/u8-grapheme-next.c: Update name.
26349         * lib/unigbrk/u8-grapheme-prev.c: Update name.
26350         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
26351         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
26352         Suggested by Bruno Haible.
26353
26354 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
26355
26356         Remove module 'u8-grapheme-len' as too redundant with
26357         'u8-grapheme-next'.
26358         * modules/unigbrk/u8-grapheme-len: Delete file.
26359         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
26360         * lib/unigbrk.in.h: Remove prototype for deleted function.
26361         * lib/unigbrk/u8-grapheme-len.c: Delete file.
26362         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
26363
26364         Remove module 'u16-grapheme-len' as too redundant with
26365         'u16-grapheme-next'.
26366         * modules/unigbrk/u16-grapheme-len: Delete file.
26367         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
26368         * lib/unigbrk.in.h: Remove prototype for deleted function.
26369         * lib/unigbrk/u16-grapheme-len.c: Delete file.
26370         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
26371
26372         Remove module 'u32-grapheme-len' as too redundant with
26373         'u32-grapheme-next'.
26374         * modules/unigbrk/u32-grapheme-len: Delete file.
26375         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
26376         * lib/unigbrk.in.h: Remove prototype for deleted function.
26377         * lib/unigbrk/u32-grapheme-len.c: Delete file.
26378         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
26379
26380         Suggested by Bruno Haible.
26381
26382 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
26383
26384         * unigbrk.in.h: Fix typo: "ben" => "been".
26385         Reported by Bruno Haible.
26386
26387 2011-01-01  Jim Meyering  <meyering@redhat.com>
26388
26389         maint: update almost all copyright ranges to include 2011
26390         Run the new "make update-copyright" rule.
26391
26392 2011-01-01  Jim Meyering  <meyering@redhat.com>
26393
26394         maint: update-copyright: exempt doc/INSTALL*
26395         * Makefile (update-copyright): Also exclude doc/INSTALL*,
26396         since they are generated.  Suggested by Bruno Haible.
26397
26398 2011-01-01  Jim Meyering  <meyering@redhat.com>
26399
26400         maint: refine the update-copyright rule
26401         * Makefile (update-copyright): Also exclude any file that includes
26402         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
26403         code that merely generates the comment.
26404
26405 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
26406
26407         New module 'u8-grapheme-len'.
26408         * modules/unigbrk/u8-grapheme-len: New file.
26409         * modules/unigbrk/u8-grapheme-len-tests: New file.
26410         * lib/unigbrk.in.h: Add prototype for new function.
26411         * lib/unigbrk/u8-grapheme-len.c: New file.
26412         * tests/unigbrk/test-u8-grapheme-len.c: New file.
26413
26414         New module 'u16-grapheme-len'.
26415         * modules/unigbrk/u16-grapheme-len: New file.
26416         * modules/unigbrk/u16-grapheme-len-tests: New file.
26417         * lib/unigbrk.in.h: Add prototype for new function.
26418         * lib/unigbrk/u16-grapheme-len.c: New file.
26419         * tests/unigbrk/test-u16-grapheme-len.c: New file.
26420
26421         New module 'u32-grapheme-len'.
26422         * modules/unigbrk/u32-grapheme-len: New file.
26423         * modules/unigbrk/u32-grapheme-len-tests: New file.
26424         * lib/unigbrk.in.h: Add prototype for new function.
26425         * lib/unigbrk/u32-grapheme-len.c: New file.
26426         * tests/unigbrk/test-u32-grapheme-len.c: New file.
26427
26428         New module 'u8-grapheme-next'.
26429         * modules/unigbrk/u8-grapheme-next: New file.
26430         * modules/unigbrk/u8-grapheme-next-tests: New file.
26431         * lib/unigbrk.in.h: Add prototype for new function.
26432         * lib/unigbrk/u8-grapheme-next.c: New file.
26433         * tests/unigbrk/test-u8-grapheme-next.c: New file.
26434
26435         New module 'u16-grapheme-next'.
26436         * modules/unigbrk/u16-grapheme-next: New file.
26437         * modules/unigbrk/u16-grapheme-next-tests: New file.
26438         * lib/unigbrk.in.h: Add prototype for new function.
26439         * lib/unigbrk/u16-grapheme-next.c: New file.
26440         * tests/unigbrk/test-u16-grapheme-next.c: New file.
26441
26442         New module 'u32-grapheme-next'.
26443         * modules/unigbrk/u32-grapheme-next: New file.
26444         * modules/unigbrk/u32-grapheme-next-tests: New file.
26445         * lib/unigbrk.in.h: Add prototype for new function.
26446         * lib/unigbrk/u32-grapheme-next.c: New file.
26447         * tests/unigbrk/test-u32-grapheme-next.c: New file.
26448
26449         New module 'u8-grapheme-prev'.
26450         * modules/unigbrk/u8-grapheme-prev: New file.
26451         * modules/unigbrk/u8-grapheme-prev-tests: New file.
26452         * lib/unigbrk.in.h: Add prototype for new function.
26453         * lib/unigbrk/u8-grapheme-prev.c: New file.
26454         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
26455
26456         New module 'u16-grapheme-prev'.
26457         * modules/unigbrk/u16-grapheme-prev: New file.
26458         * modules/unigbrk/u16-grapheme-prev-tests: New file.
26459         * lib/unigbrk.in.h: Add prototype for new function.
26460         * lib/unigbrk/u16-grapheme-prev.c: New file.
26461         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
26462
26463         New module 'u32-grapheme-prev'.
26464         * modules/unigbrk/u32-grapheme-prev: New file.
26465         * modules/unigbrk/u32-grapheme-prev-tests: New file.
26466         * lib/unigbrk.in.h: Add prototype for new function.
26467         * lib/unigbrk/u32-grapheme-prev.c: New file.
26468         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
26469
26470         New module 'u8-grapheme-breaks'.
26471         * modules/unigbrk/u8-grapheme-breaks: New file.
26472         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
26473         * lib/unigbrk.in.h: Add prototype for new function.
26474         * lib/unigbrk/u8-grapheme-breaks.c: New file.
26475         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
26476
26477         New module 'u16-grapheme-breaks'.
26478         * modules/unigbrk/u16-grapheme-breaks: New file.
26479         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
26480         * lib/unigbrk.in.h: Add prototype for new function.
26481         * lib/unigbrk/u16-grapheme-breaks.c: New file.
26482         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
26483
26484         New module 'u32-grapheme-breaks'.
26485         * modules/unigbrk/u32-grapheme-breaks: New file.
26486         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
26487         * lib/unigbrk.in.h: Add prototype for new function.
26488         * lib/unigbrk/u32-grapheme-breaks.c: New file.
26489         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
26490
26491         New module 'ulc-grapheme-breaks'.
26492         * modules/unigbrk/ulc-grapheme-breaks: New file.
26493         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
26494         * m4/locale-ar.m4: New file.
26495         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
26496         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
26497         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
26498
26499 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
26500
26501         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
26502         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
26503         modified how this file was generated before I initially submitted
26504         the module, but failed to regenerate it.  This meant that several
26505         of the level2 entries were wrong.
26506         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
26507         Remove the division-by-2 that is folded into the table now that
26508         gbrkprop.h has been regenerated properly.  Now -1 entries are
26509         handled correctly.
26510
26511         New module 'unigbrk/uc-gbrk-prop-tests'.
26512         * modules/unigbrk/uc-gbrk-prop-tests: New file.
26513         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
26514         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
26515         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
26516
26517 2011-01-01  Bruno Haible  <bruno@clisp.org>
26518
26519         Avoid use of hexadecimal escapes.
26520         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
26521         instead of hexadecimal escapes.
26522
26523 2011-01-01  Jim Meyering  <meyering@redhat.com>
26524
26525         maint: new rule to update copyright year ranges
26526         * Makefile (update-copyright): New rule.
26527
26528         maint: indent with TABs in Makefile
26529         * Makefile: Expand leading sequences of spaces to TABs
26530
26531         version-etc: update the copyright year it reports
26532         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
26533
26534 2010-12-31  Bruno Haible  <bruno@clisp.org>
26535
26536         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
26537         * lib/isfinite.c (zerof, zerod, zerol): New variables.
26538         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
26539         zero.
26540
26541 2010-12-31  Bruno Haible  <bruno@clisp.org>
26542
26543         pwrite: Work around HP-UX 11.11 bug.
26544         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
26545         works and set REPLACE_PWRITE if not.
26546         * lib/pwrite.c (pwrite): Add an implementation that uses the system
26547         function.
26548         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
26549
26550 2010-12-31  Bruno Haible  <bruno@clisp.org>
26551
26552         pread: Work around HP-UX 11 bugs.
26553         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
26554         and set REPLACE_PREAD if not.
26555         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
26556
26557 2010-12-31  Eric Blake  <eblake@redhat.com>
26558
26559         nl_langinfo: fix YESEXPR on Irix 6.5
26560         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
26561         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
26562         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
26563         it.
26564
26565 2010-12-31  Bruno Haible  <bruno@clisp.org>
26566
26567         iconv: Document HP-UX 11 bug.
26568         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
26569
26570 2010-12-31  Bruno Haible  <bruno@clisp.org>
26571
26572         ldexpl: Fix link error on HP-UX 11.
26573         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
26574         LDEXPL_LIBM, using $ISNANL_LIBM.
26575
26576 2010-12-31  Eric Blake  <eblake@redhat.com>
26577
26578         ftello: avoid compilation failure with SunStudio c89
26579         * lib/ftello.c (ftello): Use lseek, not llseek.
26580
26581         tests: avoid failing coreutils tests on cygwin
26582         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
26583         (create_exe_shims_): Return 0 when skipping.
26584
26585 2010-12-31  Bruno Haible  <bruno@clisp.org>
26586
26587         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
26588         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
26589
26590 2010-12-31  Bruno Haible  <bruno@clisp.org>
26591
26592         waitpid: Fix link error in C++ mode.
26593         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
26594
26595 2010-12-31  Bruno Haible  <bruno@clisp.org>
26596
26597         isnan: Use GCC built-ins when possible.
26598         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
26599         __builtin_isnan.
26600         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
26601         (isnan): Define using GCC built-ins for GCC >= 4.0.
26602
26603 2010-12-31  Bruno Haible  <bruno@clisp.org>
26604
26605         isnand: Fix mistake.
26606         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
26607         __builtin_isnand.
26608
26609 2010-12-31  Bruno Haible  <bruno@clisp.org>
26610
26611         open: Avoid C++ error on HP-UX 11.
26612         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
26613
26614 2010-12-31  Bruno Haible  <bruno@clisp.org>
26615
26616         time_r: Add missing declarations on HP-UX 11.
26617         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
26618         instead of HAVE_LOCALTIME_R.
26619         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
26620         HAVE_LOCALTIME_R always.
26621         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
26622         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
26623         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
26624         HAVE_LOCALTIME_R.
26625         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
26626         * doc/posix-functions/localtime_r.texi: Likewise.
26627
26628 2010-12-29  Eric Blake  <eblake@redhat.com>
26629
26630         mountlist: tweak previous commit
26631         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
26632         Reported by Paul Eggert.
26633
26634         mountlist: fix local drive detection on cygwin
26635         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
26636         that works for cygwin.
26637
26638 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
26639
26640         ftoastr, snprintf: ftoastr + snprintf module
26641         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
26642         since the snprintf module now should be good enough here.
26643         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
26644         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
26645         and gl_MODULE_INDICATOR([snprintf]), but the former enables
26646         GNULIB_SNPRINTF only for the test directory, and the latter
26647         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
26648         seems to suffice by itself.
26649
26650 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
26651
26652         alloca: one step towards thread-safety
26653         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
26654         need for a static variable.  All callers changed.  This does not
26655         make the alloca replacement thread-safe, but it's one step.
26656
26657         tests: minor indenting change
26658         * tests/init.sh: Sync from coreutils housekeeping patch
26659         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
26660         to keep lines within 80 columns.
26661
26662 2010-12-28  Jim Meyering  <meyering@redhat.com>
26663
26664         regex: don't infloop on persistent failing calloc
26665         * lib/regexec.c (build_trtable): Return failure indication upon
26666         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
26667         In glibc, this was fixed for version 2.13:
26668         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
26669
26670 2010-12-28  Bruno Haible  <bruno@clisp.org>
26671             Paul Eggert <eggert@cs.ucla.edu>
26672
26673         linkat: Make implementation robust against system behaviour variations.
26674         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
26675         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
26676         way, and to -2 if it needs a generic runtime test.
26677         * lib/linkat.c (solaris_optimized_link_immediate,
26678         solaris_optimized_link_follow): New functions.
26679         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
26680         (check_same_link): Use it.
26681
26682 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
26683
26684         New module 'unigbrk/base'.
26685         * modules/unigbrk/base: New file.
26686         * lib/unigbrk.in.h: New file.
26687
26688         New module 'unigbrk/uc-gbrk-prop'.
26689         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
26690         * modules/unigbrk/uc-gbrk-prop: New file.
26691         * lib/unigbrk/gbrkprop.h: New file.
26692         * lib/unigbrk/uc-gbrk-prop.c: New file.
26693
26694         New module 'unigbrk/uc-is-grapheme-break'.
26695         * modules/unigbrk/uc-is-grapheme-break: New file.
26696         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
26697         * lib/unigbrk/uc-is-grapheme-break.c: New file.
26698         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
26699         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
26700         * tests/unigbrk/GraphemeBreakTest.txt: New file.
26701
26702         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
26703
26704 2010-12-27  Bruno Haible  <bruno@clisp.org>
26705
26706         linkat test: Avoid failure on Solaris 11 2010-11.
26707         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
26708
26709 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
26710
26711         utimens: work around glibc rounding bug on more platforms
26712         * lib/utimens.c (fdutimens): Work around rounding bug even if
26713         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
26714         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
26715
26716 2010-12-27  Bruno Haible  <bruno@clisp.org>
26717
26718         select tests: Improve comments.
26719         * tests/test-select.c (do_select): Add comments.
26720
26721 2010-12-27  Bruno Haible  <bruno@clisp.org>
26722
26723         select tests: Safer way of handling timeout.
26724         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
26725         at every invocation.
26726
26727 2010-12-27  Bruno Haible  <bruno@clisp.org>
26728
26729         select tests: Use 'bool' where appropriate.
26730         * tests/test-select.c (connect_to_socket): Change argument type to
26731         'bool'.
26732
26733 2010-12-27  Bruno Haible  <bruno@clisp.org>
26734
26735         select tests: Use existing modules.
26736         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
26737         (configure.ac): Don't test for unistd.h.
26738         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
26739         declared in <unistd.h>.
26740
26741 2010-12-27  Bruno Haible  <bruno@clisp.org>
26742
26743         mbrtowc: Work around a Solaris 7 bug.
26744         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
26745         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
26746         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
26747         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
26748         MBRTOWC_NULL_ARG1_BUG.
26749         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
26750         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
26751         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
26752         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
26753
26754 2010-12-27  Jim Meyering  <meyering@redhat.com>
26755
26756         read-file.c: tweak syntax
26757         * lib/read-file.c (fread_file): Remove space after "*" in function
26758         definitions.
26759
26760 2010-12-27  Bruno Haible  <bruno@clisp.org>
26761
26762         times test: Avoid gcc warnings on OSF/1.
26763         * tests/test-times.c (main): Cast printf arguments from clock_t to
26764         'long int'.
26765
26766 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
26767
26768         utimens: work around glibc rounding bug on older Linux kernels
26769         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
26770         on Linux with a glibc whose utimes might not work, then work
26771         around a longstanding glibc bug involving rounding rather than
26772         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
26773         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
26774
26775 2010-12-26  Bruno Haible  <bruno@clisp.org>
26776
26777         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
26778         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
26779         _GL_CXXALIAS_SYS.
26780         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
26781
26782 2010-12-26  Bruno Haible  <bruno@clisp.org>
26783
26784         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
26785         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
26786         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
26787         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
26788         looking for the declaration.
26789         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
26790         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
26791         problem.
26792         * doc/posix-functions/inet_pton.texi: Likewise.
26793
26794 2010-12-26  Bruno Haible  <bruno@clisp.org>
26795
26796         arpa_inet: Use the common idioms with C++ support.
26797         * lib/arpa_inet.in.h: Include c++defs.h.
26798         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
26799         support.
26800         * modules/arpa_inet (Depends-on): Add c++defs.
26801         (Makefile.am): Substitute the contents of c++defs.h.
26802         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
26803         * modules/arpa_inet-c++-tests: New file.
26804         * tests/test-arpa_inet-c++.cc: New file.
26805
26806 2010-12-25  Bruno Haible  <bruno@clisp.org>
26807
26808         Fix more C++ link errors on Solaris 8.
26809         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
26810         $(LIB_EACCESS).
26811         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
26812         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
26813         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
26814         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
26815         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
26816
26817 2010-12-25  Bruno Haible  <bruno@clisp.org>
26818
26819         printf-posix: Fix link error when a non-GCC compiler is used.
26820         * lib/stdio.in.h (printf): When not using GCC, override printf
26821         correctly.
26822         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
26823
26824 2010-12-25  Bruno Haible  <bruno@clisp.org>
26825
26826         strerror_r-posix: Update doc.
26827         * doc/posix-functions/strerror_r.texi: Update doc about the return
26828         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
26829
26830 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
26831
26832         utimens: simplify the logic of the previous change
26833         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
26834         This should not affect whether the test succeeds or fails.
26835
26836         utimens: configure better on hosts with NFS clock skew
26837         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
26838         uses the clock of the local host.  It might use the clock of the
26839         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
26840         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
26841
26842 2010-12-25  Bruno Haible  <bruno@clisp.org>
26843
26844         ptsname test: Avoid failure on Solaris.
26845         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
26846         open a pseudo-terminal; don't use BSD-style ptys.
26847         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
26848
26849 2010-12-25  Bruno Haible  <bruno@clisp.org>
26850
26851         ptsname: Avoid ERANGE failure on some systems.
26852         * lib/ptsname.c (buffer): Increase size.
26853
26854 2010-12-25  Bruno Haible  <bruno@clisp.org>
26855
26856         rename, renameat: Avoid test failures at NFS mounted locations.
26857         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
26858         so that subsequent mkdir calls succeed.
26859
26860 2010-12-25  Bruno Haible  <bruno@clisp.org>
26861
26862         iswblank: Fix C++ link error on Solaris 8.
26863         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
26864         _GL_FUNCDECL_SYS.
26865
26866 2010-12-25  Bruno Haible  <bruno@clisp.org>
26867
26868         unistd: Fix C++ link error on Solaris 8.
26869         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
26870
26871 2010-12-25  Bruno Haible  <bruno@clisp.org>
26872
26873         readlink doc: Mention an old glibc bug.
26874         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
26875
26876 2010-12-25  Bruno Haible  <bruno@clisp.org>
26877
26878         fcntl-h: Fix for use of C++ on glibc systems.
26879         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
26880         also on glibc systems in C++ mode.
26881         Reported by Gary V. Vaughan <gary@gnu.org>.
26882
26883 2010-12-25  Bruno Haible  <bruno@clisp.org>
26884
26885         roundl-ieee: Make it work on OSF/1 5.1 with cc.
26886         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
26887
26888 2010-12-25  Bruno Haible  <bruno@clisp.org>
26889
26890         truncl-ieee: Make it work on OSF/1 5.1 with cc.
26891         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
26892         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
26893         test whether truncl works according to ISO C 99 with IEC 60559.
26894         * m4/truncl-ieee.m4: New file.
26895         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
26896         m4/signbit.m4.
26897         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
26898
26899 2010-12-25  Bruno Haible  <bruno@clisp.org>
26900
26901         ceill-ieee: Make it work on OSF/1 5.1 with cc.
26902         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
26903         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
26904         test whether ceill works according to ISO C 99 with IEC 60559.
26905         * m4/ceill-ieee.m4: New file.
26906         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
26907         m4/signbit.m4.
26908         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
26909
26910 2010-12-25  Bruno Haible  <bruno@clisp.org>
26911
26912         Ensure all prerequisites of <wchar.h> are included.
26913         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
26914         before <wchar.h>.
26915         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
26916         gl_MBRLEN_NUL_RETVAL): Likewise.
26917         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
26918         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
26919         AC_FUNC_MBRTOWC): Likewise.
26920         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
26921         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
26922         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
26923         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
26924         Likewise.
26925         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
26926         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
26927         (gl_WCHAR_H): Improve comments.
26928         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
26929
26930 2010-12-25  Bruno Haible  <bruno@clisp.org>
26931
26932         strtok_r: Fix C syntax error in autoconf macro.
26933         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
26934         characters in test program.
26935
26936 2010-12-24  Bruno Haible  <bruno@clisp.org>
26937
26938         ceil, trunc, round: Fix gcc warnings.
26939         * lib/ceil.c (MIN): Undefine before redefining.
26940         * lib/trunc.c (MIN): Likewise.
26941         * lib/round.c (MIN): Likewise.
26942         Include <math.h> first.
26943
26944 2010-12-24  Bruno Haible  <bruno@clisp.org>
26945
26946         select tests: Avoid failures on OSF/1 5.1.
26947         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
26948         failure of closing the last socket; it may fail with ECONNRESET.
26949
26950 2010-12-24  Eric Blake  <eblake@redhat.com>
26951
26952         stdint: avoid HP-UX 10.20 preprocessor bug
26953         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
26954         than #if.
26955         * tests/test-floor2.c (main): Likewise.
26956         Reported by Peter O'Gorman.
26957
26958         pipe: make obsoletion transition easier
26959         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
26960         * modules/pipe (Files): Include revived file.
26961         (Include): Drop reference, to mirror getdate's behavior.
26962
26963 2010-12-24  Bruno Haible  <bruno@clisp.org>
26964
26965         sys_socket: Hide mismatch of declarations on NonStop Kernel.
26966         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
26967         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
26968         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
26969
26970 2010-12-24  Bruno Haible  <bruno@clisp.org>
26971
26972         gethostname: Ensure declaration on NonStop Kernel.
26973         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
26974         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
26975
26976 2010-12-24  Bruno Haible  <bruno@clisp.org>
26977
26978         sys_select: Ensure all necessary types on NonStop Kernel.
26979         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
26980         include <sys/time.h>.
26981         * doc/posix-headers/sys_select.texi: Mention that it's missing on
26982         NonStop Kernel.
26983         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
26984
26985 2010-12-24  Bruno Haible  <bruno@clisp.org>
26986
26987         sys_select: Remove unneeded include.
26988         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
26989         have <sys/select.h>.
26990
26991 2010-12-24  Bruno Haible  <bruno@clisp.org>
26992
26993         gethostname: Provide a fallback for HOST_NAME_MAX.
26994         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
26995         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
26996         instead.
26997         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
26998
26999 2010-12-24  Bruno Haible  <bruno@clisp.org>
27000
27001         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
27002         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
27003         (SA_RESTART): Likewise.
27004         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
27005
27006 2010-12-24  Bruno Haible  <bruno@clisp.org>
27007
27008         signal: Define NSIG.
27009         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
27010         * tests/test-signal.c (nsig): New variable.
27011         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
27012
27013 2010-12-24  Bruno Haible  <bruno@clisp.org>
27014
27015         rename, renameat: Avoid test failures on OSF/1 5.1.
27016         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
27017         alternative error codes.
27018         * tests/test-renameat.c (main): Likewise.
27019
27020 2010-12-24  Bruno Haible  <bruno@clisp.org>
27021
27022         *printf: Detect large precisions bug on Solaris 10/SPARC.
27023         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
27024         by Paul Eggert.
27025         * tests/test-snprintf-posix.h (test_function): Add this test code here
27026         too.
27027         * tests/test-sprintf-posix.h (test_function): Likewise.
27028         * tests/test-vasnprintf-posix.c (test_function): Likewise.
27029         * tests/test-vasprintf-posix.c (test_function): Likewise.
27030         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
27031         around by gnulib.
27032         * doc/posix-functions/printf.texi: Likewise.
27033         * doc/posix-functions/snprintf.texi: Likewise.
27034         * doc/posix-functions/sprintf.texi: Likewise.
27035         * doc/posix-functions/vfprintf.texi: Likewise.
27036         * doc/posix-functions/vprintf.texi: Likewise.
27037         * doc/posix-functions/vsnprintf.texi: Likewise.
27038         * doc/posix-functions/vsprintf.texi: Likewise.
27039         * doc/posix-functions/dprintf.texi: Undo last commit.
27040         * doc/posix-functions/vdprintf.texi: Likewise.
27041
27042 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
27043
27044         tests: port test-fdutimensat.c to Solaris 8
27045         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
27046         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
27047         On Solaris 8, it fails with errno == ENOSYS, because there is no
27048         futimens (so it can't use the fd), and there is no lutimens (so it
27049         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
27050
27051         vsnprintf: make more consistent with snprintf; doc fixes
27052
27053         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
27054         the byte count return problem was promoted from the snprintf-posix
27055         to the snprintf module.
27056         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
27057         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
27058         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
27059         * tests/test-snprintf.c (main): Check the byte count returned.
27060         * tests/test-vsnprintf.c (main): Likewise.
27061
27062 2010-12-23  Eric Blake  <eblake@redhat.com>
27063
27064         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
27065         * modules/sigpipe (License): Relax license.
27066
27067 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
27068
27069         doc: document Solaris printf bug with large float precisions
27070         * doc/posix-functions/dprintf.texi (dprintf):
27071         * doc/posix-functions/fprintf.texi (fprintf):
27072         * doc/posix-functions/printf.texi (printf):
27073         * doc/posix-functions/snprintf.texi (snprintf):
27074         * doc/posix-functions/sprintf.texi (sprintf):
27075         * doc/posix-functions/vdprintf.texi (vdprintf):
27076         * doc/posix-functions/vfprintf.texi (vfprintf):
27077         * doc/posix-functions/vprintf.texi (vprintf):
27078         * doc/posix-functions/vsnprintf.texi (vsnprintf):
27079         * doc/posix-functions/vsprintf.texi (vsprintf):
27080         Mention that these functions mishandle large floating point
27081         precisions on Solaris 10.  The same bug is also present in Solaris
27082         8, and I assume earlier.  This causes "cd gnulib-tests; make
27083         check" to fail on Solaris 8 (and I assume, later) when building
27084         the latest coreutils, in test-vasprintf-posix's call to
27085         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
27086         the wide flavors (e.g., wprintf) so this patch just updates the
27087         documentation for the narrow ones.
27088
27089         test-posixtm.c: add two tests
27090         * tests/test-posixtm.c: Add two tests, to highlight the
27091         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
27092         around this bug; this is merely to document it.
27093
27094 2010-12-22  Bruno Haible  <bruno@clisp.org>
27095
27096         getlogin_r: Work around portability problem on OSF/1.
27097         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
27098         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
27099         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
27100         test for a truncated result.
27101         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
27102         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
27103         * modules/getlogin_r (Depends-on): Add memchr.
27104         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
27105
27106 2010-12-22  Bruno Haible  <bruno@clisp.org>
27107
27108         ptsname: Avoid test failure on OSF/1 5.1.
27109         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
27110         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
27111         (same_slave): New function.
27112         (main): Use it to compare ptsname's result with the expected file name.
27113
27114 2010-12-22  Bruno Haible  <bruno@clisp.org>
27115
27116         Port extended stdio modules to HP NonStop Kernel.
27117         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
27118         macros.
27119         * lib/fbufmode.c: Update comments.
27120         * lib/fflush.c: Likewise.
27121         * lib/fpurge.c: Likewise.
27122         * lib/freadable.c: Likewise.
27123         * lib/freadahead.c: Likewise.
27124         * lib/freading.c: Likewise.
27125         * lib/freadptr.c: Likewise.
27126         * lib/freadseek.c: Likewise.
27127         * lib/fseeko.c: Likewise.
27128         * lib/fseterr.c: Likewise.
27129         * lib/fwritable.c: Likewise.
27130         * lib/fwriting.c: Likewise.
27131         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
27132
27133 2010-12-22  Bruno Haible  <bruno@clisp.org>
27134
27135         ttyname_r: Work around bug on OSF/1 5.1.
27136         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
27137         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
27138         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
27139         present.
27140         * lib/ttyname_r.c (ttyname_r): Update comments.
27141
27142 2010-12-22  Bruno Haible  <bruno@clisp.org>
27143
27144         round: Implement result sign according to IEEE 754.
27145         * lib/round.c (MIN, MINUS_ZERO): New macros.
27146         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
27147         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
27148         * tests/test-round-ieee.c (main): Likewise.
27149         * tests/test-roundl-ieee.c (main): Likewise.
27150
27151         trunc: Implement result sign according to IEEE 754.
27152         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
27153         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
27154         * tests/test-trunc2.c: Include minus-zero.h.
27155         (MINUS_ZERO): New macro.
27156         (trunc_reference): Keep in sync with lib/trunc.c.
27157         * tests/test-truncf2.c: Include minus-zero.h.
27158         (MINUS_ZERO): New macro.
27159         (truncf_reference): Keep in sync with lib/trunc.c.
27160         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
27161         * tests/test-trunc-ieee.c (main): Likewise.
27162         * tests/test-truncl-ieee.c (main): Likewise.
27163
27164         ceil: Implement result sign according to IEEE 754.
27165         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
27166         (FUNC): Return -0.0 for -1 < x < 0.
27167         * tests/test-ceil2.c: Include minus-zero.h.
27168         (MINUS_ZERO): New macro.
27169         (ceil_reference): Keep in sync with lib/ceil.c.
27170         * tests/test-ceilf2.c: Include minus-zero.h.
27171         (MINUS_ZERO): New macro.
27172         (ceilf_reference): Keep in sync with lib/ceil.c.
27173         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
27174         * tests/test-ceil-ieee.c (main): Likewise.
27175         * tests/test-ceill-ieee.c (main): Likewise.
27176
27177         floor: Implement result sign according to IEEE 754.
27178         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
27179         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
27180         * tests/test-floorf2.c (floorf_reference): Likewise.
27181         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
27182         * tests/test-floor-ieee.c (main): Likewise.
27183         * tests/test-floorl-ieee.c (main): Likewise.
27184
27185 2010-12-22  Bruno Haible  <bruno@clisp.org>
27186
27187         getaddrinfo: Update doc.
27188         * doc/posix-functions/gai_strerror.texi: Return type is also different
27189         on AIX and HP-UX.
27190
27191 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
27192
27193         getaddrinfo, inet_ntop: Update doc for Solaris.
27194         * doc/posix-functions/gai_strerror.texi: Return type is also an
27195         issue on Solaris 9 and earlier.
27196         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
27197         on Solaris 10 and earlier.
27198
27199 2010-12-21  Bruno Haible  <bruno@clisp.org>
27200
27201         New module 'roundl-ieee'.
27202         * modules/roundl-ieee: New file.
27203         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
27204         test whether roundl works according to ISO C 99 with IEC 60559.
27205         * m4/roundl-ieee.m4: New file.
27206         * modules/roundl-ieee-tests: New file.
27207         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
27208         * tests/test-roundl.c (main): Remove signbit tests.
27209         * modules/roundl-tests (Depends-on): Remove signbit.
27210         * doc/posix-functions/roundl.texi: Mention the new module.
27211
27212 2010-12-21  Bruno Haible  <bruno@clisp.org>
27213
27214         New module 'truncl-ieee'.
27215         * modules/truncl-ieee: New file.
27216         * modules/truncl-ieee-tests: New file.
27217         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
27218         * tests/test-truncl.c (main): Remove signbit tests.
27219         * modules/truncl-tests (Depends-on): Remove signbit.
27220         * doc/posix-functions/truncl.texi: Mention the new module.
27221
27222 2010-12-21  Bruno Haible  <bruno@clisp.org>
27223
27224         New module 'ceill-ieee'.
27225         * modules/ceill-ieee: New file.
27226         * modules/ceill-ieee-tests: New file.
27227         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
27228         * tests/test-ceill.c (main): Remove signbit tests.
27229         * modules/ceill-tests (Depends-on): Remove signbit.
27230         * doc/posix-functions/ceill.texi: Mention the new module.
27231
27232 2010-12-21  Bruno Haible  <bruno@clisp.org>
27233
27234         New module 'floorl-ieee'.
27235         * modules/floorl-ieee: New file.
27236         * modules/floorl-ieee-tests: New file.
27237         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
27238         * tests/test-floorl.c (main): Remove signbit tests.
27239         * modules/floorl-tests (Depends-on): Remove signbit.
27240         * doc/posix-functions/floorl.texi: Mention the new module.
27241
27242 2010-12-21  Bruno Haible  <bruno@clisp.org>
27243
27244         New module 'round-ieee'.
27245         * modules/round-ieee: New file.
27246         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
27247         whether round works according to ISO C 99 with IEC 60559.
27248         * m4/round-ieee.m4: New file.
27249         * modules/round-ieee-tests: New file.
27250         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
27251         * tests/test-round1.c (main): Remove signbit tests.
27252         * modules/round-tests (Depends-on): Remove 'signbit'.
27253         * doc/posix-functions/round.texi: Mention the new module.
27254
27255 2010-12-21  Bruno Haible  <bruno@clisp.org>
27256
27257         New module 'trunc-ieee'.
27258         * modules/trunc-ieee: New file.
27259         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
27260         whether trunc works according to ISO C 99 with IEC 60559.
27261         * m4/trunc-ieee.m4: New file.
27262         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
27263         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
27264         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
27265         * modules/trunc-ieee-tests: New file.
27266         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
27267         * tests/test-trunc1.c (main): Remove signbit tests.
27268         * modules/trunc-tests (Depends-on): Remove 'signbit'.
27269         * doc/posix-functions/trunc.texi: Mention the new module.
27270
27271 2010-12-21  Bruno Haible  <bruno@clisp.org>
27272
27273         New module 'ceil-ieee'.
27274         * modules/ceil-ieee: New file.
27275         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
27276         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
27277         ISO C 99 with IEC 60559.
27278         * m4/ceil-ieee.m4: New file.
27279         * modules/ceil (Files): Add lib/ceil.c.
27280         (Depends-on): Add 'float'.
27281         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
27282         * lib/math.in.h (ceil): New declaration.
27283         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
27284         REPLACE_CEIL.
27285         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
27286         * modules/ceil-ieee-tests: New file.
27287         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
27288         * tests/test-math-c++.cc: Check the signature of 'ceil'.
27289         * doc/posix-functions/ceil.texi: Mention the new module.
27290
27291 2010-12-21  Bruno Haible  <bruno@clisp.org>
27292
27293         New module 'floor-ieee'.
27294         * modules/floor-ieee: New file.
27295         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
27296         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
27297         ISO C 99 with IEC 60559.
27298         * m4/floor-ieee.m4: New file.
27299         * modules/floor (Files): Add lib/floor.c.
27300         (Depends-on): Add 'float'.
27301         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
27302         * lib/math.in.h (floor): New declaration.
27303         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
27304         REPLACE_FLOOR.
27305         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
27306         * modules/floor-ieee-tests: New file.
27307         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
27308         * tests/test-math-c++.cc: Check the signature of 'floor'.
27309         * doc/posix-functions/floor.texi: Mention the new module.
27310
27311 2010-12-21  Bruno Haible  <bruno@clisp.org>
27312
27313         New module 'roundf-ieee'.
27314         * modules/roundf-ieee: New file.
27315         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
27316         test whether roundf works according to ISO C 99 with IEC 60559.
27317         * m4/roundf-ieee.m4: New file.
27318         * modules/roundf-ieee-tests: New file.
27319         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
27320         * tests/test-roundf1.c (main): Remove signbit tests.
27321         * modules/roundf-tests (Depends-on): Remove 'signbit'.
27322         * doc/posix-functions/roundf.texi: Mention the new module.
27323
27324 2010-12-21  Bruno Haible  <bruno@clisp.org>
27325
27326         New module 'truncf-ieee'.
27327         * modules/truncf-ieee: New file.
27328         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
27329         test whether truncf works according to ISO C 99 with IEC 60559.
27330         * m4/truncf-ieee.m4: New file.
27331         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
27332         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
27333         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
27334         * modules/truncf-ieee-tests: New file.
27335         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
27336         * tests/test-truncf1.c (main): Remove signbit tests.
27337         * modules/truncf-tests (Depends-on): Remove 'signbit'.
27338         * doc/posix-functions/truncf.texi: Mention the new module.
27339
27340 2010-12-21  Bruno Haible  <bruno@clisp.org>
27341
27342         New module 'ceilf-ieee'.
27343         * modules/ceilf-ieee: New file.
27344         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
27345         test whether ceilf works according to ISO C 99 with IEC 60559.
27346         * m4/ceilf-ieee.m4: New file.
27347         * modules/ceilf-ieee-tests: New file.
27348         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
27349         * tests/test-ceilf1.c (main): Remove signbit tests.
27350         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
27351         * doc/posix-functions/ceilf.texi: Mention the new module.
27352
27353 2010-12-21  Bruno Haible  <bruno@clisp.org>
27354
27355         New module 'floorf-ieee'.
27356         * modules/floorf-ieee: New file.
27357         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
27358         test whether floorf works according to ISO C 99 with IEC 60559.
27359         * m4/floorf-ieee.m4: New file.
27360         * modules/floorf-ieee-tests: New file.
27361         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
27362         * tests/test-floorf1.c (main): Remove signbit tests.
27363         * modules/floorf-tests (Depends-on): Remove 'signbit'.
27364         * doc/posix-functions/floorf.texi: Mention the new module.
27365
27366 2010-12-21  Bruno Haible  <bruno@clisp.org>
27367
27368         Support for minus zero in autoconf macros.
27369         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
27370         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
27371         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
27372         * tests/minus-zero.h: Update comments.
27373
27374 2010-12-21  Bruno Haible  <bruno@clisp.org>
27375
27376         Tests for module 'ceil'.
27377         * modules/ceil-tests: New file.
27378         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
27379         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
27380
27381 2010-12-21  Bruno Haible  <bruno@clisp.org>
27382
27383         Tests for module 'floor'.
27384         * modules/floor-tests: New file.
27385         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
27386         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
27387
27388 2010-12-21  Bruno Haible  <bruno@clisp.org>
27389
27390         math: Fix indentation.
27391         * lib/math.in.h (floorf): Fix indentation.
27392
27393 2010-12-21  Bruno Haible  <bruno@clisp.org>
27394
27395         Fix cross-compilation guesses on Solaris.
27396         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
27397         not match "solaris2.10".
27398         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
27399         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
27400         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
27401
27402 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
27403
27404         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
27405         This fixes a problem observed with the latest coreutils snapshot
27406         that caused a test to fail on Solaris 8.  src/csplit.c's call
27407         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
27408         earlier, instead of returning the number of bytes that would have
27409         been generated; this causes csplit to incorrectly report memory
27410         exhaustion.
27411         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
27412         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
27413         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
27414         comments to match.
27415         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
27416         Fix typo in matching older versions of Solaris: "solaris2.10"
27417         is matched by the shell pattern "solaris2.[0-9]*".  This matters
27418         only for guessing while cross-compiling.
27419         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
27420
27421 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
27422
27423         ftoastr: fix comment again
27424         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
27425         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
27426         Also, simplify example a bit by using flags = 0.
27427
27428 2010-12-20  Bruno Haible  <bruno@clisp.org>
27429
27430         round*, trunc*: Update documentation regarding glibc.
27431         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
27432         * doc/posix-functions/round.texi: Likewise.
27433         * doc/posix-functions/roundl.texi: Likewise.
27434         * doc/posix-functions/truncf.texi: Likewise.
27435         * doc/posix-functions/trunc.texi: Likewise.
27436         * doc/posix-functions/truncl.texi: Likewise.
27437
27438 2010-12-20  Bruno Haible  <bruno@clisp.org>
27439
27440         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
27441         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
27442         * doc/posix-functions/round.texi: Likewise.
27443         * doc/posix-functions/roundl.texi: Likewise.
27444
27445 2010-12-20  Bruno Haible  <bruno@clisp.org>
27446
27447         ttyname_r: Add missing declaration on HP-UX 11.
27448         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
27449         HAVE_TTYNAME_R.
27450         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
27451         declared. Set HAVE_TTYNAME_R always.
27452         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
27453         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
27454         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
27455         HAVE_TTYNAME_R.
27456         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
27457
27458 2010-12-20  Bruno Haible  <bruno@clisp.org>
27459
27460         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
27461         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
27462         * doc/posix-functions/getlogin_r.texi: Likewise.
27463         * tests/test-getlogin.c: Include <errno.h>.
27464         (main): Avoid test failure on HP-UX 11.11.
27465         * tests/test-getlogin_r.c (main): Likewise.
27466
27467 2010-12-20  Bruno Haible  <bruno@clisp.org>
27468
27469         getlogin_r: Add missing declaration on HP-UX 11.
27470         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
27471         declared also when it exists as a function.
27472         * doc/posix-functions/getlogin_r.texi: Document this workaround.
27473
27474 2010-12-20  Bruno Haible  <bruno@clisp.org>
27475
27476         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
27477         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
27478         through wcrtomb.
27479
27480 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
27481
27482         ftoastr: fix comment
27483         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
27484         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
27485
27486 2010-12-19  Bruno Haible  <bruno@clisp.org>
27487
27488         isnan: Ensure it is a macro.
27489         * lib/math.in.h (isnan): Define as a macro if not already a macro.
27490         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
27491         Solaris.
27492
27493 2010-12-19  Bruno Haible  <bruno@clisp.org>
27494
27495         ldexpl test: Fix link error on OSF/1 5.1.
27496         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
27497
27498 2010-12-19  Bruno Haible  <bruno@clisp.org>
27499
27500         wctype: Make it work in C++ mode on OSF/1 5.1.
27501         * lib/wctype.in.h (iswblank): Declare but not define here.
27502         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
27503         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
27504         * modules/wctype (Files): Add lib/iswblank.c.
27505
27506 2010-12-19  Bruno Haible  <bruno@clisp.org>
27507
27508         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
27509         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
27510         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
27511
27512 2010-12-19  Bruno Haible  <bruno@clisp.org>
27513
27514         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
27515         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
27516         _POSIX_PII_SOCKET.
27517         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
27518         * doc/posix-functions/recvfrom.texi: Likewise.
27519         * doc/posix-functions/send.texi: Likewise.
27520         * doc/posix-functions/sendto.texi: Likewise.
27521
27522 2010-12-19  Bruno Haible  <bruno@clisp.org>
27523
27524         tcgetsid: Add missing declaration on OSF/1 5.1.
27525         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
27526         HAVE_TCGETSID.
27527         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
27528         Don't set HAVE_TCGETSID.
27529         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
27530         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
27531         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
27532         HAVE_TCGETSID.
27533         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
27534
27535 2010-12-19  Bruno Haible  <bruno@clisp.org>
27536
27537         stdio: Fix problem with popen() declaration on OSF/1 5.1.
27538         * lib/stdio.in.h: During the include_next statement, let recursive
27539         includes of this file include only the system header file.
27540
27541 2010-12-19  Bruno Haible  <bruno@clisp.org>
27542
27543         iconv_open: Fix regression from 2010-12-04.
27544         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
27545         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
27546
27547 2010-12-19  Bruno Haible  <bruno@clisp.org>
27548
27549         stdbool test: Avoid a gcc warning.
27550         * tests/test-stdbool.c (main): Fail if e1 is false.
27551         Reported by Jim Meyering.
27552
27553 2010-12-19  Jim Meyering  <meyering@redhat.com>
27554
27555         setenv: restore to working order
27556         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
27557         mistakenly removed.
27558         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
27559         HAVE_SETENV.
27560         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
27561         HAVE_SETENV.
27562
27563 2010-12-19  Bruno Haible  <bruno@clisp.org>
27564
27565         Document some different function declarations on OSF/1 5.1.
27566         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
27567         * doc/posix-functions/inet_ntop.texi: Likewise.
27568         * doc/posix-functions/gethostname.texi: Likewise.
27569         * lib/unistd.in.h (gethostname): Update comment.
27570
27571 2010-12-19  Bruno Haible  <bruno@clisp.org>
27572
27573         doc: Mention vasprintf-posix module.
27574         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
27575         the 'vasprintf-posix' module.
27576         * doc/glibc-functions/vasprintf.texi: Likewise.
27577
27578 2010-12-19  Bruno Haible  <bruno@clisp.org>
27579
27580         unsetenv: Add missing declaration on OSF/1 5.1.
27581         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
27582         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
27583         Don't set HAVE_UNSETENV. In the test program, set _BSD.
27584         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
27585         not HAVE_UNSETENV.
27586         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
27587         HAVE_UNSETENV.
27588         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
27589
27590 2010-12-19  Bruno Haible  <bruno@clisp.org>
27591
27592         setenv: Add missing declaration on OSF/1 5.1.
27593         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
27594         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
27595         declared. Don't set HAVE_SETENV.
27596         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
27597         not HAVE_SETENV.
27598         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
27599         HAVE_SETENV.
27600         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
27601
27602 2010-12-19  Bruno Haible  <bruno@clisp.org>
27603
27604         nl_langinfo tests: Avoid gcc warning.
27605         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
27606
27607 2010-12-19  Bruno Haible  <bruno@clisp.org>
27608
27609         mknod: Avoid error in C++ mode on OSF/1 with GCC.
27610         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
27611         _GL_CXXALIAS_SYS.
27612
27613 2010-12-19  Bruno Haible  <bruno@clisp.org>
27614
27615         stdbool: Relax test.
27616         * tests/test-stdbool.c (e): Don't require that casts from a variable's
27617         address to 'bool' work in static initializer, for compilers other than
27618         GCC.
27619
27620 2010-12-19  Bruno Haible  <bruno@clisp.org>
27621
27622         ftello: Add missing declaration on OSF/1 5.1.
27623         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
27624         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
27625         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
27626         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
27627         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
27628
27629 2010-12-19  Bruno Haible  <bruno@clisp.org>
27630
27631         fseeko: Add missing declaration on OSF/1 5.1.
27632         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
27633         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
27634         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
27635         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
27636         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
27637
27638 2010-12-19  Bruno Haible  <bruno@clisp.org>
27639
27640         fchdir: Add missing declaration on OSF/1 5.1.
27641         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
27642         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
27643         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
27644         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
27645         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
27646
27647 2010-12-19  Bruno Haible  <bruno@clisp.org>
27648
27649         relocatable-prog-wrapper: Separate from relocatable-prog.
27650         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
27651         uninstall-relocwrapper rule here.
27652         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
27653         Reported by Ian Beckwith <ianb@erislabs.net>.
27654
27655 2010-12-19  Bruno Haible  <bruno@clisp.org>
27656
27657         unistr/u8-mbsnlen: Add missing dependency.
27658         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
27659         Reported by Ian Beckwith <ianb@erislabs.net>.
27660
27661 2010-12-19  Bruno Haible  <bruno@clisp.org>
27662
27663         iconv: Make it possible again to use this module without 'iconv-h'.
27664         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
27665         if it is not defined.
27666         Reported by Ian Beckwith <ianb@erislabs.net>.
27667
27668 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
27669
27670         acl: port to Solaris 8 when copying from tmpfs to ufs
27671         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
27672         error number.  Problem observed on Solaris 8 with latest
27673         coreutils, with "mv A B", where A is on a tmpfs file system and B
27674         is on a ufs file system.  This caused coreutils' mv/part-symlink
27675         test to fail.
27676
27677         tests: set fail=0 at start
27678         * tests/init.sh (setup_): Move fail=0 initialization here ...
27679         (mktempd_): ... from here, so that tests can rely on fail being
27680         set to 0 initially.  This fixes a problem in coreutils; see:
27681         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
27682
27683 2010-12-18  Bruno Haible  <bruno@clisp.org>
27684
27685         memmem-simple: Stylistic changes.
27686         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
27687         Fix preprocessor directive indentation.
27688
27689 2010-12-15  Pádraig Brady <P@draigBrady.com>
27690
27691         memmem, memmem-simple: reorganize and expand empty needle check
27692         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
27693         functional checks to memmem-simple so that one has a fully functional
27694         memmem by using just this module.
27695         Restrict the performance only check to the memmem module.
27696         Also expand the empty needle check to ensure the correct
27697         pointer is returned, not just a non NULL pointer.
27698         * doc/glibc-functions/memmem.texi: Rearrange the portability
27699         documentation to correlate with the rearranged checks.
27700         Clarify exactly how the memmem and memmem-simple modules
27701         relate to each other.
27702
27703 2010-12-15  Pádraig Brady <P@draigBrady.com>
27704             Bruno Haible  <bruno@clisp.org>
27705
27706         Improve cross-compilation guesses for uClibc.
27707         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
27708         that uClibc does not have the glibc bug.
27709         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
27710         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
27711
27712 2010-12-14  Eric Blake  <eblake@redhat.com>
27713
27714         configmake: provide fallbacks for oldest supported autotools
27715         * m4/configmake.m4: New file.
27716         * modules/configmake (Files): Ship it.
27717         (configure.ac): Use it to guarantee fallbacks.
27718
27719 2010-12-13  Pádraig Brady <P@draigBrady.com>
27720
27721         read-file: Improve handling of large files
27722         * lib/read-file.c (fread_file): Minimize realloc()s
27723         for regular files, and better manage sizes around SIZE_MAX.
27724
27725 2010-12-13  Eric Blake  <eblake@redhat.com>
27726
27727         cloexec, fcntl: relax license
27728         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
27729         consent from all contributors.
27730         * modules/fcntl (License): Likewise.
27731
27732 2010-12-10  Bruno Haible  <bruno@clisp.org>
27733
27734         Tests for module 'pipe-posix'.
27735         * modules/pipe-posix-tests: New file.
27736         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
27737
27738 2010-12-10  Bruno Haible  <bruno@clisp.org>
27739
27740         pipe-posix: Make it work in C++ mode.
27741         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
27742         (pipe): Use common idiom, not a macro definition.
27743         * lib/pipe.c: New file.
27744         * m4/pipe.m4: New file.
27745         * modules/pipe-posix (Description): Enhance.
27746         (Files): Add lib/pipe.c, m4/pipe.m4.
27747         (configure.ac): Invoke gl_FUNC_PIPE.
27748         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
27749         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
27750         * tests/test-unistd-c++.cc: Check the signature of pipe.
27751
27752 2010-12-10  Bruno Haible  <bruno@clisp.org>
27753
27754         Rename module 'pipe' to 'spawn-pipe'.
27755         * modules/spawn-pipe: New file, renamed from modules/pipe.
27756         (Files, configure.ac, Makefile.am): Update.
27757         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
27758         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
27759         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
27760         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
27761         "spawn-pipe.h" instead of "pipe.h".
27762         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
27763         to gl_SPAWN_PIPE.
27764         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
27765         (Files, Makefile.am): Update.
27766         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
27767         Update.
27768         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
27769         Include "spawn-pipe.h" instead of "pipe.h".
27770         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
27771         * lib/javacomp.c: Likewise.
27772         * lib/javaversion.c: Likewise.
27773         * lib/pipe-filter-gi.c: Likewise.
27774         * lib/pipe-filter-ii.c: Likewise.
27775         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
27776         * modules/javacomp (Depends-on): Likewise.
27777         * modules/javaversion (Depends-on): Likewise.
27778         * modules/pipe-filter-gi (Depends-on): Likewise.
27779         * modules/pipe-filter-ii (Depends-on): Likewise.
27780         * MODULES.html.sh (Executing programs): Update.
27781         * NEWS: Mention the change.
27782
27783 2010-12-10  Eric Blake  <eblake@redhat.com>
27784
27785         pipe-posix: new module
27786         * modules/pipe-posix: New file.
27787         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
27788         (gl_UNISTD_H): Check for declaration.
27789         * modules/unistd (Makefile.am): Substitute it.
27790         * lib/unistd.in.h (pipe): Provide it for mingw.
27791         * doc/posix-functions/pipe.texi (pipe): Update documentation.
27792         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
27793
27794 2010-12-07  Bruno Haible  <bruno@clisp.org>
27795
27796         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
27797         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
27798         u8_strcmp_gnu.
27799         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
27800
27801 2010-12-06  Bruno Haible  <bruno@clisp.org>
27802
27803         Update internal documentation.
27804         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
27805
27806 2010-12-04  Bruno Haible  <bruno@clisp.org>
27807
27808         Put more information about failed tests into the test return codes.
27809         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
27810         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
27811         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
27812         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
27813         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
27814         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
27815         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
27816         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
27817         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
27818         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
27819         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
27820         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
27821         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
27822         * m4/stdint.m4 (gl_STDINT_H): Likewise.
27823         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
27824         returns a bit mask.
27825         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
27826         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
27827         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
27828         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
27829         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
27830         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
27831         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
27832         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
27833         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
27834         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
27835         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
27836         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
27837         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
27838         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
27839         * m4/link.m4 (gl_FUNC_LINK): Likewise.
27840         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
27841         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
27842         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
27843         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
27844         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
27845         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
27846         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
27847         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
27848         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
27849         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
27850         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
27851         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
27852         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
27853         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
27854         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
27855         gl_PRINTF_PRECISION): Likewise.
27856         * m4/regex.m4 (gl_REGEX): Likewise.
27857         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
27858         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
27859         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
27860         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
27861         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
27862         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
27863         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
27864         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
27865         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
27866         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
27867         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
27868         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
27869         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
27870         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
27871         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
27872         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
27873         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
27874         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
27875         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
27876         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
27877         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
27878         enumerated value.
27879         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
27880
27881 2010-12-04  Bruno Haible  <bruno@clisp.org>
27882
27883         Update for Solaris 11 2010-11.
27884         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
27885         Express, released in November 2010.
27886
27887 2010-12-04  Bruno Haible  <bruno@clisp.org>
27888
27889         nproc: Relax license.
27890         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
27891         and Paul Eggert.
27892         Requested by Ludovic Courtès <ludo@gnu.org>.
27893
27894 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
27895
27896         utimecmp: fine-grained src to nearby coarse-grained dest
27897
27898         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
27899         and the source is on a file system with higher-resolution time
27900         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
27901         not work, and the time stamps are close together, the algorithm to
27902         determine the exact resolution from the read-back mtime was buggy:
27903         it had a "!=" where it should have had an "==".  This bug has been
27904         in the code ever since it was introduced to gnulib.
27905         Problem reported by Dan Jacobson in
27906         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
27907
27908 2010-11-30  Bruno Haible  <bruno@clisp.org>
27909
27910         strerror_r-posix: Fix autoconf test.
27911         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
27912
27913 2010-11-28  Bruno Haible  <bruno@clisp.org>
27914             Paul Eggert  <eggert@cs.ucla.edu>
27915
27916         Tests for module 'getdomainname'.
27917         * modules/getdomainname-tests: New file.
27918         * tests/test-getdomainname.c: New file, based on
27919         tests/test-gethostname.c.
27920
27921 2010-11-28  Bruno Haible  <bruno@clisp.org>
27922             Paul Eggert  <eggert@cs.ucla.edu>
27923
27924         getdomainname: Use the system function when possible.
27925         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
27926         (getdomainname): Replace if needed. Provide the declaration if it is
27927         missing. Don't use _GL_CXXALIAS_SYS_CAST.
27928         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
27929         (getdomainname): When the system has getdomainname, call the system
27930         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
27931         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
27932         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
27933         found in libnsl. Look for the declaration also in <netdb.h>. Replace
27934         the function if its second argument is of type 'int' or if it is found
27935         in libnsl.
27936         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
27937         <sys/systeminfo.h> and sysinfo().
27938         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
27939         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
27940         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
27941         HAVE_GETDOMAINNAME.
27942         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
27943         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
27944         * doc/glibc-functions/getdomainname.texi: Document the problems with
27945         the getdomainname declaration.
27946
27947 2010-11-28  Bruno Haible  <bruno@clisp.org>
27948
27949         sys_socket: Ensure ss_family field on AIX.
27950         * lib/sys_socket.in.h (ss_family): New macro definition.
27951         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
27952         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
27953         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
27954         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
27955         * modules/sys_socket (Makefile.am): Substitute
27956         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
27957         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
27958
27959 2010-11-27  Bruno Haible  <bruno@clisp.org>
27960
27961         readline: Improve configure output.
27962         * m4/readline.m4 (gl_FUNC_READLINE): Make the
27963         "checking for readline..." result understandable.
27964
27965 2010-11-27  Bruno Haible  <bruno@clisp.org>
27966
27967         *printf-posix: Detect a bug on Solaris 10/x86.
27968         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
27969         for floating-point output.
27970         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
27971         directive.
27972         * tests/test-snprintf-posix.h (test_function): Likewise.
27973         * tests/test-sprintf-posix.h (test_function): Likewise.
27974         * tests/test-vasprintf-posix.c (test_function): Likewise.
27975         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
27976         * doc/posix-functions/printf.texi: Likewise.
27977         * doc/posix-functions/snprintf.texi: Likewise.
27978         * doc/posix-functions/sprintf.texi: Likewise.
27979         * doc/posix-functions/vfprintf.texi: Likewise.
27980         * doc/posix-functions/vprintf.texi: Likewise.
27981         * doc/posix-functions/vsnprintf.texi: Likewise.
27982         * doc/posix-functions/vsprintf.texi: Likewise.
27983         * doc/glibc-functions/obstack_printf.texi: Likewise.
27984         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
27985
27986 2010-11-27  Bruno Haible  <bruno@clisp.org>
27987
27988         Fix link error when module libunistring-optional is in use.
27989         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
27990         * modules/striconveha-tests (Makefile.am): Likewise.
27991
27992 2010-11-27  Bruno Haible  <bruno@clisp.org>
27993
27994         regex: Mention link dependencies.
27995         * modules/regex (Link): New section.
27996         * modules/rpmatch (Link): Likewise.
27997         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
27998
27999 2010-11-27  Bruno Haible  <bruno@clisp.org>
28000
28001         ftoastr: Fix compilation error on Solaris.
28002         * lib/ftoastr.c: Include <config.h>.
28003
28004 2010-11-27  Bruno Haible  <bruno@clisp.org>
28005
28006         getloadavg: Update documentation.
28007         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
28008
28009 2010-11-27  Bruno Haible  <bruno@clisp.org>
28010
28011         sys_socket: Fix test whether the functions are declared.
28012         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
28013         not <sys/select.h>.
28014
28015 2010-11-27  Bruno Haible  <bruno@clisp.org>
28016
28017         getpass: Make sure to get system declaration on some platforms.
28018         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
28019         gl_USE_SYSTEM_EXTENSIONS.
28020         * modules/getpass (Depends-on): Add extensions.
28021
28022 2010-11-26  Bruno Haible  <bruno@clisp.org>
28023
28024         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
28025         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
28026         'iconv' module is present.
28027         (ICONV_CONST): New macro.
28028         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
28029         ICONV_CONST.
28030         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
28031         set ICONV_CONST.
28032         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
28033         here.
28034         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
28035         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
28036         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
28037         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
28038         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
28039         present.
28040
28041 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
28042
28043         ftoastr: comment fix
28044         * lib/ftoastr.c: "little" -> "little or no" in comment
28045
28046 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
28047
28048         stdint: port to GCC 4.3 + OSX + Octave
28049         On this platform, stdint.h is buggy and defines int64_t to long
28050         long int.  The replacement defined it to long int, causing
28051         problems with C++ style name mangling.  Instead, trust the system
28052         definition if INT64_MAX is defined, and likewise for the unsigned
28053         variant.   Problem reported by Jarno Rajahalme in
28054         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
28055         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
28056         and don't mess with int64_t and INT64_MAX in this case.
28057         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
28058
28059 2010-11-24  Bruno Haible  <bruno@clisp.org>
28060
28061         doc: Corrections regarding MacOS X 10.4 and 10.5.
28062         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
28063         MacOS X.
28064         Reported by Simon Josefsson.
28065
28066 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
28067
28068         Uninstall ".bin" files installed by relocwrapper.
28069         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
28070         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
28071         unless it is already there.
28072
28073 2010-11-21  Bruno Haible  <bruno@clisp.org>
28074
28075         Update for NetBSD 5.0.
28076         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
28077         NetBSD; the test fails on NetBSD 5.0.
28078         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
28079         about NetBSD.
28080
28081 2010-11-21  Bruno Haible  <bruno@clisp.org>
28082
28083         Update for HP-UX 11.23 and HP-UX 11.31.
28084         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
28085         HP-UX.
28086
28087 2010-11-21  Bruno Haible  <bruno@clisp.org>
28088
28089         Update for MacOS X 10.5.
28090         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
28091         MacOS X; the test fails on MacOS X 10.5.8.
28092         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
28093         about MacOS X.
28094
28095 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
28096
28097         bootstrap: add bootstrap_sync option.
28098         See discussion at
28099         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
28100         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
28101         * build-aux/bootstrap: Accept --bootstrap-sync to update
28102         bootstrap if it is not identical to the local gnulib's
28103         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
28104         enable this by default.  Accept --no-bootstrap-sync to disable
28105         it.
28106
28107 2010-11-20  Bruno Haible  <bruno@clisp.org>
28108
28109         Ensure that <features.h> is included before __GLIBC__ is tested.
28110         * lib/printf-parse.h: Include <features.h>.
28111         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
28112         Reported by Mike Frysinger <vapier@gentoo.org>.
28113
28114         Ensure that <features.h> is included before __GLIBC__ is tested.
28115         * lib/wchar.in.h: Include <features.h>.
28116         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
28117         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
28118         Reported by Mike Frysinger <vapier@gentoo.org>.
28119
28120         Ensure that <features.h> is included before __GLIBC__ is tested.
28121         * lib/arpa_inet.in.h: Include <features.h>.
28122         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
28123         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
28124         Reported by Mike Frysinger <vapier@gentoo.org>.
28125
28126         Ensure that <features.h> is included before __GLIBC__ is tested.
28127         * build-aux/link-warning.h: Include <features.h>.
28128         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
28129         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
28130         Reported by Mike Frysinger <vapier@gentoo.org>.
28131
28132         Ensure that <features.h> is included before __GLIBC__ is tested.
28133         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
28134         Reported by Mike Frysinger <vapier@gentoo.org>.
28135
28136 2010-11-20  Bruno Haible  <bruno@clisp.org>
28137
28138         memmem: Fix autoconf test.
28139         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
28140
28141 2010-11-20  Bruno Haible  <bruno@clisp.org>
28142
28143         Port to uClibc.
28144         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
28145         * lib/fcntl.in.h: Likewise.
28146         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
28147         * lib/mbrtowc.c (mbrtowc): Likewise.
28148         * lib/relocatable.c (find_shared_library_fullname): Likewise.
28149         * lib/strerror_r.c: Likewise.
28150         * lib/unistr/u8-strnlen.c: Likewise.
28151         * lib/vasnprintf.c (decimal_point_char): Likewise.
28152         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
28153         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
28154         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
28155         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
28156         * tests/test-sigaction.c (handler, main): Likewise.
28157         * lib/freading.h: Treat uClibc like a non-glibc platform.
28158         * lib/freading.c: Likewise.
28159         * lib/gettext.h: Likewise.
28160         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
28161         Likewise.
28162         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
28163         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
28164         * lib/propername.c (proper_name_utf8): Likewise.
28165         * lib/spawn.in.h: Likewise.
28166         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
28167         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
28168         mem_cd_iconveh_internal): Likewise.
28169         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
28170         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
28171         strstr, strcasestr): Likewise.
28172         * lib/unicodeio.c (unicode_to_mb): Likewise.
28173         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
28174         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
28175         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
28176         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
28177         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
28178         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
28179         * lib/unistr/u8-stpncpy.c: Likewise.
28180         * lib/vasnprintf.c (VASNPRINTF): Likewise.
28181         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
28182         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
28183         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
28184         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
28185         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
28186         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
28187         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
28188         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
28189         Likewise.
28190         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
28191         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
28192         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
28193         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
28194         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
28195         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
28196         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
28197         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
28198         * tests/test-getopt.h (OPTIND_MIN): Likewise.
28199         * tests/test-striconveha.c (main): Likewise.
28200         * tests/test-vasnprintf-posix.c (test_function): Likewise.
28201         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
28202         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
28203         * doc/posix-functions/getline.texi: Likewise.
28204         Reported by Mike Frysinger <vapier@gentoo.org>.
28205
28206 2010-11-20  Bruno Haible  <bruno@clisp.org>
28207
28208         nproc: Fix condition.
28209         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
28210         HAVE_PTHREAD_AFFINITY_NP.
28211
28212 2010-11-20  Bruno Haible  <bruno@clisp.org>
28213
28214         Fix a comment.
28215         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
28216
28217 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
28218
28219         ftoastr: don't assume snprintf
28220         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
28221         Implement a subset of snprintf here, by using sprintf safely.
28222         * modules/ftoastr (Depends-on): Remove snprintf.
28223
28224 2010-11-19  Jim Meyering  <meyering@redhat.com>
28225
28226         test-rename.h: fix compilation failure
28227         * tests/test-rename.h (test_rename): Add omitted "}".
28228
28229 2010-11-17  Jim Meyering  <meyering@redhat.com>
28230
28231         maint.mk: add a URL discussing the no-@acronym policy
28232         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
28233
28234 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
28235
28236         ftoastr: depend on snprintf, improve comments
28237         * lib/ftoastr.c: Also mention Loitsch's draft.
28238         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
28239         needed in the current implementation, but it might simplify
28240         speeding up the code later.
28241         * modules/ftoastr: Depend on snprintf; this improves portability.
28242         Suggested by Bruno Haible in the same email.
28243
28244         ftoastr: port to hosts lacking strtof and strtold
28245         Problem reported by Bruno Haible in
28246         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
28247         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
28248         environment and strtold (and presumably strtof) are not available.
28249         * modules/ftoastr (Files): Add m4/c-strtod.m4.
28250         (configure.ac): Require gl_C99_STRTOLD.
28251
28252 2010-11-18  Bruno Haible  <bruno@clisp.org>
28253
28254         c-strtold: Avoid link error on AIX 7.
28255         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
28256         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
28257         (gl_C_STRTOLD): Test whether strtold_l exists.
28258         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
28259
28260 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
28261
28262         intprops: new macro INT_BITS_STRLEN_BOUND
28263         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
28264         ftoastr.h.  This exposes an internal of intprops.h that was formerly
28265         not exposed.  Also, it uses a slightly tighter bound than before;
28266         though this makes no practical difference, we might as well be as
28267         tight as we easily can.
28268
28269         ftoastr: new module, for lossless conversion of floats to short strings
28270         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
28271         * modules/ftoastr: New files.
28272
28273 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
28274
28275         bootstrap: port to Solaris sed
28276         * build-aux/bootstrap (get_version): Port to Solaris sed.
28277         See Ralf Wildenhues's note in
28278         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
28279
28280 2010-11-14  Jim Meyering  <meyering@redhat.com>
28281
28282         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
28283         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
28284         and move definition closer to sole use.
28285
28286 2010-11-13  Jim Meyering  <meyering@redhat.com>
28287
28288         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
28289         Now we require at least autoconf-2.59, which means the work-around
28290         is no longer needed.
28291         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
28292         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
28293         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
28294         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
28295         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
28296
28297 2010-11-13  Bruno Haible  <bruno@clisp.org>
28298
28299         rename, renameat: Avoid test failures at NFS mounted locations.
28300         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
28301         functions.
28302         (test_rename): Use assert_nonexistent.
28303         * tests/test-rename.c: Include <dirent.h>.
28304         * tests/test-renameat.c: Likewise.
28305         Reported by Gary V. Vaughan <gary@gnu.org>.
28306
28307         rename, renameat: Document Linux bug with NFS
28308         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
28309         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
28310         * doc/posix-functions/renameat.texi: Likewise.
28311         Suggested by Eric Blake.
28312
28313 2010-11-13  Bruno Haible  <bruno@clisp.org>
28314
28315         rename test: Add comments.
28316         * tests/test-rename.h (test_rename): Add structure and comments.
28317
28318 2010-11-13  Eric Blake  <eblake@redhat.com>
28319
28320         maintainer-makefile: cover a few more files
28321         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
28322         scripts generated within C files, for libvirt.
28323
28324 2010-11-13  Bruno Haible  <bruno@clisp.org>
28325
28326         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
28327         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
28328         character, return the number of bytes that belong together, not always
28329         1.
28330         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
28331         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
28332         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
28333         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
28334         number of bytes of an invalid character.
28335         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
28336         (main): Invoke it.
28337         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
28338         results.
28339         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
28340         malformed byte sequences.
28341         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
28342         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
28343         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
28344         Reported by Ben Pfaff and Paolo Bonzini.
28345
28346 2010-11-13  Bruno Haible  <bruno@clisp.org>
28347
28348         openat: Work around glibc bug with fchownat() and empty file names.
28349         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
28350         (gl_FUNC_FCHOWNAT): Invoke it.
28351         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
28352         * doc/posix-functions/fchownat.texi: Document the glibc bug.
28353         Reported by Gary V. Vaughan <gary@gnu.org>.
28354
28355 2010-11-13  Bruno Haible  <bruno@clisp.org>
28356
28357         openat: Ensure autoconf macro ordering.
28358         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
28359         gl_USE_SYSTEM_EXTENSIONS.
28360         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
28361
28362 2010-11-13  Bruno Haible  <bruno@clisp.org>
28363
28364         Update comments.
28365         * lib/unistr/u8-check.c: Update file name in comments.
28366         * lib/unistr/u8-mblen.c: Likewise.
28367         * lib/unistr/u8-prev.c: Likewise.
28368         * lib/unistr/u8-strmblen.c: Likewise.
28369         * lib/unistr/u8-strmbtouc.c: Likewise.
28370
28371 2010-11-13  Jim Meyering  <meyering@redhat.com>
28372
28373         tests: avoid test failure on Solaris 10 due to lack of PATH export
28374         * tests/test-update-copyright.sh: Don't forget to export PATH.
28375
28376         init.sh: ensure that IFS is defined, just in case...
28377         * tests/init.sh (setup_): Ensure that IFS is defined,
28378         so that saving and restoring it works as expected.  This
28379         appears to be useful at least for an old version of dash
28380         from a long time ago (RH 6).  See here for details:
28381         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
28382
28383         maint.mk: tighten "test a == b" check
28384         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
28385         test to files that contain something like #!/bin/sh.
28386         Without this, coreutils would get two false positives in
28387         the comments of C source files.
28388
28389 2010-11-12  Eric Blake  <eblake@redhat.com>
28390
28391         bootstrap: fix typo in previous attempt
28392         * build-aux/bootstrap (buildreq): Correct the grouping.
28393         Reported by Paul Eggert.
28394
28395         maintainer-makefile: prohibit test x == x
28396         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
28397         Based on a report by Matthias Bolte.
28398
28399         bootstrap: allow FreeBSD gzip
28400         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
28401         which has no '.' and goes to stderr.
28402         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
28403         Reported by Matthias Bolte.
28404
28405         maintainer-makefile: check for i18n setup
28406         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
28407         will likely work.
28408
28409 2010-11-12  Bruno Haible  <bruno@clisp.org>
28410
28411         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
28412         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
28413         * lib/nanosleep.c (nanosleep): Likewise.
28414
28415 2010-11-11  Bruno Haible  <bruno@clisp.org>
28416
28417         fcntl-h: Fix for use of C++ on glibc systems.
28418         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
28419         also on glibc systems in C++ mode.
28420         Reported by Gary V. Vaughan <gary@gnu.org>.
28421
28422 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
28423
28424         mknod: avoid false failure with dash
28425         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
28426
28427 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
28428
28429         unlink: Fix "is it should" typo in diagnostic.
28430         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
28431         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
28432
28433 2010-11-11  Bruno Haible  <bruno@clisp.org>
28434
28435         Tests for module 'strerror_r-posix'.
28436         * modules/strerror_r-posix-tests: New file.
28437         * tests/test-strerror_r.c: New file.
28438         * tests/test-string-c++.cc: Check the signature of strerror_r.
28439
28440         New module 'strerror_r-posix'.
28441         * lib/string.in.h (strerror_r): New declaration.
28442         * lib/strerror_r.c: New file.
28443         * m4/strerror_r.m4: New file.
28444         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
28445         of strerror_r.
28446         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
28447         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
28448         * modules/strerror_r-posix: New file.
28449         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
28450         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
28451         * doc/posix-functions/strerror_r.texi: Mention the new module and the
28452         portability problems.
28453
28454 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
28455
28456         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
28457         line is also considered for output. Quoted function name in shell
28458         command, so temporary files for functions like MyClass::operator()
28459         are removed correctly without errors.
28460
28461 2010-11-09  Bruno Haible  <bruno@clisp.org>
28462
28463         * doc/posix-functions/strerror.texi: List more failing platforms.
28464
28465         * doc/posix-functions/strerror.texi: Add a comment.
28466
28467 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
28468
28469         fdopendir: fix bug on MacOS X when low on file descriptors
28470
28471         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
28472         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
28473         All callers changed.
28474         (fdopendir): Invoke save_cwd at the top level, not after using
28475         multiple dup() calls to use up file descriptors.  Then retry
28476         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
28477         less than the maximum number of open file descriptors, because
28478         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
28479         on Mac OS X 10.6.4 for tar 1.24
28480         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
28481         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
28482         and for tar 1.25
28483         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
28484
28485 2010-11-07  Bruno Haible  <bruno@clisp.org>
28486
28487         vasnprintf: Support I flag on glibc systems.
28488         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
28489         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
28490         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
28491         snprintf function.
28492         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
28493         glibc systems.
28494         * tests/test-vasnprintf-posix3.c: New file.
28495         * modules/vasnprintf-posix-tests (Files): Add it.
28496         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
28497
28498 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
28499
28500         [html] Fix copy/paste bug: Use unique name for compiler warnings.
28501         * MODULES.html.sh: For compiler warnings, use name
28502         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
28503
28504 2010-11-05  Eric Blake  <eblake@redhat.com>
28505
28506         ceil, floor: avoid spurious failure with icc
28507         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
28508         [denormals-as-zero] when optimizing without -mieee-fp option.
28509         * tests/test-floorf2.c (floorf_reference): Likewise.
28510         * tests/test-ceilf1.c (dummy): New function.
28511         (main): Use it to outsmart icc's optimization.
28512         * tests/test-floorf1.c (dummy, main): Likewise.
28513
28514         tests: require working signbit
28515         * modules/ceilf-tests (Depends-on): Add signbit.
28516         * modules/ceill-tests (Depends-on): Likewise.
28517         * modules/floorf-tests (Depends-on): Likewise.
28518         * modules/floorl-tests (Depends-on): Likewise.
28519         * modules/round-tests (Depends-on): Likewise.
28520         * modules/roundf-tests (Depends-on): Likewise.
28521         * modules/roundl-tests (Depends-on): Likewise.
28522         * modules/trunc-tests (Depends-on): Likewise.
28523         * modules/truncf-tests (Depends-on): Likewise.
28524         * modules/truncl-tests (Depends-on): Likewise.
28525
28526         strtod: work around icc bug
28527         * lib/strtod.c (minus_zero): Define to working value.
28528         (strtod): Use it to avoid icc bug.
28529
28530         copysign: enhance tests
28531         * modules/copysign-tests (Files): Add minus-zero.h.
28532         * tests/test-copysign.c (main): Also test zeros.
28533
28534 2010-11-04  Eric Blake  <eblake@redhat.com>
28535
28536         ceil, floor, round, trunc: enhance tests of -0
28537         * tests/test-ceilf1.c (main): Ensure correct sign of result.
28538         * tests/test-ceill.c (main): Likewise.
28539         * tests/test-floorf1.c (main): Likewise.
28540         * tests/test-floorl.c (main): Likewise.
28541         * tests/test-round1.c (main): Likewise.
28542         * tests/test-roundf1.c (main): Likewise.
28543         * tests/test-roundl.c (main): Likewise.
28544         * tests/test-trunc1.c (main): Likewise.
28545         * tests/test-truncf1.c (main): Likewise.
28546         * tests/test-truncl.c (main): Likewise.
28547
28548 2010-11-04  Eric Blake  <eblake@redhat.com>
28549
28550         frexp, tests: work around ICC bug with -zero
28551         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
28552         works with more compilers.
28553         * tests/minus-zero.h: New file.
28554         * modules/ceilf-tests (Files): Include it.
28555         * modules/ceill-tests (Files): Likewise.
28556         * modules/floorf-tests (Files): Likewise.
28557         * modules/floorl-tests (Files): Likewise.
28558         * modules/frexp-nolibm-tests (Files): Likewise.
28559         * modules/frexp-tests (Files): Likewise.
28560         * modules/frexpl-nolibm-tests (Files): Likewise.
28561         * modules/frexpl-tests (Files): Likewise.
28562         * modules/isnan-tests (Files): Likewise.
28563         * modules/isnand-nolibm-tests (Files): Likewise.
28564         * modules/isnand-tests (Files): Likewise.
28565         * modules/isnanf-nolibm-tests (Files): Likewise.
28566         * modules/isnanf-tests (Files): Likewise.
28567         * modules/isnanl-nolibm-tests (Files): Likewise.
28568         * modules/isnanl-tests (Files): Likewise.
28569         * modules/round-tests (Files): Likewise.
28570         * modules/roundf-tests (Files): Likewise.
28571         * modules/roundl-tests (Files): Likewise.
28572         * modules/ldexpl-tests (Files): Likewise.
28573         * modules/signbit-tests (Files): Likewise.
28574         * modules/snprintf-posix-tests (Files): Likewise.
28575         * modules/sprintf-posix-tests (Files): Likewise.
28576         * modules/strtod-tests (Files): Likewise.
28577         * modules/trunc-tests (Files): Likewise.
28578         * modules/truncf-tests (Files): Likewise.
28579         * modules/truncl-tests (Files): Likewise.
28580         * modules/vsnprintf-posix-tests (Files): Likewise.
28581         * modules/vsprintf-posix-tests (Files): Likewise.
28582         * modules/vasnprintf-posix-tests (Files): Likewise.
28583         * modules/vasprintf-posix-tests (Files): Likewise.
28584         * tests/test-ceilf1.c (main): Use it.
28585         * tests/test-ceill.c (main): Likewise.
28586         * tests/test-floorf1.c (main): Likewise.
28587         * tests/test-floorl.c (main): Likewise.
28588         * tests/test-frexp.c (main): Likewise.
28589         * tests/test-frexpl.c (main): Likewise.
28590         * tests/test-isnan.c (main): Likewise.
28591         * tests/test-isnand.h (main): Likewise.
28592         * tests/test-isnanf.h (main): Likewise.
28593         * tests/test-isnanl.h (main): Likewise.
28594         * tests/test-ldexpl.c (main): Likewise.
28595         * tests/test-round.c (main): Likewise.
28596         * tests/test-roundf.c (main): Likewise.
28597         * tests/test-roundl.c (main): Likewise.
28598         * tests/test-signbit.c (test_signbitf, test_signbitd)
28599         (test_signbitl): Likewise.
28600         * tests/test-snprintf-posix.h (test_function): Likewise.
28601         * tests/test-sprintf-posix.h (test_function): Likewise.
28602         * tests/test-strtod.c (main): Likewise.
28603         * tests/test-trunc1.c (main): Likewise.
28604         * tests/test-truncf1.c (main): Likewise.
28605         * tests/test-truncl.c (main): Likewise.
28606
28607         isnanl: work around icc bug
28608         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
28609
28610 2010-11-03  Eric Blake  <eblake@redhat.com>
28611
28612         tests: fix compiler warnings
28613         * tests/test-getopt.h (test_getopt): Fix condition.
28614         * tests/test-getopt_long.h (test_getopt_long): Likewise.
28615         * tests/test-pipe2.c (main): Likewise.
28616         * tests/test-quotearg-simple.c (main): Avoid icc warning.
28617
28618         utimens: fix broken m4 test
28619         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
28620
28621 2010-10-28  Bruno Haible  <bruno@clisp.org>
28622
28623         posix_spawn*, getdtablesize: Relax license.
28624         * modules/posix_spawn (License): Change to LGPLv2+.
28625         * modules/posix_spawnp (License): Likewise.
28626         * modules/posix_spawn-internal (License): Likewise.
28627         * modules/posix_spawnattr_init (License): Likewise.
28628         * modules/posix_spawnattr_getflags (License): Likewise.
28629         * modules/posix_spawnattr_setflags (License): Likewise.
28630         * modules/posix_spawnattr_getpgroup (License): Likewise.
28631         * modules/posix_spawnattr_setpgroup (License): Likewise.
28632         * modules/posix_spawnattr_getschedparam (License): Likewise.
28633         * modules/posix_spawnattr_setschedparam (License): Likewise.
28634         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
28635         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
28636         * modules/posix_spawnattr_getsigdefault (License): Likewise.
28637         * modules/posix_spawnattr_setsigdefault (License): Likewise.
28638         * modules/posix_spawnattr_getsigmask (License): Likewise.
28639         * modules/posix_spawnattr_setsigmask (License): Likewise.
28640         * modules/posix_spawnattr_destroy (License): Likewise.
28641         * modules/posix_spawn_file_actions_init (License): Likewise.
28642         * modules/posix_spawn_file_actions_addclose (License): Likewise.
28643         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
28644         * modules/posix_spawn_file_actions_addopen (License): Likewise.
28645         * modules/posix_spawn_file_actions_destroy (License): Likewise.
28646         * modules/getdtablesize (License): Likewise.
28647         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
28648
28649 2010-10-26  Bruno Haible  <bruno@clisp.org>
28650
28651         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
28652         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
28653         Cygwin and mingw.
28654         Suggested by Eric Blake.
28655
28656 2010-10-26  Bruno Haible  <bruno@clisp.org>
28657
28658         stdio: Work around compilation error due to renameat() on Solaris 10.
28659         * lib/stdio.in.h: Include <unistd.h> on Solaris.
28660         * lib/renameat.c: Don't include <unistd.h> here.
28661         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
28662         Reported by Paul Eggert and Eric Blake.
28663
28664 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
28665
28666         renameat: port to Solaris 10, which declares renameat in unistd.h
28667
28668         * lib/renameat.c: Include unistd.h before stdio.h, because
28669         Solaris 10 declares renameat in unistd.h.  Problem encountered
28670         when building GNU tar 1.24 on Solaris 10.
28671
28672 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
28673
28674         fdopendir: fix C89 compilation
28675         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
28676         compilers.
28677
28678 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
28679
28680         inttostr: simplify by removing unnecessary redundancy
28681         * lib/anytostr.c: Don't include verify.h.
28682         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
28683         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
28684         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
28685         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
28686         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
28687         Likewise.
28688         * modules/inttostr (Depends-on): Remove 'verify'.
28689
28690 2010-10-23  Bruno Haible  <bruno@clisp.org>
28691
28692         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
28693         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
28694         Reported by Eric Blake.
28695
28696 2010-10-23  Bruno Haible  <bruno@clisp.org>
28697
28698         Tests: Fix LOCALE_JA on MirBSD 10.
28699         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
28700         to an UTF-8 locale.
28701         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
28702         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
28703         Reported by Eric Blake.
28704
28705 2010-10-21  Bruno Haible  <bruno@clisp.org>
28706
28707         nl_langinfo test: Avoid test failure on NetBSD 5.
28708         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
28709         Reported by Eric Blake.
28710
28711 2010-10-21  Eric Blake  <eblake@redhat.com>
28712
28713         c-stack: work around libsigsegv 2.8 bug
28714         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
28715         overflow on at least PowerPC64.
28716
28717 2010-10-17  Bruno Haible  <bruno@clisp.org>
28718
28719         userspec: Drop redundant file.
28720         * modules/userspec (Files): Remove lib/inttostr.h.
28721
28722 2010-10-17  Bruno Haible  <bruno@clisp.org>
28723
28724         nl_langinfo tests: Silence some warnings.
28725         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
28726         Reported by Jim Meyering.
28727
28728 2010-10-17  Bruno Haible  <bruno@clisp.org>
28729
28730         Make use of GCC's attribute __alloc_size__.
28731         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
28732         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
28733         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
28734         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
28735         __alloc_size__.
28736         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
28737         Suggested by Jim Meyering.
28738
28739 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
28740
28741         bootstrap: anchor .gitignore entries.
28742         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
28743         with...
28744         (insert_vc_ignore): ... this new function, which prepends `/' to
28745         all .gitignore entries before passing them to
28746         insert_sorted_if_absent.
28747
28748 2010-10-16  Bruno Haible  <bruno@clisp.org>
28749
28750         nextafter: Fix configure check.
28751         * modules/nextafter (configure.ac): Correct expected prototype.
28752
28753 2010-10-16  Bruno Haible  <bruno@clisp.org>
28754
28755         termios: Update documentation.
28756         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
28757
28758 2010-10-16  Bruno Haible  <bruno@clisp.org>
28759
28760         tests: Make them compile with TinyCC.
28761         * tests/test-strstr.c (main): Remove parentheses around array
28762         initializer.
28763
28764 2010-10-15  Eric Blake  <eblake@redhat.com>
28765
28766         ignore-value: make header idempotent
28767         * lib/ignore-value.h: Add double-inclusion guards.
28768         Reported by Stefan Berger.
28769
28770 2010-10-15  Jim Meyering  <meyering@redhat.com>
28771
28772         GNUmakefile: handle "stable" target, not "major"
28773         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
28774         lists in maint.mk and announce-gen.  Without this, "make stable"
28775         would fail to ensure that $(VERSION) is up to date.
28776
28777 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
28778
28779         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
28780         & co.
28781
28782 2010-10-14  Bruno Haible  <bruno@clisp.org>
28783
28784         vasnprintf: Don't set errno to 0.
28785         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
28786         block that sets it to 0.
28787         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
28788
28789 2010-10-14  Bruno Haible  <bruno@clisp.org>
28790
28791         socketlib: Fix.
28792         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
28793         gl_PREREQ_SYS_H_WINSOCK2.
28794         Reported by Ian Beckwith <ianb@erislabs.net>.
28795
28796 2010-10-13  Jim Meyering  <meyering@redhat.com>
28797
28798         test-select-stdin.c: avoid warn_unused_result warnings
28799         * tests/test-select-stdin.c: Include "macros.h".
28800         ASSERT that read and fflush succeed.
28801
28802 2010-10-13  Jim Meyering  <meyering@redhat.com>
28803
28804         git-version-gen: do require git-VC'd files in cwd
28805         * build-aux/git-version-gen: Reject a git version string
28806         if there are no commits associated with the current directory.
28807         This avoids an unlikely false-positive (unrelated dir whose parent
28808         repository also contains a tag matching v*), as pointed out
28809         by Giuseppe Scrivano in
28810         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
28811
28812 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
28813
28814         argv-iter: omit nonconforming declaration
28815         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
28816         enum arg_iter_err declaration, which doesn't conform to C99.
28817         Solaris 10 cc warns about this.
28818
28819 2010-10-13  Eric Blake  <eblake@redhat.com>
28820
28821         termios: fix compilation on mingw
28822         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
28823         (gl_TERMIOS_H): Adjust it on mingw.
28824         * modules/termios (Makefile.am): Substitute new key.
28825         * lib/termios.in.h (includes): Make include_next conditional.
28826         * doc/posix-headers/termios.texi (termios.h): Update
28827         documentation.
28828         Reported by Daniel P. Berrange.
28829
28830 2010-10-13  Jim Meyering  <meyering@redhat.com>
28831
28832         git-version-gen: don't require that .git/ be in the current dir
28833         * build-aux/git-version-gen: Adjust this script so that it works
28834         when run from any working directory beneath the top-level .git/-
28835         containing directory.  Inspired by a patch from Giuseppe Scrivano,
28836         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
28837
28838         test-select: avoid warn_unused_result warnings
28839         * tests/test-select.c: Include "macros.h".
28840         ASSERT that each call to read, write, and pipe succeeds.
28841         While not technically required, also check each "close".
28842         * modules/select-tests (Files): Add tests/macros.h.
28843
28844         test-symlinkat: remove declaration of unused local
28845         * tests/test-symlinkat.c (main): Remove unused local, "buf".
28846
28847         test-inttostr: avoid shadowing warnings
28848         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
28849         and use malloc rather than the stack for the same reason as
28850         mentioned in the comment justifying the other allocation.
28851
28852 2010-10-11  Bruno Haible  <bruno@clisp.org>
28853
28854         stdlib: Allow multiple gnulib generated replacements to coexist.
28855         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
28856         Reported by Sam Steingold <sds@gnu.org>.
28857
28858 2010-10-11  Jim Meyering  <meyering@redhat.com>
28859
28860         fix a documentation typo
28861         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
28862
28863 2010-10-11  Eric Blake  <eblake@redhat.com>
28864
28865         futimens: work around Solaris 11 bug
28866         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
28867         * tests/test-futimens.h (test_futimens): Enhance, rather than
28868         weaken test.
28869         * doc/posix-functions/futimens.texi (futimens): Document the bug.
28870
28871 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
28872
28873         Indentation.
28874         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
28875         higher-level operators more to the left.
28876
28877 2010-10-11  Jim Meyering  <meyering@redhat.com>
28878
28879         test-futimens: avoid unwarranted test failure on Solaris 5.11
28880         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
28881         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
28882         because it tries to dereference the NULL name argument.
28883
28884 2010-10-11  Bruno Haible  <bruno@clisp.org>
28885
28886         Indentation.
28887         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
28888         indentation.
28889
28890 2010-10-11  Jim Meyering  <meyering@redhat.com>
28891
28892         spawn.in.h: make indentation consistent with parentheses
28893         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
28894         Make indentation consistent with parentheses.
28895
28896 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
28897
28898         Fix mismatched parens in previous commit
28899         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
28900         parens.
28901
28902 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
28903
28904         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
28905
28906         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
28907         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
28908         * lib/malloca.c: Include "verify.h".
28909         (verify1): Remove, replacing with a verify call.
28910         * lib/relocwrapper.c (verify1): Likewise.
28911         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
28912         Likewise.
28913         * modules/malloca (Depends-on): Add 'verify'.
28914         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
28915         * modules/vasnprintf (Depends-on): Add 'verify'.
28916         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
28917         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
28918         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
28919         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
28920         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
28921         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
28922         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
28923
28924         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
28925
28926         Formerly the style was sometimes 2*X - 1, because the C standard
28927         was wrongly thought to disallow ?: in integral constant expressions.
28928         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
28929         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
28930         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
28931         * lib/stdint.in.h (_verify_intmax_size): Likewise.
28932         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
28933         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
28934         verify that time_t cannot be floating.
28935
28936 2010-10-08  Eric Blake  <eblake@redhat.com>
28937
28938         time: enforce recent POSIX ruling that time_t is integral
28939         * lib/time.in.h (__time_t_must_be_integral): Detect any
28940         problematic systems, allowing the rest of gnulib to assume POSIX.
28941
28942 2010-10-08  Jim Meyering  <meyering@redhat.com>
28943
28944         fdopendir: fix a bug on systems lacking openat and /proc support
28945         OpenBSD 4.7 is one such system.  The most noticeable effect was
28946         failure of any application making nontrivial use of fts: rm, du,
28947         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
28948           ./rm: traversal failed: `a': Bad file descriptor
28949         Debugging that, you see that even though FD 6 was closed just
28950         prior to the opendir call in fd_clone_opendir, its resulting
28951         dir->dd_fd was 8, rather than the expected value of 6:
28952
28953         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
28954         93                close (fd);
28955         (gdb) n
28956         94                dir = fd_clone_opendir (dupfd);
28957         (gdb) n
28958         95                saved_errno = errno;
28959         (gdb) p dir->dd_fd
28960         $11 = 8
28961
28962         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
28963         The problem is that on OpenBSD, fd_clone_opendir has to resort
28964         to using the old-style save/restore CWD mechanism, due to its
28965         lack of openat/proc support, and *that* would steal the FD (6)
28966         that opendir was supposed to use.
28967
28968         The fix is to squirrel away the desired FD so that save_cwd uses a
28969         different one, and then free the dest FD right before calling opendir.
28970         That guarantees opendir will use the required file descriptor.
28971
28972         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
28973
28974 2010-10-08  Bruno Haible  <bruno@clisp.org>
28975
28976         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
28977         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
28978
28979 2010-10-08  Bruno Haible  <bruno@clisp.org>
28980
28981         nanosleep: Make replacement POSIX compliant.
28982         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
28983         is out of range.
28984         Reported by Jim Meyering.
28985
28986 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
28987
28988         bootstrap: add hook for altering gnulib.mk, for Bison
28989         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
28990         the Bison bootstrapping process can rewrite file names and variables
28991         in this file before later parts of 'bootstrap' use the file.
28992         Bison wants to include lib/gnulib.mk from the top-level makefile,
28993         so it needs the file names in this file to be relative to the top
28994         level, not relative to lib; plus it needs variable names to be
28995         rewritten.
28996         (slurp): Use the new function.
28997
28998         bootstrap: reformat for readability
28999         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
29000
29001 2010-10-08  Eric Blake  <eblake@redhat.com>
29002
29003         docs: update cygwin progress
29004         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
29005         1.7.7.
29006         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
29007         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
29008         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
29009         * doc/posix-functions/carg.texi (carg): Likewise.
29010         * doc/posix-functions/cargf.texi (cargf): Likewise.
29011         * doc/posix-functions/casin.texi (casin): Likewise.
29012         * doc/posix-functions/casinf.texi (casinf): Likewise.
29013         * doc/posix-functions/casinh.texi (casinh): Likewise.
29014         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
29015         * doc/posix-functions/catan.texi (catan): Likewise.
29016         * doc/posix-functions/catanf.texi (catanf): Likewise.
29017         * doc/posix-functions/catanh.texi (catanh): Likewise.
29018         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
29019         * doc/posix-functions/ccos.texi (ccos): Likewise.
29020         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
29021         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
29022         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
29023         * doc/posix-functions/cexp.texi (cexp): Likewise.
29024         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
29025         * doc/posix-functions/cimag.texi (cimag): Likewise.
29026         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
29027         * doc/posix-functions/clog.texi (clog): Likewise.
29028         * doc/posix-functions/clogf.texi (clogf): Likewise.
29029         * doc/posix-functions/conj.texi (conj): Likewise.
29030         * doc/posix-functions/conjf.texi (conjf): Likewise.
29031         * doc/posix-functions/cpow.texi (cpow): Likewise.
29032         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
29033         * doc/posix-functions/cproj.texi (cproj): Likewise.
29034         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
29035         * doc/posix-functions/creal.texi (creal): Likewise.
29036         * doc/posix-functions/crealf.texi (crealf): Likewise.
29037         * doc/posix-functions/csin.texi (csin): Likewise.
29038         * doc/posix-functions/csinf.texi (csinf): Likewise.
29039         * doc/posix-functions/csinh.texi (csinh): Likewise.
29040         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
29041         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
29042         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
29043         * doc/posix-functions/ctan.texi (ctan): Likewise.
29044         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
29045         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
29046         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
29047         * doc/posix-headers/complex.texi (complex.h): Likewise.
29048
29049 2010-10-07  Jim Meyering  <meyering@redhat.com>
29050
29051         parse-datetime: avoid compilation failure on OpenBSD 4.7
29052         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
29053         This works around a compilation failure on OpenBSD 4.7:
29054         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
29055
29056 2010-10-07  Eric Blake  <eblake@redhat.com>
29057
29058         docs: update cygwin progress
29059         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
29060         1.7.6.
29061         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
29062         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
29063         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
29064         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
29065         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
29066         Likewise.
29067         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
29068         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
29069         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
29070         Likewise.
29071         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
29072         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
29073         Likewise.
29074         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
29075         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
29076         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
29077         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
29078         Likewise.
29079         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
29080         Likewise.
29081         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
29082
29083         docs: update parse-datetime history
29084         * doc/parse-datetime.texi (Authors of parse_datetime): Better
29085         documentation of this function's history and alternatives.
29086
29087         cygwin: use more robust version check
29088         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
29089         exclude an eventual cygwin 1.9.1.
29090         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
29091         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
29092         (gl_FUNC_STRCASESTR): Likewise.
29093         Reported by Bruno Haible.
29094
29095 2010-10-06  Bruno Haible  <bruno@clisp.org>
29096
29097         string, sys_select: Avoid #including large headers unless necessary.
29098         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
29099         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
29100         OSF/1, BeOS, Haiku.
29101         Reported by Jim Meyering.
29102
29103 2010-10-05  Eric Blake  <eblake@redhat.com>
29104
29105         memmem, strstr, strcasestr: fix bug with long periodic needle
29106         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
29107         periodic needle having false positive.
29108         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
29109         and cygwin 1.7.7.
29110         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
29111         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
29112         (gl_FUNC_STRCASESTR): Likewise.
29113         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
29114         * tests/test-memmem.c (main): Expose the bug.
29115         * tests/test-strcasestr.c (main): Likewise.
29116         * tests/test-strstr.c (main): Likewise.
29117         * tests/test-c-strcasestr.c (main): Likewise.
29118         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
29119         * doc/posix-functions/strstr.texi (strstr): Likewise.
29120         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
29121         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
29122
29123 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
29124
29125         parse-datetime: do some more renaming
29126         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
29127         parse_datetime, not get_date.  Mention the renaming.
29128         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
29129         in comments.
29130         * m4/bison.m4: Likewise.
29131
29132 2010-10-05  Eric Blake  <eblake@redhat.com>
29133
29134         parse-datetime: better name than get_date
29135         * NEWS: Reword the deprecation notice.
29136         * modules/get_date: Rename to modules/parse-datetime.
29137         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
29138         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
29139         * lib/get_date.y: Rename to lib/parse-datetime.y.
29140         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
29141         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
29142         * doc/getdate.texi: Provide fallback wrapper.
29143         * lib/getdate.h: Move guts, and wrap...
29144         * lib/parse-datetime.h: ...new file.
29145         * lib/parse-datetime.y (get_date): Rename...
29146         (parse_datetime): ...to this.
29147         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
29148         (gl_PARSE_DATETIME): ...to this.
29149         * doc/posix-functions/getdate.texi (get_date): Provide fallback
29150         documentation.
29151         * modules/getdate (Files): Provide fallback docs and header.
29152         (Notice, Depends-on): Update references.
29153         * tests/test-parse-datetime.c: Likewise.
29154         * DEPENDENCIES: Likewise.
29155         * MODULES.html.sh (Date and time <time.h>): Likewise.
29156         * doc/parse-datetime.texi (Date input formats)
29157         (Authors of parse_datetime): Likewise.
29158         * modules/parse-datetime (Files, configure.ac, Makefile.am)
29159         (Include): Likewise.
29160         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
29161         * gnulib-tool: Likewise.
29162         * m4/bison.m4 (gl_BISON): Likewise.
29163         Suggested by Bruno Haible.
29164
29165 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
29166
29167         more ports to Solaris tr, which needs [] around ranges
29168         * gnulib-tool: Solaris tr needs [] around ranges.
29169         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
29170         * tests/test-pipe-filter-gi1.c (main): Likewise.
29171         * tests/test-pipe-filter-ii1.c (main): Likewise.
29172
29173 2010-10-05  Eric Blake  <eblake@redhat.com>
29174
29175         bootstrap: fix Solaris regression
29176         * build-aux/bootstrap (check_versions): Solaris tr still needs []
29177         around ranges.
29178         Reported by Pádraig Brady.
29179
29180         bootstrap: work with pkg-config
29181         * build-aux/bootstrap (check_versions): Also transliterate - in
29182         prerequisite name.
29183         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
29184         prerequisites that were already found, to avoid confusion.
29185         Reported by Justin Clift.
29186
29187         faccessat: remove unused wrappers
29188         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
29189         presence of these wrappers dragged in -lgen on Solaris.
29190         Reported by Clemens Brogi; fix suggested by Paul Eggert.
29191
29192 2010-10-05  Jim Meyering  <meyering@redhat.com>
29193
29194         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
29195         * Makefile (sc_pragma_columns): New syntax-check rule.
29196
29197 2010-10-04  Bruno Haible  <bruno@clisp.org>
29198
29199         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
29200         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
29201         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
29202         Reported by Bruce Korb and Eric Blake.
29203
29204 2010-10-04  Bruno Haible  <bruno@clisp.org>
29205
29206         threadlib: Make option --with-libpth-prefix work.
29207         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
29208         use $LIBPTH, not just -lpth.
29209
29210 2010-10-04  Bruno Haible  <bruno@clisp.org>
29211
29212         Avoid line length limitation from HP NonStop system header files.
29213         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
29214         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
29215         * lib/ctype.in.h: Likewise.
29216         * lib/dirent.in.h: Likewise.
29217         * lib/errno.in.h: Likewise.
29218         * lib/fcntl.in.h: Likewise.
29219         * lib/float.in.h: Likewise.
29220         * lib/getopt.in.h: Likewise.
29221         * lib/iconv.in.h: Likewise.
29222         * lib/inttypes.in.h: Likewise.
29223         * lib/langinfo.in.h: Likewise.
29224         * lib/locale.in.h: Likewise.
29225         * lib/math.in.h: Likewise.
29226         * lib/netdb.in.h: Likewise.
29227         * lib/netinet_in.in.h: Likewise.
29228         * lib/poll.in.h: Likewise.
29229         * lib/pthread.in.h: Likewise.
29230         * lib/pty.in.h: Likewise.
29231         * lib/sched.in.h: Likewise.
29232         * lib/se-selinux.in.h: Likewise.
29233         * lib/search.in.h: Likewise.
29234         * lib/signal.in.h: Likewise.
29235         * lib/spawn.in.h: Likewise.
29236         * lib/stdarg.in.h: Likewise.
29237         * lib/stddef.in.h: Likewise.
29238         * lib/stdint.in.h: Likewise.
29239         * lib/stdio.in.h: Likewise.
29240         * lib/stdlib.in.h: Likewise.
29241         * lib/string.in.h: Likewise.
29242         * lib/strings.in.h: Likewise.
29243         * lib/sys_file.in.h: Likewise.
29244         * lib/sys_ioctl.in.h: Likewise.
29245         * lib/sys_select.in.h: Likewise.
29246         * lib/sys_socket.in.h: Likewise.
29247         * lib/sys_stat.in.h: Likewise.
29248         * lib/sys_time.in.h: Likewise.
29249         * lib/sys_times.in.h: Likewise.
29250         * lib/sys_utsname.in.h: Likewise.
29251         * lib/sys_wait.in.h: Likewise.
29252         * lib/sysexits.in.h: Likewise.
29253         * lib/termios.in.h: Likewise.
29254         * lib/time.in.h: Likewise.
29255         * lib/unistd.in.h: Likewise.
29256         * lib/wchar.in.h: Likewise.
29257         * lib/wctype.in.h: Likewise.
29258         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
29259         * modules/ctype (Makefile.am): Likewise.
29260         * modules/dirent (Makefile.am): Likewise.
29261         * modules/errno (Makefile.am): Likewise.
29262         * modules/fcntl-h (Makefile.am): Likewise.
29263         * modules/float (Makefile.am): Likewise.
29264         * modules/getopt-posix (Makefile.am): Likewise.
29265         * modules/iconv-h (Makefile.am): Likewise.
29266         * modules/inttypes (Makefile.am): Likewise.
29267         * modules/langinfo (Makefile.am): Likewise.
29268         * modules/locale (Makefile.am): Likewise.
29269         * modules/math (Makefile.am): Likewise.
29270         * modules/netdb (Makefile.am): Likewise.
29271         * modules/netinet_in (Makefile.am): Likewise.
29272         * modules/poll-h (Makefile.am): Likewise.
29273         * modules/pthread (Makefile.am): Likewise.
29274         * modules/pty (Makefile.am): Likewise.
29275         * modules/sched (Makefile.am): Likewise.
29276         * modules/search (Makefile.am): Likewise.
29277         * modules/selinux-h (Makefile.am): Likewise.
29278         * modules/signal (Makefile.am): Likewise.
29279         * modules/spawn (Makefile.am): Likewise.
29280         * modules/stdarg (Makefile.am): Likewise.
29281         * modules/stddef (Makefile.am): Likewise.
29282         * modules/stdint (Makefile.am): Likewise.
29283         * modules/stdio (Makefile.am): Likewise.
29284         * modules/stdlib (Makefile.am): Likewise.
29285         * modules/string (Makefile.am): Likewise.
29286         * modules/strings (Makefile.am): Likewise.
29287         * modules/sys_file (Makefile.am): Likewise.
29288         * modules/sys_ioctl (Makefile.am): Likewise.
29289         * modules/sys_select (Makefile.am): Likewise.
29290         * modules/sys_socket (Makefile.am): Likewise.
29291         * modules/sys_stat (Makefile.am): Likewise.
29292         * modules/sys_time (Makefile.am): Likewise.
29293         * modules/sys_times (Makefile.am): Likewise.
29294         * modules/sys_utsname (Makefile.am): Likewise.
29295         * modules/sys_wait (Makefile.am): Likewise.
29296         * modules/sysexits (Makefile.am): Likewise.
29297         * modules/termios (Makefile.am): Likewise.
29298         * modules/time (Makefile.am): Likewise.
29299         * modules/unistd (Makefile.am): Likewise.
29300         * modules/wchar (Makefile.am): Likewise.
29301         * modules/wctype (Makefile.am): Likewise.
29302
29303 2010-10-04  Bruno Haible  <bruno@clisp.org>
29304
29305         read-file tests: Avoid a test failure on NonStop Kernel.
29306         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
29307         a regular file.
29308         Reported by Joachim Schmitz <schmitz@hp.com>.
29309
29310 2010-10-03  Bruno Haible  <bruno@clisp.org>
29311
29312         gnulib-tool: Fixes for --create-testdir with --libtool.
29313         * gnulib-tool (func_get_automake_snippet): Don't augment
29314         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
29315         an executable.
29316         (func_create_testdir): Handle module 'alloca' like func_import.
29317         Reported by Bruce Korb <bruce.korb@gmail.com>.
29318
29319 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
29320
29321         Avoid some lines longer than 80 characters.
29322         * lib/stdint.in.h: Break long comment lines.
29323         * lib/math.in.h: Likewise.
29324         (_GL_NUM_UINT_WORDS): New macro, for readability.
29325         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
29326         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
29327         * lib/stdlib.in.h: Likewise.
29328         * lib/spawn.in.h: Likewise.
29329         * lib/sys_socket.in.h: Update an URL.
29330         * lib/sys_stat.in.h: Break long line.
29331
29332 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
29333
29334         Improve pmccabe2html.
29335         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
29336         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
29337         when the sources change. Remove the line in the HTML about "Used
29338         ranges" (which implied that there might be other unused ranges),
29339         rename "Resume" to "Summary" (easier to understand for more users).
29340         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
29341         styles, and some unnecessary blank lines.
29342
29343 2010-10-03  Bruno Haible  <bruno@clisp.org>
29344             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
29345
29346         acl: Add support for ACLs on NonStop Kernel.
29347         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
29348         Check whether the function aclsort() exists.
29349         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
29350         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
29351         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
29352         (acl_nontrivial [HAVE_ACLSORT]: New function.
29353         (file_has_acl): Implement for NonStop Kernel.
29354         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
29355         (qset_acl): Implement for NonStop Kernel.
29356         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
29357         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
29358         (main): Implement for NonStop Kernel.
29359         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
29360         Kernel. Handle this flavor.
29361         * tests/test-set-mode-acl.sh: Likewise.
29362         * tests/test-copy-acl.sh: Likewise.
29363         * tests/test-copy-file.sh: Likewise.
29364
29365 2010-10-03  Bruno Haible  <bruno@clisp.org>
29366
29367         Info about ACLs on NonStop Kernel.
29368         * doc/acl-resources.txt: Add info about NonStop Kernel.
29369         References by Joachim Schmitz <schmitz@hp.com>.
29370
29371 2010-10-02  Bruno Haible  <bruno@clisp.org>
29372
29373         Define missing EDQUOT on NonStop Kernel.
29374         * lib/errno.in.h (EDQUOT): Assign a value if missing.
29375         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
29376         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
29377         missing.
29378         * doc/posix-headers/errno.texi: Mention the NSK bug.
29379         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
29380         Reported by Joachim Schmitz <schmitz@hp.com>.
29381
29382 2010-10-02  Bruno Haible  <bruno@clisp.org>
29383
29384         Update doc for POSIX:2008.
29385         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
29386         Update URL of POSIX specification.
29387
29388 2010-10-02  Bruno Haible  <bruno@clisp.org>
29389
29390         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
29391         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
29392         from gnulib, not from Automake.
29393
29394 2010-10-02  Bruno Haible  <bruno@clisp.org>
29395
29396         New module 'system-posix'.
29397         * modules/system-posix: New file.
29398         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
29399         module is present.
29400         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
29401         GNULIB_SYSTEM_POSIX.
29402         * modules/stdlib (Depends-on): Remove sys_wait.
29403         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
29404         * doc/posix-functions/system.texi: Mention the new module.
29405         * doc/posix-headers/stdlib.texi: Likewise.
29406         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
29407         define test_sys_wait_macros to a no-op.
29408         Reported by Sam Steingold <sds@gnu.org>.
29409
29410 2010-09-30  Bruno Haible  <bruno@clisp.org>
29411
29412         More renaming from 'getdate' to 'get_date'.
29413         * doc/get_date.texi: Renamed from doc/getdate.texi.
29414         * modules/get_date (Files): Update.
29415         * MODULES.html.sh (Date and time <time.h>): Update.
29416         * DEPENDENCIES: Update.
29417         * gnulib-tool: Update comment.
29418         * m4/bison.m4 (gl_BISON): Likewise.
29419         * m4/get_date.m4 (gl_GET_DATE): Likewise.
29420
29421 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
29422
29423         bootstrap: support ACLOCAL_FLAGS during aclocal
29424         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
29425         can add additional -I dir for third-party .m4 files.
29426
29427 2010-09-30  Eric Blake  <eblake@redhat.com>
29428
29429         bootstrap: use glibtoolize on MacOS
29430         * build-aux/bootstrap (check_versions): Convert libtool into
29431         libtoolize.
29432         (tool search): Move libtool check earlier, and look for
29433         glibtoolize for MacOS.
29434         (gnulib_tool_options): Auto-add --libtool when appropriate.
29435         Reported by Justin Clift.
29436
29437         poll: fix typo that broke test on MacOS
29438         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
29439         Reported by Justin Clift.
29440
29441         getdate: rename to get_date
29442         Note: getdate.h is not renamed, to minimize client impact.
29443         * modules/getdate: Mark obsolete.  Move old contents...
29444         * modules/get_date: ...to new module name.
29445         * modules/getdate-tests: Move...
29446         * modules/get_date-tests: ...here.
29447         * m4/getdate.m4: Move...
29448         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
29449         * lib/getdate.y: Move...
29450         * lib/get_date.y: ...here.
29451         * tests/test-getdate.c: Move...
29452         * tests/test-get_date.c: ...here.
29453         * doc/posix-functions/getdate.texi (getdate): Update name.
29454         * NEWS: Mention the change.
29455
29456 2010-09-29  Bruno Haible  <bruno@clisp.org>
29457
29458         Separate the module 'waitpid' from the module 'sys_wait'.
29459         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
29460         present.
29461         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
29462         gl_MODULE_INDICATOR_FOR_TESTS.
29463         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
29464         * modules/sys_wait (Depends-on): Remove waitpid.
29465         (Makefile.am): Substitute GNULIB_WAITPID.
29466         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
29467         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
29468         signature only if the 'waitpid' module is present.
29469         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
29470         * NEWS: Mention the change.
29471         * modules/grantpt (Depends-on): Add waitpid.
29472         * modules/wait-process (Depends-on): Likewise.
29473
29474 2010-09-29  Bruno Haible  <bruno@clisp.org>
29475
29476         More tests for module 'sys_wait'.
29477         * modules/sys_wait-c++-tests: New file.
29478         * tests/test-sys_wait-c++.cc: New file.
29479         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
29480         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
29481
29482 2010-09-29  Bruno Haible  <bruno@clisp.org>
29483
29484         New module 'waitpid'.
29485         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
29486         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
29487         Don't include <process.h>.
29488         (waitpid): Declare only, using modern idiom.
29489         * m4/waitpid.m4: New file.
29490         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
29491         * modules/waitpid: New file.
29492         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
29493         (Makefile.am): Update.
29494         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
29495
29496 2010-09-28  Bruno Haible  <bruno@clisp.org>
29497
29498         poll: Assume ANSI C.
29499         * lib/poll.c (poll): Use an ANSI C declaration.
29500
29501 2010-09-28  Bruno Haible  <bruno@clisp.org>
29502
29503         poll-h: Create poll.h on all platforms.
29504         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
29505         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
29506         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
29507         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
29508         (gl_REPLACE_POLL_H): Don't set POLL_H.
29509         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
29510         * modules/poll-h (Depends-on): Add include_next.
29511         (Makefile.am): Create poll.h unconditionally. Substitute also
29512         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
29513
29514 2010-09-28  Bruno Haible  <bruno@clisp.org>
29515
29516         Tests for module 'poll-h'.
29517         * modules/poll-h-c++-tests: New file.
29518         * tests/test-poll-h-c++.cc: New file.
29519
29520         Tests for module 'poll-h'.
29521         * modules/poll-h-tests: New file.
29522         * tests/test-poll-h.c: New file.
29523
29524 2010-09-28  Bruno Haible  <bruno@clisp.org>
29525
29526         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
29527         * modules/poll-h (Depends-on): Add 'extensions'.
29528
29529 2010-09-28  Bruno Haible  <bruno@clisp.org>
29530
29531         New module 'poll-h'.
29532         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
29533         (poll): Use modern idiom.
29534         * modules/poll-h: New file.
29535         * modules/poll (Files): Remove lib/poll.in.h.
29536         (Depends-on): Add poll-h.
29537         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
29538         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
29539         * m4/poll_h.m4: New file.
29540         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
29541         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
29542         and invoke gl_REPLACE_POLL_H.
29543         * lib/poll.c: Use common idiom.
29544         * tests/test-poll.c: Likewise.
29545         * doc/posix-headers/poll.texi: Mention the poll-h module.
29546         Suggested by Eric Blake.
29547
29548 2010-09-26  Bruno Haible  <bruno@clisp.org>
29549
29550         sys_wait: Implement WSTOPSIG.
29551         * lib/sys_wait.in.h (WSTOPSIG): New macro.
29552         Reported by Simon Josefsson.
29553
29554 2010-09-26  Simon Josefsson  <simon@josefsson.org>
29555
29556         stdlib, sys_wait: Avoid compilation error on mingw.
29557         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
29558
29559 2010-09-26  Bruno Haible  <bruno@clisp.org>
29560
29561         stdlib tests: Avoid code duplication.
29562         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
29563         * modules/sys_wait-tests (Files): Likewise.
29564         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
29565         * tests/test-stdlib.c: Include test-sys_wait.h.
29566         (main): Invoke test_sys_wait_macros.
29567         * tests/test-sys_wait.c: Include test-sys_wait.h.
29568         (main): Invoke test_sys_wait_macros.
29569
29570 2010-09-25  Simon Josefsson  <simon@josefsson.org>
29571
29572         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
29573         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
29574         sure Windows sockets are working before calling getaddrinfo.
29575         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
29576         * doc/gnulib.texi (Windows sockets): Fix typo.
29577
29578 2010-09-25  Bruno Haible  <bruno@clisp.org>
29579
29580         Tests for module 'regex-quote'.
29581         * modules/regex-quote-tests: New file.
29582         * tests/test-regex-quote.c: New file.
29583
29584         New module 'regex-quote'.
29585         * lib/regex-quote.h: New file.
29586         * lib/regex-quote.c: New file.
29587         * modules/regex-quote: New file.
29588         Suggested by Reuben Thomas <rrt@sc3d.org>.
29589
29590 2010-09-24  Bruno Haible  <bruno@clisp.org>
29591
29592         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
29593         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
29594
29595 2010-09-23  Bruno Haible  <bruno@clisp.org>
29596
29597         setenv: Relax license.
29598         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
29599         Blake.
29600         Requested by Eric Blake.
29601
29602 2010-09-22  Bruno Haible  <bruno@clisp.org>
29603
29604         termios: Relax license.
29605         * modules/termios (License): Change to LGPLv2+.
29606         Requested by Eric Blake.
29607
29608 2010-09-22  Bruno Haible  <bruno@clisp.org>
29609
29610         threadlib: Allow the package to change the default to 'no'.
29611         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
29612         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
29613         Reported by Paul Eggert.
29614
29615 2010-09-22  Pádraig Brady  <P@draigbrady.com>
29616             Bruno Haible  <bruno@clisp.org>
29617
29618         Fix endless loop in mbmemcasecoll.
29619         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
29620         byte.
29621         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
29622
29623 2010-09-22  Bruno Haible  <bruno@clisp.org>
29624
29625         Tests for module 'memcoll'.
29626         * modules/memcoll-tests: New file.
29627         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
29628
29629         memcoll, xmemcoll: Clarify size vs. length.
29630         * modules/memcoll.c (memcoll0): Clarify specification.
29631         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
29632         passed to collate_error.
29633
29634 2010-09-22  Bruno Haible  <bruno@clisp.org>
29635
29636         Tests for module 'memcasecmp'.
29637         * modules/memcasecmp-tests: New file.
29638         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
29639
29640 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
29641
29642         * lib/pthread.in.h: Add split double-inclusion guard, and include
29643         system <pthread.h> if there is one.  Use @@-style as in other
29644         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
29645         pthread.h doesn't.
29646         (pthread_mutexattr_destroy, pthread_mutexattr_init):
29647         (pthread_mutexattr_settype, pthread_mutex_trylock):
29648         New static inline functions, if there's no system <pthread.h>.
29649         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
29650         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
29651         Approximate with mutexes if the system lacks spinlocks, as in
29652         MacOS.
29653         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
29654         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
29655         @@-style.  Check for spinlocks separately.
29656         (gl_PTHREAD_DEFAULTS): New macro.
29657         * modules/pthread: Redo to use a more typical style for in.h files.
29658
29659 2010-09-21  Eric Blake  <eblake@redhat.com>
29660
29661         net_if: enhance tests
29662         * tests/test-net_if.c (main): Move signature checks earlier.
29663         Print failures to stderr.
29664         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
29665         Document the bug that we do not yet fix.
29666
29667 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
29668
29669         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
29670         about gnulib, not GSS.
29671
29672 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
29673
29674         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
29675         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
29676         for Emacs.
29677         * build-aux/pmccabe2html: Make Makefile.am example code more
29678         cut-and-paste friendly.
29679
29680 2010-09-21  Simon Josefsson  <simon@josefsson.org>
29681
29682         * tests/test-net_if.c: New file.
29683         * modules/net_if-tests: New file.
29684
29685 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
29686
29687         pthread: add pthread_spin_destroy
29688         * lib/pthread.in.h (pthread_spin_destroy): New function.
29689
29690 2010-09-19  Bruno Haible  <bruno@clisp.org>
29691
29692         gnulib-tool: Fix --help output.
29693         * gnulib-tool (func_usage): Fix help message.
29694         Reported by Reuben Thomas <rrt@sc3d.org>.
29695
29696 2010-09-18  Jim Meyering  <meyering@redhat.com>
29697
29698         maint.mk: avoid unexpanded \n in two diagnostics
29699         * top/maint.mk (sc_prohibit_always_true_header_tests):
29700         Don't use a literal \n in a halt=... assignment.  It would not be
29701         expanded, and the two \n bytes would appear in the diagnostic output
29702         rather than the desired newline.  Use halt=$$(printf ... instead.
29703         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
29704
29705 2010-09-18  Bruno Haible  <bruno@clisp.org>
29706
29707         netinet_in: Doc tweak.
29708         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
29709         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
29710
29711 2010-09-18  Jim Meyering  <meyering@redhat.com>
29712
29713         init.sh: correct an outdated comment
29714         * tests/init.sh (create_exe_shims_):  s/function/alias/
29715
29716         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
29717         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
29718         a file named "*.exe" is removed between the glob expansion and the
29719         processing of that oddly named file.
29720
29721 2010-09-17  Eric Blake  <eblake@redhat.com>
29722
29723         mirbsd: add some more support
29724         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
29725         in BSD family.
29726         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
29727         devices as OpenBSD.
29728         * m4/host-os.m4 (mirbsd): Add MirBSD.
29729
29730         tests: fix unportable assumption on sys/wait.h
29731         * tests/test-sys_wait.c (main): Relax test.
29732         * tests/test-stdlib.c (main): Likewise.
29733
29734         init.sh: accommodate directory with no .exes
29735         * tests/init.sh: Accomodate directory containing only scripts.
29736
29737         tests: avoid compiler warning
29738         * tests/test-stdlib.c (main): Use the variable.
29739
29740         fdutimens, fdutimensat: update signature, again
29741         * lib/utimens.h (gl_futimens): Delete, and move signature...
29742         (fdutimens): ...here.
29743         (fdutimensat): Rearrange signature.
29744         (lutimensat): Rename variable for clarity.
29745         * lib/fdutimensat.c (fdutimensat): Update signature.
29746         * lib/utimens.c (fdutimens): Likewise.
29747         (gl_futimens): Delete.
29748         (utimens, lutimens): Update callers.
29749         * lib/futimens.c (futimens): Likewise.
29750         * tests/test-fdutimensat.c: Likewise.
29751         * tests/test-utimens.c: Likewise.
29752         * tests/test-futimens.h: Update comment.
29753         * NEWS: Mention this.
29754         Suggested by Paul Eggert.
29755
29756 2010-09-17  Bruno Haible  <bruno@clisp.org>
29757
29758         Take over the maintenance of some older macros from Autoconf.
29759         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
29760         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
29761         GNU Autoconf.
29762         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
29763         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
29764
29765 2010-09-17  Eric Blake  <eblake@redhat.com>
29766
29767         fdutimensat: drop atflag validation
29768         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
29769         with valid fd, to close a race scenario where futimens is
29770         unsupported and FILE was replaced by a symlink.
29771         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
29772         accordingly.
29773         Suggested by Paul Eggert.
29774
29775 2010-09-16  Bruno Haible  <bruno@clisp.org>
29776
29777         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
29778         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
29779
29780 2010-09-16  Bruno Haible  <bruno@clisp.org>
29781
29782         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
29783         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
29784         login_tty exists.
29785         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
29786
29787 2010-09-16  Bruno Haible  <bruno@clisp.org>
29788
29789         login_tty: Make the replacement code work on BSD systems.
29790         * lib/login_tty.c: Include <sys/ioctl.h>.
29791         (login_tty): Use ioctl TIOCSCTTY when available.
29792         * modules/login_tty (Depends-on): Add sys_ioctl.
29793         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
29794
29795 2010-09-16  Bruno Haible  <bruno@clisp.org>
29796
29797         login_tty: Stricter unit test.
29798         * modules/login_tty-tests (Depends-on): Add tcgetsid.
29799         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
29800         and tcgetsid() after login_tty.
29801         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
29802
29803 2010-09-16  Bruno Haible  <bruno@clisp.org>
29804
29805         New module 'tcgetsid'.
29806         * lib/tcgetsid.c: New file.
29807         * m4/tcgetsid.m4: New file.
29808         * modules/tcgetsid: New file.
29809         * modules/termios (Depends-on): Add c++defs, warn-on-use.
29810         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
29811         GNULIB_TCGETSID, HAVE_TCGETSID.
29812         * lib/termios.in.h: Include <sys/types.h>.
29813         (tcgetsid): New declaration.
29814         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
29815         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
29816         * doc/posix-functions/tcgetsid.texi: Mention the new module.
29817         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
29818
29819 2010-09-16  Bruno Haible  <bruno@clisp.org>
29820
29821         Tests for module 'termios'.
29822         * modules/termios-c++-tests: New file.
29823         * modules/termios-tests: New file.
29824         * tests/test-termios-c++.cc: New file.
29825         * tests/test-termios.c: New file.
29826
29827         New module 'termios'.
29828         * modules/termios: New file.
29829         * lib/termios.in.h: New file.
29830         * m4/termios_h.m4: New file.
29831         * doc/posix-headers/termios.texi: Mention the new module.
29832
29833 2010-09-16  Eric Blake  <eblake@redhat.com>
29834
29835         fdutimensat: add an atflag parameter
29836         * lib/fdutimensat.c (fdutimensat): Add new parameter.
29837         * lib/utimens.h (fdutimensat): Update prototype.
29838         * tests/test-fdutimensat.c: Adjust test to match.
29839         * NEWS: Document the change.
29840         Suggested by Paul Eggert.
29841
29842 2010-09-16  Bruno Haible  <bruno@clisp.org>
29843
29844         Fix typos in comments.
29845         * lib/striconveh.h: Fix typo in comment.
29846         * lib/login_tty.c (login_tty): Likewise.
29847
29848 2010-09-15  Bruno Haible  <bruno@clisp.org>
29849
29850         stdlib: clarify MirBSD WEXITSTATUS bug
29851         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
29852         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
29853
29854 2010-09-15  Eric Blake  <eblake@redhat.com>
29855
29856         stdlib: work around MirBSD WEXITSTATUS bug
29857         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
29858         * modules/stdlib (Depends-on): Add sys_wait.
29859         * tests/test-sys_wait.c (main): Enhance test.
29860         * tests/test-stdlib.c (main): Likewise.
29861         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
29862
29863         docs: mention MacOS issue with WEXITSTATUS(constant)
29864         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
29865         issue.
29866         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
29867
29868         strnlen: add tests
29869         * modules/strnlen-tests: New file.
29870         * tests/test-strnlen.c: Likewise.
29871
29872 2010-09-14  Bruno Haible  <bruno@clisp.org>
29873
29874         unistr/base: Avoid link errors when module 'libunistring' is also used.
29875         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
29876         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
29877         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
29878         Declare also when HAVE_LIBUNISTRING is set.
29879         Reported by Pádraig Brady <P@draigbrady.com>.
29880
29881 2010-09-14  Eric Blake  <eblake@redhat.com>
29882
29883         test-rawmemchr: make more robust
29884         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
29885         (Depends-on, configure.ac): Add needed prerequisites to use it.
29886         * modules/memchr-tests (Files, Depends-on, configure.ac):
29887         Likewise, to avoid implicit reliance on memchr module prereqs.
29888         * tests/test-memchr.c (main): Ensure proper masking.
29889         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
29890         reads.
29891
29892         memchr: detect glibc Alpha bug
29893         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
29894         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
29895         Alpha.
29896         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
29897         * tests/test-memchr.c (main): Enhance test.
29898         Reported by Nelson H. F. Beebe.
29899
29900 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
29901
29902         fts, getcwd, glob: audit for dirfd returning -1
29903         * lib/fts.c (opendir): Remove #define; no longer used.
29904         (opendirat): New arg PDIR_FD.  All callers changed.
29905         (fts_build, _opendir2): Use new opendirat to avoid the need for
29906         dirfd, or for checking whether dirfd returns a negative value.
29907         Don't use opendir; always use openat followed by fdopendir.
29908         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
29909         it.
29910         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
29911         returns -1 here.
29912         * modules/fts (Depends-on): Remove dirfd.
29913         * modules/getcwd (Depends-on): Likewise.
29914
29915 2010-09-13  Eric Blake  <eblake@redhat.com>
29916
29917         float: fix broken MirBSD header
29918         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
29919         * doc/posix-headers/float.texi (float.h): Document it.
29920
29921 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
29922
29923         fts: use O_NOFOLLOW to avoid race condition when opening a directory
29924         * lib/fts.c (opendirat): New arg extra_flags.
29925         (__opendir2): Use it to avoid following symlinks when opening
29926         a directory, if symlinks are not supposed to be followed.  See
29927         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
29928
29929         fdopendir: preserve argument fd before returning
29930         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
29931         (fdopendir_with_dup, fd_clone_opendir): New static functions.
29932         (fdopendir): Use them, arranging for FD to be open to the same
29933         directory that it was when it started.  (It might be temporarily
29934         closed while fdopendir is running, so this not thread- or
29935         signal-safe.)  Be careful to do the right thing even when file
29936         descriptors are scarce and dup fails with errno == EMFILE.  See
29937         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
29938
29939 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
29940
29941         regex: Pass the system regex if its only problem is 32-bit regoff_t.
29942         * NEWS: Document change.
29943         * m4/regex.m4: Disable test for regoff_t size.
29944
29945 2010-09-13  Jim Meyering  <meyering@redhat.com>
29946
29947         fts: don't operate on an invalid file descriptor after failed dup
29948         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
29949         negative file descriptor.
29950
29951 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
29952
29953         savedir: add streamsavedir, deprecate fdsavedir
29954         * NEWS: Mention deprecation of fdsavedir.
29955         * lib/savedir.c (streamsavedir): New extern function, whose name
29956         ends in "savedir" to be consistent with the others.  This differs
29957         from savedirstream in that it doesn't close its argument.  The
29958         next version of GNU tar will use this instead of fdsavedir, to
29959         avoid some race conditions and conserve file descriptors.
29960         (savedirstream): Reimplement as a wrapper around streamsavedir.
29961         (fdsavedir): Add a comment deprecating this function.  As far as
29962         I know, only GNU tar used it, and GNU tar doesn't need it any more.
29963         * lib/savedir.h (streamsavedir): New decl.
29964         (fdsavedir): Add a comment deprecating this.
29965
29966 2010-09-10  Bruno Haible  <bruno@clisp.org>
29967
29968         langinfo: Fix last commit.
29969         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
29970         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
29971         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
29972
29973 2010-09-10  Bruno Haible  <bruno@clisp.org>
29974
29975         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
29976         * lib/progreloc.c (O_EXEC): Define fallback.
29977
29978 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
29979
29980         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
29981         * NEWS: Document recent changes to fcntl-h.
29982         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
29983         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
29984         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
29985         Similarly for O_SEARCH; this last was already true, but not documented.
29986         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
29987         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
29988         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
29989         Likewise.
29990         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
29991         is zero, not whether it is defined.
29992         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
29993         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
29994         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
29995
29996 2010-09-10  Bruno Haible  <bruno@clisp.org>
29997
29998         langinfo, nl_langinfo: Fix for IRIX 5.3.
29999         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
30000         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
30001         HAVE_LANGINFO_YESEXPR.
30002         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
30003         HAVE_LANGINFO_YESEXPR.
30004         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
30005         HAVE_LANGINFO_T_FMT_AMPM is 0.
30006         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
30007         HAVE_LANGINFO_YESEXPR is 0.
30008         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
30009         NOEXPR.
30010         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
30011         * doc/posix-functions/nl_langinfo.texi: Likewise.
30012         Reported by Eric Blake.
30013
30014 2010-09-10  Bruno Haible  <bruno@clisp.org>
30015
30016         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
30017         * doc/glibc-functions/login_tty.texi: Mention the include file problem
30018         on FreeBSD 8.0 and OpenBSD 4.6.
30019         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
30020         * m4/pty_h.m4 (gl_PTY_H): Likewise.
30021         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
30022         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
30023         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
30024         ac_includes_default.
30025         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
30026
30027 2010-09-09  Eric Blake  <eblake@redhat.com>
30028
30029         strsignal: work around NetBSD bug
30030         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
30031         * lib/string.in.h (includes): Likewise.
30032         * doc/posix-functions/strsignal.texi (strsignal): Document the
30033         bug.
30034         Reported by Nelson H. F. Beebe.
30035
30036         gnulib-tool: work with NetBSD /bin/sh
30037         * gnulib-tool (func_cache_var, func_cache_lookup_module)
30038         (func_get_description, func_get_comment, func_get_status)
30039         (func_get_notice, func_get_applicability, func_get_filelist)
30040         (func_get_dependencies, func_get_autoconf_early_snippet)
30041         (func_get_autoconf_snippet, func_get_automake_snippet)
30042         (func_get_include_directive, func_get_link_directive)
30043         (func_get_license, func_get_maintainer, func_import): Avoid
30044         shell syntax errors from parsing syntax extensions.
30045
30046 2010-09-09  Bruno Haible  <bruno@clisp.org>
30047
30048         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
30049         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
30050         a reliable way to determine whether the 'alias' command works.
30051
30052 2010-09-08  Jim Meyering  <meyering@redhat.com>
30053
30054         init.sh: penalize a set-x-impaired shell; don't disqualify it
30055         * tests/init.sh: Too many shells corrupt application stderr when
30056         you set -x, so we can't afford to disqualify them, since at least
30057         on Irix-6.5, that would disqualify all bourne shells.
30058         Instead, use a two-pass approach.
30059         On the first pass, try to find a shell that meets the stricter
30060         condition that set -x does not corrupt stderr.
30061         If no shell meets the stricter condition, retest each candidate
30062         shell, but without that extra condition.  Finally, when
30063         VERBOSE=yes is requested and set -x might cause trouble, simply
30064         issue a warning and refrain from enabling debug output.
30065
30066 2010-09-08  Eric Blake  <eblake@redhat.com>
30067
30068         unsetenv: fix OpenBSD bug
30069         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
30070         * doc/posix-functions/unsetenv.texi (unsetenv): Update
30071         documentation.
30072         Reported by Jim Meyering.
30073
30074         strtod: work around IRIX 6.5 bug
30075         * lib/strtod.c (strtod): Reparse number on shorter string if
30076         exponent parse was invalid.
30077         * tests/test-strtod.c (main): Add check for "0x1p 2".
30078         Reported by Tom G. Christensen.
30079
30080         getopt: optimize previous patch
30081         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
30082         empty variable.  Speed up awk script.
30083         Reported by Paolo Bonzini.
30084
30085 2010-09-08  Jim Meyering  <meyering@redhat.com>
30086
30087         test.sh: disqualify shells for which set -x corrupts stderr
30088         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
30089         and OpenBSD 4.7.  They make it so with "set -x", environment settings
30090         appear in stderr output.  For example, this command:
30091             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
30092         prints "P=1" on those two systems:
30093
30094 2010-09-08  Bruno Haible  <bruno@clisp.org>
30095
30096         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
30097         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
30098         commands, because some shells ignore redirections when there is an
30099         error in the command lookup.
30100         Reported by Eric Blake.
30101
30102 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
30103
30104         * lib/regex.h: Fix a mention of `regex_compile' (should be
30105         `re_compile_pattern').
30106         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
30107         (re_set_registers): Correct name of parameter in comment.
30108
30109         * doc/regex.texi: Add documentation for missing syntax flags.
30110         Remove commented-out documentation of defunct syntax option
30111         RE_NO_EMPTY_ALTS.
30112         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
30113         Add documentation of re_set_registers.
30114         Document trick to re-use a pattern buffer by setting fastmap manually.
30115         Update documentation of struct re_pattern_buffer per public members.
30116         Uncomment documentation of equivalence class operators and
30117         collating symbol operators, since they are now implemented,
30118         Explain leftmost-longest matching in relation to alternatives.
30119         Tidy documentation of substring matching.
30120         Remove POSIX documentation, which is done better in
30121         glibc, and refer the reader there. Keep BSD API documentation, as
30122         that is not readily available elsewhere.
30123
30124 2010-09-07  Eric Blake  <eblake@redhat.com>
30125
30126         getopt: handle POSIXLY_CORRECT set but not exported
30127         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
30128         export state of POSIXLY_CORRECT, due to bash set -o posix.
30129         Reported by Dustin J. Mitchell.
30130
30131 2010-09-05  Bruno Haible  <bruno@clisp.org>
30132
30133         gnulib-tool: Highlight the changed options.
30134         * gnulib-tool (func_usage): Display the --import, --add-import,
30135         --remove-import explanations in bold font.
30136
30137 2010-09-06  Karl Berry  <karl@gnu.org>
30138
30139         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
30140
30141 2010-09-05  Bruno Haible  <bruno@clisp.org>
30142
30143         uniwidth/width: Update comment.
30144         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
30145         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
30146
30147 2010-09-05  Bruno Haible  <bruno@clisp.org>
30148
30149         isinf, isnan: Relax license.
30150         * modules/isinf (License): Change from GPL to LGPL, with consent from
30151         Ben Pfaff.
30152         * modules/isnan (License): Likewise.
30153         Requested by Ludovic Courtès.
30154
30155 2010-09-04  Bruno Haible  <bruno@clisp.org>
30156
30157         gnulib-tool: Help migration from --import to --add-import or --update.
30158         * gnulib-tool: Emit a verbose error message when --import is used
30159         without any module name.
30160
30161 2010-09-04  Bruno Haible  <bruno@clisp.org>
30162
30163         Update doc about gnulib-tool.
30164         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
30165         'gnulib-tool --update' in more detail.
30166         Reported by Eric Blake.
30167
30168 2010-09-04  Bruno Haible  <bruno@clisp.org>
30169
30170         gnulib-tool: Change --import. New options --add/remove-import.
30171         * gnulib-tool: New options --add-import, --remove-import.
30172         (func_usage): Document them.
30173         (have_associative): Define always.
30174         (func_import): In import mode, don't merge the specified settings with
30175         the cached settings. Implement remove-import mode.
30176         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
30177         Explain when to use them versus --import.
30178         (Simple update): Use --add-import instead of --import.
30179         * NEWS: Mention the change.
30180
30181 2010-09-04  Bruno Haible  <bruno@clisp.org>
30182
30183         * doc/gnulib-tool.texi (Initial import): Update paragraph about
30184         separate gnulib.mk.
30185
30186 2010-09-04  Bruno Haible  <bruno@clisp.org>
30187
30188         gnulib-tool: Don't talk about CVS any more.
30189         * gnulib-tool (func_usage, func_import): Write "version control"
30190         instead of CVS.
30191
30192 2010-09-04  Jim Meyering  <meyering@redhat.com>
30193
30194         maint.mk: avoid obscure sc_copyright_check failure in coreutils
30195         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
30196         false positives (whose names may be ill-chosen) when searching
30197         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
30198         would cause a false-positive.
30199
30200         avoid coreutils "make distcheck" failure
30201         Coreutils tests with an absolute build directory name that contains
30202         a space.  Not quoting this directory name caused a failure.
30203         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
30204         * tests/test-vc-list-files-cvs.sh: Likewise.
30205
30206 2010-09-04  Bruno Haible  <bruno@clisp.org>
30207
30208         gnulib-tool: Avoid error when run in a package without Makefile.am.
30209         * gnulib-tool: When collecting the m4dirs in a package that does not
30210         have a Makefile.am, eliminate those directories that contain no
30211         gnulib-cache.m4. Fix expression that counts these directories.
30212
30213 2010-09-04  Bruno Haible  <bruno@clisp.org>
30214
30215         update-copyright test: Improve output when perl is missing or too old.
30216         * tests/test-update-copyright.sh: Move test of Perl version down after
30217         the test whether Perl exists. Provide an explanation relating Perl's
30218         error message to Automake's SKIP: message.
30219
30220 2010-09-04  Bruno Haible  <bruno@clisp.org>
30221
30222         Don't augment PATH in TESTS_ENVIRONMENT.
30223         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
30224         set abs_aux_dir instead of augmenting PATH.
30225         * modules/vc-list-files-tests (Makefile.am): Likewise.
30226         * tests/test-update-copyright.sh: Augment PATH here.
30227         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
30228         path_prepend_.
30229         * tests/test-vc-list-files-git.sh: Likewise.
30230
30231 2010-09-04  Jim Meyering  <meyering@redhat.com>
30232
30233         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
30234         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
30235
30236 2010-09-04  Bruno Haible  <bruno@clisp.org>
30237
30238         strdup: Fix compilation error in C++ mode.
30239         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
30240         the macro.
30241
30242 2010-09-04  Bruno Haible  <bruno@clisp.org>
30243
30244         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
30245         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
30246         macro into a function.
30247         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
30248
30249 2010-09-04  Bruno Haible  <bruno@clisp.org>
30250
30251         Set PATH_SEPARATOR the same way autoconf does.
30252         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
30253         the value of PATH_SEPARATOR the same way autoconf-generated configure
30254         scripts do.
30255         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
30256         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
30257
30258 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
30259
30260         Set PATH_SEPARATOR the same way autoconf does.
30261         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
30262         the same way autoconf-generated configure scripts do.
30263         * posix-modules: Likewise.
30264
30265 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
30266
30267         hash: fix safe_hasher const typo
30268         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
30269         const; otherwise, there is a type error later.
30270
30271 2010-09-02  Jim Meyering  <meyering@redhat.com>
30272
30273         test-update-copyright.sh: require perl 5.8.0
30274         * tests/test-update-copyright.sh: Require 5.8.0,
30275         which Tom G. Christensen has confirmed is adequate,
30276         while 5.6.1 is not.
30277
30278 2010-09-02  Eric Blake  <eblake@redhat.com>
30279
30280         tests: init.sh improvements for re-exec'ing with zsh
30281         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
30282         -vx through shell re-exec.
30283         Reported by Tom G. Christensen.
30284
30285         wctype: fix typo in previous commit
30286         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
30287         Reported by Ludovic Courtès.
30288
30289 2010-09-02  Jim Meyering  <meyering@redhat.com>
30290
30291         test-update-copyright.sh: skip test if Perl is too old
30292         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
30293         Reported by Tom G. Christensen.
30294
30295 2010-09-02  Bruno Haible  <bruno@clisp.org>
30296
30297         wctype: Avoid compilation error on IRIX 6.5.30.
30298         * lib/wctype.in.h (iswblank): Declare with a replacement if
30299         REPLACE_ISWBLANK is set.
30300         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
30301         declared. Set REPLACE_ISWBLANK.
30302         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
30303         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
30304         * doc/posix-headers/wctype.texi: Likewise.
30305         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
30306
30307 2010-09-01  Bruno Haible  <bruno@clisp.org>
30308
30309         New module 'socketlib'.
30310         * modules/socketlib: New file.
30311         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
30312         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
30313         * modules/sockets (Depends-on): Add socketlib.
30314         Suggested by Sam Steingold <sds@gnu.org>.
30315
30316 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
30317
30318         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
30319
30320         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
30321         when one needs search access to a directory but not read access.
30322         On systems where it is available, it works in some cases where
30323         O_RDONLY does not, namely on directories that are searchable but
30324         not readable, and which need only to be searchable.  If O_SEARCH
30325         is not available, fall back to the traditional method of using
30326         O_RDONLY.
30327
30328         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
30329         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
30330         when opening a directory that needs only to be searchable.
30331         * lib/chdir-safer.c (chdir_no_follow): Likewise.
30332         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
30333         * lib/openat-proc.c (openat_proc_name): Likewise.
30334         * lib/openat.c (openat_needs_fchdir): Likewise.
30335         * lib/save-cwd.c (save_cwd): Likewise.
30336         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
30337
30338 2010-08-28  Bruno Haible  <bruno@clisp.org>
30339
30340         New module 'host-cpu-c-abi'.
30341         * modules/host-cpu-c-abi: New file.
30342         * m4/host-cpu-c-abi.m4: New file, based on part of
30343         clisp/src/m4/general.m4.
30344         Requested by Sam Steingold <sds@gnu.org>.
30345
30346 2010-08-31  Eric Blake  <eblake@redhat.com>
30347         and Jim Meyering  <meyering@redhat.com>
30348
30349         hash: factor, and guard against misbehaving hasher function
30350         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
30351         of table->hasher's return value.  Also protect against a hash value
30352         so large that adding it to table->bucket results in a NULL pointer.
30353         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
30354         Use it in place of open-coded check-and-abort.
30355
30356 2010-08-30  Bruno Haible  <bruno@clisp.org>
30357
30358         hash: silence spurious clang warning
30359         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
30360         Reported by Eric Blake.
30361
30362 2010-08-30  Eric Blake  <eblake@redhat.com>
30363
30364         strstr, memmem, strcasestr: avoid leaked shell message
30365         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
30366         FreeBSD.
30367         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
30368         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
30369
30370         tests: silence clang warning
30371         * tests/test-malloca.c (do_allocation): Avoid dead store.
30372
30373 2010-08-29  Bruno Haible  <bruno@clisp.org>
30374
30375         gettext: Fix recent mistake.
30376         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
30377
30378 2010-08-29  Bruno Haible  <bruno@clisp.org>
30379
30380         selinux-h: Offer a --without-selinux option.
30381         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
30382         --without-selinux was specified, skip all tests and define
30383         HAVE_SELINUX_SELINUX_H to 0.
30384         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
30385         set LIB_SELINUX to empty.
30386         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
30387         gl_LIBSELINUX. If --without-selinux was specified, replace
30388         selinux/context.h.
30389         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
30390
30391 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
30392             Bruno Haible  <bruno@clisp.org>
30393
30394         Make the module 'realloc-gnu' work again on AIX and OSF/1.
30395         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
30396         of HAVE_REALLOC.
30397         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
30398         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
30399         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
30400         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
30401
30402 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
30403             Bruno Haible  <bruno@clisp.org>
30404
30405         Make the module 'calloc-gnu' work again on AIX and OSF/1.
30406         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
30407         HAVE_CALLOC.
30408         * lib/xmalloc.c: Update accordingly.
30409         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
30410         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
30411         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
30412
30413 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
30414             Bruno Haible  <bruno@clisp.org>
30415
30416         Make the module 'malloc-gnu' work again on AIX and OSF/1.
30417         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
30418         HAVE_MALLOC.
30419         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
30420         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
30421         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
30422
30423 2010-08-29  Bruno Haible  <bruno@clisp.org>
30424
30425         Update modules list.
30426         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
30427         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
30428         (String handling <string.h>): Add astrxfrm.
30429         (File system functions): Add readlinkat.
30430
30431 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30432
30433         Tests for module 'realloc-gnu'.
30434         * modules/realloc-gnu-tests: New file.
30435         * tests/test-realloc-gnu.c: New file.
30436
30437         Tests for module 'calloc-gnu'.
30438         * modules/calloc-gnu-tests: New file.
30439         * tests/test-calloc-gnu.c: New file.
30440
30441         Tests for module 'malloc-gnu'.
30442         * modules/malloc-gnu-tests: New file.
30443         * tests/test-malloc-gnu.c: New file.
30444
30445 2010-08-28  Bruno Haible  <bruno@clisp.org>
30446
30447         Rename module 'realloc' -> 'realloc-gnu'.
30448         * modules/realloc-gnu: New file, copied from modules/realloc.
30449         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
30450         obsolete.
30451         * modules/mgetgroups (Depends-on): Update.
30452         * doc/posix-functions/realloc.texi: Update.
30453         * NEWS: Mention the change.
30454
30455         Rename module 'calloc' -> 'calloc-gnu'.
30456         * modules/calloc-gnu: New file, copied from modules/calloc.
30457         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
30458         obsolete.
30459         * doc/posix-functions/calloc.texi: Update.
30460         * NEWS: Mention the change.
30461
30462         Rename module 'malloc' -> 'malloc-gnu'.
30463         * modules/malloc-gnu: New file, copied from modules/malloc.
30464         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
30465         obsolete.
30466         * modules/argp (Depends-on): Update.
30467         * modules/regex (Depends-on): Update.
30468         * doc/posix-functions/malloc.texi: Update.
30469         * NEWS: Mention the change.
30470
30471 2010-08-28  Eric Blake  <eblake@redhat.com>
30472
30473         pread, pwrite: add missing dependency
30474         * modules/pread (Depends-on): Add extensions.
30475         * modules/pwrite (Depends-on): Likewise.
30476
30477 2010-08-28  Bruno Haible  <bruno@clisp.org>
30478
30479         unistr/u*-strchr: Fix tests dependencies.
30480         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
30481         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
30482         Reported by Ian Beckwith <ianb@erislabs.net>.
30483
30484 2010-08-28  Bruno Haible  <bruno@clisp.org>
30485
30486         read-file: Don't occupy too much unused memory.
30487         * lib/read-file.c (fread_file): Shrink the buffer at the end.
30488
30489 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
30490             Eric Blake  <eblake@redhat.com>
30491             Bruno Haible  <bruno@clisp.org>
30492
30493         read-file: Avoid memory reallocations with regular files.
30494         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
30495         (fread_file): With regular files, use the remaining length as the
30496         initial buffer size.  Check against overflow.
30497         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
30498         sys_stat.
30499
30500 2010-08-28  Bruno Haible  <bruno@clisp.org>
30501
30502         ftello: Relax license.
30503         * modules/ftello (License): Relax to LGPLv2+.
30504         Reported by Eric Blake.
30505
30506 2010-08-28  Bruno Haible  <bruno@clisp.org>
30507
30508         Avoid relocwrapper link errors due to gnulib replacement functions.
30509         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
30510         function.
30511         Reported by Ben Pfaff <blp@cs.stanford.edu>.
30512
30513 2010-08-28  Bruno Haible  <bruno@clisp.org>
30514
30515         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
30516         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
30517         defined.
30518         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
30519         Suggested by Eric Blake.
30520
30521 2010-08-28  Bruno Haible  <bruno@clisp.org>
30522
30523         sys_socket, netdb: Ensure socklen_t gets defined.
30524         * modules/sys_socket (Depends-on): Add socklen.
30525         * modules/netdb (Depends-on): Likewise.
30526         * modules/getaddrinfo (Depends-on): Remove socklen.
30527         * modules/getsockopt (Depends-on): Likewise.
30528         * modules/setsockopt (Depends-on): Likewise.
30529         * tests/test-sys_socket.c: Check that socklen_t is defined.
30530         * tests/test-netdb.c: Likewise.
30531         * m4/socklen.m4: Update comments.
30532         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
30533
30534 2010-08-27  Eric Blake  <eblake@redhat.com>
30535
30536         login_tty: add missing dependency
30537         * modules/login_tty (Depends-on): Add pty.
30538
30539 2010-08-26  Eric Blake  <eblake@redhat.com>
30540
30541         lib-symbol-versions: fix m4 quoting
30542         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
30543         format for AC_LINK_IFELSE.
30544
30545         glob: fix compile test
30546         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
30547
30548         btowc: fix missing file
30549         * modules/btowc (Files): Also ship locale-fr.m4.
30550
30551         lseek: fix link test
30552         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
30553         AC_LINK_IFELSE.
30554
30555         include_next: silence autoconf 2.68 warning
30556         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
30557         AC_COMPILE_IFELSE as special.
30558         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
30559         autoconf < 2.68.
30560
30561         acl: fix compilation test
30562         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
30563         AC_COMPILE_IFELSE.
30564
30565 2010-08-26  Bruno Haible  <bruno@clisp.org>
30566
30567         Modernize AC_TRY_RUN invocations.
30568         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
30569         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
30570         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
30571         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
30572         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
30573         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
30574         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
30575         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
30576         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
30577         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
30578         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
30579         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
30580         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
30581         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
30582         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
30583         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
30584         gl_MBRLEN_NUL_RETVAL): Likewise.
30585         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
30586         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
30587         Likewise.
30588         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
30589         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
30590         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
30591         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
30592         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
30593         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
30594         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
30595         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
30596         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
30597         Likewise.
30598         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
30599         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
30600         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
30601         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
30602         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
30603         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
30604         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
30605         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
30606         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
30607         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
30608
30609 2010-08-26  Bruno Haible  <bruno@clisp.org>
30610
30611         Modernize AC_TRY_LINK invocations.
30612         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
30613         AC_TRY_LINK.
30614         * m4/argp.m4 (gl_ARGP): Likewise.
30615         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
30616         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
30617         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
30618         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
30619         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
30620         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
30621         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
30622         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
30623         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
30624         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
30625         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
30626         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
30627         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
30628         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
30629         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
30630         * m4/hostent.m4 (gl_HOSTENT): Likewise.
30631         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
30632         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
30633         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
30634         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
30635         Likewise.
30636         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
30637         Likewise.
30638         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
30639         Likewise.
30640         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
30641         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
30642         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
30643         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
30644         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
30645         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
30646         * m4/servent.m4 (gl_SERVENT): Likewise.
30647         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
30648         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
30649         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
30650         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
30651         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
30652         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
30653         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
30654         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
30655         * modules/tsearch-tests (configure.ac): Likewise.
30656
30657 2010-08-26  Bruno Haible  <bruno@clisp.org>
30658
30659         Modernize AC_TRY_COMPILE invocations.
30660         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
30661         AC_TRY_COMPILE.
30662         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
30663         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
30664         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
30665         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
30666         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
30667         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
30668         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
30669         * m4/lock.m4 (gl_LOCK): Likewise.
30670         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
30671         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
30672         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
30673         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
30674         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
30675         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
30676         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
30677         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
30678         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
30679         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
30680         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
30681         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
30682         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
30683         extraneous semicolon.
30684
30685 2010-08-26  Jim Meyering  <meyering@redhat.com>
30686
30687         stat-time: relax license LGPL
30688         * modules/stat-time (License): Change from GPL to LGPL,
30689         with consent from all contributors, for use in libguile.
30690         Requested by Ludovic Courtès.
30691
30692 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
30693
30694         poll: return immediately on POLLHUP.
30695         * lib/poll.c (poll): Always set timeout before wait_timeout is
30696         computed.
30697
30698 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30699
30700         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
30701         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
30702         rmdir ("dir/.//"), unlinkat.
30703
30704 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
30705
30706         stdbool: avoid spurious failure with modern xlc
30707         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
30708
30709 2010-08-24  Bruno Haible  <bruno@clisp.org>
30710
30711         getloadavg: simplify code
30712         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
30713         gl_have_func. Update comments.
30714
30715 2010-08-24  Eric Blake  <eblake@redhat.com>
30716
30717         getloadavg: don't define SVR4 on cygwin
30718         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
30719         only define SVR4 when -lkvm is required.
30720         Reported by Yaakov Selkowitz.
30721
30722 2010-08-24  Bruno Haible  <bruno@clisp.org>
30723
30724         priv-set: fix comment
30725         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
30726
30727 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
30728
30729         priv-set: fix comments
30730         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
30731         to match code, as suggested by David Bartley in:
30732         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
30733
30734 2010-08-23  Eric Blake  <eblake@redhat.com>
30735
30736         stdbool: avoid rejecting clang
30737         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
30738         * tests/test-stdbool.c: Enable more tests if using the system
30739         <stdbool.h> instead of the gnulib replacement.
30740         (main): Move xlc bug test to a runtime test for all compilers.
30741         Reported by Anders Kaseorg.
30742
30743         argz: fix shell quoting issue
30744         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
30745         Reported by Charles Wilson.
30746
30747 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
30748             Erik Faye-Lund <kusmabite@gmail.com>
30749
30750         poll, select: handle ERROR_BROKEN_PIPE.
30751         * lib/poll.c (win32_compute_revents): Return POLLHUP when
30752         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
30753         * lib/select.c (win32_compute_revents): Do not mark a pipe
30754         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
30755
30756 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
30757
30758         fts: allow compilation with C++
30759         * lib/fts_.h: Specify extern "C" linkage with C++.
30760
30761 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30762
30763         Fix gnulib-tool sed script de-commentation for AIX sed.
30764         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
30765         sed.
30766
30767 2010-08-17  Eric Blake  <eblake@redhat.com>
30768
30769         test-stddef: test for (some) offsetof bugs
30770         * tests/test-stddef.c: Enhance test to ensure correct type of
30771         offsetof.
30772         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
30773         that we are not fixing at this time.
30774
30775 2010-08-15  Bruno Haible  <bruno@clisp.org>
30776
30777         stpncpy: Allow stpncpy to be defined as a macro.
30778         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
30779         if it's already correctly declared.
30780         * lib/string.in.h (stpncpy): Undefine before redefining.
30781         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
30782
30783 2010-08-14  Bruno Haible  <bruno@clisp.org>
30784
30785         Rename module 'memxfrm' to 'amemxfrm'.
30786         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
30787         (amemxfrm): Renamed from memxfrm.
30788         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
30789         (amemxfrm): Renamed from memxfrm.
30790         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
30791         * NEWS: Mention the change.
30792         * MODULES.html.sh (String handling <string.h>): Update.
30793         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
30794         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
30795         * lib/unicase/u16-casexfrm.c: Likewise.
30796         * lib/unicase/u32-casexfrm.c: Likewise.
30797         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
30798         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
30799         * lib/uninorm/u16-normxfrm.c: Likewise.
30800         * lib/uninorm/u32-normxfrm.c: Likewise.
30801         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
30802         memxfrm.
30803         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
30804         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
30805         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
30806         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
30807         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
30808         Suggested by Paul Eggert.
30809
30810 2010-08-14  Bruno Haible  <bruno@clisp.org>
30811
30812         Tests for module 'astrxfrm'.
30813         * modules/astrxfrm-tests: New file.
30814         * tests/test-astrxfrm.c: New file.
30815
30816         New module 'astrxfrm'.
30817         * lib/astrxfrm.h: New file.
30818         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
30819         * modules/astrxfrm: New file.
30820
30821 2010-08-14  Reuben Thomas <rrt@sc3d.org>
30822
30823         regex: Tweak doc.
30824         * doc/regex.texi (Overview): Don't mention regex.c.
30825         (GNU Regular Expression Compiling): Likewise.
30826         (Match-end-of-line Operator): Mention 'not_eol'.
30827
30828 2010-08-14  Brian Gough  <bjg@gnu.org>
30829             Bruno Haible  <bruno@clisp.org>
30830
30831         git-merge-changelog: add doc relating to use with bzr and hg.
30832         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
30833
30834 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
30835
30836         pthread: fix pthread.h creation for srcdir != builddir
30837         * modules/pthread (Makefile.am): Fix the rule to work also in a
30838         non-srcdir build.
30839
30840 2010-08-13  Karl Berry  <karl@gnu.org>
30841
30842         * doc/regex.texi (Predefined Syntaxes): @smallexample.
30843         * doc/posix-*/*: force line break before @url of POSIX
30844         specifications.
30845         Suggested by Werner Lemberg.
30846
30847 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
30848
30849         strtod: fix const diagnostic
30850         * lib/strtod.c (strtod): Don't assign const char * to char *,
30851         as this elicits a warning from GCC when warnings are enabled.
30852
30853 2010-08-10  Pádraig Brady <P@draigbrady.com>
30854         and Eric Blake  <eblake@redhat.com>
30855
30856         copy-acl: ignore ENOTSUP on HP-UX
30857         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
30858         so that it is available for HP-UX.
30859         * lib/copy-acl.c (qcopy_acl): Use it.
30860         Reported by Patrick M. Callahan.
30861
30862 2010-08-10  Eric Blake  <eblake@redhat.com>
30863
30864         open, chown: relax license
30865         * modules/open (License): Change to LGPLv2+, with consent by all
30866         authors, for use in augeas.
30867         * modules/chown (License): Likewise.
30868         * modules/lchown (Likewise): Likewise.
30869         Requested by Adam Stokes.
30870
30871 2010-08-09  Karl Berry  <karl@gnu.org>
30872
30873         * build-aux/ar-lib: new file, import from Automake.
30874         * config/srclist.txt: autocheck for updates.
30875
30876 2010-08-09  Eric Blake  <eblake@redhat.com>
30877
30878         readlinkat: adjust client modules
30879         * modules/areadlinkat (Depends-on): Use readlinkat, not
30880         symlinkat.
30881         * modules/areadlinkat-with-size (Depends-on): Likewise.
30882
30883         mknod: be more vocal about danger of running tests as root
30884         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
30885         root, since that is just asking for problems.
30886         Suggested by Bruno Haible, based on a report by Rainer Tammer.
30887
30888         readlinkat: split into its own module
30889         * modules/symlinkat: Split readlinkat...
30890         * modules/readlinkat: ...into separate module.
30891         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
30892         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
30893         * lib/symlinkat.c (readlinkat): Move...
30894         * lib/readlinkat.c: ...into new file.
30895         * modules/symlinkat-tests: Split readlinkat test...
30896         * modules/readlinkat-tests: ...into separate module.
30897         * tests/test-symlinkat.c: Split...
30898         * tests/test-readlinkat.c: ...into new file.
30899         * NEWS: Document the split.
30900         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
30901         * lib/unistd.in.h (readlinkat): Likewise.
30902         Suggested by Bruno Haible.
30903
30904 2010-08-08  Bruno Haible  <bruno@clisp.org>
30905
30906         memxfrm: Speed up.
30907         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
30908         that usually only one call to strxfrm is necessary for each string
30909         part.
30910         Reported by Paul Eggert <eggert@cs.ucla.edu>.
30911
30912 2010-08-07  Karl Berry  <karl@gnu.org>
30913
30914         * doc/posix-headers/limits.texi,
30915         * doc/posix-functions/malloc.texi,
30916         * doc/posix-functions/strsignal.texi: missing @item.
30917         * doc/ld-version-script.texi: spurious leading i.
30918         * doc/regex.texi (Interval Operators): no commas inside @var.
30919
30920 2010-08-01  Bruno Haible  <bruno@clisp.org>
30921
30922         Integrate the regex documentation.
30923         * doc/gnulib.texi: Define 'cn' index.
30924         (Regular expressions): New a chapter that includes regex.texi and
30925         regexprops-generic.texi.
30926         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
30927         syntax.
30928
30929         Whitespace cleanup.
30930         * doc/regex.texi: Remove trailing spaces.
30931
30932         Add regex documentation.
30933         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
30934         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
30935         Written by Kathy A. Hargreaves and Karl Berry.
30936
30937 2010-08-01  Bruno Haible  <bruno@clisp.org>
30938
30939         link: Update documentation.
30940         * doc/posix-functions/link.texi: Update regarding Solaris.
30941
30942 2010-07-31  Bruno Haible  <bruno@clisp.org>
30943
30944         Update modules list.
30945         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
30946         (String handling <string.h>): Add memcmp2, memxfrm.
30947         (Container data structures): Add xlist, xsublist, xoset.
30948         (Core language properties): Add alignof, unused-parameter.
30949         (Process control, Numeric conversion functions <stdlib.h>): Renamed
30950         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
30951         (Unibyte characters <ctype.h>): New section.
30952         (String handling <string.h>): New section.
30953         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
30954         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
30955         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
30956         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
30957         tan, tanh, tanl, y0, y1, yn.
30958         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
30959         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
30960         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
30961         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
30962         unlockpt, vdprintf, vdprintf-posix.
30963         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
30964         (File system functions): Add concat-filename, sys_file, sys_ioctl,
30965         xconcat-filename.
30966         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
30967         getdtablesize, pipe2, pipe2-safer.
30968         (Security): New section.
30969         (Networking functions): Add accept4.
30970         (Signal handling): Add sigpipe.
30971         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
30972         mbmemcasecoll.
30973         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
30974         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
30975         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
30976         pipe-filter-ii.
30977         (Misc): Add argp-version-etc, login_tty, parse-duration.
30978
30979 2010-07-31  Bruno Haible  <bruno@clisp.org>
30980
30981         Improve doc in MODULES.html.
30982         * modules/linkat (Description): Add the word "function".
30983         * modules/mkfifo (Description): Likewise.
30984         * modules/mknod (Description): Likewise.
30985         * modules/remove (Description): Likewise.
30986         * modules/renameat (Description): Likewise.
30987         * modules/stat (Description): Likewise.
30988         * modules/symlink (Description): Likewise.
30989         * modules/unlink (Description): Likewise.
30990
30991 2010-07-31  Bruno Haible  <bruno@clisp.org>
30992
30993         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
30994         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
30995         option --enable/disable-c++ instead of --enable/disable-cxx.
30996         * NEWS: Mention the change.
30997
30998 2010-07-31  Bruno Haible  <bruno@clisp.org>
30999
31000         readlink, areadlink: Relax test a bit.
31001         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
31002         alternative to ENOTDIR.
31003         * tests/test-areadlink.h (test_areadlink): Likewise.
31004         Reported by Rainer Tammer.
31005
31006 2010-07-31  Bruno Haible  <bruno@clisp.org>
31007
31008         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
31009         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
31010         character, perform the search using U_STRCHR.
31011         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
31012         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
31013         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
31014         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
31015         Suggested by Paolo Bonzini.
31016
31017 2010-07-31  Bruno Haible  <bruno@clisp.org>
31018
31019         unistr/u*-strstr: Fix dependencies.
31020         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
31021         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
31022         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
31023
31024 2010-07-31  Bruno Haible  <bruno@clisp.org>
31025
31026         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
31027         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
31028         the beginning of the loop.
31029         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
31030         cases in 'switch' statement.
31031
31032         unistr/u8-strchr: Fix several bugs.
31033         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
31034         the string. When not found, return NULL, not a pointer near the end.
31035
31036         More tests for unistr/u8-strchr.
31037         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
31038         that the function does not read past the first occurrence of the byte
31039         being searched.
31040         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
31041         * tests/unistr/test-u16-strchr.c (main): New function.
31042         * tests/unistr/test-u32-strchr.c (main): New function.
31043
31044 2010-07-31  Bruno Haible  <bruno@clisp.org>
31045
31046         posix-modules: Ignore backup files of documentation files.
31047         * posix-modules: grep only through files named *.texi.
31048
31049 2010-07-31  Bruno Haible  <bruno@clisp.org>
31050
31051         symlinkat: Fix documentation.
31052         * doc/posix-functions/readlinkat.texi: Fix module name.
31053
31054 2010-07-31  Bruno Haible  <bruno@clisp.org>
31055
31056         fchownat: Replace also when chown has the trailing slash bug.
31057         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
31058         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
31059         introduced on 2010-04-10.
31060         Reported by Rainer Tammer.
31061
31062 2010-07-31  Bruno Haible  <bruno@clisp.org>
31063
31064         linkat: Work around AIX 7.1 bug.
31065         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
31066         whether linkat handles trailing slash correctly. If not, replace linkat
31067         and define LINKAT_TRAILING_SLASH_BUG.
31068         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
31069         check whether (fd1,file1) points to a directory if file1 or file2 ends
31070         in a slash. Code taken from lib/link.c.
31071         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
31072         Reported by Rainer Tammer.
31073
31074 2010-07-31  Bruno Haible  <bruno@clisp.org>
31075
31076         Correctly determine whether pow is available in libc on AIX 7 with xlc.
31077         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
31078         This disables an xlc optimization that was causing wrong test results.
31079         Reported by Rainer Tammer.
31080
31081 2010-07-31  Bruno Haible  <bruno@clisp.org>
31082
31083         iconv: Work around AIX 6.1..7.1 bug.
31084         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
31085         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
31086         cross-compiling, guess no on all versions of AIX.
31087         Reported by Rainer Tammer.
31088
31089 2010-07-31  Bruno Haible  <bruno@clisp.org>
31090
31091         readlink: Relax test a bit.
31092         * tests/test-readlink.h (test_readlink): Allow different errno value
31093         when readlink is called with a file name that ends in / and refers to
31094         a file.
31095         Suggested by Eric Blake.
31096         Reported by Rainer Tammer.
31097
31098 2010-07-31  Bruno Haible  <bruno@clisp.org>
31099
31100         copysign: Does not require -lm on glibc systems.
31101         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
31102         gl_COMMON_DOUBLE_MATHFUNC.
31103         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
31104
31105 2010-07-31  Bruno Haible  <bruno@clisp.org>
31106
31107         duplocale: Work around AIX 7.1 bug.
31108         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
31109         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
31110         * lib/duplocale.c (rpl_duplocale): Update comment.
31111         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
31112         Reported by Rainer Tammer.
31113
31114 2010-07-30  Bruno Haible  <bruno@clisp.org>
31115
31116         dirfd: Avoid link error on AIX 7.1.
31117         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
31118         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
31119         exist, set REPLACE_DIRFD.
31120         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
31121         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
31122         * doc/posix-functions/dirfd.texi: Update.
31123         Reported by Rainer Tammer.
31124
31125 2010-07-30  Eric Blake  <eblake@redhat.com>
31126
31127         strtod: next round of AIX fixes
31128         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
31129         exponent.
31130         * tests/test-strtod.c (main): Enhance tests.
31131         * doc/posix-functions/strtod.texi (strtod): Document next bug.
31132         Reported by Rainer Tammer.
31133
31134         futimens: fix configure check
31135         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
31136         Reported by Bruno Haible.
31137
31138 2010-07-30  Bruno Haible  <bruno@clisp.org>
31139
31140         getline: Update regarding AIX.
31141         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
31142         Reported by Rainer Tammer.
31143
31144 2010-07-30  Bruno Haible  <bruno@clisp.org>
31145
31146         wcwidth: Drop replacement on AIX 7.
31147         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
31148         AIX 7.
31149         Reported by Rainer Tammer.
31150
31151 2010-07-30  Bruno Haible  <bruno@clisp.org>
31152
31153         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
31154         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
31155         a 'char *'.
31156         Reported by Rainer Tammer.
31157
31158 2010-07-30  Bruno Haible  <bruno@clisp.org>
31159
31160         unlink: Update regarding AIX.
31161         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
31162         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
31163         Reported by Rainer Tammer.
31164
31165 2010-07-30  Bruno Haible  <bruno@clisp.org>
31166
31167         symlink: Update regarding AIX.
31168         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
31169         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
31170         Reported by Rainer Tammer.
31171
31172 2010-07-30  Bruno Haible  <bruno@clisp.org>
31173
31174         strndup: Update regarding AIX.
31175         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
31176         AIX 7.
31177         Reported by Rainer Tammer.
31178
31179 2010-07-30  Bruno Haible  <bruno@clisp.org>
31180
31181         stat: Update regarding AIX.
31182         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
31183         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
31184         Reported by Rainer Tammer.
31185
31186 2010-07-30  Bruno Haible  <bruno@clisp.org>
31187
31188         truncl: Fix autoconf test.
31189         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
31190         whether truncl works.
31191         Reported by Rainer Tammer.
31192
31193 2010-07-30  Bruno Haible  <bruno@clisp.org>
31194
31195         round: Update regarding AIX.
31196         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
31197         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
31198         Reported by Rainer Tammer.
31199
31200 2010-07-30  Bruno Haible  <bruno@clisp.org>
31201
31202         rename: Update regarding AIX.
31203         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
31204         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
31205         Reported by Rainer Tammer.
31206
31207 2010-07-30  Bruno Haible  <bruno@clisp.org>
31208
31209         printf.m4: Update regarding AIX.
31210         * m4/printf.m4: Update comments regarding AIX.
31211         Reported by Rainer Tammer.
31212
31213 2010-07-30  Bruno Haible  <bruno@clisp.org>
31214
31215         iconv: Update regarding AIX.
31216         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
31217         AIX 7.
31218         Reported by Rainer Tammer.
31219
31220 2010-07-30  Bruno Haible  <bruno@clisp.org>
31221
31222         getopt: Update regarding AIX.
31223         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
31224         no on AIX.
31225         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
31226         Reported by Rainer Tammer.
31227
31228 2010-07-30  Bruno Haible  <bruno@clisp.org>
31229
31230         ldexpl; Update regarding AIX.
31231         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
31232         on AIX 7.
31233         Reported by Rainer Tammer.
31234
31235 2010-07-30  Bruno Haible  <bruno@clisp.org>
31236
31237         frexpl: Update regarding AIX.
31238         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
31239         on AIX 7.
31240         Reported by Rainer Tammer.
31241
31242 2010-07-30  Bruno Haible  <bruno@clisp.org>
31243
31244         open, fopen: Update regarding AIX.
31245         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
31246         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
31247         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
31248         * doc/posix-functions/fopen.texi: Likewise.
31249         Reported by Rainer Tammer.
31250
31251 2010-07-30  Bruno Haible  <bruno@clisp.org>
31252
31253         chown: Update doc regarding AIX.
31254         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
31255         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
31256         Reported by Rainer Tammer.
31257
31258 2010-07-30  Eric Blake  <eblake@redhat.com>
31259
31260         strtod: fix bug in replacement function on AIX
31261         * lib/strtod.c (strtod): Special case broken "0x" parse in
31262         underlying strtod.
31263         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
31264         * doc/posix-functions/strtod.texi (strtod): Likewise.
31265         Reported by Rainer Tammer.
31266
31267 2010-07-30  Bruno Haible  <bruno@clisp.org>
31268
31269         mbrlen: Fix cross-compilation guess for AIX.
31270         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
31271         guess. Leftover from 2008-12-22.
31272
31273 2010-07-30  Bruno Haible  <bruno@clisp.org>
31274
31275         mbrtowc: Fix cross-compilation guess for AIX.
31276         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
31277         guess. Leftover from 2008-12-21.
31278
31279 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
31280
31281         init.sh: work around trap limitation of some shells
31282         * tests/init.sh (setup_): Move exit trap outside of shell function.
31283
31284 2010-07-29  Eric Blake  <eblake@redhat.com>
31285
31286         strtod: aid debugging
31287         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
31288         understanding why strtod is rejected.
31289
31290 2010-07-28  Bruno Haible  <bruno@clisp.org>
31291
31292         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
31293         * lib/unistr/u8-chr.c: Include <string.h>.
31294         * tests/unistr/test-u8-chr.c: Likewise.
31295         * tests/unistr/test-u16-chr.c: Likewise.
31296         * tests/unistr/test-u32-chr.c: Likewise.
31297         * tests/unistr/test-u8-strchr.c: Likewise.
31298         * tests/unistr/test-u16-strchr.c: Likewise.
31299         * tests/unistr/test-u32-strchr.c: Likewise.
31300         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
31301         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
31302         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
31303         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
31304
31305 2010-07-28  Bruno Haible  <bruno@clisp.org>
31306
31307         Use spaces for indentation, not tabs.
31308         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
31309
31310 2010-07-27  Bruno Haible  <bruno@clisp.org>
31311
31312         mbspcasecmp: Fix function specification.
31313         * lib/string.in.h (mbspcasecmp): Fix specification comment.
31314         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
31315         Reported by Eric Blake <eblake@redhat.com>.
31316
31317 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
31318
31319         timespec: use cast and not conditional, as truncation isn't possible
31320         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
31321         instead of a conditional.  Comment about the situation in more detail.
31322         This undoes most of the 2009-10-29 patch.
31323
31324 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
31325
31326         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
31327         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
31328         * lib/unistr/u8-strchr.c: Likewise.
31329         * modules/unistr/u8-chr: Depend on memchr.
31330
31331         unistr/u*-strchr: add tests
31332         * modules/unistr/u8-strchr-tests: New file.
31333         * modules/unistr/u16-strchr-tests: New file.
31334         * modules/unistr/u32-strchr-tests: New file.
31335         * tests/unistr/test-strchr.h: New file.
31336         * tests/unistr/test-u8-strchr.c: New file.
31337         * tests/unistr/test-u16-strchr.c: New file.
31338         * tests/unistr/test-u32-strchr.c: New file.
31339
31340         unistr/u*-chr: test multibyte sequences more
31341         * tests/unistr/test-chr.h: Do complete testing of the characters in the
31342         test vector.
31343         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
31344         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
31345         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
31346
31347         unistr/u*-chr: test multibyte sequences
31348         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
31349
31350         unistr/u*-chr: prepare for multibyte tests
31351         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
31352         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
31353         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
31354         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
31355         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
31356         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
31357
31358 2010-07-18  Bruno Haible  <bruno@clisp.org>
31359
31360         unistr/u8-strchr: Optimize non-ASCII argument case.
31361         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
31362         because the first byte often matches anyway.
31363         Reported by Pádraig Brady <P@draigbrady.com>.
31364
31365 2010-07-15  Karl Berry  <karl@gnu.org>
31366
31367         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
31368
31369 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
31370
31371         getcwd: on Solaris, work better if ancestors are inaccessible
31372         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
31373         buffer and size, try again with a large buffer.  This works better
31374         on Solaris, since its getcwd succeeds even if the path to the root
31375         is inaccessible, and this is helpful in common cases such as .zfs
31376         hidden directories.  Problem reported by J Chapman Flack in
31377         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
31378         Use system getcwd if it's declared, not merely if it's partly
31379         working; use the partly-working test only to avoid needless effort
31380         if the system getcwd fails.
31381         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
31382         comment that was already obsolete and is now even more obsolete.
31383         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
31384         now might call strdup.
31385
31386 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
31387
31388         pthread: Add enough so that coreutils/src/sort.c compiles.
31389         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
31390         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
31391         gnulib. Include <sched.h> and <time.h>, as per POSIX.
31392         Include <sys/types.h>, in case it defines pthread_t.
31393         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
31394         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
31395         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
31396         (pthread_rwlockattr_t, pthread_spinlock_t):
31397         New typedefs, if HAVE_PTHREAD_T is not defined.
31398         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
31399         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
31400         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
31401         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
31402         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
31403         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
31404         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
31405         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
31406         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
31407         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
31408         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
31409         New macros.
31410         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
31411         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
31412         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
31413         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
31414         (pthread_spin_unlock): New dummy functions.
31415         (pthread_create): Return EAGAIN; don't set errno.
31416         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
31417         require AC_C_INLINE.
31418         * modules/pthread (Depends-on): Add sched, time.
31419         (pthread.h): Use AM_V_GEN.
31420
31421 2010-07-13  Bruno Haible  <bruno@clisp.org>
31422
31423         striconveh: Don't malloc memory if the result buffer is sufficient.
31424         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
31425         buffer if its size is sufficient.
31426         Reported by Ludovic Courtès <ludo@gnu.org>.
31427
31428 2010-07-13  Bruno Haible  <bruno@clisp.org>
31429
31430         strtod: Add safety check.
31431         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
31432
31433 2010-07-12  Bruno Haible  <bruno@clisp.org>
31434
31435         Unify tests that set gl_cv_func_ldexpl_no_libm.
31436         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
31437         gl_FUNC_LDEXPL.
31438         (gl_FUNC_LDEXPL): Invoke it.
31439         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
31440
31441 2010-07-12  Bruno Haible  <bruno@clisp.org>
31442
31443         Unify tests that set gl_cv_func_ldexp_no_libm.
31444         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
31445         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
31446         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
31447         (configure.ac): Simply invoke gl_FUNC_LDEXP.
31448         * modules/strtod (Files): Add m4/ldexp.m4.
31449
31450 2010-07-12  Bruno Haible  <bruno@clisp.org>
31451
31452         Unify tests that set gl_cv_func_frexpl_no_libm.
31453         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
31454         gl_FUNC_FREXPL_NO_LIBM.
31455         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
31456         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
31457
31458 2010-07-12  Bruno Haible  <bruno@clisp.org>
31459
31460         Unify tests that set gl_cv_func_frexp_no_libm.
31461         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
31462         gl_FUNC_FREXP_NO_LIBM.
31463         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
31464         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
31465
31466 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
31467
31468         memcoll: clarify sizes versus lengths, document better, and tweak perf
31469         * lib/memcoll.c (strcoll_loop, memcoll0):
31470         Improve quality of descriptive comments.  Name variables
31471         consistently as to whether they are lengths (which do not include
31472         terminating null) versus sizes (which do).
31473         * lib/xmemcoll.c (xmemcoll0): Likewise.
31474         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
31475         returned when s1size == 0; this is easier to compile and saves
31476         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
31477
31478 2010-07-12  Bruno Haible  <bruno@clisp.org>
31479
31480         Tests for module '_Exit'.
31481         * modules/_Exit-tests: New file.
31482         * tests/test-_Exit.sh: New file.
31483         * tests/test-_Exit.c: New file.
31484
31485         New module '_Exit'.
31486         * lib/stdlib.in.h (__attribute__): New macro.
31487         (_Exit): New declaration.
31488         * lib/_Exit.c: New file.
31489         * m4/_Exit.m4: New file.
31490         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
31491         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
31492         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
31493         * modules/_Exit: New file.
31494         * tests/test-stdlib-c++.cc (_Exit): Check signature.
31495         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
31496
31497 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
31498
31499         strtod: make it more-accurate typically, and don't require libm
31500         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
31501         Include limits.h.  Don't include string.h.
31502         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
31503         (locale_isspace): New function, so that no casts are needed to
31504         check whether *s is a space.
31505         (ldexp): Provide an unused dummy if not available.
31506         (scale_radix_exp, parse_number, underlying_strtod): New functions.
31507         (strtod): Use them.  This implementation prefers to use the
31508         underlying strtod if available, falling back on our own code
31509         only to fix known bugs.  This is more likely to produce an
31510         accurate result.  Also, it avoids the use of libm functions.
31511         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
31512         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
31513         was absent, but it caused a test failure with coreutils.
31514         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
31515         with libm.
31516         * modules/strtod (Makefile.am, Link): libm is no longer needed.
31517         * modules/strtod-tests (Makefile.am): Likewise.
31518
31519 2010-07-11  Pádraig Brady  <P@draigBrady.com>
31520             Bruno Haible  <bruno@clisp.org>
31521
31522         unistr/u8-strchr: Optimize ASCII argument case.
31523         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
31524
31525 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
31526
31527         (x)memcoll: minor tweaks
31528         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
31529         is after the type that it qualifies.
31530         (memcoll0): Likewise.
31531         * lib/memcoll.h (memcoll0): Likewise.
31532         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
31533         * lib/xmemcoll.h (xmemcoll0): Likewise.
31534         * lib/memcoll.c (memcoll0): Correct the comment.  This function
31535         differs from memcoll in that the NUL byte is part of the argument.
31536         Omit the abort-checks, as performance is a real issue here.  Plus,
31537         the checks were wrong anyway (an off-by-one error).  Omit local
31538         variable 'diff', as it's a bit clearer that way.
31539         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
31540         no longer needed.
31541
31542 2010-07-08  Chen Guo <chenguo4@yahoo.com>
31543
31544         (x)memcoll: speedup when input is known to be NUL delimited
31545         * lib/memcoll.c: Include stdlib.
31546         (memcoll0): New function.
31547         (strcoll_loop): New function, refactored for use in both memcoll
31548         and memcoll0.
31549         * lib/memcoll.h (memcoll0): Add prototype.
31550         * lib/xmemcoll.c (xmemcoll0): New function.
31551         (collate_error): New function, refactored for use in both xmemcoll
31552         and xmemcoll0.
31553         * lib/xmemcoll.h (xmemcoll0): Add prototype.
31554         * m4/memcoll.m4: add inline invocation.
31555
31556 2010-07-06  Pádraig Brady  <P@draigBrady.com>
31557
31558         * build-aux/bootstrap: Remove any local translations
31559         from the translation project synchronization directory,
31560         so that local only translations are not distributed.
31561
31562 2010-07-04  Bruno Haible  <bruno@clisp.org>
31563
31564         fsusage: Clarify which code applies to which platforms.
31565         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
31566         platform.
31567         * lib/fsusage.c (get_fs_usage): Likewise.
31568
31569 2010-07-04  Bruno Haible  <bruno@clisp.org>
31570
31571         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
31572         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
31573         Reported by Martin Lambers <marlam@marlam.de>.
31574
31575 2010-07-04  Jim Meyering  <meyering@redhat.com>
31576
31577         hash: once again explicitly disallow insertion of NULL
31578         * lib/hash.c (hash_insert0): Reinstate just-removed test:
31579         inserting a NULL pointer cannot work with these functions.
31580         Add a comment with details.
31581         This reverts part of the 2010-07-01 commit, 5bef1a35
31582         "hash: extend module to deal with non-pointer keys".
31583
31584 2010-07-01  Bruno Haible  <bruno@clisp.org>
31585
31586         stdbool: Update doc.
31587         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
31588         Info from Christian Weisgerber <naddy@mips.inka.de>.
31589
31590 2010-07-01  Jim Meyering  <meyering@redhat.com>
31591
31592         hash: extend module to deal with non-pointer keys
31593         * lib/hash.c (hash_insert0): New interface, much like hash_insert
31594         but that allows insertion of non-pointer entries.
31595         Do not disallow an ENTRY value of NULL.
31596         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
31597         * lib/hash.h (hash_insert0): Declare.
31598
31599 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
31600
31601         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
31602         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
31603         not present (i.e. with autoconf 2.59 and when using gettextize, not
31604         gnulib), require AC_GNU_SOURCE instead.
31605
31606 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
31607
31608         idpriv-drop: Fix tests.
31609         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
31610         not to the test-idpriv-droptemp program.
31611
31612 2010-06-29  Bruno Haible  <bruno@clisp.org>
31613
31614         string: Fix syntax error with g++ 2.96.
31615         * lib/string.in.h (__pure__): Remove definition.
31616         (_GL_ATTRIBUTE_PURE): New macro.
31617         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
31618         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
31619         Reported by Christian Weisgerber <naddy@mips.inka.de>.
31620
31621 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
31622
31623         unitypes: Fix bug introduced on 2010-05-18.
31624         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
31625
31626 2010-06-22  Eric Blake  <eblake@redhat.com>
31627
31628         memmem: slight optimization
31629         * lib/str-two-way.h (critical_factorization): Update comments.
31630         Reduce work during factorization phase.
31631         Reported by Carlos Bueno <carlos@bueno.org>.
31632
31633 2010-06-21  Bruno Haible  <bruno@clisp.org>
31634
31635         Fix HAVE_CALLOC_POSIX misnomer.
31636         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
31637         !HAVE_CALLOC_POSIX.
31638         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
31639         HAVE_CALLOC_POSIX.
31640         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
31641         instead of HAVE_CALLOC_POSIX.
31642         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
31643         HAVE_CALLOC_POSIX.
31644
31645         Use modern idiom for calloc() replacement.
31646         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
31647         AC_FUNC_CALLOC.
31648         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
31649         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
31650         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
31651         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
31652         (gl_REPLACE_CALLOC): New macro.
31653
31654 2010-06-21  Bruno Haible  <bruno@clisp.org>
31655
31656         Fix HAVE_REALLOC_POSIX misnomer.
31657         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
31658         !HAVE_REALLOC_POSIX.
31659         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
31660         HAVE_REALLOC_POSIX.
31661         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
31662         instead of HAVE_REALLOC_POSIX.
31663         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
31664         HAVE_REALLOC_POSIX.
31665
31666         Use modern idiom for realloc() replacement.
31667         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
31668         AC_FUNC_REALLOC.
31669         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
31670         Autoconf's AC_FUNC_REALLOC.
31671         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
31672         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
31673         (gl_REPLACE_REALLOC): New macro.
31674         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
31675
31676 2010-06-21  Bruno Haible  <bruno@clisp.org>
31677
31678         Fix HAVE_MALLOC_POSIX misnomer.
31679         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
31680         !HAVE_MALLOC_POSIX.
31681         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
31682         HAVE_MALLOC_POSIX.
31683         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
31684         instead of HAVE_MALLOC_POSIX.
31685         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
31686         HAVE_MALLOC_POSIX.
31687
31688         Use modern idiom for malloc() replacement.
31689         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
31690         AC_FUNC_MALLOC.
31691         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
31692         Autoconf's AC_FUNC_MALLOC.
31693         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
31694         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
31695         (gl_REPLACE_MALLOC): New macro.
31696         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
31697
31698 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
31699
31700         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
31701         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
31702         This macro takes 3 arguments, not 4.
31703
31704 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
31705
31706         ipv6: fix detection under mingw
31707         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
31708         in6_addr.
31709
31710 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
31711
31712         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
31713         that strtod() works when cross-compiling to a glibc version known
31714         to work.
31715
31716 2010-06-15  Bruno Haible  <bruno@clisp.org>
31717
31718         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
31719
31720 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
31721
31722         select: Correct timeout.
31723         * lib/select.c (rpl_select): Compute wait_timeout correctly.
31724
31725 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
31726
31727         git-version-gen: init shell var to avoid env var influence
31728         * build-aux/git-version-gen (v): Init shell var to empty.
31729
31730 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
31731
31732         priv-set: Don't assume that priv.h exists merely because getppriv does.
31733         See Jan Andersen's bug report about AIX 5L in
31734         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
31735         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
31736         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
31737         * lib/priv-set.h: Likewise.
31738         * tests/test-priv-set.c: Likewise.
31739
31740 2010-06-13  Bruno Haible  <bruno@clisp.org>
31741
31742         relocatable: Make it easier to test whether to install wrappers.
31743         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
31744         RELOCATABLE_VIA_WRAPPER.
31745
31746 2010-06-13  Bruno Haible  <bruno@clisp.org>
31747
31748         gnulib-tool: Display specified modules and dependencies differently.
31749         * gnulib-tool (func_show_module_list): New function.
31750         (func_import, func_create_testdir): Invoke it.
31751         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
31752
31753 2010-06-13  Bruno Haible  <bruno@clisp.org>
31754
31755         gnulib-tool: Align code of func_import and func_create_testdir.
31756         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
31757         specified_modules.
31758
31759 2010-06-12  Jim Meyering  <meyering@redhat.com>
31760
31761         test-inttostr: avoid spurious failure on Solaris 9
31762         * tests/test-inttostr.c (main): Skip the test when snprintf fails
31763         to accept "%ju".  Reported by Bruno Haible.
31764
31765 2010-06-11  Jim Meyering  <meyering@redhat.com>
31766
31767         test-sys_socket: mark variables as used more readably
31768         * tests/test-sys_socket.c (main): Mark otherwise unused variables
31769         as "used" explicitly via (void) statement casts.  This is more
31770         readable than using them in an artificial return expression.
31771         Suggestion from Bruno Haible.
31772
31773 2010-06-11  Bruno Haible  <bruno@clisp.org>
31774
31775         Avoid some more warnings from "gcc -Wwrite-strings".
31776         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
31777         to 'const char *'.
31778         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
31779         * tests/test-c-strcasestr.c (main): Likewise.
31780         * tests/test-mbscasestr1.c (main): Likewise.
31781         * tests/test-mbscasestr2.c (main): Likewise.
31782         * tests/test-memmem.c (main): Likewise.
31783         * tests/test-strstr.c (main): Likewise.
31784         * tests/test-strcasestr.c (main): Likewise.
31785
31786 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31787
31788         init.sh: change framework_failure_ to fail with status 99, not 1
31789         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
31790         automake's parallel-tests rule that this is an unexpected failure,
31791         even if the test is listed in XFAIL_TESTS.
31792
31793 2010-06-11  Jim Meyering  <meyering@redhat.com>
31794
31795         test-inttostr: avoid warnings about 4-6KB literal strings
31796         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
31797         Include "macros.h", for its definition of ASSERT.
31798         (CK): s/assert/ASSERT/
31799         * modules/inttostr-tests (Files): Add macros.h.
31800
31801         init.sh: don't use $ME_ or skip_ before they are defined
31802         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
31803         their first uses.  Also hoist their companions: warn_, fail_,
31804         framework_failure_, $stderr_fileno.  Prompted by a patch from
31805         Stefano Lattarini.
31806
31807         test-sys_socket: avoid set-but-not-used warnings from gcc
31808         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
31809         avoid warning about set-but-not-used variables.
31810
31811         test-xvasprintf: avoid 'const' discard warnings
31812         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
31813         "const" when assigning from literal strings.
31814         (test_xasprintf): Add "void" in function argument list to placate
31815         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
31816
31817         tests: avoid compilation warnings in argmatch and exclude tests...
31818         in packages that define ARGMATCH_DIE_DECL, like coreutils.
31819         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
31820         Since it always exits, declare with the "noreturn" attribute.
31821         * tests/test-argmatch.c: Likewise.
31822
31823         tests: avoid 'const' discard warnings in mbsstr tests
31824         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
31825         * tests/test-mbsstr2.c (main): Likewise.
31826
31827         test-verify: avoid warning from gcc's -Wmissing-declarations
31828         * tests/test-verify.c (function): Declare to be static.
31829
31830         test-inttostr.c: include <string.h> for use of strcmp
31831         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
31832
31833         test-linkat: avoid failed assertion on "other" architectures
31834         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
31835         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
31836         sparc: https://bugs.launchpad.net/bugs/591968
31837
31838 2010-06-11  Jim Meyering  <meyering@redhat.com>
31839
31840         printf.m4: avoid autoconf's "Expanded Before Required" warning
31841         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
31842         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
31843         autoconf warning.
31844
31845 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
31846
31847         Replacement header templates are now named with ".in", not "_".
31848         * doc/gnulib-intro.texi: Correct.
31849
31850 2010-06-10  Jim Meyering  <meyering@redhat.com>
31851
31852         inttostr-tests: depend on snprintf, not snprintf-posix
31853         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
31854         snprintf-posix, to avoid this aclocal failure:
31855           missing file gnulib-tests/vasnprintf.c
31856           configure.ac:45: error: expected source file, required through \
31857           AC_LIBSOURCES, not found
31858
31859 2010-06-10  Jim Meyering  <meyering@redhat.com>
31860
31861         inttostr: add a new function, inttostr, and tests
31862         The namesake function was not available.  The existence of the
31863         template file, inttostr.c makes its addition nontrivial.
31864         * lib/anytostr.c: Rename from inttostr.c.
31865         (anytostr): Rename from inttostr.
31866         * lib/inttostr.c: New file.
31867         * modules/inttostr (Files): Add anytostr.c.
31868         (Makefile.am): Set lib_SOURCES instead of ...
31869         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
31870         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
31871         * lib/offtostr.c: Likewise.
31872         * lib/uinttostr.c: Likewise.
31873         * lib/umaxtostr.c: Likewise.
31874         * modules/inttostr-tests: New file.
31875         * tests/test-inttostr.c: New file.  Test these functions.
31876
31877 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
31878             Bruno Haible  <bruno@clisp.org>
31879
31880         Add "Extending Gnulib" chapter to manual.
31881         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
31882         chapter.
31883         (Extending Gnulib): New chapter.
31884         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
31885         chapter.
31886
31887 2010-06-09  Bruno Haible  <bruno@clisp.org>
31888
31889         Avoid relocwrapper link errors due to gnulib replacement functions.
31890         * lib/areadlink.c: Use the system's malloc, realloc functions.
31891         (areadlink): Set errno to ENOMEM explicitly.
31892         * modules/areadlink (Depends-on): Remove malloc-posix.
31893         Reported by Ben Pfaff <blp@cs.stanford.edu>.
31894
31895 2010-06-09  Bruno Haible  <bruno@clisp.org>
31896
31897         Avoid relocwrapper link errors due to gnulib replacement functions.
31898         * lib/canonicalize-lgpl.c: Use the system's malloc function.
31899         * lib/malloca.c: Likewise.
31900         * lib/relocatable.c: Likewise.
31901         * lib/progreloc.c: Use the system's malloc, sprintf functions.
31902         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
31903         * lib/setenv.c: Use the system's malloc, realloc functions.
31904         * lib/strerror.c: Use the system's sprintf function.
31905         Reported by Ben Pfaff <blp@cs.stanford.edu>.
31906
31907 2010-06-04  Bruno Haible  <bruno@clisp.org>
31908
31909         Prefer documented low-level autoconf macro names.
31910         * m4/lib-link.m4: Use m4_translit instead of translit.
31911         * m4/environ.m4: Likewise.
31912         * m4/mathfunc.m4: Likewise.
31913         * m4/onceonly.m4: Likewise.
31914         * m4/stdint.m4: Likewise.
31915         Suggested by Eric Blake.
31916
31917 2010-06-04  Martin Lambers  <marlam@marlam.de>
31918             Bruno Haible  <bruno@clisp.org>
31919
31920         havelib: Allow library names with '+' characters.
31921         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
31922         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
31923
31924 2010-06-09  Bruno Haible  <bruno@clisp.org>
31925
31926         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
31927         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
31928         realloc failed.
31929
31930 2010-06-08  Peter Simons  <simons@cryp.to>
31931
31932         maint.mk: make the news-check rule more configurable
31933         * top/maint.mk (news-check-lines-spec): New variable.
31934         (news-check): Use "sed -n 1,10p" in place of "head".
31935
31936 2010-06-07  Jim Meyering  <meyering@redhat.com>
31937
31938         do-release-commit-and-tag: fix typo in --help
31939         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
31940
31941         regex: avoid new dead-code warning with gcc-4.6.0
31942         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
31943         if-block containing a while-loop.  It's been unused for at least
31944         5 years.
31945
31946 2010-06-05  Bruno Haible  <bruno@clisp.org>
31947
31948         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
31949         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
31950
31951 2010-06-04  Bruno Haible  <bruno@clisp.org>
31952
31953         Update to GNU gettext 0.18.1.
31954         * modules/gettext (configure.ac): Require gettext infrastructure from
31955         version 0.18.1.
31956
31957 2010-06-03  Bruno Haible  <bruno@clisp.org>
31958
31959         Don't use AC_LIBOBJ with file names in subdirectories.
31960         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
31961         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
31962         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
31963         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
31964         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
31965         gl_LIBUNISTRING_LIBSOURCE.
31966         (Makefile.am): Augment lib_SOURCES here, conditionally.
31967         * NEWS: Drop requirement for Automake option 'subdir-objects'.
31968
31969 2010-06-03  Bruno Haible  <bruno@clisp.org>
31970
31971         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
31972         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
31973         expansion does not end with a newline.
31974         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
31975         unnecessary newline.
31976
31977 2010-06-03  Bruno Haible  <bruno@clisp.org>
31978
31979         Reduce dependencies.
31980         * tests/test-quotearg.h: New file, extracted from
31981         tests/test-quotearg.c.
31982         * tests/test-quotearg-simple.c: New file, extracted from
31983         tests/test-quotearg.c.
31984         * tests/test-quotearg.c: Don't include <ctype.h>.
31985         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
31986         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
31987         use_quote_double_quotes, use_quotearg_colon): Moved to
31988         tests/test-quotearg.h.
31989         (results_g, flag_results, custom_quotes, custom_results): Moved
31990         to tests/test-quotearg-simple.c.
31991         (main): Moved the part that does not depend on gettext to
31992         tests/test-quotearg-simple.c. Return 77 if the test cannot be
31993         performed.
31994         * modules/quotearg-simple: New file.
31995         * modules/quotearg-simple-tests: New file.
31996         * modules/quotearg (Depends-on): Add quotearg-simple.
31997         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
31998         (Files): Add tests/test-quotearg.h.
31999         Reported by Paolo Bonzini.
32000
32001 2010-06-03  Bruno Haible  <bruno@clisp.org>
32002
32003         Reduce dependencies.
32004         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
32005
32006 2010-06-03  Bruno Haible  <bruno@clisp.org>
32007
32008         time: Undefine more broken macros.
32009         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
32010         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
32011         Reported by Eric Blake.
32012
32013 2010-06-03  Bruno Haible  <bruno@clisp.org>
32014
32015         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
32016         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
32017         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
32018         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
32019         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
32020         Reported by Ludovic Courtès <ludo@gnu.org>.
32021
32022 2010-06-02  Eric Blake  <eblake@redhat.com>
32023
32024         time: work with mingw + pthreads-win32 library
32025         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
32026         if timespec is defined only in pthread.h.
32027         * modules/time (Makefile.am): Substitute it.
32028         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
32029         <pthread.h>, when needed.
32030         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
32031         from the library.
32032
32033 2010-05-31  Bruno Haible  <bruno@clisp.org>
32034
32035         Avoid expanding two macros in the wrong order.
32036         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
32037         gl_LIBUNISTRING if it is defined.
32038         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
32039         autoconf >= 2.64.
32040         Reported by Ludovic Courtès <ludo@gnu.org>.
32041
32042 2010-05-27  Jim Meyering  <meyering@redhat.com>
32043
32044         maint.mk: also prohibit "#undef" of always-defined symbols
32045         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
32046         Allow more than one space before the symbol name.
32047         (sc_prohibit_always-defined_macros): Use grep's -E, now that
32048         the regexp uses alternation.
32049
32050 2010-05-26  Eric Blake  <eblake@redhat.com>
32051
32052         maint.mk: avoid echo -e
32053         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
32054         Convert all uses of echo -* to printf.
32055         Reported by Matthias Bolte.
32056
32057 2010-05-25  Bruno Haible  <bruno@clisp.org>
32058
32059         Update to GNU gettext 0.18, part 2.
32060         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
32061         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
32062
32063 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32064
32065         Add missing include in test-pwrite.c.
32066         * tests/test-pwrite.c: Include string.h, for strcmp.
32067
32068 2010-05-24  Bruno Haible  <bruno@clisp.org>
32069
32070         * NEWS: Mention requirement for Automake option 'subdir-objects'.
32071
32072 2010-05-24  Bruno Haible  <bruno@clisp.org>
32073
32074         Don't use conversion with transliteration in u{8,16,32}_strcoll.
32075         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
32076         iconveh_error argument.
32077         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
32078         U_STRCONV_TO_LOCALE.
32079         * lib/unistr/u16-strcoll.c: Likewise.
32080         * lib/unistr/u32-strcoll.c: Likewise.
32081         * modules/unistr/u8-strcoll (Depends-on): Add
32082         uniconv/u8-strconv-to-enc, localcharset. Remove
32083         uniconv/u8-strconv-to-locale.
32084         (configure.ac): Bump version number.
32085         * modules/unistr/u16-strcoll (Depends-on): Add
32086         uniconv/u16-strconv-to-enc, localcharset. Remove
32087         uniconv/u16-strconv-to-locale.
32088         (configure.ac): Bump version number.
32089         * modules/unistr/u32-strcoll (Depends-on): Add
32090         uniconv/u32-strconv-to-enc, localcharset. Remove
32091         uniconv/u32-strconv-to-locale.
32092         (configure.ac): Bump version number.
32093
32094 2010-05-24  Bruno Haible  <bruno@clisp.org>
32095
32096         Avoid a test failure on NetBSD 5.0.
32097         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
32098         an iconv() bug.
32099
32100 2010-05-24  Bruno Haible  <bruno@clisp.org>
32101
32102         Adjust #include directive style.
32103         * modules/regex (Includes): Recommend to write <regex.h>.
32104
32105 2010-05-24  Bruno Haible  <bruno@clisp.org>
32106
32107         regex: Don't require alloca.
32108         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
32109         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
32110         only inside if (0).
32111
32112 2010-05-23  Jim Meyering  <meyering@redhat.com>
32113
32114         test-renameat.c: include <sys/stat.h>
32115         * tests/test-renameat.c: Include <sys/stat.h>; required for
32116         definition of S_IS* macros.
32117
32118 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
32119
32120         Update maintainer documentation for 'relocatable-prog' module.
32121         * doc/relocatable-maint.texi: Update.
32122         Comments by Bruno Haible.
32123
32124 2010-05-23  Bruno Haible  <bruno@clisp.org>
32125
32126         git-merge-changelog: Enable --split-merged-entry by default.
32127         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
32128         (usage): Don't mention this option any more.
32129         Reported by Ralf Wildenhues.
32130
32131 2010-05-23  Jim Meyering  <meyering@redhat.com>
32132
32133         test-pwrite: do not leave behind a test file named "out"
32134         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
32135         The trivial-looking use of init.sh is really necessary.
32136         It ensures that the temporary file, "out", is created in
32137         a temporary directory, and removed upon termination.
32138         * tests/test-pwrite.sh: Re-add file.
32139         * modules/pwrite-tests: Reference it.
32140
32141 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32142
32143         Fix output redirection buglet in init.sh.
32144         * tests/init.sh: Fix redirection of stderr.
32145
32146 2010-05-20  Simon Josefsson  <simon@josefsson.org>
32147
32148         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
32149
32150 2010-05-17  Simon Josefsson  <simon@josefsson.org>
32151
32152         * modules/valgrind-tests: New file.
32153         * m4/valgrind-tests.m4: New file.
32154         * doc/valgrind-tests.texi: New file.
32155         * doc/gnulib.texi (Running self-tests under valgrind): New
32156         section.
32157
32158 2010-05-19  Bruno Haible  <bruno@clisp.org>
32159
32160         Clean up dead code in recent commit.
32161         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
32162         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
32163         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
32164         Suggested by Paolo Bonzini.
32165
32166 2010-05-19  Bruno Haible  <bruno@clisp.org>
32167
32168         Avoid valgrind error reports from libunistring.
32169         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
32170         * modules/libunistring (Files): Add it.
32171         * modules/libunistring-optional (Files): Likewise.
32172
32173 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
32174             Bruno Haible  <bruno@clisp.org>
32175
32176         New module 'libunistring-optional'.
32177         * modules/libunistring-optional: New file.
32178         * m4/libunistring-base.m4: New file.
32179         * m4/libunistring-optional.m4: New file.
32180         * lib/unicase.in.h: Renamed from lib/unicase.h.
32181         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
32182         * lib/unictype.in.h: Renamed from lib/unictype.h.
32183         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
32184         * lib/uniname.in.h: Renamed from lib/uniname.h.
32185         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
32186         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
32187         * lib/unistr.in.h: Renamed from lib/unistr.h.
32188         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
32189         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
32190         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
32191         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
32192         gl_LIBUNISTRING. If the library was found, determine the installed
32193         version and set LIBUNISTRING_VERSION.
32194         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
32195         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
32196         handle a configuration option --with-included-libunistring.
32197         * modules/libunistring (Files): Add m4/absolute-header.m4.
32198         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
32199         Add m4/libunistring-base.m4.
32200         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
32201         (Makefile.am): Build unicase.h from unicase.in.h.
32202         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
32203         Add m4/libunistring-base.m4.
32204         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
32205         (Makefile.am): Build uniconv.h from uniconv.in.h.
32206         * modules/unictype/base (Files): Use unictype.in.h instead of
32207         unictype.h. Add m4/libunistring-base.m4.
32208         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
32209         (Makefile.am): Build unictype.h from unictype.in.h.
32210         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
32211         Add m4/libunistring-base.m4.
32212         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
32213         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
32214         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
32215         Add m4/libunistring-base.m4.
32216         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
32217         (Makefile.am): Build uniname.h from uniname.in.h.
32218         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
32219         Add m4/libunistring-base.m4.
32220         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
32221         (Makefile.am): Build uninorm.h from uninorm.in.h.
32222         * modules/unistdio/base (Files): Use unistdio.in.h instead of
32223         unistdio.h. Add m4/libunistring-base.m4.
32224         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
32225         (Makefile.am): Build unistdio.h from unistdio.in.h.
32226         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
32227         Add m4/libunistring-base.m4.
32228         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
32229         (Makefile.am): Build unistr.h from unistr.in.h.
32230         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
32231         Add m4/libunistring-base.m4.
32232         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
32233         (Makefile.am): Build unitypes.h from unitypes.in.h.
32234         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
32235         Add m4/libunistring-base.m4.
32236         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
32237         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
32238         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
32239         uniwidth.h. Add m4/libunistring-base.m4.
32240         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
32241         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
32242         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
32243         instead of augmenting lib_SOURCES.
32244         * modules/unicase/empty-suffix-context: Likewise.
32245         * modules/unicase/locale-language: Likewise.
32246         * modules/unicase/tolower: Likewise.
32247         * modules/unicase/totitle: Likewise.
32248         * modules/unicase/toupper: Likewise.
32249         * modules/unicase/u8-casecmp: Likewise.
32250         * modules/unicase/u8-casecoll: Likewise.
32251         * modules/unicase/u8-casefold: Likewise.
32252         * modules/unicase/u8-casexfrm: Likewise.
32253         * modules/unicase/u8-ct-casefold: Likewise.
32254         * modules/unicase/u8-ct-tolower: Likewise.
32255         * modules/unicase/u8-ct-totitle: Likewise.
32256         * modules/unicase/u8-ct-toupper: Likewise.
32257         * modules/unicase/u8-is-cased: Likewise.
32258         * modules/unicase/u8-is-casefolded: Likewise.
32259         * modules/unicase/u8-is-lowercase: Likewise.
32260         * modules/unicase/u8-is-titlecase: Likewise.
32261         * modules/unicase/u8-is-uppercase: Likewise.
32262         * modules/unicase/u8-prefix-context: Likewise.
32263         * modules/unicase/u8-suffix-context: Likewise.
32264         * modules/unicase/u8-tolower: Likewise.
32265         * modules/unicase/u8-totitle: Likewise.
32266         * modules/unicase/u8-toupper: Likewise.
32267         * modules/unicase/u16-casecmp: Likewise.
32268         * modules/unicase/u16-casecoll: Likewise.
32269         * modules/unicase/u16-casefold: Likewise.
32270         * modules/unicase/u16-casexfrm: Likewise.
32271         * modules/unicase/u16-ct-casefold: Likewise.
32272         * modules/unicase/u16-ct-tolower: Likewise.
32273         * modules/unicase/u16-ct-totitle: Likewise.
32274         * modules/unicase/u16-ct-toupper: Likewise.
32275         * modules/unicase/u16-is-cased: Likewise.
32276         * modules/unicase/u16-is-casefolded: Likewise.
32277         * modules/unicase/u16-is-lowercase: Likewise.
32278         * modules/unicase/u16-is-titlecase: Likewise.
32279         * modules/unicase/u16-is-uppercase: Likewise.
32280         * modules/unicase/u16-prefix-context: Likewise.
32281         * modules/unicase/u16-suffix-context: Likewise.
32282         * modules/unicase/u16-tolower: Likewise.
32283         * modules/unicase/u16-totitle: Likewise.
32284         * modules/unicase/u16-toupper: Likewise.
32285         * modules/unicase/u32-casecmp: Likewise.
32286         * modules/unicase/u32-casecoll: Likewise.
32287         * modules/unicase/u32-casefold: Likewise.
32288         * modules/unicase/u32-casexfrm: Likewise.
32289         * modules/unicase/u32-ct-casefold: Likewise.
32290         * modules/unicase/u32-ct-tolower: Likewise.
32291         * modules/unicase/u32-ct-totitle: Likewise.
32292         * modules/unicase/u32-ct-toupper: Likewise.
32293         * modules/unicase/u32-is-cased: Likewise.
32294         * modules/unicase/u32-is-casefolded: Likewise.
32295         * modules/unicase/u32-is-lowercase: Likewise.
32296         * modules/unicase/u32-is-titlecase: Likewise.
32297         * modules/unicase/u32-is-uppercase: Likewise.
32298         * modules/unicase/u32-prefix-context: Likewise.
32299         * modules/unicase/u32-suffix-context: Likewise.
32300         * modules/unicase/u32-tolower: Likewise.
32301         * modules/unicase/u32-totitle: Likewise.
32302         * modules/unicase/u32-toupper: Likewise.
32303         * modules/unicase/ulc-casecmp: Likewise.
32304         * modules/unicase/ulc-casecoll: Likewise.
32305         * modules/unicase/ulc-casexfrm: Likewise.
32306         * modules/uniconv/u8-conv-from-enc: Likewise.
32307         * modules/uniconv/u8-conv-to-enc: Likewise.
32308         * modules/uniconv/u8-strconv-from-enc: Likewise.
32309         * modules/uniconv/u8-strconv-from-locale: Likewise.
32310         * modules/uniconv/u8-strconv-to-enc: Likewise.
32311         * modules/uniconv/u8-strconv-to-locale: Likewise.
32312         * modules/uniconv/u16-conv-from-enc: Likewise.
32313         * modules/uniconv/u16-conv-to-enc: Likewise.
32314         * modules/uniconv/u16-strconv-from-enc: Likewise.
32315         * modules/uniconv/u16-strconv-from-locale: Likewise.
32316         * modules/uniconv/u16-strconv-to-enc: Likewise.
32317         * modules/uniconv/u16-strconv-to-locale: Likewise.
32318         * modules/uniconv/u32-conv-from-enc: Likewise.
32319         * modules/uniconv/u32-conv-to-enc: Likewise.
32320         * modules/uniconv/u32-strconv-from-enc: Likewise.
32321         * modules/uniconv/u32-strconv-from-locale: Likewise.
32322         * modules/uniconv/u32-strconv-to-enc: Likewise.
32323         * modules/uniconv/u32-strconv-to-locale: Likewise.
32324         * modules/unictype/bidicategory-byname: Likewise.
32325         * modules/unictype/bidicategory-name: Likewise.
32326         * modules/unictype/bidicategory-of: Likewise.
32327         * modules/unictype/bidicategory-test: Likewise.
32328         * modules/unictype/block-list: Likewise.
32329         * modules/unictype/block-test: Likewise.
32330         * modules/unictype/category-C: Likewise.
32331         * modules/unictype/category-Cc: Likewise.
32332         * modules/unictype/category-Cf: Likewise.
32333         * modules/unictype/category-Cn: Likewise.
32334         * modules/unictype/category-Co: Likewise.
32335         * modules/unictype/category-Cs: Likewise.
32336         * modules/unictype/category-L: Likewise.
32337         * modules/unictype/category-Ll: Likewise.
32338         * modules/unictype/category-Lm: Likewise.
32339         * modules/unictype/category-Lo: Likewise.
32340         * modules/unictype/category-Lt: Likewise.
32341         * modules/unictype/category-Lu: Likewise.
32342         * modules/unictype/category-M: Likewise.
32343         * modules/unictype/category-Mc: Likewise.
32344         * modules/unictype/category-Me: Likewise.
32345         * modules/unictype/category-Mn: Likewise.
32346         * modules/unictype/category-N: Likewise.
32347         * modules/unictype/category-Nd: Likewise.
32348         * modules/unictype/category-Nl: Likewise.
32349         * modules/unictype/category-No: Likewise.
32350         * modules/unictype/category-P: Likewise.
32351         * modules/unictype/category-Pc: Likewise.
32352         * modules/unictype/category-Pd: Likewise.
32353         * modules/unictype/category-Pe: Likewise.
32354         * modules/unictype/category-Pf: Likewise.
32355         * modules/unictype/category-Pi: Likewise.
32356         * modules/unictype/category-Po: Likewise.
32357         * modules/unictype/category-Ps: Likewise.
32358         * modules/unictype/category-S: Likewise.
32359         * modules/unictype/category-Sc: Likewise.
32360         * modules/unictype/category-Sk: Likewise.
32361         * modules/unictype/category-Sm: Likewise.
32362         * modules/unictype/category-So: Likewise.
32363         * modules/unictype/category-Z: Likewise.
32364         * modules/unictype/category-Zl: Likewise.
32365         * modules/unictype/category-Zp: Likewise.
32366         * modules/unictype/category-Zs: Likewise.
32367         * modules/unictype/category-and: Likewise.
32368         * modules/unictype/category-and-not: Likewise.
32369         * modules/unictype/category-byname: Likewise.
32370         * modules/unictype/category-name: Likewise.
32371         * modules/unictype/category-none: Likewise.
32372         * modules/unictype/category-of: Likewise.
32373         * modules/unictype/category-or: Likewise.
32374         * modules/unictype/category-test: Likewise.
32375         * modules/unictype/combining-class: Likewise.
32376         * modules/unictype/ctype-alnum: Likewise.
32377         * modules/unictype/ctype-alpha: Likewise.
32378         * modules/unictype/ctype-blank: Likewise.
32379         * modules/unictype/ctype-cntrl: Likewise.
32380         * modules/unictype/ctype-digit: Likewise.
32381         * modules/unictype/ctype-graph: Likewise.
32382         * modules/unictype/ctype-lower: Likewise.
32383         * modules/unictype/ctype-print: Likewise.
32384         * modules/unictype/ctype-punct: Likewise.
32385         * modules/unictype/ctype-space: Likewise.
32386         * modules/unictype/ctype-upper: Likewise.
32387         * modules/unictype/ctype-xdigit: Likewise.
32388         * modules/unictype/decimal-digit: Likewise.
32389         * modules/unictype/digit: Likewise.
32390         * modules/unictype/mirror: Likewise.
32391         * modules/unictype/numeric: Likewise.
32392         * modules/unictype/property-alphabetic: Likewise.
32393         * modules/unictype/property-ascii-hex-digit: Likewise.
32394         * modules/unictype/property-bidi-arabic-digit: Likewise.
32395         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
32396         * modules/unictype/property-bidi-block-separator: Likewise.
32397         * modules/unictype/property-bidi-boundary-neutral: Likewise.
32398         * modules/unictype/property-bidi-common-separator: Likewise.
32399         * modules/unictype/property-bidi-control: Likewise.
32400         * modules/unictype/property-bidi-embedding-or-override: Likewise.
32401         * modules/unictype/property-bidi-eur-num-separator: Likewise.
32402         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
32403         * modules/unictype/property-bidi-european-digit: Likewise.
32404         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
32405         * modules/unictype/property-bidi-left-to-right: Likewise.
32406         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
32407         * modules/unictype/property-bidi-other-neutral: Likewise.
32408         * modules/unictype/property-bidi-pdf: Likewise.
32409         * modules/unictype/property-bidi-segment-separator: Likewise.
32410         * modules/unictype/property-bidi-whitespace: Likewise.
32411         * modules/unictype/property-byname: Likewise.
32412         * modules/unictype/property-combining: Likewise.
32413         * modules/unictype/property-composite: Likewise.
32414         * modules/unictype/property-currency-symbol: Likewise.
32415         * modules/unictype/property-dash: Likewise.
32416         * modules/unictype/property-decimal-digit: Likewise.
32417         * modules/unictype/property-default-ignorable-code-point: Likewise.
32418         * modules/unictype/property-deprecated: Likewise.
32419         * modules/unictype/property-diacritic: Likewise.
32420         * modules/unictype/property-extender: Likewise.
32421         * modules/unictype/property-format-control: Likewise.
32422         * modules/unictype/property-grapheme-base: Likewise.
32423         * modules/unictype/property-grapheme-extend: Likewise.
32424         * modules/unictype/property-grapheme-link: Likewise.
32425         * modules/unictype/property-hex-digit: Likewise.
32426         * modules/unictype/property-hyphen: Likewise.
32427         * modules/unictype/property-id-continue: Likewise.
32428         * modules/unictype/property-id-start: Likewise.
32429         * modules/unictype/property-ideographic: Likewise.
32430         * modules/unictype/property-ids-binary-operator: Likewise.
32431         * modules/unictype/property-ids-trinary-operator: Likewise.
32432         * modules/unictype/property-ignorable-control: Likewise.
32433         * modules/unictype/property-iso-control: Likewise.
32434         * modules/unictype/property-join-control: Likewise.
32435         * modules/unictype/property-left-of-pair: Likewise.
32436         * modules/unictype/property-line-separator: Likewise.
32437         * modules/unictype/property-logical-order-exception: Likewise.
32438         * modules/unictype/property-lowercase: Likewise.
32439         * modules/unictype/property-math: Likewise.
32440         * modules/unictype/property-non-break: Likewise.
32441         * modules/unictype/property-not-a-character: Likewise.
32442         * modules/unictype/property-numeric: Likewise.
32443         * modules/unictype/property-other-alphabetic: Likewise.
32444         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
32445         * modules/unictype/property-other-grapheme-extend: Likewise.
32446         * modules/unictype/property-other-id-continue: Likewise.
32447         * modules/unictype/property-other-id-start: Likewise.
32448         * modules/unictype/property-other-lowercase: Likewise.
32449         * modules/unictype/property-other-math: Likewise.
32450         * modules/unictype/property-other-uppercase: Likewise.
32451         * modules/unictype/property-paired-punctuation: Likewise.
32452         * modules/unictype/property-paragraph-separator: Likewise.
32453         * modules/unictype/property-pattern-syntax: Likewise.
32454         * modules/unictype/property-pattern-white-space: Likewise.
32455         * modules/unictype/property-private-use: Likewise.
32456         * modules/unictype/property-punctuation: Likewise.
32457         * modules/unictype/property-quotation-mark: Likewise.
32458         * modules/unictype/property-radical: Likewise.
32459         * modules/unictype/property-sentence-terminal: Likewise.
32460         * modules/unictype/property-soft-dotted: Likewise.
32461         * modules/unictype/property-space: Likewise.
32462         * modules/unictype/property-terminal-punctuation: Likewise.
32463         * modules/unictype/property-test: Likewise.
32464         * modules/unictype/property-titlecase: Likewise.
32465         * modules/unictype/property-unassigned-code-value: Likewise.
32466         * modules/unictype/property-unified-ideograph: Likewise.
32467         * modules/unictype/property-uppercase: Likewise.
32468         * modules/unictype/property-variation-selector: Likewise.
32469         * modules/unictype/property-white-space: Likewise.
32470         * modules/unictype/property-xid-continue: Likewise.
32471         * modules/unictype/property-xid-start: Likewise.
32472         * modules/unictype/property-zero-width: Likewise.
32473         * modules/unictype/scripts: Likewise.
32474         * modules/unictype/syntax-c-ident: Likewise.
32475         * modules/unictype/syntax-c-whitespace: Likewise.
32476         * modules/unictype/syntax-java-ident: Likewise.
32477         * modules/unictype/syntax-java-whitespace: Likewise.
32478         * modules/unilbrk/u8-possible-linebreaks: Likewise.
32479         * modules/unilbrk/u8-width-linebreaks: Likewise.
32480         * modules/unilbrk/u16-possible-linebreaks: Likewise.
32481         * modules/unilbrk/u16-width-linebreaks: Likewise.
32482         * modules/unilbrk/u32-possible-linebreaks: Likewise.
32483         * modules/unilbrk/u32-width-linebreaks: Likewise.
32484         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
32485         * modules/unilbrk/ulc-width-linebreaks: Likewise.
32486         * modules/uniname/uniname: Likewise.
32487         * modules/uninorm/canonical-decomposition: Likewise.
32488         * modules/uninorm/composition: Likewise.
32489         * modules/uninorm/decomposing-form: Likewise.
32490         * modules/uninorm/decomposition: Likewise.
32491         * modules/uninorm/filter: Likewise.
32492         * modules/uninorm/nfc: Likewise.
32493         * modules/uninorm/nfd: Likewise.
32494         * modules/uninorm/nfkc: Likewise.
32495         * modules/uninorm/nfkd: Likewise.
32496         * modules/uninorm/u8-normalize: Likewise.
32497         * modules/uninorm/u8-normcmp: Likewise.
32498         * modules/uninorm/u8-normcoll: Likewise.
32499         * modules/uninorm/u8-normxfrm: Likewise.
32500         * modules/uninorm/u16-normalize: Likewise.
32501         * modules/uninorm/u16-normcmp: Likewise.
32502         * modules/uninorm/u16-normcoll: Likewise.
32503         * modules/uninorm/u16-normxfrm: Likewise.
32504         * modules/uninorm/u32-normalize: Likewise.
32505         * modules/uninorm/u32-normcmp: Likewise.
32506         * modules/uninorm/u32-normcoll: Likewise.
32507         * modules/uninorm/u32-normxfrm: Likewise.
32508         * modules/unistdio/u8-asnprintf: Likewise.
32509         * modules/unistdio/u8-asprintf: Likewise.
32510         * modules/unistdio/u8-snprintf: Likewise.
32511         * modules/unistdio/u8-sprintf: Likewise.
32512         * modules/unistdio/u8-u8-asnprintf: Likewise.
32513         * modules/unistdio/u8-u8-asprintf: Likewise.
32514         * modules/unistdio/u8-u8-snprintf: Likewise.
32515         * modules/unistdio/u8-u8-sprintf: Likewise.
32516         * modules/unistdio/u8-u8-vasnprintf: Likewise.
32517         * modules/unistdio/u8-u8-vasprintf: Likewise.
32518         * modules/unistdio/u8-u8-vsnprintf: Likewise.
32519         * modules/unistdio/u8-u8-vsprintf: Likewise.
32520         * modules/unistdio/u8-vasnprintf: Likewise.
32521         * modules/unistdio/u8-vasprintf: Likewise.
32522         * modules/unistdio/u8-vsnprintf: Likewise.
32523         * modules/unistdio/u8-vsprintf: Likewise.
32524         * modules/unistdio/u16-asnprintf: Likewise.
32525         * modules/unistdio/u16-asprintf: Likewise.
32526         * modules/unistdio/u16-snprintf: Likewise.
32527         * modules/unistdio/u16-sprintf: Likewise.
32528         * modules/unistdio/u16-u16-asnprintf: Likewise.
32529         * modules/unistdio/u16-u16-asprintf: Likewise.
32530         * modules/unistdio/u16-u16-snprintf: Likewise.
32531         * modules/unistdio/u16-u16-sprintf: Likewise.
32532         * modules/unistdio/u16-u16-vasnprintf: Likewise.
32533         * modules/unistdio/u16-u16-vasprintf: Likewise.
32534         * modules/unistdio/u16-u16-vsnprintf: Likewise.
32535         * modules/unistdio/u16-u16-vsprintf: Likewise.
32536         * modules/unistdio/u16-vasnprintf: Likewise.
32537         * modules/unistdio/u16-vasprintf: Likewise.
32538         * modules/unistdio/u16-vsnprintf: Likewise.
32539         * modules/unistdio/u16-vsprintf: Likewise.
32540         * modules/unistdio/u32-asnprintf: Likewise.
32541         * modules/unistdio/u32-asprintf: Likewise.
32542         * modules/unistdio/u32-snprintf: Likewise.
32543         * modules/unistdio/u32-sprintf: Likewise.
32544         * modules/unistdio/u32-u32-asnprintf: Likewise.
32545         * modules/unistdio/u32-u32-asprintf: Likewise.
32546         * modules/unistdio/u32-u32-snprintf: Likewise.
32547         * modules/unistdio/u32-u32-sprintf: Likewise.
32548         * modules/unistdio/u32-u32-vasnprintf: Likewise.
32549         * modules/unistdio/u32-u32-vasprintf: Likewise.
32550         * modules/unistdio/u32-u32-vsnprintf: Likewise.
32551         * modules/unistdio/u32-u32-vsprintf: Likewise.
32552         * modules/unistdio/u32-vasnprintf: Likewise.
32553         * modules/unistdio/u32-vasprintf: Likewise.
32554         * modules/unistdio/u32-vsnprintf: Likewise.
32555         * modules/unistdio/u32-vsprintf: Likewise.
32556         * modules/unistdio/ulc-asnprintf: Likewise.
32557         * modules/unistdio/ulc-asprintf: Likewise.
32558         * modules/unistdio/ulc-fprintf: Likewise.
32559         * modules/unistdio/ulc-snprintf: Likewise.
32560         * modules/unistdio/ulc-sprintf: Likewise.
32561         * modules/unistdio/ulc-vasnprintf: Likewise.
32562         * modules/unistdio/ulc-vasprintf: Likewise.
32563         * modules/unistdio/ulc-vfprintf: Likewise.
32564         * modules/unistdio/ulc-vsnprintf: Likewise.
32565         * modules/unistdio/ulc-vsprintf: Likewise.
32566         * modules/unistr/u8-check: Likewise.
32567         * modules/unistr/u8-chr: Likewise.
32568         * modules/unistr/u8-cmp: Likewise.
32569         * modules/unistr/u8-cmp2: Likewise.
32570         * modules/unistr/u8-cpy: Likewise.
32571         * modules/unistr/u8-cpy-alloc: Likewise.
32572         * modules/unistr/u8-endswith: Likewise.
32573         * modules/unistr/u8-mblen: Likewise.
32574         * modules/unistr/u8-mbsnlen: Likewise.
32575         * modules/unistr/u8-mbtouc: Likewise.
32576         * modules/unistr/u8-mbtouc-unsafe: Likewise.
32577         * modules/unistr/u8-mbtoucr: Likewise.
32578         * modules/unistr/u8-move: Likewise.
32579         * modules/unistr/u8-next: Likewise.
32580         * modules/unistr/u8-prev: Likewise.
32581         * modules/unistr/u8-set: Likewise.
32582         * modules/unistr/u8-startswith: Likewise.
32583         * modules/unistr/u8-stpcpy: Likewise.
32584         * modules/unistr/u8-stpncpy: Likewise.
32585         * modules/unistr/u8-strcat: Likewise.
32586         * modules/unistr/u8-strchr: Likewise.
32587         * modules/unistr/u8-strcmp: Likewise.
32588         * modules/unistr/u8-strcoll: Likewise.
32589         * modules/unistr/u8-strcpy: Likewise.
32590         * modules/unistr/u8-strcspn: Likewise.
32591         * modules/unistr/u8-strdup: Likewise.
32592         * modules/unistr/u8-strlen: Likewise.
32593         * modules/unistr/u8-strmblen: Likewise.
32594         * modules/unistr/u8-strmbtouc: Likewise.
32595         * modules/unistr/u8-strncat: Likewise.
32596         * modules/unistr/u8-strncmp: Likewise.
32597         * modules/unistr/u8-strncpy: Likewise.
32598         * modules/unistr/u8-strnlen: Likewise.
32599         * modules/unistr/u8-strpbrk: Likewise.
32600         * modules/unistr/u8-strrchr: Likewise.
32601         * modules/unistr/u8-strspn: Likewise.
32602         * modules/unistr/u8-strstr: Likewise.
32603         * modules/unistr/u8-strtok: Likewise.
32604         * modules/unistr/u8-to-u16: Likewise.
32605         * modules/unistr/u8-to-u32: Likewise.
32606         * modules/unistr/u8-uctomb: Likewise.
32607         * modules/unistr/u16-check: Likewise.
32608         * modules/unistr/u16-chr: Likewise.
32609         * modules/unistr/u16-cmp: Likewise.
32610         * modules/unistr/u16-cmp2: Likewise.
32611         * modules/unistr/u16-cpy: Likewise.
32612         * modules/unistr/u16-cpy-alloc: Likewise.
32613         * modules/unistr/u16-endswith: Likewise.
32614         * modules/unistr/u16-mblen: Likewise.
32615         * modules/unistr/u16-mbsnlen: Likewise.
32616         * modules/unistr/u16-mbtouc: Likewise.
32617         * modules/unistr/u16-mbtouc-unsafe: Likewise.
32618         * modules/unistr/u16-mbtoucr: Likewise.
32619         * modules/unistr/u16-move: Likewise.
32620         * modules/unistr/u16-next: Likewise.
32621         * modules/unistr/u16-prev: Likewise.
32622         * modules/unistr/u16-set: Likewise.
32623         * modules/unistr/u16-startswith: Likewise.
32624         * modules/unistr/u16-stpcpy: Likewise.
32625         * modules/unistr/u16-stpncpy: Likewise.
32626         * modules/unistr/u16-strcat: Likewise.
32627         * modules/unistr/u16-strchr: Likewise.
32628         * modules/unistr/u16-strcmp: Likewise.
32629         * modules/unistr/u16-strcoll: Likewise.
32630         * modules/unistr/u16-strcpy: Likewise.
32631         * modules/unistr/u16-strcspn: Likewise.
32632         * modules/unistr/u16-strdup: Likewise.
32633         * modules/unistr/u16-strlen: Likewise.
32634         * modules/unistr/u16-strmblen: Likewise.
32635         * modules/unistr/u16-strmbtouc: Likewise.
32636         * modules/unistr/u16-strncat: Likewise.
32637         * modules/unistr/u16-strncmp: Likewise.
32638         * modules/unistr/u16-strncpy: Likewise.
32639         * modules/unistr/u16-strnlen: Likewise.
32640         * modules/unistr/u16-strpbrk: Likewise.
32641         * modules/unistr/u16-strrchr: Likewise.
32642         * modules/unistr/u16-strspn: Likewise.
32643         * modules/unistr/u16-strstr: Likewise.
32644         * modules/unistr/u16-strtok: Likewise.
32645         * modules/unistr/u16-to-u32: Likewise.
32646         * modules/unistr/u16-to-u8: Likewise.
32647         * modules/unistr/u16-uctomb: Likewise.
32648         * modules/unistr/u32-check: Likewise.
32649         * modules/unistr/u32-chr: Likewise.
32650         * modules/unistr/u32-cmp: Likewise.
32651         * modules/unistr/u32-cmp2: Likewise.
32652         * modules/unistr/u32-cpy: Likewise.
32653         * modules/unistr/u32-cpy-alloc: Likewise.
32654         * modules/unistr/u32-endswith: Likewise.
32655         * modules/unistr/u32-mblen: Likewise.
32656         * modules/unistr/u32-mbsnlen: Likewise.
32657         * modules/unistr/u32-mbtouc: Likewise.
32658         * modules/unistr/u32-mbtouc-unsafe: Likewise.
32659         * modules/unistr/u32-mbtoucr: Likewise.
32660         * modules/unistr/u32-move: Likewise.
32661         * modules/unistr/u32-next: Likewise.
32662         * modules/unistr/u32-prev: Likewise.
32663         * modules/unistr/u32-set: Likewise.
32664         * modules/unistr/u32-startswith: Likewise.
32665         * modules/unistr/u32-stpcpy: Likewise.
32666         * modules/unistr/u32-stpncpy: Likewise.
32667         * modules/unistr/u32-strcat: Likewise.
32668         * modules/unistr/u32-strchr: Likewise.
32669         * modules/unistr/u32-strcmp: Likewise.
32670         * modules/unistr/u32-strcoll: Likewise.
32671         * modules/unistr/u32-strcpy: Likewise.
32672         * modules/unistr/u32-strcspn: Likewise.
32673         * modules/unistr/u32-strdup: Likewise.
32674         * modules/unistr/u32-strlen: Likewise.
32675         * modules/unistr/u32-strmblen: Likewise.
32676         * modules/unistr/u32-strmbtouc: Likewise.
32677         * modules/unistr/u32-strncat: Likewise.
32678         * modules/unistr/u32-strncmp: Likewise.
32679         * modules/unistr/u32-strncpy: Likewise.
32680         * modules/unistr/u32-strnlen: Likewise.
32681         * modules/unistr/u32-strpbrk: Likewise.
32682         * modules/unistr/u32-strrchr: Likewise.
32683         * modules/unistr/u32-strspn: Likewise.
32684         * modules/unistr/u32-strstr: Likewise.
32685         * modules/unistr/u32-strtok: Likewise.
32686         * modules/unistr/u32-to-u16: Likewise.
32687         * modules/unistr/u32-to-u8: Likewise.
32688         * modules/unistr/u32-uctomb: Likewise.
32689         * modules/uniwbrk/u8-wordbreaks: Likewise.
32690         * modules/uniwbrk/u16-wordbreaks: Likewise.
32691         * modules/uniwbrk/u32-wordbreaks: Likewise.
32692         * modules/uniwbrk/ulc-wordbreaks: Likewise.
32693         * modules/uniwbrk/wordbreak-property: Likewise.
32694         * modules/uniwidth/u8-strwidth: Likewise.
32695         * modules/uniwidth/u8-width: Likewise.
32696         * modules/uniwidth/u16-strwidth: Likewise.
32697         * modules/uniwidth/u16-width: Likewise.
32698         * modules/uniwidth/u32-strwidth: Likewise.
32699         * modules/uniwidth/u32-width: Likewise.
32700         * modules/uniwidth/width: Likewise.
32701         * modules/unicase/cased-tests (Makefile.am): Link all test programs
32702         with $(LIBUNISTRING).
32703         * modules/unicase/ignorable-tests: Likewise.
32704         * modules/unicase/locale-language-tests: Likewise.
32705         * modules/unicase/tolower-tests: Likewise.
32706         * modules/unicase/totitle-tests: Likewise.
32707         * modules/unicase/toupper-tests: Likewise.
32708         * modules/unicase/u8-casecmp-tests: Likewise.
32709         * modules/unicase/u8-casecoll-tests: Likewise.
32710         * modules/unicase/u8-casefold-tests: Likewise.
32711         * modules/unicase/u8-is-cased-tests: Likewise.
32712         * modules/unicase/u8-is-casefolded-tests: Likewise.
32713         * modules/unicase/u8-is-lowercase-tests: Likewise.
32714         * modules/unicase/u8-is-titlecase-tests: Likewise.
32715         * modules/unicase/u8-is-uppercase-tests: Likewise.
32716         * modules/unicase/u8-tolower-tests: Likewise.
32717         * modules/unicase/u8-totitle-tests: Likewise.
32718         * modules/unicase/u8-toupper-tests: Likewise.
32719         * modules/unicase/u16-casecmp-tests: Likewise.
32720         * modules/unicase/u16-casecoll-tests: Likewise.
32721         * modules/unicase/u16-casefold-tests: Likewise.
32722         * modules/unicase/u16-is-cased-tests: Likewise.
32723         * modules/unicase/u16-is-casefolded-tests: Likewise.
32724         * modules/unicase/u16-is-lowercase-tests: Likewise.
32725         * modules/unicase/u16-is-titlecase-tests: Likewise.
32726         * modules/unicase/u16-is-uppercase-tests: Likewise.
32727         * modules/unicase/u16-tolower-tests: Likewise.
32728         * modules/unicase/u16-totitle-tests: Likewise.
32729         * modules/unicase/u16-toupper-tests: Likewise.
32730         * modules/unicase/u32-casecmp-tests: Likewise.
32731         * modules/unicase/u32-casecoll-tests: Likewise.
32732         * modules/unicase/u32-casefold-tests: Likewise.
32733         * modules/unicase/u32-is-cased-tests: Likewise.
32734         * modules/unicase/u32-is-casefolded-tests: Likewise.
32735         * modules/unicase/u32-is-lowercase-tests: Likewise.
32736         * modules/unicase/u32-is-titlecase-tests: Likewise.
32737         * modules/unicase/u32-is-uppercase-tests: Likewise.
32738         * modules/unicase/u32-tolower-tests: Likewise.
32739         * modules/unicase/u32-totitle-tests: Likewise.
32740         * modules/unicase/u32-toupper-tests: Likewise.
32741         * modules/unicase/ulc-casecmp-tests: Likewise.
32742         * modules/unicase/ulc-casecoll-tests: Likewise.
32743         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
32744         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
32745         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
32746         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
32747         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
32748         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
32749         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
32750         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
32751         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
32752         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
32753         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
32754         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
32755         * modules/unictype/bidicategory-byname-tests: Likewise.
32756         * modules/unictype/bidicategory-name-tests: Likewise.
32757         * modules/unictype/bidicategory-of-tests: Likewise.
32758         * modules/unictype/bidicategory-test-tests: Likewise.
32759         * modules/unictype/block-list-tests: Likewise.
32760         * modules/unictype/block-of-tests: Likewise.
32761         * modules/unictype/block-test-tests: Likewise.
32762         * modules/unictype/category-C-tests: Likewise.
32763         * modules/unictype/category-Cc-tests: Likewise.
32764         * modules/unictype/category-Cf-tests: Likewise.
32765         * modules/unictype/category-Cn-tests: Likewise.
32766         * modules/unictype/category-Co-tests: Likewise.
32767         * modules/unictype/category-Cs-tests: Likewise.
32768         * modules/unictype/category-L-tests: Likewise.
32769         * modules/unictype/category-Ll-tests: Likewise.
32770         * modules/unictype/category-Lm-tests: Likewise.
32771         * modules/unictype/category-Lo-tests: Likewise.
32772         * modules/unictype/category-Lt-tests: Likewise.
32773         * modules/unictype/category-Lu-tests: Likewise.
32774         * modules/unictype/category-M-tests: Likewise.
32775         * modules/unictype/category-Mc-tests: Likewise.
32776         * modules/unictype/category-Me-tests: Likewise.
32777         * modules/unictype/category-Mn-tests: Likewise.
32778         * modules/unictype/category-N-tests: Likewise.
32779         * modules/unictype/category-Nd-tests: Likewise.
32780         * modules/unictype/category-Nl-tests: Likewise.
32781         * modules/unictype/category-No-tests: Likewise.
32782         * modules/unictype/category-P-tests: Likewise.
32783         * modules/unictype/category-Pc-tests: Likewise.
32784         * modules/unictype/category-Pd-tests: Likewise.
32785         * modules/unictype/category-Pe-tests: Likewise.
32786         * modules/unictype/category-Pf-tests: Likewise.
32787         * modules/unictype/category-Pi-tests: Likewise.
32788         * modules/unictype/category-Po-tests: Likewise.
32789         * modules/unictype/category-Ps-tests: Likewise.
32790         * modules/unictype/category-S-tests: Likewise.
32791         * modules/unictype/category-Sc-tests: Likewise.
32792         * modules/unictype/category-Sk-tests: Likewise.
32793         * modules/unictype/category-Sm-tests: Likewise.
32794         * modules/unictype/category-So-tests: Likewise.
32795         * modules/unictype/category-Z-tests: Likewise.
32796         * modules/unictype/category-Zl-tests: Likewise.
32797         * modules/unictype/category-Zp-tests: Likewise.
32798         * modules/unictype/category-Zs-tests: Likewise.
32799         * modules/unictype/category-and-not-tests: Likewise.
32800         * modules/unictype/category-and-tests: Likewise.
32801         * modules/unictype/category-byname-tests: Likewise.
32802         * modules/unictype/category-name-tests: Likewise.
32803         * modules/unictype/category-none-tests: Likewise.
32804         * modules/unictype/category-of-tests: Likewise.
32805         * modules/unictype/category-or-tests: Likewise.
32806         * modules/unictype/category-test-withtable-tests: Likewise.
32807         * modules/unictype/combining-class-tests: Likewise.
32808         * modules/unictype/ctype-alnum-tests: Likewise.
32809         * modules/unictype/ctype-alpha-tests: Likewise.
32810         * modules/unictype/ctype-blank-tests: Likewise.
32811         * modules/unictype/ctype-cntrl-tests: Likewise.
32812         * modules/unictype/ctype-digit-tests: Likewise.
32813         * modules/unictype/ctype-graph-tests: Likewise.
32814         * modules/unictype/ctype-lower-tests: Likewise.
32815         * modules/unictype/ctype-print-tests: Likewise.
32816         * modules/unictype/ctype-punct-tests: Likewise.
32817         * modules/unictype/ctype-space-tests: Likewise.
32818         * modules/unictype/ctype-upper-tests: Likewise.
32819         * modules/unictype/ctype-xdigit-tests: Likewise.
32820         * modules/unictype/decimal-digit-tests: Likewise.
32821         * modules/unictype/digit-tests: Likewise.
32822         * modules/unictype/mirror-tests: Likewise.
32823         * modules/unictype/numeric-tests: Likewise.
32824         * modules/unictype/property-alphabetic-tests: Likewise.
32825         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
32826         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
32827         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
32828         * modules/unictype/property-bidi-block-separator-tests: Likewise.
32829         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
32830         * modules/unictype/property-bidi-common-separator-tests: Likewise.
32831         * modules/unictype/property-bidi-control-tests: Likewise.
32832         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
32833         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
32834         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
32835         * modules/unictype/property-bidi-european-digit-tests: Likewise.
32836         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
32837         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
32838         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
32839         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
32840         * modules/unictype/property-bidi-pdf-tests: Likewise.
32841         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
32842         * modules/unictype/property-bidi-whitespace-tests: Likewise.
32843         * modules/unictype/property-byname-tests: Likewise.
32844         * modules/unictype/property-combining-tests: Likewise.
32845         * modules/unictype/property-composite-tests: Likewise.
32846         * modules/unictype/property-currency-symbol-tests: Likewise.
32847         * modules/unictype/property-dash-tests: Likewise.
32848         * modules/unictype/property-decimal-digit-tests: Likewise.
32849         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
32850         * modules/unictype/property-deprecated-tests: Likewise.
32851         * modules/unictype/property-diacritic-tests: Likewise.
32852         * modules/unictype/property-extender-tests: Likewise.
32853         * modules/unictype/property-format-control-tests: Likewise.
32854         * modules/unictype/property-grapheme-base-tests: Likewise.
32855         * modules/unictype/property-grapheme-extend-tests: Likewise.
32856         * modules/unictype/property-grapheme-link-tests: Likewise.
32857         * modules/unictype/property-hex-digit-tests: Likewise.
32858         * modules/unictype/property-hyphen-tests: Likewise.
32859         * modules/unictype/property-id-continue-tests: Likewise.
32860         * modules/unictype/property-id-start-tests: Likewise.
32861         * modules/unictype/property-ideographic-tests: Likewise.
32862         * modules/unictype/property-ids-binary-operator-tests: Likewise.
32863         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
32864         * modules/unictype/property-ignorable-control-tests: Likewise.
32865         * modules/unictype/property-iso-control-tests: Likewise.
32866         * modules/unictype/property-join-control-tests: Likewise.
32867         * modules/unictype/property-left-of-pair-tests: Likewise.
32868         * modules/unictype/property-line-separator-tests: Likewise.
32869         * modules/unictype/property-logical-order-exception-tests: Likewise.
32870         * modules/unictype/property-lowercase-tests: Likewise.
32871         * modules/unictype/property-math-tests: Likewise.
32872         * modules/unictype/property-non-break-tests: Likewise.
32873         * modules/unictype/property-not-a-character-tests: Likewise.
32874         * modules/unictype/property-numeric-tests: Likewise.
32875         * modules/unictype/property-other-alphabetic-tests: Likewise.
32876         * modules/unictype/property-other-default-ignorable-code-point-tests:
32877         Likewise.
32878         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
32879         * modules/unictype/property-other-id-continue-tests: Likewise.
32880         * modules/unictype/property-other-id-start-tests: Likewise.
32881         * modules/unictype/property-other-lowercase-tests: Likewise.
32882         * modules/unictype/property-other-math-tests: Likewise.
32883         * modules/unictype/property-other-uppercase-tests: Likewise.
32884         * modules/unictype/property-paired-punctuation-tests: Likewise.
32885         * modules/unictype/property-paragraph-separator-tests: Likewise.
32886         * modules/unictype/property-pattern-syntax-tests: Likewise.
32887         * modules/unictype/property-pattern-white-space-tests: Likewise.
32888         * modules/unictype/property-private-use-tests: Likewise.
32889         * modules/unictype/property-punctuation-tests: Likewise.
32890         * modules/unictype/property-quotation-mark-tests: Likewise.
32891         * modules/unictype/property-radical-tests: Likewise.
32892         * modules/unictype/property-sentence-terminal-tests: Likewise.
32893         * modules/unictype/property-soft-dotted-tests: Likewise.
32894         * modules/unictype/property-space-tests: Likewise.
32895         * modules/unictype/property-terminal-punctuation-tests: Likewise.
32896         * modules/unictype/property-test-tests: Likewise.
32897         * modules/unictype/property-titlecase-tests: Likewise.
32898         * modules/unictype/property-unassigned-code-value-tests: Likewise.
32899         * modules/unictype/property-unified-ideograph-tests: Likewise.
32900         * modules/unictype/property-uppercase-tests: Likewise.
32901         * modules/unictype/property-variation-selector-tests: Likewise.
32902         * modules/unictype/property-white-space-tests: Likewise.
32903         * modules/unictype/property-xid-continue-tests: Likewise.
32904         * modules/unictype/property-xid-start-tests: Likewise.
32905         * modules/unictype/property-zero-width-tests: Likewise.
32906         * modules/unictype/scripts-tests: Likewise.
32907         * modules/unictype/syntax-c-ident-tests: Likewise.
32908         * modules/unictype/syntax-c-whitespace-tests: Likewise.
32909         * modules/unictype/syntax-java-ident-tests: Likewise.
32910         * modules/unictype/syntax-java-whitespace-tests: Likewise.
32911         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
32912         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
32913         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
32914         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
32915         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
32916         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
32917         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
32918         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
32919         * modules/uniname/uniname-tests: Likewise.
32920         * modules/uninorm/canonical-decomposition-tests: Likewise.
32921         * modules/uninorm/compat-decomposition-tests: Likewise.
32922         * modules/uninorm/composition-tests: Likewise.
32923         * modules/uninorm/decomposing-form-tests: Likewise.
32924         * modules/uninorm/decomposition-tests: Likewise.
32925         * modules/uninorm/filter-tests: Likewise.
32926         * modules/uninorm/nfc-tests: Likewise.
32927         * modules/uninorm/nfd-tests: Likewise.
32928         * modules/uninorm/nfkc-tests: Likewise.
32929         * modules/uninorm/nfkd-tests: Likewise.
32930         * modules/uninorm/u8-normcmp-tests: Likewise.
32931         * modules/uninorm/u8-normcoll-tests: Likewise.
32932         * modules/uninorm/u16-normcmp-tests: Likewise.
32933         * modules/uninorm/u16-normcoll-tests: Likewise.
32934         * modules/uninorm/u32-normcmp-tests: Likewise.
32935         * modules/uninorm/u32-normcoll-tests: Likewise.
32936         * modules/unistdio/u8-asnprintf-tests: Likewise.
32937         * modules/unistdio/u8-vasnprintf-tests: Likewise.
32938         * modules/unistdio/u8-vasprintf-tests: Likewise.
32939         * modules/unistdio/u8-vsnprintf-tests: Likewise.
32940         * modules/unistdio/u8-vsprintf-tests: Likewise.
32941         * modules/unistdio/u16-asnprintf-tests: Likewise.
32942         * modules/unistdio/u16-vasnprintf-tests: Likewise.
32943         * modules/unistdio/u16-vasprintf-tests: Likewise.
32944         * modules/unistdio/u16-vsnprintf-tests: Likewise.
32945         * modules/unistdio/u16-vsprintf-tests: Likewise.
32946         * modules/unistdio/u32-asnprintf-tests: Likewise.
32947         * modules/unistdio/u32-vasnprintf-tests: Likewise.
32948         * modules/unistdio/u32-vasprintf-tests: Likewise.
32949         * modules/unistdio/u32-vsnprintf-tests: Likewise.
32950         * modules/unistdio/u32-vsprintf-tests: Likewise.
32951         * modules/unistdio/ulc-asnprintf-tests: Likewise.
32952         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
32953         * modules/unistdio/ulc-vasprintf-tests: Likewise.
32954         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
32955         * modules/unistdio/ulc-vsprintf-tests: Likewise.
32956         * modules/unistr/u8-check-tests: Likewise.
32957         * modules/unistr/u8-chr-tests: Likewise.
32958         * modules/unistr/u8-cmp-tests: Likewise.
32959         * modules/unistr/u8-cmp2-tests: Likewise.
32960         * modules/unistr/u8-cpy-alloc-tests: Likewise.
32961         * modules/unistr/u8-cpy-tests: Likewise.
32962         * modules/unistr/u8-mblen-tests: Likewise.
32963         * modules/unistr/u8-mbsnlen-tests: Likewise.
32964         * modules/unistr/u8-mbtouc-tests: Likewise.
32965         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
32966         * modules/unistr/u8-mbtoucr-tests: Likewise.
32967         * modules/unistr/u8-move-tests: Likewise.
32968         * modules/unistr/u8-next-tests: Likewise.
32969         * modules/unistr/u8-prev-tests: Likewise.
32970         * modules/unistr/u8-set-tests: Likewise.
32971         * modules/unistr/u8-stpcpy-tests: Likewise.
32972         * modules/unistr/u8-stpncpy-tests: Likewise.
32973         * modules/unistr/u8-strcat-tests: Likewise.
32974         * modules/unistr/u8-strcmp-tests: Likewise.
32975         * modules/unistr/u8-strcoll-tests: Likewise.
32976         * modules/unistr/u8-strcpy-tests: Likewise.
32977         * modules/unistr/u8-strdup-tests: Likewise.
32978         * modules/unistr/u8-strlen-tests: Likewise.
32979         * modules/unistr/u8-strmblen-tests: Likewise.
32980         * modules/unistr/u8-strmbtouc-tests: Likewise.
32981         * modules/unistr/u8-strncat-tests: Likewise.
32982         * modules/unistr/u8-strncmp-tests: Likewise.
32983         * modules/unistr/u8-strncpy-tests: Likewise.
32984         * modules/unistr/u8-strnlen-tests: Likewise.
32985         * modules/unistr/u8-to-u16-tests: Likewise.
32986         * modules/unistr/u8-to-u32-tests: Likewise.
32987         * modules/unistr/u8-uctomb-tests: Likewise.
32988         * modules/unistr/u16-check-tests: Likewise.
32989         * modules/unistr/u16-chr-tests: Likewise.
32990         * modules/unistr/u16-cmp-tests: Likewise.
32991         * modules/unistr/u16-cmp2-tests: Likewise.
32992         * modules/unistr/u16-cpy-alloc-tests: Likewise.
32993         * modules/unistr/u16-cpy-tests: Likewise.
32994         * modules/unistr/u16-mblen-tests: Likewise.
32995         * modules/unistr/u16-mbsnlen-tests: Likewise.
32996         * modules/unistr/u16-mbtouc-tests: Likewise.
32997         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
32998         * modules/unistr/u16-mbtoucr-tests: Likewise.
32999         * modules/unistr/u16-move-tests: Likewise.
33000         * modules/unistr/u16-next-tests: Likewise.
33001         * modules/unistr/u16-prev-tests: Likewise.
33002         * modules/unistr/u16-set-tests: Likewise.
33003         * modules/unistr/u16-stpcpy-tests: Likewise.
33004         * modules/unistr/u16-stpncpy-tests: Likewise.
33005         * modules/unistr/u16-strcat-tests: Likewise.
33006         * modules/unistr/u16-strcmp-tests: Likewise.
33007         * modules/unistr/u16-strcoll-tests: Likewise.
33008         * modules/unistr/u16-strcpy-tests: Likewise.
33009         * modules/unistr/u16-strdup-tests: Likewise.
33010         * modules/unistr/u16-strlen-tests: Likewise.
33011         * modules/unistr/u16-strmblen-tests: Likewise.
33012         * modules/unistr/u16-strmbtouc-tests: Likewise.
33013         * modules/unistr/u16-strncat-tests: Likewise.
33014         * modules/unistr/u16-strncmp-tests: Likewise.
33015         * modules/unistr/u16-strncpy-tests: Likewise.
33016         * modules/unistr/u16-strnlen-tests: Likewise.
33017         * modules/unistr/u16-to-u32-tests: Likewise.
33018         * modules/unistr/u16-to-u8-tests: Likewise.
33019         * modules/unistr/u16-uctomb-tests: Likewise.
33020         * modules/unistr/u32-check-tests: Likewise.
33021         * modules/unistr/u32-chr-tests: Likewise.
33022         * modules/unistr/u32-cmp-tests: Likewise.
33023         * modules/unistr/u32-cmp2-tests: Likewise.
33024         * modules/unistr/u32-cpy-alloc-tests: Likewise.
33025         * modules/unistr/u32-cpy-tests: Likewise.
33026         * modules/unistr/u32-mblen-tests: Likewise.
33027         * modules/unistr/u32-mbsnlen-tests: Likewise.
33028         * modules/unistr/u32-mbtouc-tests: Likewise.
33029         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
33030         * modules/unistr/u32-mbtoucr-tests: Likewise.
33031         * modules/unistr/u32-move-tests: Likewise.
33032         * modules/unistr/u32-next-tests: Likewise.
33033         * modules/unistr/u32-prev-tests: Likewise.
33034         * modules/unistr/u32-set-tests: Likewise.
33035         * modules/unistr/u32-stpcpy-tests: Likewise.
33036         * modules/unistr/u32-stpncpy-tests: Likewise.
33037         * modules/unistr/u32-strcat-tests: Likewise.
33038         * modules/unistr/u32-strcmp-tests: Likewise.
33039         * modules/unistr/u32-strcoll-tests: Likewise.
33040         * modules/unistr/u32-strcpy-tests: Likewise.
33041         * modules/unistr/u32-strdup-tests: Likewise.
33042         * modules/unistr/u32-strlen-tests: Likewise.
33043         * modules/unistr/u32-strmblen-tests: Likewise.
33044         * modules/unistr/u32-strmbtouc-tests: Likewise.
33045         * modules/unistr/u32-strncat-tests: Likewise.
33046         * modules/unistr/u32-strncmp-tests: Likewise.
33047         * modules/unistr/u32-strncpy-tests: Likewise.
33048         * modules/unistr/u32-strnlen-tests: Likewise.
33049         * modules/unistr/u32-to-u16-tests: Likewise.
33050         * modules/unistr/u32-to-u8-tests: Likewise.
33051         * modules/unistr/u32-uctomb-tests: Likewise.
33052         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
33053         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
33054         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
33055         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
33056         * modules/uniwidth/u8-strwidth-tests: Likewise.
33057         * modules/uniwidth/u8-width-tests: Likewise.
33058         * modules/uniwidth/u16-strwidth-tests: Likewise.
33059         * modules/uniwidth/u16-width-tests: Likewise.
33060         * modules/uniwidth/u32-strwidth-tests: Likewise.
33061         * modules/uniwidth/u32-width-tests: Likewise.
33062         * modules/uniwidth/width-tests: Likewise.
33063
33064 2010-05-18  Richard Jones  <rjones@redhat.com>
33065
33066         doc: users.txt: list hivex
33067         * users.txt: Add hivex.
33068
33069 2010-05-18  Richard Jones  <rjones@redhat.com>
33070
33071         doc: users.txt: list febootstrap
33072         * users.txt: Add febootstrap.
33073
33074 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
33075
33076         bootstrap: fix an error when gnulib is not used as a git submodule
33077         * build-aux/bootstrap (gnulib_path): If its length is zero then
33078         assign "gnulib" to it.
33079         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
33080
33081 2010-05-16  Bruno Haible  <bruno@clisp.org>
33082
33083         Avoid autoconf warnings about AM_ICONV.
33084         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
33085         2.64.
33086
33087 2010-05-16  Bruno Haible  <bruno@clisp.org>
33088
33089         absolute-header: Make the macro usable in more situations.
33090         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
33091         from gl_ABSOLUTE_HEADER.
33092         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
33093
33094 2010-05-16  James Youngman  <jay@gnu.org>
33095
33096         doc: update users.txt
33097         * users.txt: Add CSSC.
33098
33099 2010-05-16  Jim Meyering  <meyering@redhat.com>
33100
33101         init.sh: fix an error in the previous change; add more comments
33102         * tests/init.sh: Compare exit code in loop against 9, not 2.
33103         Patch by Bruno Haible.
33104         Make the two tests more similar by adding an empty "then" clause.
33105         Add comments.
33106
33107         init.sh: avoid unnecessary shell re-exec
33108         * tests/init.sh: Improve the re-exec-required check to first test the
33109         current shell.  If it passes the test, do not search for a shell that
33110         does pass, and do not re-exec.  This test is particularly contorted to
33111         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
33112         of $(...) evokes a syntax error and causes immediate shell exit with
33113         status 2.  Bruno Haible reported that the re-exec made it impossible
33114         to single-step through any init.sh-using script.
33115
33116 2010-05-16  Bruno Haible  <bruno@clisp.org>
33117
33118         Fix collision between gnulib's and libintl's printf replacements.
33119         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
33120         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
33121         (printf): When using GNU C, map the __printf__ function to rpl_printf
33122         via __asm__. When not using GNU C, define rpl_printf instead of
33123         __printf__.
33124         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
33125         commit.
33126         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
33127         commit.
33128         * m4/asm-underscore.m4: New file.
33129         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
33130         * modules/stdio (Files): Add m4/asm-underscore.m4.
33131         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
33132         Reported by Ben Pfaff.
33133
33134 2010-05-16  Bruno Haible  <bruno@clisp.org>
33135
33136         verify: Avoid skipping the test on openSUSE 11.0.
33137         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
33138
33139 2010-05-13  Bruno Haible  <bruno@clisp.org>
33140
33141         Avoid useless warnings from G++.
33142         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
33143         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
33144         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
33145
33146 2010-05-11  Jim Meyering  <meyering@redhat.com>
33147
33148         maint.mk: tweak preceding change
33149         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
33150         regexps tighter by anchoring at EOL, and make the new group "shy"
33151         for slightly decreased overhead.
33152
33153 2010-05-11  Eric Blake  <eblake@redhat.com>
33154
33155         maint.mk: gnulib doesn't guarantee NSIG
33156         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
33157
33158 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
33159
33160         test-pwrite.c: Remove unused variable declaration.
33161         * tests/test-pwrite.c (main): Remove read_buf declaration.
33162
33163         Remove useless test-pwrite.sh file.
33164         * tests/test-pwrite.sh: Delete file.
33165         * modules/pwrite-tests: Remove references.
33166         Reported by Bruno Haible.
33167
33168 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
33169
33170         init.sh: fix a typo
33171         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
33172
33173 2010-05-10  Jim Meyering  <meyering@redhat.com>
33174
33175         maint.mk: avoid using a temporary file in the always-defined-macros check
33176         * top/maint.mk (.re-defmac): Remove rule.
33177         (gl_trap_): Remove definition.
33178         (sc_prohibit_always-defined_macros): Rewrite not to create and
33179         depend on a temporary file.  Instead, depend on GNU grep's ability
33180         to read a list of regular expressions from stdin when given "-f -".
33181
33182 2010-05-09  Bruno Haible  <bruno@clisp.org>
33183
33184         Update to GNU gettext 0.18, part 1.
33185         * m4/gettext.m4: Update to GNU gettext 0.18.
33186         * m4/intl.m4: Likewise.
33187         * m4/po.m4: Likewise.
33188         * modules/gettext (Files): Add m4/fcntl-o.m4.
33189         (configure.ac): Require gettext infrastructure from version 0.18.
33190
33191 2010-05-09  Jim Meyering  <meyering@redhat.com>
33192
33193         init.sh: enable MALLOC_PERTURB_
33194         * tests/init.sh: Enable glibc's malloc-perturbing option.
33195
33196         maint.mk: improve sc_cross_check_PATH_usage_in_tests
33197         With my recent change in init.sh from the two-line form:
33198             -#   : ${srcdir=.}
33199             -#   . "$srcdir/init.sh"; path_prepend_ .
33200             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
33201         I noticed that using the one-line form would cause this test
33202         to fail with a false-positive, or to stop working altogether,
33203         depending on whether help-version changed or all the tests did.
33204         * top/maint.mk (_hv_regex): Remove this definition.
33205         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
33206         (_hv_regex_strong): Use a stronger regex to check for conformance.
33207         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
33208         Give a separate diagnostic for lack of conforming use.
33209
33210         maint.mk: prohibit definition of symbols defined by gnulib
33211         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
33212         definition of symbols defined by gnulib.
33213
33214 2010-05-09  Bruno Haible  <bruno@clisp.org>
33215
33216         acl: Avoid test failure on Cygwin-hosted mingw.
33217         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
33218
33219 2010-05-09  Bruno Haible  <bruno@clisp.org>
33220
33221         error: Use system's fcntl function.
33222         * lib/error.c (fcntl): Undefine.
33223
33224 2010-05-09  Jim Meyering  <meyering@redhat.com>
33225
33226         verify: adjust formatting to be more consistent
33227         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
33228         argument-list '('s, and after one comma.
33229
33230 2010-05-09  Bruno Haible  <bruno@clisp.org>
33231
33232         error: More reliable output on mingw.
33233         * lib/error.c: Include <windows.h>.
33234         (is_open): New function.
33235         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
33236         defined.
33237
33238 2010-05-09  Bruno Haible  <bruno@clisp.org>
33239
33240         vasnprintf: Fix syntax errors in libintl build on mingw.
33241         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
33242         pad_ourselves and prec_ourselves after use.
33243
33244 2010-05-08  Bruno Haible  <bruno@clisp.org>
33245
33246         * lib/config.charset: Update comments for Cygwin 1.7.
33247         * lib/localcharset.c: Likewise.
33248
33249 2010-05-07  Jim Meyering  <meyering@redhat.com>
33250
33251         init.sh: improve comments
33252         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
33253         . "${srcdir=.}/init.sh"; path_prepend_ .
33254         Add a note about path_prepend_ and the alternative of using
33255         TESTS_ENVIRONMENT.
33256
33257 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
33258
33259         exclude: Unescape hashed patterns in wildcard mode.
33260         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
33261         to the hash list.
33262         * tests/test-exclude8.sh: New test case.
33263         * modules/exclude-tests: Add new test.
33264
33265 2010-05-05  Eric Blake  <eblake@redhat.com>
33266
33267         verify: automate tests
33268         * modules/verify-tests: New module.
33269         * tests/test-verify.sh: New file.
33270         * tests/test-verify.c: Guard each negative test with a unique id.
33271         Also avoid warning about unused left hand of comma expressions.
33272
33273 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
33274
33275         Further improvements to verify.h, suggested by Eric Blake.
33276         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
33277         the GL_* versions, to avoid collision with OpenGL.
33278         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
33279         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
33280         than testing merely whether it's defined.
33281
33282         Modify verify.h to pacify gcc -Wredundant_decls.
33283         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
33284         These use the prefix "GL_" since they're likely to be useful elsewhere.
33285         We may need to break them out into a different .h file.
33286         (__COUNTER__): Define to 0 if the compiler doesn't support it.
33287         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
33288         of verify_function__.
33289
33290 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
33291
33292         Tests for module pwrite.
33293         * modules/pwrite-tests: New file.
33294         * tests/test-pwrite.sh: New file.
33295         * tests/test-pwrite.c: New file.
33296
33297         New module pwrite.
33298         * lib/unistd.in.h (pwrite): New declaration.
33299         * lib/pwrite.c: New file, from glibc with modifications.
33300         * m4/pwrite.m4: New file.
33301         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
33302         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
33303         REPLACE_PWRITE.
33304         * modules/pwrite: New file.
33305         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
33306         REPLACE_PWRITE.
33307         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
33308         * doc/posix-functions/pwrite.texi: Mention the new module.
33309
33310 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
33311
33312         pread: Update documentation.
33313         * doc/posix-functions/pread.texi: Mention the 'pread' module.
33314
33315 2010-05-04  Eric Blake  <eblake@redhat.com>
33316
33317         docs: update cygwin progress
33318         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
33319         this bug.
33320         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
33321         Added in cygwin 1.7.2.
33322         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
33323         Likewise.
33324         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
33325         Likewise.
33326         * doc/glibc-functions/dup3.texi (dup3): Likewise.
33327         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
33328         * doc/glibc-functions/accept4.texi (accept4): Likewise.
33329         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
33330         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
33331         Mention nproc module.
33332         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
33333         bug in cygwin 1.7.5 addition.
33334         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
33335         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
33336         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
33337         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
33338         1.7.5.
33339         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
33340         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
33341         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
33342         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
33343         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
33344         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
33345         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
33346         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
33347         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
33348         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
33349         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
33350         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
33351         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
33352         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
33353         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
33354         Likewise.
33355         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
33356         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
33357         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
33358         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
33359         Likewise.
33360         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
33361         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
33362         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
33363         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
33364         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
33365         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
33366         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
33367         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
33368         Likewise.
33369         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
33370         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
33371         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
33372         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
33373         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
33374         Likewise.
33375         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
33376         Likewise.
33377         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
33378         Likewise.
33379         * doc/glibc-functions/xdrrec_endofrecord.texi
33380         (xdrrec_endofrecord): Likewise.
33381         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
33382         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
33383         Likewise.
33384         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
33385         Likewise.
33386
33387 2010-05-04  Jim Meyering  <meyering@redhat.com>
33388
33389         gendocs.sh: make its "-s FILE" option more useful
33390         * build-aux/gendocs.sh: When honoring the -s FILE option, update
33391         $PACKAGE to reflect the probably-different basename of "FILE".
33392
33393 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
33394
33395         bootstrap: don't ignore download_po_files failure
33396         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
33397         failure.
33398
33399 2010-05-03  Jim Meyering  <meyering@redhat.com>
33400
33401         maint.mk: allow to pass options to gendocs.sh
33402         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
33403         (gendocs_options_): New overridable variable.
33404
33405         gnu-web-doc-update: don't ignore configure or build failure
33406         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
33407
33408         announce-gen: backslash-escape '@'s in --help output
33409         * build-aux/announce-gen: Fix syntax errors.
33410
33411         maint.mk, announce-gen: allow project-specific announcement mail headers
33412         * top/maint.mk (translation_project_): Define default.
33413         (announcement_Cc_, announcement_mail_headers_): Likewise.
33414         (announcement): Invoke announce-gen with new --mail-headers option.
33415         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
33416
33417         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
33418         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
33419         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
33420         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
33421         line in the "err2" output file when running "make check" in verbose
33422         mode (i.e., with set -x enabled).
33423
33424 2010-05-03  Bruno Haible  <bruno@clisp.org>
33425
33426         wctob: Fix for weird platforms.
33427         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
33428         argument value.
33429
33430 2010-05-03  Jim Meyering  <meyering@redhat.com>
33431
33432         maint.mk: prohibit unwarranted use of <strings.h>
33433         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
33434         strings.h in a file that does not also use strcasecmp, strncasecmp,
33435         ffs or ffsll.
33436
33437         maint.mk: remove obsolete comments
33438         * top/maint.mk: Remove stale, commented-out rules.
33439
33440 2010-05-02  Bruno Haible  <bruno@clisp.org>
33441
33442         wcwidth: Declare also when it's aliased.
33443         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
33444         macro.
33445
33446 2010-05-02  Bruno Haible  <bruno@clisp.org>
33447
33448         Fix regression from 2010-04-25.
33449         * gnulib-tool (func_modules_transitive_closure): Check the status of
33450         all modules, not only of the tests that are of the form foo-tests where
33451         foo is a module.
33452
33453 2010-05-02  Bruno Haible  <bruno@clisp.org>
33454
33455         wctob: Work around nasty Cygwin 1.7.2 bug.
33456         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
33457         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
33458
33459 2010-05-01  Bruno Haible  <bruno@clisp.org>
33460
33461         fpurge: Sharper test.
33462         * tests/test-fpurge.c (main): Add one more ftell check.
33463         * modules/fpurge-tests (Depends-on): Add ftell.
33464         Suggested by Eric Blake.
33465
33466 2010-05-01  Bruno Haible  <bruno@clisp.org>
33467
33468         ftello: Another test.
33469         * tests/test-ftello3.c: New file.
33470         * modules/ftello-tests (Files): Add it.
33471         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
33472         MOSTLYCLEANFILES.
33473
33474         ftell: Another test.
33475         * tests/test-ftell3.c: New file.
33476         * modules/ftell-tests (Files): Add it.
33477         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
33478         MOSTLYCLEANFILES.
33479
33480 2010-05-01  Bruno Haible  <bruno@clisp.org>
33481
33482         ftell, ftello: Work around Solaris bug.
33483         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
33484         * lib/ftello.c: Include stdio-impl.h.
33485         (ftello): On Solaris, when _IOWRT is set, compute the result without
33486         looking at _IOREAD.
33487         * modules/ftello (Files): Add lib/stdio-impl.h.
33488         * doc/posix-functions/ftell.texi: Mention Solaris bug.
33489         * doc/posix-functions/ftello.texi: Likewise.
33490         Reported by Eric Blake.
33491
33492 2010-05-01  Bruno Haible  <bruno@clisp.org>
33493
33494         freading: Adapt to special meaning of _IOREAD flag on Solaris.
33495         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
33496         the _IOWRT flag is also set.
33497
33498 2010-05-01  Bruno Haible  <bruno@clisp.org>
33499
33500         Fix doc about a HP-UX stdio bug.
33501         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
33502         * doc/posix-functions/ftello.texi: Likewise.
33503
33504 2010-05-01  Bruno Haible  <bruno@clisp.org>
33505
33506         lseek test: Fix failure on Solaris.
33507         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
33508         output.
33509
33510 2010-04-30  Jim Meyering  <meyering@redhat.com>
33511
33512         bootstrap: don't ignore failure to generate po*/Makevars
33513         * build-aux/bootstrap (with_gettext): Don't ignore failure
33514         to create po/Makevars or runtime-po/Makevars.
33515
33516 2010-04-29  Eric Blake  <eblake@redhat.com>
33517
33518         headers: relax license to LGPLv2+
33519         * modules/fcntl-h (License): Relax license.
33520         * modules/getopt-posix (License): Likewise.
33521         * modules/locale (License): Likewise.
33522         * modules/math (License): Likewise.
33523         * modules/pty (License): Likewise.
33524         * modules/sched (License): Likewise.
33525         * modules/search (License): Likewise.
33526         * modules/spawn (License): Likewise.
33527         * modules/stdarg (License): Likewise.
33528         * modules/sysexits (License): Likewise.
33529
33530 2010-04-29  Jim Meyering  <meyering@redhat.com>
33531
33532         inttypes: relax license to LGPLv2+
33533         * modules/inttypes (License): Relax license.
33534
33535 2010-04-29  Simon Josefsson  <simon@josefsson.org>
33536
33537         * top/maint.mk (indent): Run twice to produce idempotent results.
33538
33539 2010-04-28  Bruno Haible  <bruno@clisp.org>
33540
33541         getdate: Generate getdate.c in the source directory.
33542         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
33543         MOSTLYCLEANFILES.
33544         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
33545
33546 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
33547
33548         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
33549         is not declared as a const *; avoid warnings in that case.
33550
33551 2010-04-28  Eric Blake  <eblake@redhat.com>
33552
33553         canonicalize-lgpl: avoid compiler warning
33554         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
33555         declaration' / 'extraneous semicolon' warning with some compilers.
33556         Reported by Andreas Gruenbacher.
33557
33558 2010-04-28  Jim Meyering  <meyering@redhat.com>
33559
33560         init.sh: ensure a more reliable exit status when exiting via trap
33561         * tests/init.sh (setup_): Don't rely on $? in signal handler.
33562         Inspired by patches from Dmitry V. Levin.
33563         Also trap on signal 3 (SIGQUIT).
33564
33565 2010-04-27  Bruno Haible  <bruno@clisp.org>
33566
33567         Update doc about utimes().
33568         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
33569         'utimens' module.
33570         Reported by Andreas Gruenbacher <agruen@suse.de>.
33571
33572 2010-04-27  Eric Blake  <eblake@redhat.com>
33573
33574         full-read, full-write: relax license
33575         * modules/full-read (License): Drop to LGPLv2+.
33576         * modules/full-write (License): Likewise.
33577         * modules/safe-read (License): Likewise.
33578         * modules/safe-write (License): Likewise.
33579
33580         pthread: mention library for linking
33581         * modules/pthread (Link): Mention $(LIB_PTHREAD).
33582
33583 2010-04-27  Jim Meyering  <meyering@redhat.com>
33584
33585         maint.mk: fix a bug introduced in last change
33586         * top/maint.mk (gl_assured_headers_): Now that all names are on
33587         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
33588         is not anchored to end of word, it should be adequate.
33589
33590         maint.mk: avoid side-effect in latest syntax-check
33591         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
33592         to run commands via $(shell...), and hence to incur cost only when
33593         the new rule is actually run.
33594
33595         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
33596         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
33597         and use that to create a regexp used to detect all #if HAVE_..._H uses.
33598         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
33599         (gl_assured_headers_, az_, AZ_): Define.
33600         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
33601
33602 2010-04-26  Jim Meyering  <jim@meyering.net>
33603             Bruno Haible  <bruno@clisp.org>
33604
33605         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
33606         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
33607         Prompted by an exchange with Gilles Espinasse.
33608
33609 2010-04-26  Jim Meyering  <meyering@redhat.com>
33610
33611         git-version-gen: aesthetic tweak
33612         * build-aux/git-version-gen: Use "$nl" rather than a literal,
33613         so that the command remains on a single line.
33614
33615 2010-04-26  Eric Blake  <eblake@redhat.com>
33616
33617         git-version-gen: allow use on EBCDIC hosts
33618         * build-aux/git-version-gen (dirty): Use literal rather than tying
33619         ourselves to ascii.
33620         Reported by Steve Goetze.
33621
33622 2010-04-25  Bruno Haible  <bruno@clisp.org>
33623
33624         netdb: Add support for GNULIB_POSIXCHECK.
33625         * lib/netdb.in.h: Include warn-on-use.h.
33626         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
33627         functions are used when GNULIB_POSIXCHECK is defined and the
33628         getaddrinfo module is not in use.
33629         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
33630         freeaddrinfo, gai_strerror, getnameinfo are declared.
33631         * modules/netdb (Depends-on): Add warn-on-use.
33632         (Makefile.am): Include warn-on-use.h in netdb.h.
33633
33634 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
33635
33636         build: avoid "make check" failure without .git/ directory
33637         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
33638         there is no .git/ directory.
33639
33640 2010-04-25  Bruno Haible  <bruno@clisp.org>
33641
33642         ptsname: Fix misuse of ttyname_r.
33643         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
33644         of errno.
33645
33646 2010-04-25  Bruno Haible  <bruno@clisp.org>
33647
33648         ttyname_r: Make it work on Solaris 10.
33649         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
33650         if the system function has the POSIX declaration. Test whether the
33651         function fails if the buffer is less than 128 bytes large.
33652         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
33653         system's ttyname_r function. Provide a reasonably large buffer.
33654         * modules/ttyname_r (Depends-on): Add extensions.
33655         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
33656
33657 2010-04-25  Bruno Haible  <bruno@clisp.org>
33658
33659         Use the 'extensions' module for some more functions on Solaris.
33660         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
33661         module.
33662         * doc/posix-functions/ctime_r.texi: Likewise.
33663         * doc/posix-functions/getgrgid_r.texi: Likewise.
33664         * doc/posix-functions/getgrnam_r.texi: Likewise.
33665         * doc/posix-functions/getpwnam_r.texi: Likewise.
33666         * doc/posix-functions/getpwuid_r.texi: Likewise.
33667         * doc/posix-functions/readdir_r.texi: Likewise.
33668         * doc/posix-functions/sigwait.texi: Likewise.
33669         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
33670         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
33671
33672 2010-04-25  Bruno Haible  <bruno@clisp.org>
33673
33674         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
33675         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
33676         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
33677         * lib/ttyname_r.c: Include <limits.h>.
33678         (ttyname_r): Define using the system's ttyname_r function, if it exists
33679         and not on Solaris.
33680         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
33681         set.
33682         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
33683         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
33684         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
33685         Reported by Simon Josefsson.
33686
33687 2010-04-25  Bruno Haible  <bruno@clisp.org>
33688
33689         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
33690         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
33691         * doc/posix-functions/ctime_r.texi: Likewise.
33692         * doc/posix-functions/getgrgid_r.texi: Likewise.
33693         * doc/posix-functions/getgrnam_r.texi: Likewise.
33694         * doc/posix-functions/getlogin_r.texi: Likewise.
33695         * doc/posix-functions/getpwnam_r.texi: Likewise.
33696         * doc/posix-functions/getpwuid_r.texi: Likewise.
33697         * doc/posix-functions/readdir_r.texi: Likewise.
33698         * doc/posix-functions/sigwait.texi: Likewise.
33699         * doc/posix-functions/ttyname_r.texi: Likewise.
33700         Reported by Simon Josefsson.
33701
33702 2010-04-25  Bruno Haible  <bruno@clisp.org>
33703
33704         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
33705         * gnulib-tool (func_usage): Document that --with-*-tests options apply
33706         also to --create-testdir.
33707         (func_acceptable): Don't consider the status of *-tests modules here.
33708         (func_modules_transitive_closure): Consider it here, before including a
33709         test module.
33710         (func_import, func_create_testdir): Set inc_all_direct_tests,
33711         inc_all_indirect_tests.
33712         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
33713         --create-testdir and --create-megatestdir.
33714
33715 2010-04-25  Bruno Haible  <bruno@clisp.org>
33716
33717         gnulib-tool: Add --without-*-tests options.
33718         * gnulib-tool (func_usage): Document the --without-*-tests options.
33719         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
33720         excl_unportable_tests): New variables.
33721         Fail if they are specified with --import or --update.
33722         (func_acceptable): Respect the excl_*_tests variables.
33723         (func_import): Set the excl_*_tests variables to empty.
33724
33725 2010-04-25  Simon Josefsson  <simon@josefsson.org>
33726             Bruno Haible  <bruno@clisp.org>
33727
33728         Work around a MacOS X 10.4 bug with openpty.
33729         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
33730         * tests/test-openpty.c (main): Close the master side explicitly.
33731
33732 2010-04-25  Bruno Haible  <bruno@clisp.org>
33733
33734         strnlen: Fix a C++ test error on MacOS X and Solaris.
33735         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
33736         the function is not declared.
33737         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
33738         Simon Josefsson.
33739
33740 2010-04-24  Bruno Haible  <bruno@clisp.org>
33741
33742         Avoid a gcc warning.
33743         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
33744         of correct type for %08lx directive.
33745         Reported by Eric Blake.
33746
33747 2010-04-24  Bruno Haible  <bruno@clisp.org>
33748
33749         vasnprintf: Correct errno value in case of out-of-memory.
33750         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
33751         or sprintf. Use the errno value from SNPRINTF or sprintf.
33752         Reported by Ian Beckwith <ianb@erislabs.net>.
33753
33754 2010-04-24  Bruno Haible  <bruno@clisp.org>
33755
33756         ansi-c++-opt: Find correct compiler when cross-compiling.
33757         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
33758         AC_CHECK_PROGS.
33759         Reported by Simon Josefsson.
33760
33761 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
33762
33763         vc-list-files: Add support for subversion
33764         * build-aux/vc-list-files: Use "svn list" to generate the list of
33765         files controlled by subversion.
33766
33767 2010-04-23  Jim Meyering  <meyering@redhat.com>
33768
33769         vc-list-files tests: convert to use init.sh
33770         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
33771         path_prepend_.
33772         Use Exit, not exit.
33773         Use skip_ rather than open coding it.
33774         Remove trap set-up and compare definitions.
33775         * tests/test-vc-list-files-git.sh: Likewise.
33776         * modules/vc-list-files-tests (Files): Add tests/init.sh.
33777
33778 2010-04-22  Simon Josefsson  <simon@josefsson.org>
33779
33780         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
33781         backup files.
33782
33783 2010-04-21  Simon Josefsson  <simon@josefsson.org>
33784
33785         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
33786
33787 2010-04-20  Eric Blake  <eblake@redhat.com>
33788
33789         tests: be robust to ignored SIGPIPE
33790         * tests/test-select-in.sh: Consume all output.
33791         * tests/test-lseek.sh: Check correct exit status, while avoiding
33792         EPIPE.
33793
33794 2010-04-20  Simon Josefsson  <simon@josefsson.org>
33795             Bruno Haible  <bruno@clisp.org>
33796
33797         visibility: Don't use -fvisibility if it leads to a warning.
33798         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
33799         yes, don't pretend that visibility works if it leads to a warning.
33800         Reported by Mike Gran <spk121@yahoo.com>.
33801
33802 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
33803
33804         * build-aux/bootstrap: Use "git -h" for testing for supported options
33805         instead of "git --help".  The short-form option only shows a summary,
33806         and doesn't layout the full man page.  Grep for the full option name
33807         in the summary, too.
33808
33809 2010-04-19  Bruno Haible  <bruno@clisp.org>
33810
33811         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
33812         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
33813         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
33814         mention of RELOCATABLE_STRIP.
33815         Reported by Sylvain Beucler <beuc@beuc.net>.
33816
33817 2010-04-19  Bruno Haible  <bruno@clisp.org>
33818
33819         * lib/diffseq.h: Fix typo in comment.
33820         Reported by Eric Blake.
33821
33822 2010-04-19  Bruno Haible  <bruno@clisp.org>
33823
33824         ioctl: Move autoconf macro to a .m4 file.
33825         * m4/ioctl.m4: New file, extracted from modules/ioctl.
33826         * modules/ioctl (Files): Add it.
33827         (configure.ac): Simply invoke gl_FUNC_IOCTL.
33828         Reported by Ian Beckwith <ianb@erislabs.net>.
33829
33830 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
33831             Bruno Haible  <bruno@clisp.org>
33832
33833         diffseq: Accommodate use-case with abstract arrays.
33834         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
33835         is not defined.
33836         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
33837         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
33838
33839 2010-04-18  Bruno Haible  <bruno@clisp.org>
33840
33841         * doc/posix-headers/stdbool.texi: More precise wording.
33842
33843 2010-04-17  Jim Meyering  <meyering@redhat.com>
33844
33845         maint.mk: use gnu-style indentation in an embedded perl script
33846         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
33847         Rename variable: s/two/last_two_bytes/
33848
33849 2010-04-16  Eric Blake  <eblake@redhat.com>
33850
33851         test-stdbool: skip test that fails with Solaris CC
33852         * tests/test-stdbool.c (f): Skip test that causes compilation
33853         error under buggy C++ compiler.
33854         * lib/stdbool.in.h: Document the limitation.
33855         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
33856
33857         setenv: allow compilation with C++
33858         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
33859         register keyword.
33860
33861         stdint: allow test to pass with C++
33862         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
33863
33864         getopt: allow compilation with C++
33865         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
33866         struct.
33867         * lib/getopt.c (_getopt_internal_r): Use correct type.
33868         Reported by Dagobert Michelson, via Joel E. Denny.
33869
33870 2010-04-16  Bruno Haible  <bruno@clisp.org>
33871
33872         Override netdb.h always.
33873         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
33874         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
33875         Reported by Ludovic Courtès <ludo@gnu.org>.
33876
33877 2010-04-15  Bruno Haible  <bruno@clisp.org>
33878
33879         openpty: Fix mistake from 2010-03-21.
33880         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
33881         Reported by Simon Josefsson.
33882
33883 2010-04-15  Eric Blake  <eblake@redhat.com>
33884
33885         test-forkpty: fix expected signature
33886         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
33887         Reported by Simon Josefsson.
33888
33889 2010-04-15  Jim Meyering  <meyering@redhat.com>
33890
33891         maint.mk: texinfo_suffix_re_: correct the default regexp
33892         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
33893
33894         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
33895         make it configurable via texinfo_suffix_re_.
33896
33897 2010-04-14  Eric Blake  <eblake@redhat.com>
33898
33899         strtok_r: relax license to LGPLv2+
33900         * modules/strtok_r (License): Relax license.
33901         Reported by Matthias Bolte.
33902
33903 2010-04-14  Simon Josefsson  <simon@josefsson.org>
33904
33905         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
33906         version 1.4.4 by default instead of requiring the libgcrypt
33907         version used during build.  This makes it possible to use the
33908         application with older but still binary compatible libgcrypt
33909         versions.
33910
33911 2010-04-13  Eric Blake  <eblake@redhat.com>
33912
33913         getopt-gnu: match recent glibc fixes and posix ruling
33914         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
33915         '+' handling, when requesting extensions.
33916         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
33917         'W;' handling.
33918         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
33919         * doc/posix-functions/getopt.texi (getopt): Document this.
33920         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
33921         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
33922         Likewise.
33923
33924         getopt: merge bug fixes from glibc
33925         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
33926         diagnostics.  Honor '+:' correctly.  Reject ';'.
33927
33928         getopt-posix: detect MacOS bug
33929         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
33930         optind when missing a required argument.
33931         * doc/posix-functions/getopt.texi (getopt): Document the bug.
33932         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
33933         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
33934         Likewise.
33935
33936         getopt-posix: avoid spurious failure on Solaris
33937         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
33938         an indicator that setting optind=1 is sufficient for reset.
33939
33940         getopt-posix: avoid spurious failure on FreeBSD
33941         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
33942         in POSIX mode, since the m4 test uses it.
33943
33944         gnulib-tool: silence warning on BSD sh
33945         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
33946
33947 2010-04-13  Jim Meyering  <meyering@redhat.com>
33948
33949         doc: users.txt: GNU patch now uses gnulib
33950         * users.txt: Add patch.
33951
33952 2010-04-12  Jim Meyering  <meyering@redhat.com>
33953
33954         maint.mk: generate more concise timing data for syntax-check rules
33955         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
33956         " done" from each line that reports a syntax-check test duration.
33957
33958 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
33959
33960         git-version-gen: use "git update-index..." rather than "git status"
33961         * build-aux/git-version-gen: Use git update-index --refresh, not
33962         "git status".  With some versions of git, "git status" would fail
33963         to update the index and result in an unwarranted "-dirty" suffix.
33964
33965 2010-04-11  Jim Meyering  <meyering@redhat.com>
33966
33967         openat: correct formatting (no semantic change)
33968         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
33969         Suggested by Bruno Haible.
33970
33971 2010-04-11  Bruno Haible  <bruno@clisp.org>
33972
33973         Stricter declaration checking in testdirs.
33974         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
33975         If for_tests is true, augment AM_CPPFLAGS to define
33976         GNULIB_STRICT_CHECKING.
33977         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
33978         GNULIB_STRICT_CHECKING is defined, verify that the function is
33979         declared.
33980
33981 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
33982             Bruno Haible  <bruno@clisp.org>
33983
33984         libunistring: Improve configure output.
33985         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
33986         Don't say "consider installing GNU libunistring" when checking again
33987         with libiconv.
33988
33989 2010-04-11  Bruno Haible  <bruno@clisp.org>
33990
33991         libunistring: Correct value of $LTLIBUNISTRING.
33992         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
33993         correct the value of $LTLIBUNISTRING.
33994
33995 2010-04-11  Bruno Haible  <bruno@clisp.org>
33996
33997         havelib: Add static libraries to LIBS in the right order.
33998         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
33999         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
34000
34001 2010-04-11  Bruno Haible  <bruno@clisp.org>
34002
34003         libunistring: Detect libunistring also when it depends on libiconv.
34004         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
34005         the second AC_LIB_HAVE_LINKFLAGS invocation.
34006
34007 2010-04-11  James Youngman  <jay@gnu.org>
34008
34009         close-stream: declare local scalars to be "const"
34010         * lib/close-stream.c (close_stream): Make boolean variables const
34011         to document the fact that we set but do not change them.
34012
34013 2010-04-11  Bruno Haible  <bruno@clisp.org>
34014
34015         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
34016
34017 2010-04-11  Jim Meyering  <meyering@redhat.com>
34018
34019         maint.mk: don't include dist-check.mk
34020         * top/maint.mk: Remove bogus include directive.
34021
34022         maint.mk: improve empty-line-at-EOF check
34023         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
34024         solution, rather than tail+Perl-based one.  The latter would read
34025         a few kilobytes from the end of each file, and did not handle empty
34026         files properly.
34027
34028         maint.mk: print the elapsed time for each syntax-check rule
34029         * top/maint.mk (sc_m_rules_): Save start time in a file.
34030         (sc_z_rules_): New rules: remove temp file and print elapsed time.
34031         (local-check): Interpose the .z rules
34032
34033 2010-04-11  Jim Meyering  <meyering@redhat.com>
34034
34035         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
34036         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
34037         empty file with one that ends in an empty line.
34038
34039 2010-04-10  Bruno Haible  <bruno@clisp.org>
34040
34041         mkdir: Make it work on mingw64.
34042         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
34043         * lib/mkdir.c: Update comment.
34044         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
34045
34046 2010-04-10  Bruno Haible  <bruno@clisp.org>
34047
34048         Don't override improved macro from newer autoconf.
34049         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
34050         autoconf >= 2.62.
34051         Reported by Joel E. Denny <jdenny@clemson.edu>.
34052
34053 2010-04-10  Jim Meyering  <meyering@redhat.com>
34054
34055         maint.mk: new syntax-check rule: prohibit empty lines at end of file
34056         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
34057
34058         maint.mk: correct a diagnostic
34059         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
34060         in diagnostic; now use $prohibit.
34061
34062 2010-04-10  Bruno Haible  <address@hidden>
34063
34064         fchownat: Fix a C++ test error on Solaris 8.
34065         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
34066         the function does not exist.
34067
34068 2010-04-10  Bruno Haible  <bruno@clisp.org>
34069
34070         vasnprintf: Add more tests.
34071         * tests/test-vasnprintf-posix.c: Include <errno.h>.
34072         (test_function): Test converting an invalid wide string.
34073
34074         vasnprintf: Correct handling of unconvertible wide string arguments.
34075         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
34076         VASNPRINTF.
34077         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
34078         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
34079         smaller than the expected maximum need for the directive. Set errno to
34080         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
34081         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
34082         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
34083         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
34084         * modules/vasnprintf (Files): Add m4/printf.m4.
34085         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
34086
34087 2010-04-10  Bruno Haible  <bruno@clisp.org>
34088
34089         vasnprintf: Fix crash in %ls directive.
34090         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
34091         string is passed as argument to %ls, with no precision and no width.
34092         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
34093
34094 2010-04-10  Bruno Haible  <bruno@clisp.org>
34095
34096         vasnprintf: Fix multiple test failures on mingw.
34097         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
34098         _snprintf, or snwprintf, not _snwprintf.
34099
34100 2010-04-10  Bruno Haible  <bruno@clisp.org>
34101
34102         write: Fix a C++ test error on mingw.
34103         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
34104
34105 2010-04-10  Bruno Haible  <bruno@clisp.org>
34106
34107         vasnprintf test: Reduce code duplication.
34108         * tests/test-vasnprintf.c (test_function): New function, extracted from
34109         test_vasnprintf.
34110         (test_vasnprintf, test_asnprintf): Invoke it.
34111
34112 2010-04-10  Bruno Haible  <bruno@clisp.org>
34113
34114         strnlen: Fix warning in C++ mode on MacOS X.
34115         * lib/string.in.h (strnlen): Use the modern idiom.
34116         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
34117         defining strnlen as a macro already in <config.h>.
34118         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
34119         REPLACE_STRNLEN.
34120         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
34121         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
34122
34123 2010-04-08  James Youngman  <jay@gnu.org>
34124
34125         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
34126         the example.
34127
34128 2010-04-09  Jim Meyering  <meyering@redhat.com>
34129
34130         maint.mk: print better diagnostic when there is no $(_hv_file)
34131         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
34132         announce that when $(_hv_file) (aka help-version) does not exist.
34133
34134         init.sh: run tr in the "C" locale to avoid multibyte interpretation
34135         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
34136         not try to interpret its random input bytes.  Jarno Rajahalme reported
34137         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
34138         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
34139         (mktempd_): Likewise, just in case.
34140
34141         ftruncate: add two years to projected module removal date: 2012
34142         * m4/ftruncate.m4: Adjust comments.
34143
34144         ftruncate: mark module as obsolete; even MinGW provides it, now
34145         * modules/ftruncate (Status): Obsolete.
34146         (Notice): Say that.
34147         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
34148         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
34149
34150 2010-04-08  Bruno Haible  <bruno@clisp.org>
34151
34152         Fix side effects from tests-related modules.
34153         * modules/dprintf-posix (Comment): New section.
34154         * modules/fprintf-posix (Comment): Likewise.
34155         * modules/obstack-printf-posix (Comment): Likewise.
34156         * modules/printf-posix (Comment): Likewise.
34157         * modules/snprintf-posix (Comment): Likewise.
34158         * modules/sprintf-posix (Comment): Likewise.
34159         * modules/vasnprintf-posix (Comment): Likewise.
34160         * modules/vasprintf-posix (Comment): Likewise.
34161         * modules/vdprintf-posix (Comment): Likewise.
34162         * modules/vfprintf-posix (Comment): Likewise.
34163         * modules/vprintf-posix (Comment): Likewise.
34164         * modules/vsnprintf-posix (Comment): Likewise.
34165         * modules/vsprintf-posix (Comment): Likewise.
34166         * modules/xprintf-posix (Comment): Likewise.
34167         * modules/xvasprintf-posix (Comment): Likewise.
34168         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
34169         * modules/floorf-tests (Depends-on): Likewise.
34170         * modules/round-tests (Depends-on): Likewise.
34171         * modules/roundf-tests (Depends-on): Likewise.
34172         * modules/trunc-tests (Depends-on): Likewise.
34173         * modules/truncf-tests (Depends-on): Likewise.
34174         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
34175         'fprintf-posix' module is not present.
34176         * tests/test-floorf2.c (check): Likewise.
34177         * tests/test-trunc2.c (check): Likewise.
34178         * tests/test-truncf2.c (check): Likewise.
34179         * tests/test-round2.c (equal): Likewise.
34180         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
34181
34182 2010-04-07  Karl Berry  <karl@gnu.org>
34183
34184         * config/srclist.txt,
34185         * config/srclistvars.sh,
34186         * config/srclist-update: doc fixes.
34187
34188 2010-04-07  Jim Meyering  <meyering@redhat.com>
34189
34190         maint.mk: add a PATH crosschecking syntax-check rule
34191         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
34192         Useful if you use a test like the one in help-version (coreutils,
34193         diffutils, grep, gzip) that ensures $(VERSION) matches what is
34194         printed by prog --version.
34195
34196 2010-04-06  Bruno Haible  <bruno@clisp.org>
34197
34198         Fix link error on mingw.
34199         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
34200         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
34201
34202 2010-04-06  Bruno Haible  <bruno@clisp.org>
34203
34204         Assume rmdir exists.
34205         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
34206
34207 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
34208
34209         doc: update users.txt
34210         * users.txt: Add gcal.
34211
34212 2010-04-06  Jim Meyering  <meyering@redhat.com>
34213
34214         init.sh: simply unset TMPDIR rather than risking env -i
34215         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
34216         although it probably works fine on all Unix-based systems, some
34217         systems (Cygwin?) cannot tolerate a totally cleared environment.
34218         Suggestion from Eric Blake.
34219
34220 2010-04-06  Jim Meyering  <meyering@redhat.com>
34221
34222         init.sh: portability fix: use env's POSIX-specified -i option not -u
34223         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
34224         than unportable env -u.  Solaris 5.11's env lacks support for -u.
34225
34226 2010-04-05  Bruno Haible  <bruno@clisp.org>
34227
34228         btowc: Work around Cygwin 1.7.2 bug.
34229         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
34230         does not map NUL to 0.
34231         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
34232
34233 2010-04-05  Bruno Haible  <bruno@clisp.org>
34234
34235         Make the multithread modules work on Cygwin 1.7.2.
34236         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
34237         imported symbols can be declared weak, so that it returns "no" on
34238         Cygwin 1.7.2.
34239
34240 2010-04-05  Bruno Haible  <bruno@clisp.org>
34241
34242         Use the module 'strncat'.
34243         * modules/unistr/u8-strncat (Depends-on): Add strncat.
34244
34245         Tests for module 'strncat'.
34246         * modules/strncat-tests: New file.
34247         * tests/test-strncat.c: New file.
34248
34249         New module 'strncat'.
34250         * lib/string.in.h (strncat): New declaration.
34251         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
34252         * m4/strncat.m4: New file, based on m4/memchr.m4.
34253         * modules/strncat: New file.
34254         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
34255         is declared.
34256         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
34257         REPLACE_STRNCAT.
34258         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
34259         REPLACE_STRNCAT.
34260         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
34261         module.
34262         * tests/test-string-c++.cc: Check signature of strncat.
34263
34264 2010-04-05  Jim Meyering  <meyering@redhat.com>
34265
34266         xstrtoumax-tests: convert to use init.sh
34267         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
34268         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
34269         Use Exit, not exit.
34270         Remove uses of $EXEEXT and "./" to run a program in the current dir.
34271
34272         xstrtoimax-tests: convert to use init.sh
34273         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
34274         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
34275         Use Exit, not exit.
34276         Remove uses of $EXEEXT and "./" to run a program in the current dir.
34277
34278 2010-04-05  Bruno Haible  <bruno@clisp.org>
34279
34280         sys_socket: Avoid #define replacements in C++ mode.
34281         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
34282         warning to the function if possible, rather than #defining the symbol
34283         to a dysfunctional alias.
34284
34285 2010-04-05  Bruno Haible  <bruno@clisp.org>
34286
34287         fseeko: Fix C++ test error on mingw.
34288         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
34289         gl_FUNC_FSEEKO.
34290         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
34291         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
34292         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
34293         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
34294
34295 2010-04-05  Bruno Haible  <bruno@clisp.org>
34296
34297         duplocale: Improve test output.
34298         * tests/test-duplocale.c (main): Print reason for skipped test.
34299
34300 2010-04-05  Bruno Haible  <bruno@clisp.org>
34301
34302         Assume rmdir exists.
34303         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
34304         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
34305
34306 2010-04-05  Bruno Haible  <bruno@clisp.org>
34307
34308         Fix link error on Solaris 8 with cc.
34309         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
34310
34311 2010-04-05  Bruno Haible  <bruno@clisp.org>
34312
34313         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
34314         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
34315
34316 2010-04-05  Bruno Haible  <bruno@clisp.org>
34317
34318         vasprintf: Update documentation.
34319         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
34320
34321 2010-04-05  Bruno Haible  <bruno@clisp.org>
34322
34323         ptsname: Improve test.
34324         * tests/test-ptsname.c (main): Also try the various master names of BSD
34325         systems.
34326
34327 2010-04-05  Bruno Haible  <bruno@clisp.org>
34328
34329         memchr: Avoid a possible C++ test error.
34330         * lib/string.in.h (memchr): Provide declaration if function is missing.
34331         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
34332         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
34333         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
34334         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
34335
34336 2010-04-05  Bruno Haible  <bruno@clisp.org>
34337
34338         strtok_r: Improve idiom.
34339         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
34340         AC_LIBOBJ is used.
34341
34342 2010-04-05  Bruno Haible  <bruno@clisp.org>
34343
34344         strdup: Improve idiom.
34345         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
34346         AC_LIBOBJ is used.
34347         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
34348         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
34349         when AC_LIBOBJ is used.
34350
34351 2010-04-05  Bruno Haible  <bruno@clisp.org>
34352
34353         mbsinit, mbrtowc, wcrtomb: Improve idioms.
34354         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
34355         don't set REPLACE_MBSINIT to 1.
34356         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
34357         don't set REPLACE_MBRTOWC to 1.
34358         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
34359         exist, don't set REPLACE_MBSRTOWCS to 1.
34360         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
34361         exist, don't set REPLACE_MBSNRTOWCS to 1.
34362         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
34363         don't set REPLACE_WCRTOMB to 1.
34364         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
34365         exist, don't set REPLACE_WCSRTOMBS to 1.
34366         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
34367         exist, don't set REPLACE_WCSNRTOMBS to 1.
34368
34369 2010-04-05  Bruno Haible  <bruno@clisp.org>
34370
34371         ldexpl: Improve idiom.
34372         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
34373         make sure to set HAVE_DECL_LDEXPL to 0.
34374
34375 2010-04-05  Jim Meyering  <meyering@redhat.com>
34376
34377         xstrtol-tests: convert to use init.sh
34378         * modules/xstrtol-tests (Files): Add tests/init.sh.
34379         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
34380         Use Exit, not exit.
34381         Remove uses of $EXEEXT and "./" to run a program in the current dir.
34382
34383         atexit-tests: convert to use init.sh
34384         * modules/atexit-tests (Files): Add tests/init.sh.
34385         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
34386         Use Exit, not exit.
34387         Remove uses of $EXEEXT and "./" to run a program in the current dir.
34388
34389         init.sh: fix typo
34390         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
34391
34392         init.sh: make it easier for a test script to write to the tty, ...
34393         when using automake's parallel-tests mode.
34394         * tests/init.sh (stderr_fileno_): Define overridable variable.
34395         (warn_): New function, to use it.
34396         (fail_, skip_, framework_failure_): Use warn_.
34397
34398 2010-04-04  Bruno Haible  <bruno@clisp.org>
34399
34400         btowc: Avoid warning.
34401         * lib/btowc.c: Include <stdlib.h>.
34402         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
34403
34404 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
34405             Bruno Haible  <bruno@clisp.org>
34406
34407         wchar: Port to NetBSD 1.5.
34408         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
34409         * lib/wctype.in.h (WEOF): Likewise.
34410
34411 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
34412             Bruno Haible  <bruno@clisp.org>
34413
34414         Port extended stdio to NetBSD 1.5.
34415         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
34416         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
34417         older.
34418
34419 2010-04-04  Bruno Haible  <bruno@clisp.org>
34420
34421         string: Remove unused substitution.
34422         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
34423         HAVE_DECL_STRERROR.
34424         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
34425
34426 2010-04-04  Bruno Haible  <bruno@clisp.org>
34427
34428         strtod: Avoid a possible C++ test error.
34429         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
34430         set REPLACE_STRTOD.
34431
34432 2010-04-04  Bruno Haible  <bruno@clisp.org>
34433
34434         strerror: Update documentation.
34435         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
34436
34437 2010-04-04  Bruno Haible  <bruno@clisp.org>
34438
34439         stdio: Fix some C++ test errors on Solaris 8 with GCC.
34440         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
34441         _GL_CXXALIAS_SYS_CAST.
34442
34443 2010-04-04  Bruno Haible  <bruno@clisp.org>
34444
34445         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
34446         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
34447         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
34448         REPLACE_FREXPL to 1.
34449         * doc/posix-functions/frexpl.texi: Update documentation.
34450
34451 2010-04-04  Bruno Haible  <bruno@clisp.org>
34452
34453         math: Fix some C++ test errors on Solaris 8 and Cygwin.
34454         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
34455
34456 2010-04-04  Bruno Haible  <bruno@clisp.org>
34457
34458         Implement nanosleep for native Windows.
34459         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
34460
34461 2010-04-04  Bruno Haible  <bruno@clisp.org>
34462
34463         math: Fix some C++ test errors on Solaris 8.
34464         * lib/math.in.h (truncf, trunc): Use simpler idiom.
34465
34466 2010-04-04  Bruno Haible  <bruno@clisp.org>
34467
34468         math: Fix some C++ test errors on Cygwin.
34469         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
34470         truncl): Provide declaration if the system does not have it.
34471         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
34472         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
34473         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
34474         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
34475         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
34476         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
34477         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
34478         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
34479         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
34480         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
34481         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
34482         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
34483         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
34484         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
34485         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
34486         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
34487         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
34488         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
34489         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
34490         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
34491         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
34492         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
34493
34494 2010-04-04  Bruno Haible  <bruno@clisp.org>
34495
34496         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
34497         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
34498         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
34499         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
34500         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
34501         * m4/isinf.m4 (gl_ISINF): Likewise.
34502         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
34503
34504 2010-04-04  Bruno Haible  <bruno@clisp.org>
34505
34506         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
34507         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
34508
34509 2010-04-04  Bruno Haible  <bruno@clisp.org>
34510
34511         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
34512         * modules/tmpfile (configure.ac): Update.
34513
34514         tmpfile: Fix C++ test error on mingw.
34515         * lib/stdio.in.h (tmpfile): New declaration.
34516         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
34517         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
34518         * modules/tmpfile (Depends-on): Add stdio.
34519         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
34520         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
34521         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
34522         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
34523         REPLACE_TMPFILE.
34524         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
34525
34526 2010-04-04  Bruno Haible  <bruno@clisp.org>
34527
34528         ioctl: Fix C++ test error on mingw.
34529         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
34530         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
34531         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
34532
34533 2010-04-03  Bruno Haible  <bruno@clisp.org>
34534
34535         wcwidth: Fix C++ test error on mingw.
34536         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
34537         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
34538         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
34539
34540 2010-04-03  Bruno Haible  <bruno@clisp.org>
34541
34542         nanosleep: Fix C++ test error on mingw.
34543         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
34544         * lib/time.in.h (nanosleep): Use modern idiom.
34545         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
34546         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
34547         REPLACE_NANOSLEEP to 1.
34548         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
34549         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
34550
34551 2010-04-03  Bruno Haible  <bruno@clisp.org>
34552
34553         strptime: Fix C++ test error on mingw.
34554         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
34555         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
34556         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
34557         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
34558         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
34559         not REPLACE_STRPTIME.
34560         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
34561         REPLACE_STRPTIME.
34562
34563 2010-04-03  Bruno Haible  <bruno@clisp.org>
34564
34565         timegm: Fix C++ test error on mingw.
34566         * lib/time.in.h (timegm): Use modern idiom.
34567         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
34568         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
34569         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
34570         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
34571
34572 2010-04-03  Bruno Haible  <bruno@clisp.org>
34573
34574         timegm: Assume declaration if function exists.
34575         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
34576         if it exists. Don't clobber ac_cv_func_timegm.
34577
34578 2010-04-03  Bruno Haible  <bruno@clisp.org>
34579
34580         time_r: Fix C++ test error on mingw.
34581         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
34582         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
34583         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
34584         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
34585         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
34586
34587 2010-04-03  Bruno Haible  <bruno@clisp.org>
34588
34589         time_r: Minor updates.
34590         * modules/time_r (Description): Mention the provided functions.
34591         * lib/time_r.c: Don't include <string.h>.
34592         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
34593         * doc/posix-functions/localtime_r.texi: Likewise.
34594
34595 2010-04-03  Bruno Haible  <bruno@clisp.org>
34596
34597         time: Fix regression introduced on 2010-03-08.
34598         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
34599         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
34600
34601 2010-04-03  Jim Meyering  <meyering@redhat.com>
34602
34603         maint.mk: don't silently disable project-specific syntax-check rules
34604         * top/maint.mk (_prohibit_regexp): Define, to help people realize
34605         that they need to convert their project-specific syntax-check rules
34606         to use the new _sc_search_regexp.
34607
34608 2010-04-03  Bruno Haible  <bruno@clisp.org>
34609
34610         fchdir: Fix regression introduced on 2010-03-08.
34611         * lib/unistd.in.h (fchdir): Fix declaration.
34612         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
34613         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
34614         REPLACE_FCHDIR.
34615         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
34616         REPLACE_FCHDIR.
34617
34618 2010-04-03  Bruno Haible  <bruno@clisp.org>
34619
34620         getpagesize: Fix C++ test error on mingw.
34621         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
34622         system does not declare the function.
34623         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
34624         declared.
34625         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
34626         HAVE_DECL_GETPAGESIZE.
34627         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
34628
34629 2010-04-03  Bruno Haible  <bruno@clisp.org>
34630
34631         stdio: Make C++ tests work on mingw.
34632         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
34633         does not declare the function.
34634
34635 2010-04-03  Bruno Haible  <bruno@clisp.org>
34636
34637         ftello: Fix C++ test error on mingw.
34638         * lib/stdio.in.h (ftello): Use modern idiom.
34639         * lib/ftello.c (ftello): Renamed from rpl_ftello.
34640         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
34641         is missing and that it needs to be replaced.
34642         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
34643         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
34644         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
34645
34646 2010-04-03  Bruno Haible  <bruno@clisp.org>
34647
34648         fseeko: Fix C++ test error on mingw.
34649         * lib/stdio.in.h (fseeko): Use modern idiom.
34650         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
34651         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
34652         is missing and that it needs to be replaced.
34653         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
34654         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
34655         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
34656
34657 2010-04-03  Bruno Haible  <bruno@clisp.org>
34658
34659         mkstemp: Fix C++ test error on mingw.
34660         * lib/stdlib.in.h (mkstemp): Use modern idiom.
34661         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
34662         function is missing and that it needs to be replaced.
34663         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
34664         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
34665
34666 2010-04-03  Bruno Haible  <bruno@clisp.org>
34667
34668         stpncpy: Fix C++ test error on mingw.
34669         * lib/string.in.h (stpncpy): Use modern idiom.
34670         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
34671         function is missing and that it needs to be replaced.
34672         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
34673         REPLACE_STPNCPY.
34674         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
34675
34676 2010-04-03  Bruno Haible  <bruno@clisp.org>
34677
34678         sys_stat: Fix C++ test error on mingw.
34679         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
34680         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
34681
34682 2010-04-03  Bruno Haible  <bruno@clisp.org>
34683
34684         pty: Update doc.
34685         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
34686
34687 2010-04-03  Bruno Haible  <bruno@clisp.org>
34688
34689         unistd: Fix C++ test error on mingw.
34690         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
34691
34692 2010-04-03  Bruno Haible  <bruno@clisp.org>
34693
34694         Update doc regarding mingw.
34695         * doc/glibc-functions/openpty.texi: Update regarding mingw.
34696         * doc/glibc-functions/login_tty.texi: Likewise.
34697         * doc/glibc-functions/forkpty.texi: Likewise.
34698
34699 2010-04-03  Bruno Haible  <bruno@clisp.org>
34700
34701         stdlib: Avoid compilation failure of c-strtold on mingw.
34702         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
34703
34704 2010-04-03  Bruno Haible  <bruno@clisp.org>
34705
34706         locale: Make C++ tests work on Cygwin and mingw.
34707         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
34708         cannot provide the function.
34709         Reported by Simon Josefsson.
34710
34711 2010-04-03  Bruno Haible  <bruno@clisp.org>
34712
34713         localename: Port to MacOS X 10.6.
34714         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
34715         memory layout of the locales in MacOS X 10.6 as well.
34716         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
34717
34718 2010-04-02  Bruno Haible  <bruno@clisp.org>
34719
34720         gnulib-tool: Ensure that long-running tests are executed last.
34721         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
34722         running tests after the one for the other tests.
34723
34724 2010-04-02  Bruno Haible  <bruno@clisp.org>
34725
34726         gnulib-tool: Ensure the tests in the main directory are executed first.
34727         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
34728         start with the current directory.
34729
34730 2010-04-02  Bruno Haible  <bruno@clisp.org>
34731
34732         Tests for module 'havelib', moved here from GNU gettext.
34733         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
34734         modifications.
34735         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
34736         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
34737         with modifications.
34738         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
34739         modifications.
34740         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
34741         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
34742         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
34743         with modifications.
34744         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
34745         with modifications.
34746         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
34747         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
34748         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
34749         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
34750         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
34751         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
34752         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
34753         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
34754         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
34755         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
34756         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
34757         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
34758         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
34759         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
34760         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
34761         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
34762         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
34763         with modifications.
34764         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
34765         with modifications.
34766         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
34767         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
34768         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
34769         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
34770         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
34771         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
34772         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
34773         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
34774         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
34775         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
34776         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
34777         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
34778         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
34779         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
34780         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
34781         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
34782         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
34783         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
34784         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
34785         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
34786         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
34787         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
34788         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
34789         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
34790         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
34791         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
34792         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
34793         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
34794         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
34795         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
34796         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
34797         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
34798         * tests/havelib/rpathx/rpathx.c: New file, from
34799         gettext/autoconf-lib-link.
34800         * tests/havelib/rpathx/Makefile.am: New file, from
34801         gettext/autoconf-lib-link.
34802         * tests/havelib/rpathx/configure.ac: New file, from
34803         gettext/autoconf-lib-link with modifications.
34804         * tests/havelib/rpathy/rpathy.c: New file, from
34805         gettext/autoconf-lib-link.
34806         * tests/havelib/rpathy/Makefile.am: New file, from
34807         gettext/autoconf-lib-link.
34808         * tests/havelib/rpathy/configure.ac: New file, from
34809         gettext/autoconf-lib-link with modifications.
34810         * tests/havelib/rpathz/rpathz.c: New file, from
34811         gettext/autoconf-lib-link.
34812         * tests/havelib/rpathz/Makefile.am: New file, from
34813         gettext/autoconf-lib-link.
34814         * tests/havelib/rpathz/configure.ac: New file, from
34815         gettext/autoconf-lib-link with modifications.
34816         * tests/havelib/rpathlx/usex.c: New file, from
34817         gettext/autoconf-lib-link.
34818         * tests/havelib/rpathlx/Makefile.am: New file, from
34819         gettext/autoconf-lib-link.
34820         * tests/havelib/rpathlx/configure.ac: New file, from
34821         gettext/autoconf-lib-link with modifications.
34822         * tests/havelib/rpathly/usey.c: New file, from
34823         gettext/autoconf-lib-link.
34824         * tests/havelib/rpathly/Makefile.am: New file, from
34825         gettext/autoconf-lib-link.
34826         * tests/havelib/rpathly/configure.ac: New file, from
34827         gettext/autoconf-lib-link with modifications.
34828         * tests/havelib/rpathlz/usez.c: New file, from
34829         gettext/autoconf-lib-link.
34830         * tests/havelib/rpathlz/Makefile.am: New file, from
34831         gettext/autoconf-lib-link.
34832         * tests/havelib/rpathlz/configure.ac: New file, from
34833         gettext/autoconf-lib-link with modifications.
34834         * tests/havelib/rpathlyx/usey.c: New file, from
34835         gettext/autoconf-lib-link.
34836         * tests/havelib/rpathlyx/Makefile.am: New file, from
34837         gettext/autoconf-lib-link.
34838         * tests/havelib/rpathlyx/configure.ac: New file, from
34839         gettext/autoconf-lib-link with modifications.
34840         * tests/havelib/rpathlzyx/usez.c: New file, from
34841         gettext/autoconf-lib-link.
34842         * tests/havelib/rpathlzyx/Makefile.am: New file, from
34843         gettext/autoconf-lib-link.
34844         * tests/havelib/rpathlzyx/configure.ac: New file, from
34845         gettext/autoconf-lib-link with modifications.
34846         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
34847         with modifications.
34848
34849 2010-04-02  Bruno Haible  <bruno@clisp.org>
34850
34851         gnulib-tool: Create distributed built sources also for the tests.
34852         * gnulib-tool (func_create_testdir): Also generate distributed built
34853         sources in the tests directory.
34854
34855 2010-04-02  Bruno Haible  <bruno@clisp.org>
34856
34857         gnulib-tool: Obey user's environment variables.
34858         * gnulib-tool (func_create_testdir): When creating built sources,
34859         respect the environment variables for autoconf, automake, etc. given by
34860         the user.
34861
34862 2010-04-02  Bruno Haible  <bruno@clisp.org>
34863
34864         gnulib-tool: Provide the value of --m4-base to modules.
34865         * gnulib-tool (func_import, func_create_testdir): Emit a definition
34866         of gl_m4_base.
34867
34868 2010-04-02  Eric Blake  <eblake@redhat.com>
34869
34870         maint.mk: fix some fallout
34871         * NEWS: Document the incompatible change, and its effect on cfg.mk.
34872         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
34873
34874 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
34875
34876         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
34877         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
34878         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
34879         (sc_cast_of_x_alloc_return_value): Likewise.
34880         (sc_cast_of_alloca_return_value): Likewise.
34881         (sc_space_tab): Likewise.
34882         (sc_prohibit_atoi_atof): Likewise.
34883         (sc_prohibit_magic_number_exit): Likewise.
34884         (sc_error_exit_success): Likewise.
34885         (sc_file_system): Likewise.
34886         (sc_prohibit_have_config_h): Likewise.
34887         (sc_require_config_h): Likewise.
34888         (sc_prohibit_HAVE_MBRTOWC): Likewise.
34889         (sc_obsolete_symbols): Likewise.
34890         (sc_changelog): Likewise.
34891         (sc_program_name): Likewise.
34892         (sc_the_the): Likewise.
34893         (sc_trailing_blank): Likewise.
34894         (sc_two_space_separator_in_usage): Likewise.
34895         (sc_useless_cpp_parens): Likewise.
34896         (sc_GPL_version): Likewise.
34897         (sc_GFDL_version): Likewise.
34898         (sc_texinfo_acronym): Likewise.
34899         (sc_prohibit_cvs_keyword): Likewise.
34900         (sc_prohibit_stat_st_blocks): Likewise.
34901         (sc_prohibit_S_IS_definition): Likewise.
34902         (sc_redundant_const): Likewise.
34903         (sc_makefile_TAB_only_indentation): Likewise.
34904         (sc_m4_quote_check): Likewise.
34905         (sc_makefile_path_separator_check): Likewise.
34906         (sc_copyright_check): Likewise.
34907         (sc_Wundef_boolean): Likewise.
34908         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
34909
34910         maint.mk: match 0 or more whitespace-before-function-call '('
34911         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
34912         that have zero or two-and-more spaces between the function name
34913         and the open parenthesis.
34914         (sc_error_message_warn_fatal): Likewise.
34915         (sc_error_message_uppercase): Likewise.
34916         (sc_error_message_period): Likewise.
34917
34918 2010-03-31  Eric Blake  <eblake@redhat.com>
34919
34920         maint.mk: check for [ as well as test
34921         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
34922         Based on a libvirt report by Matthias Bolte.
34923
34924         gnumakefile: don't squelch _version output
34925         * top/GNUmakefile (_version): Create one-shot dependency rather
34926         than using $(shell) when version must be regenerated.
34927         (_autoreconf): Run verbosely, by default.
34928
34929         sys_time: avoid compiler warnings
34930         * lib/sys_time.in.h (includes): Ensure gcc pragma is
34931         unconditional, fixing regression from 2010-03-29.
34932         Reported by Simon Josefsson.
34933
34934 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
34935
34936         maint.mk: s/_header_without_use/_sc_header_without_use/
34937         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
34938         (sc_prohibit_assert_without_use): Use the new name.
34939         (sc_prohibit_close_stream_without_use): Likewise.
34940         (sc_prohibit_getopt_without_use): Likewise.
34941         (sc_prohibit_quotearg_without_use): Likewise.
34942         (sc_prohibit_quote_without_use): Likewise.
34943         (sc_prohibit_long_options_without_use): Likewise.
34944         (sc_prohibit_inttostr_without_use): Likewise.
34945         (sc_prohibit_ignore_value_without_use): Likewise.
34946         (sc_prohibit_error_without_use): Likewise.
34947         (sc_prohibit_xalloc_without_use): Likewise.
34948         (sc_prohibit_hash_without_use): Likewise.
34949         (sc_prohibit_hash_pjw_without_use): Likewise.
34950         (sc_prohibit_safe_read_without_use): Likewise.
34951         (sc_prohibit_argmatch_without_use): Likewise.
34952         (sc_prohibit_canonicalize_without_use): Likewise.
34953         (sc_prohibit_root_dev_ino_without_use): Likewise.
34954         (sc_prohibit_openat_without_use): Likewise.
34955         (sc_prohibit_c_ctype_without_use): Likewise.
34956         (sc_prohibit_signal_without_use): Likewise.
34957         (sc_prohibit_intprops_without_use): Likewise.
34958
34959 2010-03-30  Eric Blake  <eblake@redhat.com>
34960
34961         maint: improve module indicators
34962         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
34963         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
34964         columns, and avoid extra macro expansion.
34965
34966         fdopendir: work around FreeBSD bug
34967         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
34968         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
34969         * modules/dirent (Makefile.am): Substitute it.
34970         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
34971         declaration.
34972         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
34973         fix.
34974         Reported by Christian Weisgerber <naddy@mips.inka.de>.
34975
34976 2010-03-29  Bruno Haible  <bruno@clisp.org>
34977
34978         Emit #pragma system_header after the inclusion guard, not before.
34979         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
34980         guard that spans the entire file, not before. This enables an
34981         optimization in GCC's preprocessor.
34982         * lib/ctype.in.h: Likewise.
34983         * lib/dirent.in.h: Likewise.
34984         * lib/errno.in.h: Likewise.
34985         * lib/float.in.h: Likewise.
34986         * lib/getopt.in.h: Likewise.
34987         * lib/iconv.in.h: Likewise.
34988         * lib/langinfo.in.h: Likewise.
34989         * lib/locale.in.h: Likewise.
34990         * lib/math.in.h: Likewise.
34991         * lib/netdb.in.h: Likewise.
34992         * lib/netinet_in.in.h: Likewise.
34993         * lib/pty.in.h: Likewise.
34994         * lib/sched.in.h: Likewise.
34995         * lib/se-selinux.in.h: Likewise.
34996         * lib/search.in.h: Likewise.
34997         * lib/spawn.in.h: Likewise.
34998         * lib/stdarg.in.h: Likewise.
34999         * lib/stdint.in.h: Likewise.
35000         * lib/string.in.h: Likewise.
35001         * lib/strings.in.h: Likewise.
35002         * lib/sys_file.in.h: Likewise.
35003         * lib/sys_ioctl.in.h: Likewise.
35004         * lib/sys_time.in.h: Likewise.
35005         * lib/sys_times.in.h: Likewise.
35006         * lib/sys_utsname.in.h: Likewise.
35007         * lib/sys_wait.in.h: Likewise.
35008         * lib/sysexits.in.h: Likewise.
35009         * lib/wctype.in.h: Likewise.
35010
35011 2010-03-28  James Youngman  <jay@gnu.org>
35012
35013         save-cwd: don't leak a file descriptor when the caller execs.
35014         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
35015         saved file descriptor.
35016         * modules/save-cwd (Depends-on): Depend on cloexec.
35017
35018 2010-03-29  Bruno Haible  <bruno@clisp.org>
35019
35020         Remove vestiges of fts-lgpl module.
35021         * lib/fts_.h: Assume GNULIB_FTS is 1.
35022         * lib/fts.c: Likewise.
35023         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
35024
35025 2010-03-28  Bruno Haible  <bruno@clisp.org>
35026
35027         Fix definition of tests witness macro.
35028         * gnulib-tool (func_import): Fix definition of witness macro.
35029
35030 2010-03-28  Bruno Haible  <bruno@clisp.org>
35031
35032         Fix ioctl's protoype on glibc systems.
35033         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
35034         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
35035         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
35036         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
35037         signature. If not, arrange to replace the ioctl function.
35038         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
35039         REPLACE_IOCTL.
35040         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
35041         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
35042         Reported by Ludovic Courtès <ludo@gnu.org>.
35043
35044 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
35045
35046         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
35047         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
35048         made it so grep -r --include=GLOB* ... did not work.
35049
35050 2010-03-26  Jim Meyering  <meyering@redhat.com>
35051             Eric Blake  <eblake@redhat.com>
35052
35053         maint.mk: prohibit use of test's -o and -a operators
35054         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
35055
35056 2010-03-28  Bruno Haible  <bruno@clisp.org>
35057
35058         Remove unused GNULIB_XYZ macro definitions.
35059         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
35060         invocation.
35061
35062 2010-03-28  Bruno Haible  <bruno@clisp.org>
35063
35064         Mark privileged tests modules.
35065         * modules/idpriv-drop-tests (Status): New section.
35066         * modules/idpriv-droptemp-tests (Status): New section.
35067
35068 2010-03-28  Bruno Haible  <bruno@clisp.org>
35069
35070         Split C++ tests into separate tests modules.
35071         * modules/dirent-c++-tests: New file, extracted from
35072         modules/dirent-tests.
35073         * modules/dirent-tests: Depend on it.
35074         * modules/fcntl-h-c++-tests: New file, extracted from
35075         modules/fcntl-h-tests.
35076         * modules/fcntl-h-tests: Depend on it.
35077         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
35078         * modules/glob-tests: Depend on it.
35079         * modules/iconv-h-c++-tests: New file, extracted from
35080         modules/iconv-h-tests.
35081         * modules/iconv-h-tests: Depend on it.
35082         * modules/langinfo-c++-tests: New file, extracted from
35083         modules/langinfo-tests.
35084         * modules/langinfo-tests: Depend on it.
35085         * modules/locale-c++-tests: New file, extracted from
35086         modules/locale-tests.
35087         * modules/locale-tests: Depend on it.
35088         * modules/math-c++-tests: New file, extracted from modules/math-tests.
35089         * modules/math-tests: Depend on it.
35090         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
35091         * modules/pty-tests: Depend on it.
35092         * modules/search-c++-tests: New file, extracted from
35093         modules/search-tests.
35094         * modules/search-tests: Depend on it.
35095         * modules/signal-c++-tests: New file, extracted from
35096         modules/signal-tests.
35097         * modules/signal-tests: Depend on it.
35098         * modules/spawn-c++-tests: New file, extracted from
35099         modules/spawn-tests.
35100         * modules/spawn-tests: Depend on it.
35101         * modules/stdio-c++-tests: New file, extracted from
35102         modules/stdio-tests.
35103         * modules/stdio-tests: Depend on it.
35104         * modules/stdlib-c++-tests: New file, extracted from
35105         modules/stdlib-tests.
35106         * modules/stdlib-tests: Depend on it.
35107         * modules/string-c++-tests: New file, extracted from
35108         modules/string-tests.
35109         * modules/string-tests: Depend on it.
35110         * modules/sys_ioctl-c++-tests: New file, extracted from
35111         modules/sys_ioctl-tests.
35112         * modules/sys_ioctl-tests: Depend on it.
35113         * modules/sys_select-c++-tests: New file, extracted from
35114         modules/sys_select-tests.
35115         * modules/sys_select-tests: Depend on it.
35116         * modules/sys_socket-c++-tests: New file, extracted from
35117         modules/sys_socket-tests.
35118         * modules/sys_socket-tests: Depend on it.
35119         * modules/sys_stat-c++-tests: New file, extracted from
35120         modules/sys_stat-tests.
35121         * modules/sys_stat-tests: Depend on it.
35122         * modules/sys_time-c++-tests: New file, extracted from
35123         modules/sys_time-tests.
35124         * modules/sys_time-tests: Depend on it.
35125         * modules/time-c++-tests: New file, extracted from modules/time-tests.
35126         * modules/time-tests: Depend on it.
35127         * modules/unistd-c++-tests: New file, extracted from
35128         modules/unistd-tests.
35129         * modules/unistd-tests: Depend on it.
35130         * modules/wchar-c++-tests: New file, extracted from
35131         modules/wchar-tests.
35132         * modules/wchar-tests: Depend on it.
35133         * modules/wctype-c++-tests: New file, extracted from
35134         modules/wctype-tests.
35135         * modules/wctype-tests: Depend on it.
35136         Reported by Simon Josefsson.
35137
35138 2010-03-28  Bruno Haible  <bruno@clisp.org>
35139
35140         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
35141         * gnulib-tool (func_exists_module): New function, extracted from
35142         func_verify_module.
35143         (func_verify_module): Use it.
35144         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
35145         'foo' only if 'foo' exists.
35146         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
35147         module.
35148
35149 2010-03-28  Bruno Haible  <bruno@clisp.org>
35150
35151         gnulib-tool: Add support for special categories of tests.
35152         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
35153         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
35154         (func_usage): Document them.
35155         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
35156         inc_unportable_tests, inc_all_tests): New variables.
35157         (func_acceptable): Consider these variables.
35158         (func_modules_transitive_closure): Make it work when the 'Status' field
35159         consists of multiple words.
35160         (func_import): Store and restore the values of inc_cxx_tests,
35161         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
35162         inc_all_tests in gnulib-comp.m4.
35163         (func_create_testdir): Set inc_all_tests to true.
35164         * doc/gnulib.texi (Extra tests modules): New section.
35165         Suggested by Jim Meyering.
35166
35167 2010-03-28  Bruno Haible  <bruno@clisp.org>
35168
35169         ansi-c++-opt: Allow turning off the C++ build by default.
35170         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
35171         gl_CXX_CHOICE_DEFAULT_NO is defined.
35172         Requested by Eric Blake.
35173
35174 2010-03-28  Bruno Haible  <bruno@clisp.org>
35175
35176         unistd: Avoid #define replacements in C++ mode.
35177         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
35178         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
35179         setsockopt, shutdown, select): In C++, attach a warning to the function
35180         if possible, rather than #defining the symbol to a dysfunctional alias.
35181         Reported by John W. Eaton <jwe@gnu.org>.
35182
35183 2010-03-28  Bruno Haible  <bruno@clisp.org>
35184
35185         Fix link errors on mingw.
35186         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
35187         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
35188         $(LIBSOCKET).
35189         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
35190         $(LIBSOCKET).
35191
35192 2010-03-28  Bruno Haible  <bruno@clisp.org>
35193             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35194
35195         lib-ignore: Determine different options for different compilers.
35196         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
35197         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
35198         Add comments.
35199         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
35200         * NEWS: Mention the change.
35201
35202 2010-03-27  Bruno Haible  <bruno@clisp.org>
35203
35204         Remove unused GNULIB_XYZ macro definitions.
35205         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
35206         * modules/fseek (configure.ac): Likewise.
35207         * modules/ioctl (configure.ac): Likewise.
35208         * modules/open (configure.ac): Likewise.
35209         * modules/stdlib-safer (configure.ac): Likewise.
35210
35211 2010-03-27  Bruno Haible  <bruno@clisp.org>
35212
35213         Add a remark about certain modules.
35214         * modules/malloc (Comment): New section.
35215         * modules/realloc (Comment): Likewise.
35216         * modules/sigpipe (Comment): Likewise.
35217
35218 2010-03-27  Bruno Haible  <bruno@clisp.org>
35219
35220         Resolve conflict between the two kinds of module indicators.
35221         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
35222         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
35223         * modules/canonicalize (configure.ac): Invoke
35224         gl_MODULE_INDICATOR_FOR_TESTS.
35225         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
35226         GNULIB_XYZ.
35227         * tests/test-dirent-c++.cc: Likewise.
35228         * tests/test-dirent-safer.c: Likewise.
35229         * tests/test-dup2.c: Likewise.
35230         * tests/test-fchdir.c: Likewise.
35231         * tests/test-fcntl-h-c++.cc: Likewise.
35232         * tests/test-getopt.c: Likewise.
35233         * tests/test-getopt.h: Likewise.
35234         * tests/test-langinfo-c++.cc: Likewise.
35235         * tests/test-locale-c++.cc: Likewise.
35236         * tests/test-math-c++.cc: Likewise.
35237         * tests/test-pty-c++.cc: Likewise.
35238         * tests/test-search-c++.cc: Likewise.
35239         * tests/test-signal-c++.cc: Likewise.
35240         * tests/test-spawn-c++.cc: Likewise.
35241         * tests/test-stdio-c++.cc: Likewise.
35242         * tests/test-stdlib-c++.cc: Likewise.
35243         * tests/test-string-c++.cc: Likewise.
35244         * tests/test-sys_ioctl-c++.cc: Likewise.
35245         * tests/test-sys_select-c++.cc: Likewise.
35246         * tests/test-sys_socket-c++.cc: Likewise.
35247         * tests/test-sys_stat-c++.cc: Likewise.
35248         * tests/test-sys_time-c++.cc: Likewise.
35249         * tests/test-time-c++.cc: Likewise.
35250         * tests/test-unistd-c++.cc: Likewise.
35251         * tests/test-wchar-c++.cc: Likewise.
35252         * tests/uninorm/test-u8-nfc.c: Likewise.
35253         * tests/uninorm/test-u8-nfd.c: Likewise.
35254         * tests/uninorm/test-u8-nfkc.c: Likewise.
35255         * tests/uninorm/test-u8-nfkd.c: Likewise.
35256         * tests/uninorm/test-u16-nfc.c: Likewise.
35257         * tests/uninorm/test-u16-nfd.c: Likewise.
35258         * tests/uninorm/test-u16-nfkc.c: Likewise.
35259         * tests/uninorm/test-u16-nfkd.c: Likewise.
35260         * tests/uninorm/test-u32-nfc.c: Likewise.
35261         * tests/uninorm/test-u32-nfc-big.c: Likewise.
35262         * tests/uninorm/test-u32-nfd.c: Likewise.
35263         * tests/uninorm/test-u32-nfd-big.c: Likewise.
35264         * tests/uninorm/test-u32-nfkc.c: Likewise.
35265         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
35266         * tests/uninorm/test-u32-nfkd.c: Likewise.
35267         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
35268         * tests/uninorm/test-u32-normalize-big.c: Likewise.
35269
35270 2010-03-27  Bruno Haible  <bruno@clisp.org>
35271
35272         Distinguish two kinds of module indicators.
35273         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
35274         gl_MODULE_INDICATOR.
35275         (gl_MODULE_INDICATOR): New macro.
35276         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
35277         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
35278         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
35279         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
35280         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
35281         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
35282         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
35283         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
35284         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
35285         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
35286         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
35287         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
35288         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
35289         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
35290         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
35291         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
35292         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
35293         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
35294         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
35295         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
35296         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
35297         * modules/cloexec (configure.ac): Likewise.
35298         * modules/getopt-gnu (configure.ac): Likewise.
35299         * modules/uninorm/u8-normalize (configure.ac): Likewise.
35300         * modules/uninorm/u16-normalize (configure.ac): Likewise.
35301         * modules/uninorm/u32-normalize (configure.ac): Likewise.
35302         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
35303
35304 2010-03-27  Bruno Haible  <bruno@clisp.org>
35305
35306         New module description field 'Comment'.
35307         * gnulib-tool: New option --extract-comment.
35308         (func_usage): Document it.
35309         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
35310         (func_get_comment): New function.
35311         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
35312
35313 2010-03-27  Bruno Haible  <bruno@clisp.org>
35314
35315         Addendum to 2010-02-07 commit.
35316         * gnulib-tool (func_usage): Document --extract-applicability option.
35317
35318 2010-03-27  Bruno Haible  <bruno@clisp.org>
35319
35320         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
35321         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
35322         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
35323         rather than link errors.
35324
35325 2010-03-27  Bruno Haible  <bruno@clisp.org>
35326
35327         Avoid side effects from tests-related modules on the compilation of lib.
35328         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
35329         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
35330         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
35331         parameter. Emit into AM_CPPFLAGS a definition of the designated C
35332         macro.
35333         (func_import): Define a witness macro. Assign it a value that depends
35334         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
35335         tests-related modules.
35336         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
35337         Reported by Jim Meyering.
35338
35339 2010-03-27  Bruno Haible  <bruno@clisp.org>
35340
35341         Factorize common .m4 code.
35342         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
35343         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
35344         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
35345         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
35346         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
35347         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
35348         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
35349         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
35350         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
35351         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
35352         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
35353         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
35354         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
35355         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
35356         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
35357         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
35358         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
35359         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
35360         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
35361         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
35362         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
35363         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
35364         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
35365         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
35366         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
35367         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
35368         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
35369         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
35370         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
35371         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
35372         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
35373         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
35374
35375 2010-03-27  Bruno Haible  <bruno@clisp.org>
35376
35377         Fix a compilation error on Cygwin with g++ >= 4.3.
35378         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
35379         if it is undefined or if we alias it to chmod.
35380         (lstat): Don't warn about the use of this function if it is undefined
35381         or if we alias it to stat.
35382         Reported by Simon Josefsson.
35383
35384 2010-03-27  Bruno Haible  <bruno@clisp.org>
35385
35386         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
35387         * modules/getlogin (configure.ac): Update.
35388
35389         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
35390         * modules/getlogin_r (configure.ac): Update.
35391
35392         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
35393         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
35394         * modules/inet_ntop (configure.ac): Update.
35395
35396         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
35397         * modules/inet_pton (configure.ac): Update.
35398
35399         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
35400         * modules/mbslen (configure.ac): Update.
35401
35402         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
35403         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
35404         * modules/forkpty (configure.ac): Update.
35405         * modules/openpty (configure.ac): Update.
35406
35407 2010-03-26  Simon Josefsson  <simon@josefsson.org>
35408
35409         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
35410         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
35411
35412 2010-03-25  Eric Blake  <eblake@redhat.com>
35413
35414         maint: use pragma consistently across replacement headers
35415         * lib/ctype.in.h (system_header): Hoist for consistent placement.
35416         * lib/dirent.in.h (system_header): Likewise.
35417         * lib/errno.in.h (system_header): Likewise.
35418         * lib/float.in.h (system_header): Likewise.
35419         * lib/getopt.in.h (system_header): Likewise.
35420         * lib/iconv.in.h (system_header): Likewise.
35421         * lib/inttypes.in.h (system_header): Likewise.
35422         * lib/langinfo.in.h (system_header): Likewise.
35423         * lib/locale.in.h (system_header): Likewise.
35424         * lib/math.in.h (system_header): Likewise.
35425         * lib/netdb.in.h (system_header): Likewise.
35426         * lib/netinet_in.in.h (system_header): Likewise.
35427         * lib/pty.in.h (system_header): Likewise.
35428         * lib/sched.in.h (system_header): Likewise.
35429         * lib/se-selinux.in.h (system_header): Likewise.
35430         * lib/search.in.h (system_header): Likewise.
35431         * lib/spawn.in.h (system_header): Likewise.
35432         * lib/stdarg.in.h (system_header): Likewise.
35433         * lib/stdint.in.h (system_header): Likewise.
35434         * lib/string.in.h (system_header): Likewise.
35435         * lib/strings.in.h (system_header): Likewise.
35436         * lib/sys_file.in.h (system_header): Likewise.
35437         * lib/sys_ioctl.in.h (system_header): Likewise.
35438         * lib/sys_socket.in.h (system_header): Likewise.
35439         * lib/sys_times.in.h (system_header): Likewise.
35440         * lib/sys_utsname.in.h (system_header): Likewise.
35441         * lib/sys_wait.in.h (system_header): Likewise.
35442         * lib/sysexits.in.h (system_header): Likewise.
35443         * lib/unistd.in.h (system_header): Likewise.
35444         * lib/wctype.in.h (system_header): Likewise.
35445
35446         arpa/inet: fix mingw compilation warning
35447         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
35448         Reported by Matthew Bolte.
35449
35450 2010-03-25  Bruno Haible  <bruno@clisp.org>
35451
35452         Avoid collision between gnulib wrapper and libintl wrapper.
35453         * lib/printf.c (printf): Don't define if a printf wrapper is already
35454         defined in intl/printf.c.
35455         Reported by Michel Boaventura <michel@michelboaventura.com>.
35456
35457 2010-03-25  Bruno Haible  <bruno@clisp.org>
35458
35459         Use ANSI C.
35460         * lib/readutmp.h (getutent): Provide ANSI C prototype.
35461
35462 2010-03-25  Bruno Haible  <bruno@clisp.org>
35463
35464         Minor formatting changes.
35465         * lib/acosl.c: Insert space before function argument list.
35466         * lib/argz.c: Likewise.
35467         * lib/asinl.c: Likewise.
35468         * lib/expl.c: Likewise.
35469         * lib/gen-uni-tables.c: Likewise.
35470         * lib/gettext.h: Likewise.
35471         * lib/glthread/lock.h: Likewise.
35472         * lib/tanl.c: Likewise.
35473         * lib/uniname/uniname.c: Likewise.
35474         * tests/test-idpriv-drop.c: Likewise.
35475         * tests/test-idpriv-droptemp.c: Likewise.
35476         * tests/test-lock.c: Likewise.
35477         * tests/test-tls.c: Likewise.
35478         * lib/argp-help.c: Insert space before function-like macro argument
35479         list.
35480         * lib/memcmp.c: Likewise.
35481         * tests/test-base64.c: Likewise.
35482         * lib/localename.c: Insert space before sizeof's argument list.
35483         * lib/safe-alloc.h: Likewise.
35484         * lib/file-set.h: Insert space before macro argument list.
35485         * tests/test-argp.c: Likewise.
35486         * lib/argp-namefrob.h: Insert space before function parameter list.
35487         * lib/getaddrinfo.c: Likewise.
35488         * lib/netdb.in.h: Likewise.
35489         * lib/parse-duration.h: Likewise.
35490         * lib/parse-duration.c: Likewise.
35491         * lib/poll.c: Likewise.
35492         * lib/select.c: Likewise.
35493         * lib/trim.h: Likewise.
35494         * tests/test-usleep.c: Likewise.
35495         * lib/ldexpl.c: Insert space before function parameter list and before
35496         function argument list.
35497         * lib/logl.c: Likewise.
35498         * lib/sqrtl.c: Likewise.
35499         * lib/trim.c: Likewise.
35500         * lib/cosl.c: Use GNU style indentation. Insert space before function
35501         argument list.
35502         * lib/sinl.c: Likewise.
35503         * lib/tsearch.c: Insert space after 'for'.
35504         Reported by Jim Meyering.
35505
35506 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
35507
35508         * maint.mk (sc_Wundef_boolean): Check for the presence of the
35509         config header before grepping, as it's not present before
35510         autoreconf/configure are run.  Reported by Simon Josefsson.
35511
35512 2010-03-23  Bruno Haible  <bruno@clisp.org>
35513
35514         pt_chown: Make it work with automake < 1.11.
35515         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
35516         Reported by Simon Josefsson.
35517
35518 2010-03-23  Bruno Haible  <bruno@clisp.org>
35519
35520         pt_chown: Don't depend on GPLed modules.
35521         * lib/pt_chown.c: Don't include idpriv.h.
35522         (main): Don't drop privileges.
35523         * modules/pt_chown (Depends-on): Remove idpriv-drop.
35524         Reported by Simon Josefsson.
35525
35526 2010-03-24  Simon Josefsson  <simon@josefsson.org>
35527
35528         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
35529         suggestions from karl@freefriends.org (Karl Berry).
35530
35531 2010-03-22  Eric Blake  <eblake@redhat.com>
35532
35533         gethostname: further tweaks
35534         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
35535         are overriding gethostname.
35536         Suggested by Bruno Haible.
35537
35538 2010-03-21  Bruno Haible  <bruno@clisp.org>
35539
35540         Fix comments.
35541         * lib/forkpty.c (rpl_forkpty): Fix comment.
35542         * lib/openpty.c (rpl_openpty): Likewise.
35543         Reported by Eric Blake.
35544
35545 2010-03-22  Eric Blake  <eblake@redhat.com>
35546
35547         gethostname: fix build on mingw
35548         * lib/unistd.in.h (includes): Work around fact that mingw
35549         <winsock2.h> re-includes <unistd.h>, by avoiding any
35550         redeclarations if we are being included by <winsock2.h>.
35551         Reported by Matthias Bolte.
35552
35553 2010-03-21  Bruno Haible  <bruno@clisp.org>
35554
35555         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
35556         * lib/forkpty.c (forkpty): New replacement function, from glibc with
35557         modifications.
35558         * lib/pty.in.h (forkpty): Update declaration. Add comments.
35559         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
35560         provide the replacement.
35561         * modules/forkpty (Depends-on): Add openpty, login_tty.
35562         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
35563         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
35564         * doc/glibc-functions/forkpty.texi: More supported platforms.
35565         * config/srclist.txt: Add forkpty.c (commented).
35566
35567 2010-03-21  Bruno Haible  <bruno@clisp.org>
35568
35569         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
35570         (Makefile.am): Verify that PTY_LIB is defined.
35571
35572         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
35573
35574 2010-03-21  Bruno Haible  <bruno@clisp.org>
35575
35576         Tests for module 'login_tty'.
35577         * modules/login_tty-tests: New file.
35578         * tests/test-login_tty.c: New file.
35579
35580         New module 'login_tty'.
35581         * lib/login_tty.c: New file.
35582         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
35583         * modules/login_tty: New file.
35584         * doc/glibc-functions/login_tty.texi: Mention the new module.
35585
35586 2010-03-21  Bruno Haible  <bruno@clisp.org>
35587
35588         login_tty: Documentation.
35589         * doc/glibc-functions/login_tty.texi: New file.
35590         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
35591
35592 2010-03-21  Bruno Haible  <bruno@clisp.org>
35593
35594         pty: Consistent macro naming.
35595         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
35596         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
35597         * modules/pty (configure.ac): Update.
35598
35599 2010-03-21  Bruno Haible  <bruno@clisp.org>
35600
35601         Tests for openpty: Make stricter.
35602         * tests/test-openpty.c (main): Add test of canonical processing and
35603         erase.
35604         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
35605
35606         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
35607         * lib/openpty.c (openpty): New replacement function.
35608         * lib/pty.in.h: Include <termios.h>.
35609         (openpty): Update declaration. Add comments.
35610         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
35611         is not declared, arrange to provide the replacement. Check for _getpty
35612         and posix_openpt.
35613         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
35614         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
35615         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
35616         * modules/pty-tests (test_pty_c___LDADD): New variable.
35617         * doc/glibc-functions/openpty.texi: More supported platforms.
35618
35619 2010-03-21  Bruno Haible  <bruno@clisp.org>
35620
35621         setenv: Tweaks.
35622         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
35623         the test program.
35624         * doc/posix-functions/setenv.texi: Update platforms list.
35625
35626 2010-03-21  Bruno Haible  <bruno@clisp.org>
35627
35628         New module 'unlockpt'.
35629         * lib/unlockpt.c: New file, from glibc with modifications.
35630         * m4/unlockpt.m4: New file.
35631         * modules/unlockpt: New file.
35632         * lib/stdlib.in.h (unlockpt): New declaration.
35633         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
35634         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
35635         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
35636         HAVE_UNLOCKPT.
35637         * doc/posix-functions/unlockpt.texi: Mention the new module.
35638         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
35639         * config/srclist.txt: Add unlockpt.c (commented).
35640
35641 2010-03-21  Jim Meyering  <meyering@redhat.com>
35642
35643         maint.mk: prohibit inclusion of "intprops.h" without use
35644         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
35645
35646 2010-03-21  Bruno Haible  <bruno@clisp.org>
35647
35648         New module 'grantpt'.
35649         * lib/grantpt.c: New file, from glibc with modifications.
35650         * m4/grantpt.m4: New file.
35651         * modules/grantpt: New file.
35652         * lib/stdlib.in.h (grantpt): New declaration.
35653         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
35654         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
35655         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
35656         HAVE_GRANTPT.
35657         * doc/posix-functions/grantpt.texi: Mention the new module.
35658         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
35659         * config/srclist.txt: Add grantpt.c (commented).
35660
35661 2010-03-21  Bruno Haible  <bruno@clisp.org>
35662
35663         New module 'pt_chown'.
35664         * lib/pt_chown.c: New file, from glibc with modifications.
35665         * lib/pty-private.h: New file, from glibc with modifications.
35666         * modules/pt_chown: New file.
35667         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
35668
35669 2010-03-21  Bruno Haible  <bruno@clisp.org>
35670
35671         Tests for module 'ptsname'.
35672         * modules/ptsname-tests: New file.
35673         * tests/test-ptsname.c: New file.
35674
35675         New module 'ptsname'.
35676         * lib/ptsname.c: New file, from glibc with modifications.
35677         * m4/ptsname.m4: New file.
35678         * modules/ptsname: New file.
35679         * lib/stdlib.in.h (ptsname): New declaration.
35680         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
35681         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
35682         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
35683         HAVE_PTSNAME.
35684         * doc/posix-functions/ptsname.texi: Mention the new module.
35685         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
35686         * config/srclist.txt: Add ptsname.c (commented).
35687
35688 2010-03-21  Bruno Haible  <bruno@clisp.org>
35689
35690         Tests for module 'ttyname_r'.
35691         * modules/ttyname_r-tests: New file.
35692         * tests/test-ttyname_r.c: New file.
35693
35694         New module 'ttyname_r'.
35695         * lib/ttyname_r.c: New file.
35696         * m4/ttyname_r.m4: New file.
35697         * modules/ttyname_r: New file.
35698         * lib/unistd.in.h (ttyname_r): New declaration.
35699         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
35700         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
35701         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
35702         HAVE_TTYNAME_R.
35703         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
35704         * doc/posix-functions/ttyname_r.texi: Mention the new module.
35705
35706 2010-03-20  Bruno Haible  <bruno@clisp.org>
35707
35708         signal: Undefine macro definitions in C++ mode.
35709         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
35710         sigfillset): Undefine macro definitions from the system header in C++
35711         mode.
35712         Reported by John W. Eaton <jwe@gnu.org>.
35713
35714 2010-03-20  Bruno Haible  <bruno@clisp.org>
35715
35716         Ensure no #include statements inside extern "C" { ... }.
35717         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
35718         contain #include statements.
35719         * lib/time.in.h: Likewise.
35720
35721 2010-03-20  Bruno Haible  <bruno@clisp.org>
35722
35723         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
35724         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
35725         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
35726         Reported by John W. Eaton <jwe@gnu.org>.
35727
35728 2010-03-20  Bruno Haible  <bruno@clisp.org>
35729
35730         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
35731         Reported by Jim Meyering.
35732
35733 2010-03-20  Bruno Haible  <bruno@clisp.org>
35734
35735         pipe: Set errno upon failure.
35736         * lib/pipe.h: Specify that when -1 is returned, errno is set.
35737         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
35738         errno value in error message.
35739
35740 2010-03-20  Bruno Haible  <bruno@clisp.org>
35741             Jim Meyering  <meyering@redhat.com>
35742
35743         lchown: Avoid "unused variable" warning.
35744         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
35745
35746 2010-03-20  Bruno Haible  <bruno@clisp.org>
35747
35748         Work around unlink() bug on MacOS X 10.5.6.
35749         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
35750         attempting to unlink a parent directory.
35751         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
35752         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
35753         activate for the replacement function.
35754         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
35755
35756 2010-03-20  Bruno Haible  <bruno@clisp.org>
35757
35758         Fix link errors on Solaris 8.
35759         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
35760         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
35761
35762 2010-03-19  Jim Meyering  <meyering@redhat.com>
35763
35764         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
35765         The _LIBC implementation of build_range_exp correctly honors the
35766         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
35767         However, the non-_LIBC implementation would ignore that syntax-bit
35768         flag and return REG_ERANGE unconditionally.
35769         This change makes it honor that flag.
35770         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
35771         Make two pointer parameters "const".
35772         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
35773         (parse_bracket_exp): Update caller.
35774
35775         regex.m4: correct the reversed range endpoint ([b-a]) test
35776         * m4/regex.m4: When requiring that [b-a] evoke failure,
35777         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
35778         test pass once again for x86-based systems.
35779
35780 2010-03-19  Bruno Haible  <bruno@clisp.org>
35781
35782         scandir: Fix link error on Solaris 8.
35783         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
35784         macros.
35785
35786 2010-03-19  Bruno Haible  <bruno@clisp.org>
35787
35788         getusershell: Fix documentation.
35789         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
35790         module.
35791         * doc/glibc-functions/setusershell.texi: Likewise.
35792
35793         getusershell: Provide declaration, missing on Solaris 9.
35794         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
35795         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
35796         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
35797         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
35798         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
35799         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
35800         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
35801         HAVE_GETUSERSHELL.
35802         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
35803
35804 2010-03-19  Bruno Haible  <bruno@clisp.org>
35805
35806         wctype: Provide iswblank function.
35807         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
35808         exists and is fine.
35809         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
35810         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
35811         * tests/test-wctype.c (main): Re-enable the iswblank tests.
35812         * doc/posix-functions/iswblank.texi: Update.
35813
35814 2010-03-19  Bruno Haible  <bruno@clisp.org>
35815
35816         Tests of module 'pty' in C++ mode.
35817         * modules/pty-tests: New file.
35818         * tests/test-pty-c++.cc: New file.
35819         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
35820
35821 2010-03-19  Eric Blake  <eblake@redhat.com>
35822
35823         logb: fix documentation
35824         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
35825         1.5 declaration bug.
35826
35827         forkpty, openpty: prefer glibc's const-safe prototype
35828         * lib/forkpty.c (rpl_forkpty): New file.
35829         * lib/openpty.c (rpl_openpty): Likewise.
35830         * modules/forkpty (Files): Distribute it.
35831         * modules/openpty (Files): Likewise.
35832         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
35833         check...
35834         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
35835         replacement for for non-const BSD signature.
35836         * modules/pty (Makefile.am): Substitute witnesses.
35837         * lib/pty.in.h (forkpty, openpty): Declare replacements.
35838         * tests/test-forkpty.c: Update signature check.
35839         * tests/test-openpty.c: Likewise.
35840         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
35841         * doc/glibc-functions/openpty.texi (openpty): Likewise.
35842
35843         forkpty, openpty: split functions into new modules
35844         * modules/pty (Makefile.am): Substitute new witnesses.
35845         (Libraries): Move library detection...
35846         * modules/forkpty: ...into new module.
35847         * modules/openpty: Another new module.
35848         * modules/pty-tests: Rename and split...
35849         * modules/forkpty-tests: ...to this...
35850         * modules/openpty-tests: ...and this.
35851         * tests/test-pty.c: Rename and split...
35852         * tests/test-forkpty.c: ...to this...
35853         * tests/test-openpty.c: ...and this.
35854         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
35855         (gl_PTY): Split library searching...
35856         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
35857         (gl_FORKPTY, gl_OPENPTY): New macros.
35858         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
35859         * NEWS: Mention the split.
35860         * MODULES.html.sh (Misc): Document the modules.
35861         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
35862         * doc/glibc-functions/openpty.texi (openpty): Likewise.
35863
35864         pty: improve replacement header
35865         * lib/pty.in.h: New file.
35866         * modules/pty (Files): Ship it.
35867         (Makefile.am): Always build replacement.
35868         * m4/pty.m4: Rename...
35869         * m4/pty_h.m4: ...to this.
35870         (gl_PTY): Modernize setting of witness macros; update check of
35871         forkpty to take proper advantage of cache.
35872         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
35873
35874         getopt: avoid compiler warning
35875         * lib/getopt.c (attribute_hidden): Remove unused macro.
35876
35877 2010-03-18  Bruno Haible  <bruno@clisp.org>
35878
35879         Fix link errors on Solaris 8.
35880         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
35881         * modules/search-tests (test_search_c___LDADD): Likewise.
35882         * modules/signal-tests (test_signal_c___LDADD): Likewise.
35883         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
35884         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
35885         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
35886         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
35887         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
35888         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
35889
35890 2010-03-18  Bruno Haible  <bruno@clisp.org>
35891
35892         Fix bug introduced on 2010-03-14.
35893         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
35894         (gl_SPAWN_H): Require it.
35895         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
35896         Reported by Simon Josefsson.
35897
35898 2010-03-18  Bruno Haible  <bruno@clisp.org>
35899
35900         Fix typo introduced on 2009-12-31.
35901         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
35902         posix_spawn_file_actions_adddup2.
35903
35904 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
35905         and Eric Blake  <eblake@redhat.com>
35906
35907         test-vc-list-files-git: make more robust
35908         * tests/test-vc-list-files-git.sh: Unset problematic environment
35909         variables.  Chain commands together.
35910
35911 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
35912
35913         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
35914         `AC_CHECK_DECL' invocation.
35915
35916 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
35917
35918         * lib/inttostr.c (inttostr): Make sure the invocation of verify
35919         appears before executable statements. Suggested by Petr Sumbera
35920         <Petr.Sumbera@Sun.COM>.
35921
35922 2010-03-14  Bruno Haible  <bruno@clisp.org>
35923
35924         * tests/test-flock.c (test_exclusive): Comment out a test that causes
35925         portability problems. Instead use a simpler test.
35926         (main): Check that invalid arguments are rejected only on Linux.
35927
35928 2010-03-14  Bruno Haible  <bruno@clisp.org>
35929
35930         Fix bug introduced on 2009-12-31.
35931         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
35932         gl_PREREQ_SYS_H_WINSOCK2 always.
35933         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
35934         SYS_SOCKET_H variable.
35935         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
35936         Update comments.
35937         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
35938         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
35939         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
35940         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
35941         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
35942
35943 2010-03-14  Bruno Haible  <bruno@clisp.org>
35944
35945         Fix values returned by sinl, cosl.
35946         * lib/trigl.h: Add specification comments.
35947         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
35948         that combines the values from the precomputed table with the values of
35949         the Chebyshev polynomials.
35950
35951 2010-03-14  Bruno Haible  <bruno@clisp.org>
35952
35953         Fix compilation error when modules 'posix_spawn[p]' are not used.
35954         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
35955         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
35956
35957 2010-03-14  Bruno Haible  <bruno@clisp.org>
35958
35959         Fix compilation error on mingw when module 'time_r' is not used.
35960         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
35961         is 1.
35962         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
35963         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
35964         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
35965         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
35966
35967 2010-03-14  Bruno Haible  <bruno@clisp.org>
35968
35969         Fix compilation error with Sun C.
35970         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
35971         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
35972         instead of GCC specific ULONG_LONG_MAX.
35973         * lib/xstrtoll.c: Likewise.
35974         * lib/xstrtoull.c: Likewise.
35975
35976 2010-03-13  Bruno Haible  <bruno@clisp.org>
35977
35978         Allow the user to disable C++ code and tests.
35979         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
35980         (gl_PROG_ANSI_CXX): Require it.
35981
35982 2010-03-13  Bruno Haible  <bruno@clisp.org>
35983
35984         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
35985         cases.
35986
35987 2010-03-13  Bruno Haible  <bruno@clisp.org>
35988
35989         Test that gnulib does not break the standard C++ headers.
35990         * tests/test-locale-c++2.cc: New file.
35991         * modules/locale-tests (Files): Add it.
35992         (Makefile.am): Compile it for test-locale-c++.
35993         * tests/test-math-c++2.cc: New file.
35994         * modules/math-tests (Files): Add it.
35995         (Makefile.am): Compile it for test-math-c++.
35996         * tests/test-signal-c++2.cc: New file.
35997         * modules/signal-tests (Files): Add it.
35998         (Makefile.am): Compile it for test-signal-c++.
35999         * tests/test-stdio-c++2.cc: New file.
36000         * modules/stdio-tests (Files): Add it.
36001         (Makefile.am): Compile it for test-stdio-c++.
36002         * tests/test-stdlib-c++2.cc: New file.
36003         * modules/stdlib-tests (Files): Add it.
36004         (Makefile.am): Compile it for test-stdlib-c++.
36005         * tests/test-string-c++2.cc: New file.
36006         * modules/string-tests (Files): Add it.
36007         (Makefile.am): Compile it for test-string-c++.
36008         * tests/test-time-c++2.cc: New file.
36009         * modules/time-tests (Files): Add it.
36010         (Makefile.am): Compile it for test-time-c++.
36011         Reported by John W. Eaton <jwe@gnu.org>.
36012
36013 2010-03-13  Bruno Haible  <bruno@clisp.org>
36014
36015         * gnulib-tool (func_usage): Clarify which options are available for
36016         --create-testdir and --create-megatestdir.
36017
36018 2010-03-13  Bruno Haible  <bruno@clisp.org>
36019
36020         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
36021         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
36022         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
36023         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
36024         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
36025         when appropriate.
36026         Reported by Jim Meyering.
36027
36028 2010-03-12  Simon Josefsson  <simon@josefsson.org>
36029
36030         * gnulib-tool (func_import): Explain origin of code.
36031
36032 2010-03-12  Bruno Haible  <bruno@clisp.org>
36033
36034         Fix problem with automake's definition of CXXLINK.
36035         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
36036         Reported by Simon Josefsson and Ludovic Courtès.
36037
36038 2010-03-12  Bruno Haible  <bruno@clisp.org>
36039
36040         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
36041         stable releases.
36042
36043 2010-03-11  Bruno Haible  <bruno@clisp.org>
36044
36045         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
36046         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
36047         whether the system provides one variant or multiple variants of the
36048         function.
36049         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
36050         C++ compilers.
36051         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
36052         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
36053         Reported by Jim Meyering.
36054
36055 2010-03-09  Simon Josefsson  <simon@josefsson.org>
36056
36057         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
36058
36059 2010-03-08  Bruno Haible  <bruno@clisp.org>
36060
36061         gnulib-tool: Add support for --libtool in --create-testdir.
36062         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
36063         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
36064
36065 2010-03-08  Eric Blake  <eblake@redhat.com>
36066
36067         gnulib-tool.texi: mention possibility of git submodule
36068         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
36069         submodules.
36070         * doc/.gitignore: Ignore another generated file.
36071
36072 2010-03-08  Karl Berry  <karl@gnu.org>
36073
36074         * doc/gnulib-tool.texi (VCS Issues): Mention third option
36075         of committing gnulib files while skipping others.
36076
36077 2010-03-07  Bruno Haible  <bruno@clisp.org>
36078
36079         Tests of module 'wctype' in C++ mode.
36080         * tests/test-wctype-c++.cc: New file.
36081         * modules/wctype-tests (Files): Add it and tests/signature.h.
36082         (Depends-on): Add ansi-c++-opt.
36083         (Makefile.am): Arrange to compile and run test-wctype-c++.
36084
36085         Tests of module 'wchar' in C++ mode.
36086         * tests/test-wchar-c++.cc: New file.
36087         * modules/wchar-tests (Files): Add it and tests/signature.h.
36088         (Depends-on): Add ansi-c++-opt.
36089         (Makefile.am): Arrange to compile and run test-wchar-c++.
36090         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
36091         gl_MODULE_INDICATOR.
36092
36093         Tests of module 'unistd' in C++ mode.
36094         * tests/test-unistd-c++.cc: New file.
36095         * modules/unistd-tests (Files): Add it and tests/signature.h.
36096         (Depends-on): Add ansi-c++-opt.
36097         (Makefile.am): Arrange to compile and run test-unistd-c++.
36098         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
36099         gl_MODULE_INDICATOR.
36100
36101         Tests of module 'time' in C++ mode.
36102         * tests/test-time-c++.cc: New file.
36103         * modules/time-tests (Files): Add it and tests/signature.h.
36104         (Depends-on): Add ansi-c++-opt.
36105         (Makefile.am): Arrange to compile and run test-time-c++.
36106         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
36107
36108         Tests of module 'sys_time' in C++ mode.
36109         * tests/test-sys_time-c++.cc: New file.
36110         * modules/sys_time-tests (Files): Add it and tests/signature.h.
36111         (Depends-on): Add ansi-c++-opt.
36112         (Makefile.am): Arrange to compile and run test-sys_time-c++.
36113         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
36114         gl_MODULE_INDICATOR.
36115
36116         Tests of module 'sys_stat' in C++ mode.
36117         * tests/test-sys_stat-c++.cc: New file.
36118         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
36119         (Depends-on): Add ansi-c++-opt.
36120         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
36121         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
36122         gl_MODULE_INDICATOR.
36123
36124         Tests of module 'sys_socket' in C++ mode.
36125         * tests/test-sys_socket-c++.cc: New file.
36126         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
36127         (Depends-on): Add ansi-c++-opt.
36128         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
36129         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
36130         gl_MODULE_INDICATOR.
36131
36132         Tests of module 'sys_select' in C++ mode.
36133         * tests/test-sys_select-c++.cc: New file.
36134         * modules/sys_select-tests (Files): Add it and tests/signature.h.
36135         (Depends-on): Add ansi-c++-opt.
36136         (Makefile.am): Arrange to compile and run test-sys_select-c++.
36137         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
36138         gl_MODULE_INDICATOR.
36139
36140         Tests of module 'sys_ioctl' in C++ mode.
36141         * tests/test-sys_ioctl-c++.cc: New file.
36142         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
36143         (Depends-on): Add ansi-c++-opt.
36144         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
36145         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
36146         gl_MODULE_INDICATOR.
36147
36148         Tests of module 'string' in C++ mode.
36149         * tests/test-string-c++.cc: New file.
36150         * modules/string-tests (Files): Add it and tests/signature.h.
36151         (Depends-on): Add ansi-c++-opt.
36152         (Makefile.am): Arrange to compile and run test-string-c++.
36153         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
36154         gl_MODULE_INDICATOR.
36155
36156         Tests of module 'stdlib' in C++ mode.
36157         * tests/test-stdlib-c++.cc: New file.
36158         * modules/stdlib-tests (Files): Add it and tests/signature.h.
36159         (Depends-on): Add ansi-c++-opt.
36160         (Makefile.am): Arrange to compile and run test-stdlib-c++.
36161         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
36162         gl_MODULE_INDICATOR.
36163
36164         Tests of module 'stdio' in C++ mode.
36165         * tests/test-stdio-c++.cc: New file.
36166         * modules/stdio-tests (Files): Add it and tests/signature.h.
36167         (Depends-on): Add ansi-c++-opt.
36168         (Makefile.am): Arrange to compile and run test-stdio-c++.
36169         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
36170         gl_MODULE_INDICATOR.
36171
36172         Tests of module 'spawn' in C++ mode.
36173         * tests/test-spawn-c++.cc: New file.
36174         * modules/spawn-tests (Files): Add it and tests/signature.h.
36175         (Depends-on): Add ansi-c++-opt.
36176         (Makefile.am): Arrange to compile and run test-spawn-c++.
36177         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
36178         gl_MODULE_INDICATOR.
36179
36180         Tests of module 'signal' in C++ mode.
36181         * tests/test-signal-c++.cc: New file.
36182         * modules/signal-tests (Files): Add it and tests/signature.h.
36183         (Depends-on): Add ansi-c++-opt.
36184         (Makefile.am): Arrange to compile and run test-signal-c++.
36185         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
36186         gl_MODULE_INDICATOR.
36187
36188         Tests of module 'search' in C++ mode.
36189         * tests/test-search-c++.cc: New file.
36190         * modules/search-tests (Files): Add it and tests/signature.h.
36191         (Depends-on): Add ansi-c++-opt.
36192         (Makefile.am): Arrange to compile and run test-search-c++.
36193         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
36194         gl_MODULE_INDICATOR.
36195
36196         Tests of module 'math' in C++ mode.
36197         * tests/test-math-c++.cc: New file.
36198         * modules/math-tests (Files): Add it and tests/signature.h.
36199         (Depends-on): Add ansi-c++-opt.
36200         (Makefile.am): Arrange to compile and run test-math-c++.
36201         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
36202
36203         Tests of module 'locale' in C++ mode.
36204         * tests/test-locale-c++.cc: New file.
36205         * modules/locale-tests (Files): Add it and tests/signature.h.
36206         (Depends-on): Add ansi-c++-opt.
36207         (Makefile.am): Arrange to compile and run test-locale-c++.
36208         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
36209         gl_MODULE_INDICATOR.
36210
36211         Tests of module 'langinfo' in C++ mode.
36212         * tests/test-langinfo-c++.cc: New file.
36213         * modules/langinfo-tests (Files): Add it and tests/signature.h.
36214         (Depends-on): Add ansi-c++-opt.
36215         (Makefile.am): Arrange to compile and run test-langinfo-c++.
36216         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
36217         gl_MODULE_INDICATOR.
36218
36219         Tests of module 'iconv-h' in C++ mode.
36220         * tests/test-iconv-h-c++.cc: New file.
36221         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
36222         (Depends-on): Add ansi-c++-opt.
36223         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
36224
36225         Tests of module 'glob' in C++ mode.
36226         * tests/test-glob-c++.cc: New file.
36227         * modules/glob-tests (Files): Add it.
36228         (Depends-on): Add ansi-c++-opt.
36229         (Makefile.am): Arrange to compile and run test-glob-c++.
36230
36231         Tests of module 'fcntl-h' in C++ mode.
36232         * tests/test-fcntl-h-c++.cc: New file.
36233         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
36234         (Depends-on): Add ansi-c++-opt.
36235         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
36236         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
36237         gl_MODULE_INDICATOR.
36238
36239         Tests of module 'dirent' in C++ mode.
36240         * tests/test-dirent-c++.cc: New file.
36241         * modules/dirent-tests (Files): Add it and tests/signature.h.
36242         (Depends-on): Add ansi-c++-opt.
36243         (Makefile.am): Arrange to compile and run test-dirent-c++.
36244         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
36245         gl_MODULE_INDICATOR.
36246
36247         New module 'ansi-c++-opt'.
36248         * modules/ansi-c++-opt: New file.
36249         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
36250
36251         Document C++ namespace mode.
36252         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
36253
36254         wctype: Avoid #define replacements in C++ mode.
36255         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
36256         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
36257         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
36258         In C++, define a namespaced alias symbol.
36259         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
36260         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
36261         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
36262         rule.
36263
36264         wchar: Avoid #define replacements in C++ mode.
36265         * lib/wchar.in.h: Include c++defs.h.
36266         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
36267         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
36268         symbol.
36269         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
36270         * modules/wchar (Depends-on): Add c++defs.
36271         (Makefile.am): Update wchar.h rule.
36272
36273         unistd: Avoid #define replacements in C++ mode.
36274         * lib/unistd.in.h: Include c++defs.h.
36275         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
36276         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
36277         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
36278         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
36279         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
36280         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
36281         symbol.
36282         (environ): Update.
36283         * modules/unistd (Depends-on): Add c++defs.
36284         (Makefile.am): Update unistd.h rule.
36285
36286         time: Avoid #define replacements in C++ mode.
36287         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
36288         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
36289         define a namespaced alias symbol.
36290         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
36291         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
36292         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
36293         * modules/time (Depends-on): Add c++defs, warn-on-use.
36294         (Makefile.am): Update time.h rule.
36295         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
36296         * modules/nanosleep (configure.ac): Likewise.
36297         * modules/strptime (configure.ac): Likewise.
36298         * modules/timegm (configure.ac): Likewise.
36299
36300         sys_time: Avoid #define replacements in C++ mode.
36301         * lib/sys_time.in.h: Include c++defs.h.
36302         (gettimeofday): In C++, define a namespaced alias symbol.
36303         * modules/sys_time (Depends-on): Add c++defs.
36304         (Makefile.am): Update sys/time.h rule.
36305
36306         sys_stat: Avoid #define replacements in C++ mode.
36307         * lib/sys_stat.in.h: Include c++defs.h.
36308         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
36309         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
36310         namespaced alias symbol.
36311         In C++, define a namespaced alias symbol.
36312         * modules/sys_stat (Depends-on): Add c++defs.
36313         (Makefile.am): Update sys/stat.h rule.
36314
36315         sys_socket: Avoid #define replacements in C++ mode.
36316         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
36317         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
36318         definitions also when the system has a <sys/socket.h>.
36319         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
36320         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
36321         In C++, define a namespaced alias symbol.
36322         * modules/sys_socket (Depends-on): Add c++defs.
36323         (Makefile.am): Update sys/socket.h rule.
36324
36325         sys_select: Avoid #define replacements in C++ mode.
36326         * lib/sys_select.in.h: Include c++defs.h. Enable the function
36327         definitions also when the system has a <sys/select.h>.
36328         (select): In C++, define a namespaced alias symbol.
36329         * modules/sys_select (Depends-on): Add c++defs.
36330         (Makefile.am): Update sys/select.h rule.
36331
36332         sys_ioctl: Avoid #define replacements in C++ mode.
36333         * lib/sys_ioctl.in.h: Include c++defs.h.
36334         (ioctl): In C++, define a namespaced alias symbol.
36335         * modules/sys_ioctl (Depends-on): Add c++defs.
36336         (Makefile.am): Update sys/ioctl.h rule.
36337
36338         string: Avoid #define replacements in C++ mode.
36339         * lib/string.in.h: Include c++defs.h.
36340         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
36341         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
36342         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
36343         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
36344         strsignal, strverscmp): In C++, define a namespaced alias symbol.
36345         * modules/string (Depends-on): Add c++defs.
36346         (Makefile.am): Update string.h rule.
36347
36348         stdlib: Avoid #define replacements in C++ mode.
36349         * lib/stdlib.in.h: Include c++defs.h.
36350         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
36351         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
36352         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
36353         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
36354         symbol.
36355         * modules/stdlib (Depends-on): Add c++defs.
36356         (Makefile.am): Update stdlib.h rule.
36357
36358         stdio: Avoid #define replacements in C++ mode.
36359         * lib/stdio.in.h: Include c++defs.h.
36360         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
36361         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
36362         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
36363         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
36364         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
36365         namespaced alias symbol.
36366         * modules/stdio (Depends-on): Add c++defs.
36367         (Makefile.am): Update stdio.h rule.
36368
36369         spawn: Avoid #define replacements in C++ mode.
36370         * lib/spawn.in.h: Include c++defs.h.
36371         (posix_spawn, posix_spawnp, posix_spawnattr_init,
36372         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
36373         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
36374         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
36375         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
36376         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
36377         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
36378         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
36379         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
36380         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
36381         In C++, define a namespaced alias symbol.
36382         * modules/spawn (Depends-on): Add c++defs.
36383         (Makefile.am): Update spawn.h rule.
36384
36385         signal: Avoid #define replacements in C++ mode.
36386         * lib/signal.in.h: Include c++defs.h.
36387         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
36388         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
36389         namespaced alias symbol.
36390         * modules/signal (Depends-on): Add c++defs.
36391         (Makefile.am): Update signal.h rule.
36392
36393         search: Avoid #define replacements in C++ mode.
36394         * lib/search.in.h: Include c++defs.h.
36395         (_gl_search_compar_fn, _gl_search_action_fn): New types.
36396         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
36397         symbol.
36398         * modules/search (Depends-on): Add c++defs.
36399         (Makefile.am): Update search.h rule.
36400
36401         math: Avoid #define replacements in C++ mode.
36402         * lib/math.in.h: Include c++defs.h.
36403         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
36404         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
36405         trunc, truncl): In C++, define a namespaced alias symbol.
36406         * modules/math (Depends-on): Add c++defs.
36407         (Makefile.am): Update math.h rule.
36408
36409         locale: Avoid #define replacements in C++ mode.
36410         * lib/locale.in.h: Include c++defs.h.
36411         (duplocale): In C++, define a namespaced alias symbol.
36412         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
36413         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
36414         * modules/locale (Depends-on): Add c++defs.
36415         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
36416
36417         langinfo: Avoid #define replacements in C++ mode.
36418         * lib/langinfo.in.h: Include c++defs.h.
36419         (nl_langinfo): In C++, define a namespaced alias symbol.
36420         * modules/langinfo (Depends-on): Add c++defs.
36421         (Makefile.am): Update langinfo.h rule.
36422
36423         iconv-h: Avoid #define replacements in C++ mode.
36424         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
36425         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
36426         symbol.
36427         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
36428         whenever iconv is present.
36429         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
36430         (Makefile.am): Update iconv.h rule.
36431
36432         glob: Avoid #define replacements in C++ mode.
36433         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
36434         (_gl_glob_errfunc_fn): New type.
36435         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
36436         symbol.
36437         * modules/glob (Depends-on): Add c++defs, warn-on-use.
36438         (Makefile.am): Update glob.h rule.
36439
36440         fcntl-h: Avoid #define replacements in C++ mode.
36441         * lib/fcntl.in.h: Include c++defs.h.
36442         (fcntl, open, openat): In C++, define a namespaced alias symbol.
36443         * modules/fcntl-h (Depends-on): Add c++defs.
36444         (Makefile.am): Update fcntl.h rule.
36445
36446         dirent: Avoid #define replacements in C++ mode.
36447         * lib/dirent.in.h: Include c++defs.h.
36448         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
36449         namespaced alias symbol.
36450         (dirfd): Update declaration.
36451         * modules/dirent (Depends-on): Add c++defs.
36452         (Makefile.am): Update dirent.h rule.
36453
36454         ctype: Make it usable in C++ code.
36455         * lib/ctype.in.h: Include c++defs.h.
36456         (isblank): Declare as extern "C".
36457         * modules/ctype (Depends-on): Add c++defs.
36458         (Makefile.am): Update ctype.h rule.
36459
36460         New module 'c++defs'.
36461         * modules/c++defs: New file.
36462         * build-aux/c++defs.h: New file.
36463         Reported by John W. Eaton <jwe@gnu.org>.
36464
36465 2010-03-07  Bruno Haible  <bruno@clisp.org>
36466
36467         logb: Provide missing declaration for Cygwin.
36468         * lib/math.in.h (logb): New declaration.
36469         * m4/logb.m4: New file.
36470         * modules/logb (Files): Add m4/logb.m4.
36471         (Depends-on): Add math.
36472         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
36473         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
36474         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
36475         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
36476         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
36477
36478 2010-03-07  Bruno Haible  <bruno@clisp.org>
36479
36480         Fix test-cond link error.
36481         * tests/test-cond.c: Include <stdio.h>.
36482
36483 2010-03-07  Bruno Haible  <bruno@clisp.org>
36484
36485         Fix test-dirent-safer link error.
36486         * modules/dirent-safer-tests (Makefile.am): Define
36487         test_dirent_safer_LDADD.
36488
36489 2010-03-07  Bruno Haible  <bruno@clisp.org>
36490
36491         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
36492         among default module list.
36493
36494 2010-03-07  Bruno Haible  <bruno@clisp.org>
36495
36496         Fix link error on platforms with GNU libiconv.
36497         * modules/unistr/u8-strcoll-tests (Makefile): Define
36498         test_u8_strcoll_LDADD.
36499         * modules/unistr/u16-strcoll-tests (Makefile): Define
36500         test_u16_strcoll_LDADD.
36501         * modules/unistr/u32-strcoll-tests (Makefile): Define
36502         test_u32_strcoll_LDADD.
36503
36504 2010-03-07  Bruno Haible  <bruno@clisp.org>
36505
36506         Use POSIX declarations for socket functions.
36507         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
36508         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
36509         rpl_sendto): Change declaration to match POSIX.
36510         * lib/connect.c (rpl_connect): Likewise.
36511         * lib/accept.c (rpl_accept): Likewise.
36512         * lib/bind.c (rpl_bind): Likewise.
36513         * lib/getpeername.c (rpl_getpeername): Likewise.
36514         * lib/getsockname.c (rpl_getsockname): Likewise.
36515         * lib/recv.c (rpl_recv): Likewise.
36516         * lib/send.c (rpl_send): Likewise.
36517         * lib/recvfrom.c (rpl_recvfrom): Likewise.
36518         * lib/sendto.c (rpl_sendto): Likewise.
36519
36520 2010-03-06  Bruno Haible  <bruno@clisp.org>
36521
36522         Clarify access, euidaccess, faccessat.
36523         * doc/posix-functions/faccessat.texi: Mention security problem under
36524         "Other problems", not "Portability problems".
36525         * doc/posix-functions/access.texi: Likewise. Mention a related security
36526         problem.
36527         * doc/glibc-functions/euidaccess.texi: Mention security problems.
36528         * lib/euidaccess.c: Add comments about platforms.
36529         * lib/unistd.in.h (access, euidaccess): Add warnings.
36530
36531 2010-03-07  Bruno Haible  <bruno@clisp.org>
36532
36533         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
36534         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
36535         (POSIX_SPAWN_SETSCHEDULER): Likewise.
36536         (POSIX_SPAWN_USEVFORK): Define in a way that works when
36537         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
36538         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
36539         declare when POSIX_SPAWN_SETSCHEDULER is zero.
36540         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
36541         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
36542         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
36543         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
36544         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
36545         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
36546         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
36547         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
36548         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
36549         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
36550         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
36551         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
36552         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
36553         Likewise.
36554         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
36555         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
36556         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
36557         Likewise.
36558         * tests/test-spawn.c (main): Make it work when
36559         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
36560
36561 2010-03-07  Bruno Haible  <bruno@clisp.org>
36562
36563         Fix incorrect Makefile.am generation in German locale.
36564         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
36565         Execute sed command with character range in C locale.
36566
36567 2010-03-06  Bruno Haible  <bruno@clisp.org>
36568
36569         Tests for module 'iconv-h'.
36570         * modules/iconv-h-tests: New file.
36571         * tests/test-iconv-h.c: New file.
36572
36573         New module 'iconv-h'.
36574         * modules/iconv-h: New file.
36575         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
36576         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
36577         (configure.ac): Remove gl_ICONV_H.
36578         (Makefile.am): Remove rule for iconv.h.
36579
36580 2010-03-06  Bruno Haible  <bruno@clisp.org>
36581
36582         More consistent naming of *.m4 files.
36583         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
36584         * modules/wctype (Files): Update.
36585
36586         More consistent naming of *.m4 files.
36587         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
36588         * modules/wchar (Files): Update.
36589
36590 2010-03-06  Jim Meyering  <meyering@redhat.com>
36591
36592         euidaccess: relax license to LGPLv2+
36593         * modules/euidaccess (License): Relax to LGPLv2+.
36594
36595 2010-03-06  Bruno Haible  <bruno@clisp.org>
36596
36597         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
36598         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
36599         (Makefile.am): Augment lib_SOURCES instead.
36600
36601 2010-03-04  Jim Meyering  <meyering@redhat.com>
36602
36603         utime: remove obsolete module
36604         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
36605         unnecessary for years, and has been marked as obsolete for 10 months.
36606         * modules/utime: Remove file.
36607         * lib/utime.c: Remove file.
36608         * m4/utime.m4: Remove file.
36609         * m4/utimes-null.m4: Remove file.
36610         * doc/posix-functions/utime.texi (utime): Remove reference to
36611         the module.  Move the sole "fixed by gnulib" item into the
36612         "problems not fixed by Gnulib" list.
36613         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
36614
36615 2010-03-05  Simon Josefsson  <simon@josefsson.org>
36616
36617         * modules/exit (License): Relax license to LGPLv2+.
36618         (Status): Mark as obsolete.
36619         * NEWS: Mention deprecated 'exit' module.
36620         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
36621         of now obsolete 'exit'.
36622
36623 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36624
36625         fts-lgpl: remove unused module
36626         * modules/fts-lgpl: Remove.
36627         * MODULES.html.sh (func_all_modules): Adjust.
36628         * check-module (find_included_lib_files): Adjust.
36629         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
36630
36631 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
36632
36633         copy-acl: enhance Solaris ACL error handling
36634         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
36635         * lib/set-mode-acl.c (qset_acl): Likewise.
36636
36637 2010-03-02  Bruno Haible  <bruno@clisp.org>
36638
36639         spawn: Don't override the system defined values on FreeBSD 8.
36640         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
36641         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
36642         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
36643         if HAVE_POSIX_SPAWN is 1.
36644         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
36645
36646 2010-03-01  Bruno Haible  <bruno@clisp.org>
36647
36648         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
36649         regarding Automake.
36650
36651 2010-02-25  Bruno Haible  <bruno@clisp.org>
36652
36653         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
36654         * gnulib-tool: Define 'echo' as a function only before the ksh alias
36655         setting, not afterwards.
36656         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
36657
36658 2010-02-24  Eric Blake  <eblake@redhat.com>
36659
36660         bootstrap, git-version-gen: use timestamp
36661         * build-aux/git-version-gen (scriptversion): Force UTC.
36662         * build-aux/bootstrap (scriptversion): New variable.
36663
36664         bootstrap: allow older git
36665         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
36666         older than 1.6.4.  Requested by the libvirt project.
36667
36668 2010-02-23  Eric Blake  <eblake@redhat.com>
36669
36670         warn-on-use: work with old autoconf
36671         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
36672         AS_VAR semantics of autoconf 2.60.
36673         Reported by Bruno Haible.
36674
36675         bootstrap: improve some comments
36676         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
36677         clarification comments.
36678
36679         gettimeofday: provide correct function
36680         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
36681         when replacement is declared, otherwise provide gettimeofday.
36682         Reported by Michael Goffioul.
36683
36684 2010-02-23  Jim Meyering  <meyering@redhat.com>
36685
36686         lib-ignore: relax license to "unlimited", not LGPLv2+
36687         * modules/lib-ignore (License): Relax to "unlimited".
36688
36689 2010-02-23  Jim Meyering  <meyering@redhat.com>
36690
36691         lib-ignore: relax license to LGPLv2+
36692         * modules/lib-ignore (License): Relax to LGPLv2+.
36693
36694 2010-02-22  Eric Blake  <eblake@redhat.com>
36695
36696         lseek: avoid bash 3.2 broken pipe bug
36697         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
36698         warning from bash 3.2.
36699         Reported by Ben Pfaff, with analysis from Bruno Haible.
36700
36701         bootstrap: support non-FSF copyright holder
36702         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
36703         bootstrap.conf override of COPYRIGHT_HOLDER.
36704         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
36705
36706         bootstrap: interoperate with gettext 0.14.1
36707         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
36708
36709         bootstrap: allow for alternate submodule location
36710         * build-aux/bootstrap (gnulib_path): New variable; use instead of
36711         hardcoding submodule location.
36712         (gnulib_mk): Allow direct use of Makefile.am.
36713
36714         bootstrap: use GNULIB_SRCDIR to reduce disk usage
36715         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
36716         rather than reconfiguring where the submodule points.
36717
36718         gettimeofday: restore support for platforms that lack function
36719         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
36720         replacement if function is missing.
36721         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
36722         * modules/sys_time (Makefile.am): Substitute it.
36723         * lib/sys_time.in.h (gettimeofday): Check it.
36724         Reported by Michael Goffioul.
36725
36726 2010-02-21  Bruno Haible  <bruno@clisp.org>
36727
36728         * lib/stdio.in.h (obstack_printf): Fix typo.
36729
36730 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
36731
36732         vc-list-files: use bzr ls's -R option
36733         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
36734         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
36735
36736 2010-02-21  Jim Meyering  <meyering@redhat.com>
36737
36738         init.sh: fix EXEEXT shims to work also for names like test-prog
36739         * tests/init.sh: Re-exec a better shell, when needed.
36740         If the current shell lacks support for posix $(...), an init.sh-using
36741         test will now try to find a shell that supports that.  If EXEEXT is
36742         nonempty, we also require support for hyphen-in-alias-name and shell
36743         substitutions like ${var#glob}.  Failure to find such a shell results
36744         in a skipped test.
36745
36746 2010-02-21  Bruno Haible  <bruno@clisp.org>
36747
36748         Really work around around "broken pipe" error message from bash 3.2.
36749         * gnulib-tool (func_reset_sigpipe): Remove function.
36750         (echo): In bash 3.2, define to a function that uses printf.
36751         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
36752
36753 2010-02-20  Bruno Haible  <bruno@clisp.org>
36754
36755         Restore support for automake 1.9.6 with autoconf 2.61.
36756         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
36757         Reported by James Youngman <jay@gnu.org>.
36758
36759 2010-02-20  Bruno Haible  <bruno@clisp.org>
36760
36761         Improve *printf warning condition.
36762         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
36763         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
36764         and the function is overridden due to SIGPIPE emulation.
36765
36766 2010-02-20  Bruno Haible  <bruno@clisp.org>
36767
36768         * lib/stdio.in.h: Tweak comments.
36769
36770 2010-02-19  Bruno Haible  <bruno@clisp.org>
36771
36772         Make it easier to find modules. New gnulib-tool option '--find'.
36773         * gnulib-tool: New option --find.
36774         (func_usage): Document it.
36775         (func_sanitize_modulelist): New function, extracted from
36776         func_all_modules.
36777         (func_all_modules): Invoke it.
36778         * doc/gnulib-tool.texi (Which modules?): New node.
36779
36780 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
36781
36782         * lib/sys_select.in.h: Provide select replacement even if
36783         sys/select.h exists on a system, for Interix.
36784
36785 2010-02-18  Jim Meyering  <meyering@redhat.com>
36786
36787         init.sh: don't use $(...) just yet
36788         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
36789         to accommodate e.g., Solaris' /bin/sh.
36790
36791 2010-02-17  Bruno Haible  <bruno@clisp.org>
36792
36793         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
36794         Reported by Ludovic Courtès <ludo@gnu.org>.
36795
36796 2010-02-16  Simon Josefsson  <simon@josefsson.org>
36797
36798         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
36799         linking with -lintl.
36800
36801 2010-02-17  Simon Josefsson  <simon@josefsson.org>
36802
36803         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
36804         if not provided by the system's netdb.h.  Reported by
36805         ludo@gnu.org (Ludovic Courtès).
36806
36807 2010-02-15  Jim Meyering  <meyering@redhat.com>
36808
36809         init.sh: improve portability and efficiency
36810         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
36811         "dummy" in a for loop.
36812         Use '!', not '^' to select the complement of a character set used
36813         in a "case" statement.
36814         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
36815         Suggestions from Eric Blake.
36816
36817         init.sh: automatically accommodate programs with the .exe suffix
36818         Automatically arrange for an invocation of "prog" to execute the
36819         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
36820         may use the simpler "prog", yet still work when built on a system
36821         that requires specifying the added suffix.
36822         Do this by constructing a function named "prog" that invokes
36823         "prog.exe" for each .exe file in selected directories.
36824         * tests/init.sh (find_exe_basenames_): New function.
36825         (create_exe_shim_functions_): New function.
36826         (path_prepend_): Use it.
36827
36828         maint.mk: mark syntax-check sc_*.m rules as .PHONY
36829         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
36830         "make -t syntax-check" doesn't create a ton of sc_*.m files.
36831
36832 2010-02-14  Jim Meyering  <meyering@redhat.com>
36833
36834         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
36835         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
36836         (sc_prohibit_hash_pjw_without_use): New rule.
36837
36838         maint.mk: allow the default upload destination dir to be overridden
36839         * top/maint.mk (upload_dest_dir_): Define with a default that
36840         preserves the status quo.
36841         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
36842         Reported by Peter Simons.
36843
36844         maint.mk: prohibit inclusion of "hash.h" without_use
36845         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
36846
36847 2010-02-10  Jim Meyering  <meyering@redhat.com>
36848
36849         maint.mk: prohibit inclusion of "ignore-value.h" without_use
36850         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
36851
36852 2010-02-09  Eric Blake  <ebb9@byu.net>
36853         and Bruno Haible  <bruno@clisp.org>
36854
36855         obstack-printf-posix: ensure declaration
36856         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
36857         extracted from gl_FUNC_OBSTACK_PRINTF.
36858         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
36859         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
36860         Likewise.
36861         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
36862         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
36863         0.
36864
36865 2010-02-08  Bruno Haible  <bruno@clisp.org>
36866
36867         gnulib-tool: Fix typo in 2010-02-07 commit.
36868         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
36869         Reported by Eric Blake.
36870
36871 2010-02-07  Bruno Haible  <bruno@clisp.org>
36872
36873         gnulib-tool: Fix up caching patches.
36874         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
36875         option --no-cache. Use associative arrays when supported by the shell.
36876         (sed_comments): New variable.
36877         (modcache): Renamed from do_cache.
36878         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
36879         abbreviate unnecessarily.
36880         (have_associative): New variable.
36881         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
36882         way also for ksh and zsh.
36883         (func_init_sed_convert_to_cache_statements): New function, extracted
36884         from func_cache_lookup_module. Add support for associative arrays.
36885         Don't set the c_MODULE_cached variable here. Ignore all lines before
36886         the first field header. Remove only the final newline, not all trailing
36887         newlines. Support empty fields correctly. Limit the use of 'eval' to
36888         assignments.
36889         (func_get_description, func_get_status, func_get_notice,
36890         func_get_applicability, func_get_filelist, func_get_dependencies,
36891         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
36892         func_get_automake_snippet, func_get_include_directive,
36893         func_get_link_directive, func_get_license, func_get_maintainer):
36894         Update documentation. List the unoptimized code first. Add support for
36895         associative arrays. Limit the use of 'eval' to assignments.
36896         (func_get_applicability): Undo stylistic pessimisations.
36897         (func_get_automake_snippet, func_get_include_directive): Reduce code
36898         duplication.
36899         (func_modules_transitive_closure, func_modules_add_dummy,
36900         func_modules_notice, func_modules_to_filelist, func_add_file,
36901         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
36902         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
36903         func_create_testdir, func_create_megatestdir): Update documentation.
36904
36905 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36906
36907         * gnulib-tool (func_cache_lookup_module): Store the module name
36908         belonging to the cache variable; error out if two different
36909         module names map to the same cache variable name.
36910
36911 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36912
36913         gnulib-tool: Make caching optional.
36914         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
36915         Update matching short versions of --no-changelog.
36916         (func_usage): Update.
36917         (sed_extract_cache_prog): Renamed from ...
36918         (sed_extract_prog): ... this; revert to old extraction script.
36919         (func_get_description, func_get_status)
36920         (func_get_notice, func_get_applicability, func_get_filelist)
36921         (func_get_dependencies, func_get_autoconf_early_snippet)
36922         (func_get_autoconf_snippet, func_get_automake_snippet)
36923         (func_get_include_directive, func_get_link_directive)
36924         (func_get_license, func_get_maintainer): If $do_cache is false,
36925         use old, non-caching extraction scripts.
36926         Suggestion by Bruno Haible.
36927
36928 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36929
36930         gnulib-tool: cache module metainformation.
36931         * gnulib-tool (sed_extract_prog): Match newline before each
36932         header, and rewrite header to a shell variable suffix.
36933         (func_cache_var, func_cache_lookup_module): New functions,
36934         to turn a module name into a cache variable prefix, and to
36935         look up and cache module metainformation.
36936         (func_get_description, func_get_status)
36937         (func_get_notice, func_get_applicability, func_get_filelist)
36938         (func_get_dependencies, func_get_autoconf_early_snippet)
36939         (func_get_autoconf_snippet, func_get_automake_snippet)
36940         (func_get_include_directive, func_get_link_directive)
36941         (func_get_license, func_get_maintainer): Use
36942         func_cache_lookup_module.
36943
36944 2010-02-07  Bruno Haible  <bruno@clisp.org>
36945
36946         fnctl: Fix missing dependency.
36947         * modules/fcntl (Depends-on): Add getdtablesize.
36948         Reported by John W. Eaton <jwe@gnu.org>.
36949
36950 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
36951
36952         Argp: fix recognition of short alias options.
36953
36954         * lib/argp-parse.c (convert_options): Fix improper use of
36955         `|' between character values.
36956         * tests/test-argp.c (group1_option): New alias option
36957         --read (-r).
36958         (group1_parser): Special handling for 'r'.
36959         (test15): New test case.
36960         (test_fun): Add test15.
36961         * tests/test-argp-2.sh: Update expected --help and --usage
36962         outputs.
36963
36964 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
36965
36966         * tests/test-argp.c: Fix indentation.
36967
36968 2010-02-04  Eric Blake  <ebb9@byu.net>
36969
36970         gettimeofday: expose type of second argument
36971         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
36972         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
36973         * tests/test-gettimeofday.c: Use it to silence warning.
36974         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
36975         the issue.
36976
36977 2010-02-03  Jim Meyering  <meyering@redhat.com>
36978
36979         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
36980         * lib/regcomp.c (TYPE_SIGNED): Define.
36981         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
36982
36983         regcomp.c: avoid a new -Wshadow warning
36984         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
36985
36986 2010-02-01  Jim Meyering  <meyering@redhat.com>
36987
36988         removing useless parentheses in cpp #define directives
36989         For motivation, see commit c0221df4, "define STREQ(a,b)
36990         consistently, removing useless parentheses"
36991         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
36992         * lib/mountlist.c (MNT_IGNORE): Likewise.
36993         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
36994
36995 2010-02-01  Eric Blake  <ebb9@byu.net>
36996
36997         sys_time: use link-warning
36998         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
36999         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
37000         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
37001         * modules/sys_time (Depends-on): Add warn-on-use.
37002         (Makefile.am): Always build replacement.
37003         (configure.ac): Update substitutions.
37004         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
37005         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
37006         bother with SYS_TIME_H.
37007         * modules/gettimeofday (configure.ac): Declare indicator.
37008         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
37009         in use.
37010
37011         closein-tests: silence compiler warning
37012         * tests/test-closein.c (main): Ignore fread result.
37013         * modules/closein-tests (Depends-on): Add ignore-value.
37014
37015         tests: silence warning about system return
37016         * tests/test-areadlink-with-size.c (main): Ignore system result.
37017         * tests/test-areadlink.c (main): Likewise.
37018         * tests/test-areadlinkat-with-size.c (main): Likewise.
37019         * tests/test-areadlinkat.c (main): Likewise.
37020         * tests/test-canonicalize-lgpl.c (main): Likewise.
37021         * tests/test-canonicalize.c (main): Likewise.
37022         * tests/test-chown.c (main): Likewise.
37023         * tests/test-fchownat.c (main): Likewise.
37024         * tests/test-fdutimensat.c (main): Likewise.
37025         * tests/test-fstatat.c (main): Likewise.
37026         * tests/test-futimens.c (main): Likewise.
37027         * tests/test-lchown.c (main): Likewise.
37028         * tests/test-link.c (main): Likewise.
37029         * tests/test-linkat.c (main): Likewise.
37030         * tests/test-lstat.c (main): Likewise.
37031         * tests/test-mkdir.c (main): Likewise.
37032         * tests/test-mkdirat.c (main): Likewise.
37033         * tests/test-mkfifo.c (main): Likewise.
37034         * tests/test-mkfifoat.c (main): Likewise.
37035         * tests/test-mknod.c (main): Likewise.
37036         * tests/test-readlink.c (main): Likewise.
37037         * tests/test-remove.c (main): Likewise.
37038         * tests/test-rename.c (main): Likewise.
37039         * tests/test-renameat.c (main): Likewise.
37040         * tests/test-rmdir.c (main): Likewise.
37041         * tests/test-symlink.c (main): Likewise.
37042         * tests/test-symlinkat.c (main): Likewise.
37043         * tests/test-unlink.c (main): Likewise.
37044         * tests/test-unlinkat.c (main): Likewise.
37045         * tests/test-utimens.c (main): Likewise.
37046         * tests/test-utimensat.c (main): Likewise.
37047         * modules/areadlink-tests (Depends-on): Add ignore-value.
37048         * modules/areadlink-with-size-tests (Depends-on): Likewise.
37049         * modules/areadlinkat-tests (Depends-on): Likewise.
37050         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
37051         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
37052         * modules/canonicalize-tests (Depends-on): Likewise.
37053         * modules/chown-tests (Depends-on): Likewise.
37054         * modules/fdutimensat-tests (Depends-on): Likewise.
37055         * modules/futimens-tests (Depends-on): Likewise.
37056         * modules/lchown-tests (Depends-on): Likewise.
37057         * modules/link-tests (Depends-on): Likewise.
37058         * modules/linkat-tests (Depends-on): Likewise.
37059         * modules/lstat-tests (Depends-on): Likewise.
37060         * modules/mkdir-tests (Depends-on): Likewise.
37061         * modules/mkfifo-tests (Depends-on): Likewise.
37062         * modules/mkfifoat-tests (Depends-on): Likewise.
37063         * modules/mknod-tests (Depends-on): Likewise.
37064         * modules/openat-tests (Depends-on): Likewise.
37065         * modules/readlink-tests (Depends-on): Likewise.
37066         * modules/remove-tests (Depends-on): Likewise.
37067         * modules/rename-tests (Depends-on): Likewise.
37068         * modules/renameat-tests (Depends-on): Likewise.
37069         * modules/rmdir-tests (Depends-on): Likewise.
37070         * modules/symlink-tests (Depends-on): Likewise.
37071         * modules/symlinkat-tests (Depends-on): Likewise.
37072         * modules/unlink-tests (Depends-on): Likewise.
37073         * modules/utimens-tests (Depends-on): Likewise.
37074         * modules/utimensat-tests (Depends-on): Likewise.
37075
37076 2010-01-31  Bruno Haible  <bruno@clisp.org>
37077
37078         Perform the same test for many <math.h> functions.
37079         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
37080         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
37081         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
37082         of gl_MATHFUNC.
37083         * modules/acos (configure.ac): Likewise.
37084         * modules/asin (configure.ac): Likewise.
37085         * modules/atan (configure.ac): Likewise.
37086         * modules/atan2 (configure.ac): Likewise.
37087         * modules/cbrt (configure.ac): Likewise.
37088         * modules/copysign (configure.ac): Likewise.
37089         * modules/cos (configure.ac): Likewise.
37090         * modules/cosh (configure.ac): Likewise.
37091         * modules/erf (configure.ac): Likewise.
37092         * modules/erfc (configure.ac): Likewise.
37093         * modules/exp (configure.ac): Likewise.
37094         * modules/fmod (configure.ac): Likewise.
37095         * modules/hypot (configure.ac): Likewise.
37096         * modules/j0 (configure.ac): Likewise.
37097         * modules/j1 (configure.ac): Likewise.
37098         * modules/jn (configure.ac): Likewise.
37099         * modules/lgamma (configure.ac): Likewise.
37100         * modules/log (configure.ac): Likewise.
37101         * modules/log10 (configure.ac): Likewise.
37102         * modules/log1p (configure.ac): Likewise.
37103         * modules/pow (configure.ac): Likewise.
37104         * modules/remainder (configure.ac): Likewise.
37105         * modules/sin (configure.ac): Likewise.
37106         * modules/sinh (configure.ac): Likewise.
37107         * modules/tan (configure.ac): Likewise.
37108         * modules/tanh (configure.ac): Likewise.
37109         * modules/y0 (configure.ac): Likewise.
37110         * modules/y1 (configure.ac): Likewise.
37111         * modules/yn (configure.ac): Likewise.
37112         Suggested by Paolo Bonzini.
37113
37114 2010-01-31  Bruno Haible  <bruno@clisp.org>
37115
37116         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
37117
37118 2010-01-31  Bruno Haible  <bruno@clisp.org>
37119
37120         Work around getdelim() bug on FreeBSD 8.0.
37121         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
37122         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
37123         not work.
37124         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
37125         is 1.
37126         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
37127         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
37128         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
37129         a non-zero size.
37130         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
37131
37132 2010-01-31  Bruno Haible  <bruno@clisp.org>
37133
37134         Work around getline() bug on FreeBSD 8.0.
37135         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
37136         and a non-zero size.
37137         * tests/test-getline.c (main): Likewise.
37138         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
37139         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
37140
37141 2010-01-28  Eric Blake  <ebb9@byu.net>
37142
37143         regex: fix build failure
37144         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
37145         platforms.
37146
37147 2010-01-28  Jim Meyering  <meyering@redhat.com>
37148
37149         regex: do not ignore memory allocation failure
37150         * lib/regex_internal.c (create_cd_newstate): Detect
37151         re_node_set_init_copy failure.   Extracted from glibc commit
37152         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
37153
37154         regex: sync more white-space changes from libc
37155         * lib/regex_internal.c: White-space only changes.
37156         * lib/regexec.c: Likewise.
37157
37158         regex: add many uses of __attribute_warn_unused_result__
37159         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
37160         * lib/regexec.c: Likewise.
37161         Extracted from a messy glibc commit.
37162
37163         regcomp.c: spelling and merge-artifact from glibc
37164         * lib/regcomp.c: Merge remainder of glibc's
37165         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
37166
37167         regcomp.c: sync white-space changes from glibc
37168         * lib/regcomp.c: Merge to accommodate white space
37169         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
37170
37171         regcomp.c: do not ignore internal return values
37172         * lib/regcomp.c: Do not ignore internal return values.
37173         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
37174         but without its white-space changes and spelling fixes.
37175
37176         regex_internal.h: define __attribute_warn_unused_result__
37177         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
37178
37179         maint: add a syntax-check rule to check for vulnerable Makefile.in
37180         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
37181
37182 2010-01-27  Jim Meyering  <meyering@redhat.com>
37183
37184         ncftpput-ftp: clean up spaces
37185         * build-aux/ncftpput-ftp: Make Copyright line consistent.
37186         Remove trailing blanks.
37187
37188 2010-01-27  Simon Josefsson  <simon@josefsson.org>
37189
37190         * build-aux/git-version-gen: Fix copyright statement.
37191         * build-aux/gnupload: Likewise.
37192         * tests/test-arcfour.c: Likewise.
37193         * tests/test-arctwo.c: Likewise.
37194         * tests/test-count-one-bits.c: Likewise.
37195         * tests/test-crc.c: Likewise.
37196         * tests/test-des.c: Likewise.
37197         * tests/test-gc-arcfour.c: Likewise.
37198         * tests/test-gc-arctwo.c: Likewise.
37199         * tests/test-gc-des.c: Likewise.
37200         * tests/test-gc-hmac-md5.c: Likewise.
37201         * tests/test-gc-hmac-sha1.c: Likewise.
37202         * tests/test-gc-md2.c: Likewise.
37203         * tests/test-gc-md4.c: Likewise.
37204         * tests/test-gc-md5.c: Likewise.
37205         * tests/test-gc-pbkdf2-sha1.c: Likewise.
37206         * tests/test-gc-rijndael.c: Likewise.
37207         * tests/test-gc-sha1.c: Likewise.
37208         * tests/test-gc.c: Likewise.
37209         * tests/test-gethostname.c: Likewise.
37210         * tests/test-gettimeofday.c: Likewise.
37211         * tests/test-hash.c: Likewise.
37212         * tests/test-hmac-md5.c: Likewise.
37213         * tests/test-hmac-sha1.c: Likewise.
37214         * tests/test-md2.c: Likewise.
37215         * tests/test-md4.c: Likewise.
37216         * tests/test-md5.c: Likewise.
37217         * tests/test-memchr.c: Likewise.
37218         * tests/test-memchr2.c: Likewise.
37219         * tests/test-memcmp.c: Likewise.
37220         * tests/test-memmem.c: Likewise.
37221         * tests/test-memrchr.c: Likewise.
37222         * tests/test-rawmemchr.c: Likewise.
37223         * tests/test-read-file.c: Likewise.
37224         * tests/test-rijndael.c: Likewise.
37225         * tests/test-sockets.c: Likewise.
37226         * tests/test-strchrnul.c: Likewise.
37227         * tests/test-strstr.c: Likewise.
37228         * tests/test-strtod.c: Likewise.
37229         * build-aux/ncftpput-ftp: Likewise.
37230
37231 2010-01-26  Eric Blake  <ebb9@byu.net>
37232
37233         ignore-value: update recommended header name
37234         * modules/ignore-value (Include): Only use <> for headers that
37235         exist in glibc.
37236
37237 2010-01-26  Jim Meyering  <meyering@redhat.com>
37238
37239         test-userspec.c: avoid compiler warnings
37240         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
37241         and "initialization discards qualifiers..." warnings.
37242         Put the first "uid" in its own scope, and make char* members "const".
37243
37244 2010-01-25  Bruno Haible  <bruno@clisp.org>
37245
37246         gnulib-tool: Make warning diagnostics consistent.
37247         * gnulib-tool (func_warning): New function.
37248         Use it everywhere where gnulib-tool produces output to stderr and it is
37249         not a fatal error.
37250
37251 2010-01-25  Bruno Haible  <bruno@clisp.org>
37252
37253         Fix test dependencies.
37254         * modules/xstrtol-tests (Depends-on): Add inttypes.
37255         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
37256
37257 2010-01-25 Pádraig Brady <P@draigBrady.com>
37258
37259         syntax-check: detect incorrect boolean macro values in config.h
37260         * modules/maintainer-makefile (configure.ac): Parameterize the location
37261         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
37262         The logic is from Eric Blake and the location indicated by Jim Meyering.
37263         Note the more natural CONFIG_HEADER name is prohibited by automake
37264         for backwards compatibility reasons.
37265         * top/maint.mk (sc_Wundef_boolean): New rule.
37266
37267 2010-01-25  Jim Meyering  <meyering@redhat.com>
37268
37269         bootstrap: detect MacOS 10.6's shasum, too
37270         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
37271         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
37272
37273 2010-01-23  Jim Meyering  <meyering@redhat.com>
37274
37275         xstrtoll: new module
37276         * modules/xstrtoll: New file.
37277         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
37278         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
37279         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
37280         ./configure fails if you use this module and lack "long long".
37281         * modules/xstrtoll-tests: New module.
37282         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
37283         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
37284         new init.sh-based test framework.
37285
37286 2010-01-24  Bruno Haible  <bruno@clisp.org>
37287
37288         Tests for module 'yn'.
37289         * modules/yn-tests: New file.
37290         * tests/test-yn.c: New file.
37291
37292         Tests for module 'y1'.
37293         * modules/y1-tests: New file.
37294         * tests/test-y1.c: New file.
37295
37296         Tests for module 'y0'.
37297         * modules/y0-tests: New file.
37298         * tests/test-y0.c: New file.
37299
37300         Tests for module 'tanh'.
37301         * modules/tanh-tests: New file.
37302         * tests/test-tanh.c: New file.
37303
37304         Tests for module 'tan'.
37305         * modules/tan-tests: New file.
37306         * tests/test-tan.c: New file.
37307
37308         Tests for module 'sqrt'.
37309         * modules/sqrt-tests: New file.
37310         * tests/test-sqrt.c: New file.
37311
37312         Tests for module 'sinh'.
37313         * modules/sinh-tests: New file.
37314         * tests/test-sinh.c: New file.
37315
37316         Tests for module 'sin'.
37317         * modules/sin-tests: New file.
37318         * tests/test-sin.c: New file.
37319
37320         Tests for module 'rint'.
37321         * modules/rint-tests: New file.
37322         * tests/test-rint.c: New file.
37323
37324         Tests for module 'remainder'.
37325         * modules/remainder-tests: New file.
37326         * tests/test-remainder.c: New file.
37327
37328         Tests for module 'pow'.
37329         * modules/pow-tests: New file.
37330         * tests/test-pow.c: New file.
37331
37332         Tests for module 'nextafter'.
37333         * modules/nextafter-tests: New file.
37334         * tests/test-nextafter.c: New file.
37335
37336         Tests for module 'modf'.
37337         * modules/modf-tests: New file.
37338         * tests/test-modf.c: New file.
37339
37340         Tests for module 'logb'.
37341         * modules/logb-tests: New file.
37342         * tests/test-logb.c: New file.
37343
37344         Tests for module 'log1p'.
37345         * modules/log1p-tests: New file.
37346         * tests/test-log1p.c: New file.
37347
37348         Tests for module 'log10'.
37349         * modules/log10-tests: New file.
37350         * tests/test-log10.c: New file.
37351
37352         Tests for module 'log'.
37353         * modules/log-tests: New file.
37354         * tests/test-log.c: New file.
37355
37356         Tests for module 'lgamma'.
37357         * modules/lgamma-tests: New file.
37358         * tests/test-lgamma.c: New file.
37359
37360         Tests for module 'ldexp'.
37361         * modules/ldexp-tests: New file.
37362         * tests/test-ldexp.c: New file.
37363
37364         Tests for module 'jn'.
37365         * modules/jn-tests: New file.
37366         * tests/test-jn.c: New file.
37367
37368         Tests for module 'j1'.
37369         * modules/j1-tests: New file.
37370         * tests/test-j1.c: New file.
37371
37372         Tests for module 'j0'.
37373         * modules/j0-tests: New file.
37374         * tests/test-j0.c: New file.
37375
37376         Tests for module 'hypot'.
37377         * modules/hypot-tests: New file.
37378         * tests/test-hypot.c: New file.
37379
37380         Tests for module 'fmod'.
37381         * modules/fmod-tests: New file.
37382         * tests/test-fmod.c: New file.
37383
37384         Tests for module 'fabs'.
37385         * modules/fabs-tests: New file.
37386         * tests/test-fabs.c: New file.
37387
37388         Tests for module 'exp'.
37389         * modules/exp-tests: New file.
37390         * tests/test-exp.c: New file.
37391
37392         Tests for module 'erfc'.
37393         * modules/erfc-tests: New file.
37394         * tests/test-erfc.c: New file.
37395
37396         Tests for module 'erf'.
37397         * modules/erf-tests: New file.
37398         * tests/test-erf.c: New file.
37399
37400         Tests for module 'cosh'.
37401         * modules/cosh-tests: New file.
37402         * tests/test-cosh.c: New file.
37403
37404         Tests for module 'cos'.
37405         * modules/cos-tests: New file.
37406         * tests/test-cos.c: New file.
37407
37408         Tests for module 'copysign'.
37409         * modules/copysign-tests: New file.
37410         * tests/test-copysign.c: New file.
37411
37412         Tests for module 'cbrt'.
37413         * modules/cbrt-tests: New file.
37414         * tests/test-cbrt.c: New file.
37415
37416         Tests for module 'atan2'.
37417         * modules/atan2-tests: New file.
37418         * tests/test-atan2.c: New file.
37419
37420         Tests for module 'atan'.
37421         * modules/atan-tests: New file.
37422         * tests/test-atan.c: New file.
37423
37424         Tests for module 'asin'.
37425         * modules/asin-tests: New file.
37426         * tests/test-asin.c: New file.
37427
37428         Tests for module 'acos'.
37429         * modules/acos-tests: New file.
37430         * tests/test-acos.c: New file.
37431
37432 2010-01-24  Bruno Haible  <bruno@clisp.org>
37433
37434         Fix tests for common <math.h> functions.
37435         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
37436         code snippet that references the function pointer, rather than merely
37437         calling the function. Substitute the FUNC_LIBM variable.
37438         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
37439         * modules/acos (configure.ac): Likewise.
37440         * modules/asin (configure.ac): Likewise.
37441         * modules/atan (configure.ac): Likewise.
37442         * modules/atan2 (configure.ac): Likewise.
37443         * modules/cbrt (configure.ac): Likewise.
37444         * modules/copysign (configure.ac): Likewise.
37445         * modules/cos (configure.ac): Likewise.
37446         * modules/cosh (configure.ac): Likewise.
37447         * modules/erf (configure.ac): Likewise.
37448         * modules/erfc (configure.ac): Likewise.
37449         * modules/exp (configure.ac): Likewise.
37450         * modules/fabs (configure.ac): Likewise.
37451         * modules/fmod (configure.ac): Likewise.
37452         * modules/hypot (configure.ac): Likewise.
37453         * modules/j0 (configure.ac): Likewise.
37454         * modules/j1 (configure.ac): Likewise.
37455         * modules/jn (configure.ac): Likewise.
37456         * modules/ldexp (configure.ac): Likewise.
37457         * modules/lgamma (configure.ac): Likewise.
37458         * modules/log (configure.ac): Likewise.
37459         * modules/log10 (configure.ac): Likewise.
37460         * modules/log1p (configure.ac): Likewise.
37461         * modules/logb (configure.ac): Likewise.
37462         * modules/modf (configure.ac): Likewise.
37463         * modules/nextafter (configure.ac): Likewise.
37464         * modules/pow (configure.ac): Likewise.
37465         * modules/remainder (configure.ac): Likewise.
37466         * modules/rint (configure.ac): Likewise.
37467         * modules/sin (configure.ac): Likewise.
37468         * modules/sinh (configure.ac): Likewise.
37469         * modules/tan (configure.ac): Likewise.
37470         * modules/tanh (configure.ac): Likewise.
37471         * modules/y0 (configure.ac): Likewise.
37472         * modules/y1 (configure.ac): Likewise.
37473         * modules/yn (configure.ac): Likewise.
37474
37475 2010-01-24  Bruno Haible  <bruno@clisp.org>
37476
37477         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
37478         * tests/test-acosl.c (x): New variable.
37479         (main): Store argument in x and fetch it from x.
37480         * tests/test-asinl.c (x): New variable.
37481         (main): Store argument in x and fetch it from x.
37482         * tests/test-atanl.c (x): New variable.
37483         (main): Store argument in x and fetch it from x.
37484         * tests/test-cosl.c (x): New variable.
37485         (main): Store argument in x and fetch it from x.
37486         * tests/test-expl.c (x): New variable.
37487         (main): Store argument in x and fetch it from x.
37488         * tests/test-logl.c (x): New variable.
37489         (main): Store argument in x and fetch it from x.
37490         * tests/test-sinl.c (x): New variable.
37491         (main): Store argument in x and fetch it from x.
37492         * tests/test-sqrtl.c (x): New variable.
37493         (main): Store argument in x and fetch it from x.
37494         * tests/test-tanl.c (x): New variable.
37495         (main): Store argument in x and fetch it from x.
37496
37497 2010-01-24  Bruno Haible  <bruno@clisp.org>
37498
37499         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
37500         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
37501         assignments to the initial TESTS_ENVIRONMENT.
37502         * doc/gnulib.texi (Unit test modules): Document it.
37503         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
37504         TESTS_ENVIRONMENT.
37505         * modules/btowc-tests (Makefile.am): Likewise.
37506         * modules/c-stack-tests (Makefile.am): Likewise.
37507         * modules/c-strcase-tests (Makefile.am): Likewise.
37508         * modules/copy-file-tests (Makefile.am): Likewise.
37509         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
37510         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
37511         * modules/mbrtowc-tests (Makefile.am): Likewise.
37512         * modules/mbscasecmp-tests (Makefile.am): Likewise.
37513         * modules/mbscasestr-tests (Makefile.am): Likewise.
37514         * modules/mbschr-tests (Makefile.am): Likewise.
37515         * modules/mbscspn-tests (Makefile.am): Likewise.
37516         * modules/mbsinit-tests (Makefile.am): Likewise.
37517         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
37518         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
37519         * modules/mbspbrk-tests (Makefile.am): Likewise.
37520         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
37521         * modules/mbsrchr-tests (Makefile.am): Likewise.
37522         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
37523         * modules/mbsspn-tests (Makefile.am): Likewise.
37524         * modules/mbsstr-tests (Makefile.am): Likewise.
37525         * modules/nl_langinfo-tests (Makefile.am): Likewise.
37526         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
37527         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
37528         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
37529         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
37530         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
37531         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
37532         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
37533         * modules/wcrtomb-tests (Makefile.am): Likewise.
37534         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
37535         * modules/wcsrtombs-tests (Makefile.am): Likewise.
37536         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
37537         assignments from TESTS_ENVIRONMENT.
37538         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
37539         augmentation.
37540         * modules/argp-version-etc-tests (Makefile.am): Likewise.
37541         * modules/atexit-tests (Makefile.am): Likewise.
37542         * modules/binary-io-tests (Makefile.am): Likewise.
37543         * modules/closein-tests (Makefile.am): Likewise.
37544         * modules/dprintf-posix-tests (Makefile.am): Likewise.
37545         * modules/exclude-tests (Makefile.am): Likewise.
37546         * modules/fflush-tests (Makefile.am): Likewise.
37547         * modules/fpending-tests (Makefile.am): Likewise.
37548         * modules/fprintf-posix-tests (Makefile.am): Likewise.
37549         * modules/freadahead-tests (Makefile.am): Likewise.
37550         * modules/freadptr-tests (Makefile.am): Likewise.
37551         * modules/freadseek-tests (Makefile.am): Likewise.
37552         * modules/fseek-tests (Makefile.am): Likewise.
37553         * modules/fseeko-tests (Makefile.am): Likewise.
37554         * modules/ftell-tests (Makefile.am): Likewise.
37555         * modules/ftello-tests (Makefile.am): Likewise.
37556         * modules/idpriv-drop-tests (Makefile.am): Likewise.
37557         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
37558         * modules/lseek-tests (Makefile.am): Likewise.
37559         * modules/parse-duration-tests (Makefile.am): Likewise.
37560         * modules/perror-tests (Makefile.am): Likewise.
37561         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
37562         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
37563         * modules/pipe-tests (Makefile.am): Likewise.
37564         * modules/pread-tests (Makefile.am): Likewise.
37565         * modules/printf-posix-tests (Makefile.am): Likewise.
37566         * modules/select-tests (Makefile.am): Likewise.
37567         * modules/sigpipe-tests (Makefile.am): Likewise.
37568         * modules/tsearch-tests (Makefile.am): Likewise.
37569         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
37570         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
37571         * modules/uniname/uniname-tests (Makefile.am): Likewise.
37572         * modules/uniwidth/width-tests (Makefile.am): Likewise.
37573         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
37574         * modules/version-etc-tests (Makefile.am): Likewise.
37575         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
37576         * modules/vprintf-posix-tests (Makefile.am): Likewise.
37577         * modules/xalloc-die-tests (Makefile.am): Likewise.
37578         * modules/xprintf-posix-tests (Makefile.am): Likewise.
37579         * modules/xstrtoimax-tests (Makefile.am): Likewise.
37580         * modules/xstrtol-tests (Makefile.am): Likewise.
37581         * modules/xstrtoumax-tests (Makefile.am): Likewise.
37582         * modules/yesno-tests (Makefile.am): Likewise.
37583         Suggested by Jim Meyering.
37584
37585 2010-01-24  Bruno Haible  <bruno@clisp.org>
37586
37587         More documentation.
37588         * doc/gnulib.texi (Writing modules): New chapter.
37589         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
37590         the new chapter.
37591
37592 2010-01-24  Jim Meyering  <meyering@redhat.com>
37593
37594         maint.mk: do not prepend "./" after filtering
37595         * top/maint.mk (_prepend_srcdir_prefix): New variable
37596         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
37597         "./" when $(srcdir) is ".".
37598
37599         define STREQ(a,b) consistently, removing useless parentheses
37600         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
37601         since the only risk is that "a" or "b" contains an unparenthesized
37602         comma, but if either did that, STREQ would have 3 or more arguments.
37603         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
37604         * lib/fts.c (STREQ): Remove unnecessary parentheses.
37605         * lib/hash-triple.c (STREQ): Likewise.
37606         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
37607         * lib/getugroups.c (STREQ): Likewise.
37608
37609 2010-01-23  Jim Meyering  <meyering@redhat.com>
37610
37611         maint.mk: fix syntax-check in a non-srcdir build directory
37612         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
37613         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
37614
37615 2010-01-22  Jim Meyering  <meyering@redhat.com>
37616
37617         userspec: add unit tests
37618         * tests/test-userspec.c: New file.
37619         * modules/userspec-tests: Likewise.
37620
37621 2010-01-21  Jim Meyering  <meyering@redhat.com>
37622
37623         maint.mk: handle source file names containing "." robustly
37624         * top/maint.mk (_dot_escaped_srcdir): Define.
37625         (VC_LIST): Use it in LHS of sed substitution.
37626
37627 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
37628
37629         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
37630         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
37631         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
37632         from a non-srcdir build.
37633
37634 2010-01-20  Eric Blake  <ebb9@byu.net>
37635
37636         warn-on-use: use instead of link-warning
37637         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
37638         * modules/unistd (Depends-on, Makefile.am): Likewise.
37639         * modules/arpa_inet (Depends-on): Replace link-warning with
37640         warn-on-use.
37641         (Makefile.am): Update rules accordingly.
37642         * modules/ctype (Depends-on, Makefile.am): Likewise.
37643         * modules/dirent (Depends-on, Makefile.am): Likewise.
37644         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
37645         * modules/inttypes (Depends-on, Makefile.am): Likewise.
37646         * modules/langinfo (Depends-on, Makefile.am): Likewise.
37647         * modules/locale (Depends-on, Makefile.am): Likewise.
37648         * modules/math (Depends-on, Makefile.am): Likewise.
37649         * modules/search (Depends-on, Makefile.am): Likewise.
37650         * modules/signal (Depends-on, Makefile.am): Likewise.
37651         * modules/spawn (Depends-on, Makefile.am): Likewise.
37652         * modules/stdlib (Depends-on, Makefile.am): Likewise.
37653         * modules/string (Depends-on, Makefile.am): Likewise.
37654         * modules/strings (Depends-on, Makefile.am): Likewise.
37655         * modules/sys_file (Depends-on, Makefile.am): Likewise.
37656         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
37657         * modules/sys_select (Depends-on, Makefile.am): Likewise.
37658         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
37659         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
37660         * modules/sys_times (Depends-on, Makefile.am): Likewise.
37661         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
37662         * modules/wchar (Depends-on, Makefile.am): Likewise.
37663         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
37664         should be poisoned.
37665         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
37666         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
37667         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
37668         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
37669         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
37670         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
37671         * m4/math_h.m4 (gl_MATH_H): Likewise.
37672         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
37673         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
37674         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
37675         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
37676         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
37677         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
37678         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
37679         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
37680         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
37681         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
37682         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
37683         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
37684         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
37685         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
37686         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
37687         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
37688         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
37689         GL_LINK_WARNING.
37690         * lib/ctype.in.h: Likewise.
37691         * lib/dirent.in.h: Likewise.
37692         * lib/fcntl.in.h: Likewise.
37693         * lib/inttypes.in.h: Likewise.
37694         * lib/langinfo.in.h: Likewise.
37695         * lib/locale.in.h: Likewise.
37696         * lib/math.in.h: Likewise.
37697         * lib/search.in.h: Likewise.
37698         * lib/signal.in.h: Likewise.
37699         * lib/spawn.in.h: Likewise.
37700         * lib/stdio.in.h: Likewise.
37701         * lib/stdlib.in.h: Likewise.
37702         * lib/string.in.h: Likewise.
37703         * lib/strings.in.h: Likewise.
37704         * lib/sys_file.in.h: Likewise.
37705         * lib/sys_ioctl.in.h: Likewise.
37706         * lib/sys_select.in.h: Likewise.
37707         * lib/sys_socket.in.h: Likewise.
37708         * lib/sys_stat.in.h: Likewise.
37709         * lib/sys_times.in.h: Likewise.
37710         * lib/sys_utsname.in.h: Likewise.
37711         * lib/unistd.in.h: Likewise.
37712         * lib/wchar.in.h: Likewise.
37713
37714 2010-01-20  Bruno Haible  <bruno@clisp.org>
37715
37716         Avoid duplicate -lm.
37717         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
37718         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
37719         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
37720         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
37721         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
37722         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
37723         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
37724         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
37725         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
37726         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
37727         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
37728         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
37729         Reported by Paolo Bonzini.
37730
37731 2010-01-19  Bruno Haible  <bruno@clisp.org>
37732
37733         langinfo, nl_langinfo: Relicense under LGPLv2+.
37734         * modules/langinfo (License): Change to LGPLv2+.
37735         * modules/nl_langinfo (License): Likewise.
37736         Patch by David Lutterkort <lutter@redhat.com>.
37737
37738 2010-01-19  Bruno Haible  <bruno@clisp.org>
37739
37740         Avoid compilation error with cc on OSF/1 5.1.
37741         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
37742         statement, not before.
37743         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
37744
37745 2010-01-18  Bruno Haible  <bruno@clisp.org>
37746
37747         Avoid a link error due to the __printf__ symbol.
37748         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
37749         and 2.6.x.
37750         (__format__, __printf__): Remove definitions.
37751         * lib/argp-fmtstream.h: Likewise.
37752         * lib/argp.h: Likewise.
37753         * lib/error.h: Likewise.
37754         * lib/vasnprintf.h: Likewise.
37755         * lib/xprintf.h: Likewise.
37756         * lib/xvasprintf.h: Likewise.
37757         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
37758
37759 2010-01-18  Bruno Haible  <bruno@clisp.org>
37760
37761         Tests for module 'tanl'.
37762         * modules/tanl-tests: New file.
37763         * tests/test-tanl.c: New file.
37764
37765         Tests for module 'sqrtl'.
37766         * modules/sqrtl-tests: New file.
37767         * tests/test-sqrtl.c: New file.
37768
37769         Tests for module 'sinl'.
37770         * modules/sinl-tests: New file.
37771         * tests/test-sinl.c: New file.
37772
37773         Tests for module 'logl'.
37774         * modules/logl-tests: New file.
37775         * tests/test-logl.c: New file.
37776
37777         Tests for module 'expl'.
37778         * modules/expl-tests: New file.
37779         * tests/test-expl.c: New file.
37780
37781         Tests for module 'cosl'.
37782         * modules/cosl-tests: New file.
37783         * tests/test-cosl.c: New file.
37784
37785         Tests for module 'atanl'.
37786         * modules/atanl-tests: New file.
37787         * tests/test-atanl.c: New file.
37788
37789         Tests for module 'asinl'.
37790         * modules/asinl-tests: New file.
37791         * tests/test-asinl.c: New file.
37792
37793         Tests for module 'acosl'.
37794         * modules/acosl-tests: New file.
37795         * tests/test-acosl.c: New file.
37796
37797         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
37798         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
37799         tanl): Use the standard gnulib idiom.
37800         * lib/cosl.c: Don't include trigl.c and sincosl.c.
37801         * lib/sinl.c: Likewise.
37802         * lib/tanl.c: Don't include trigl.c.
37803         (kernel_tanl): Make static.
37804         * lib/sincosl.c: Include trigl.h first.
37805         * lib/trigl.c: Likewise.
37806         * m4/acosl.m4: New file.
37807         * m4/asinl.m4: New file.
37808         * m4/atanl.m4: New file.
37809         * m4/cosl.m4: New file.
37810         * m4/expl.m4: New file.
37811         * m4/logl.m4: New file.
37812         * m4/sinl.m4: New file.
37813         * m4/sqrtl.m4: New file.
37814         * m4/tanl.m4: New file.
37815         * m4/mathl.m4: Remove file.
37816         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
37817         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
37818         Don't initialize GNULIB_MATHL.
37819         * modules/acosl: New file.
37820         * modules/asinl: New file.
37821         * modules/atanl: New file.
37822         * modules/cosl: New file.
37823         * modules/expl: New file.
37824         * modules/logl: New file.
37825         * modules/sinl: New file.
37826         * modules/sqrtl: New file.
37827         * modules/tanl: New file.
37828         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
37829         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
37830         substitute GNULIB_MATHL.
37831         * modules/mathl: Rewritten.
37832         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
37833         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
37834         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
37835         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
37836         * doc/posix-functions/expl.texi: Mention the 'expl' module.
37837         * doc/posix-functions/logl.texi: Mention the 'logl' module.
37838         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
37839         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
37840         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
37841
37842 2010-01-18  Bruno Haible  <bruno@clisp.org>
37843
37844         sqrt: Make gl_FUNC_SQRT requirable.
37845         * m4/sqrt.m4: New file.
37846         * modules/sqrt (Files): Add it.
37847         (configure.ac): Invoke gl_FUNC_SQRT.
37848
37849 2010-01-18  Bruno Haible  <bruno@clisp.org>
37850
37851         New modules for common <math.h> functions.
37852         * m4/mathfunc.m4: New file.
37853         * modules/acos: New file.
37854         * modules/asin: New file.
37855         * modules/atan: New file.
37856         * modules/atan2: New file.
37857         * modules/cbrt: New file.
37858         * modules/copysign: New file.
37859         * modules/cos: New file.
37860         * modules/cosh: New file.
37861         * modules/erf: New file.
37862         * modules/erfc: New file.
37863         * modules/exp: New file.
37864         * modules/fabs: New file.
37865         * modules/fmod: New file.
37866         * modules/hypot: New file.
37867         * modules/j0: New file.
37868         * modules/j1: New file.
37869         * modules/jn: New file.
37870         * modules/ldexp: New file.
37871         * modules/lgamma: New file.
37872         * modules/log: New file.
37873         * modules/log10: New file.
37874         * modules/log1p: New file.
37875         * modules/logb: New file.
37876         * modules/modf: New file.
37877         * modules/nextafter: New file.
37878         * modules/pow: New file.
37879         * modules/remainder: New file.
37880         * modules/rint: New file.
37881         * modules/sin: New file.
37882         * modules/sinh: New file.
37883         * modules/sqrt: New file.
37884         * modules/tan: New file.
37885         * modules/tanh: New file.
37886         * modules/y0: New file.
37887         * modules/y1: New file.
37888         * modules/yn: New file.
37889         * doc/posix-functions/acos.texi: Mention the 'acos' module.
37890         * doc/posix-functions/asin.texi: Mention the 'asin' module.
37891         * doc/posix-functions/atan.texi: Mention the 'atan' module.
37892         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
37893         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
37894         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
37895         * doc/posix-functions/cos.texi: Mention the 'cos' module.
37896         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
37897         * doc/posix-functions/erf.texi: Mention the 'erf' module.
37898         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
37899         * doc/posix-functions/exp.texi: Mention the 'exp' module.
37900         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
37901         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
37902         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
37903         * doc/posix-functions/j0.texi: Mention the 'j0' module.
37904         * doc/posix-functions/j1.texi: Mention the 'j1' module.
37905         * doc/posix-functions/jn.texi: Mention the 'jn' module.
37906         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
37907         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
37908         * doc/posix-functions/log.texi: Mention the 'log' module.
37909         * doc/posix-functions/log10.texi: Mention the 'log10' module.
37910         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
37911         * doc/posix-functions/logb.texi: Mention the 'logb' module.
37912         * doc/posix-functions/modf.texi: Mention the 'modf' module.
37913         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
37914         * doc/posix-functions/pow.texi: Mention the 'pow' module.
37915         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
37916         * doc/posix-functions/rint.texi: Mention the 'rint' module.
37917         * doc/posix-functions/sin.texi: Mention the 'sin' module.
37918         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
37919         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
37920         * doc/posix-functions/tan.texi: Mention the 'tan' module.
37921         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
37922         * doc/posix-functions/y0.texi: Mention the 'y0' module.
37923         * doc/posix-functions/y1.texi: Mention the 'y1' module.
37924         * doc/posix-functions/yn.texi: Mention the 'yn' module.
37925
37926 2010-01-18  Jim Meyering  <meyering@redhat.com>
37927
37928         ignore-value: relax license to LGPLv2+
37929         * modules/ignore-value (License): Relax to LGPLv2+.
37930
37931         getdate: don't leak when TZ contains two or more '"'s
37932         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
37933         double quote in TZ after the first one.
37934
37935         readtokens: do not leak internal token_lengths buffer
37936         * lib/readtokens.c (readtokens): Free the local, lengths,
37937         when the supplied "token_lengths" parameter is NULL.
37938
37939 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37940
37941         Fix a couple of missing LIBTHREAD link failures on AIX.
37942         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
37943         $(LIBTHREAD).
37944         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
37945
37946         Link test-poll against INET_PTON_LIB.
37947         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
37948         for inet_pton on Solaris 10.
37949
37950 2010-01-17  Bruno Haible  <bruno@clisp.org>
37951
37952         unistdio/*-sprintf: Fix typo in module description.
37953         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
37954         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
37955         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
37956         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
37957         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
37958         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
37959         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
37960         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
37961
37962 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37963
37964         gnulib-tool: fix filelist for AIX, HP-UX ksh.
37965         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
37966         variables in shell case patterns, for AIX and HP-UX ksh.
37967
37968         Split large sed scripts, for HP-UX sed.
37969         * modules/stdio: Split sed scripts around 50 sed commands,
37970         to avoid HP-UX limit of 99 commands, in the near future.
37971         * modules/string: Likewise.
37972         * modules/unistd: Likewise.
37973
37974         gnulib-tool: avoid writing in the current directory.
37975         * gnulib-tool (func_emit_lib_Makefile_am)
37976         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
37977         not in the current directory, so concurrent gnulib-tool
37978         instances do not interfere.
37979
37980 2010-01-16  Jim Meyering  <meyering@redhat.com>
37981
37982         doc: update users.txt
37983         * users.txt: Add grep.
37984         (diffutils, gzip): Update URLs.
37985
37986 2010-01-12  Bruno Haible  <bruno@clisp.org>
37987
37988         posix_spawn: Avoid test failure on Cygwin.
37989         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
37990         characters.
37991         Reported by Simon Josefsson.
37992
37993 2010-01-12  Bruno Haible  <bruno@clisp.org>
37994
37995         * tests/test-cond.c (main): When skipping the test, show the reason.
37996
37997 2010-01-12  Simon Josefsson  <simon@josefsson.org>
37998
37999         * lib/striconv.c (str_cd_iconv): Avoid if before free.
38000
38001 2010-01-12  Simon Josefsson  <simon@josefsson.org>
38002
38003         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
38004         VC_LIST_ALWAYS_EXCLUDE_REGEX.
38005
38006 2010-01-12  Eric Blake  <ebb9@byu.net>
38007
38008         build: guarantee AS_VAR_IF
38009         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
38010         (gl_AS_VAR_IF): Move...
38011         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
38012         Reported by Simon Josefsson.
38013
38014 2010-01-12  Simon Josefsson  <simon@josefsson.org>
38015
38016         * lib/stdio.in.h: Fix typo.
38017
38018 2010-01-12  Simon Josefsson  <simon@josefsson.org>
38019
38020         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
38021         libgpg-error.
38022
38023 2010-01-12  Simon Josefsson  <simon@josefsson.org>
38024
38025         * tests/test-xalloc-die.sh: Use $EXEEXT.
38026
38027 2010-01-12  Simon Josefsson  <simon@josefsson.org>
38028             Bruno Haible  <bruno@clisp.org>
38029
38030         getlogin, getlogin_r: Avoid test failure.
38031         * tests/test-getlogin.c: Include <stdio.h>.
38032         (main): Skip the test when the function fails because stdin is not a
38033         tty.
38034         * tests/test-getlogin_r.c: Include <stdio.h>.
38035         (main): Skip the test when the function fails because stdin is not a
38036         tty.
38037
38038 2010-01-11  Eric Blake  <ebb9@byu.net>
38039
38040         tests: avoid more large file warnings
38041         * tests/test-fflush.c: Avoid warning about ftell use.
38042         * tests/test-fseek.c: Avoid warning about fseek use.
38043
38044 2010-01-10  Bruno Haible  <bruno@clisp.org>
38045
38046         nproc: Work better on Linux when /proc and /sys are not mounted.
38047         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
38048         as lower bound when, on glibc/Linux systems,
38049         sysconf (_SC_NPROCESSORS_CONF) returns 1.
38050         Suggested by Pádraig Brady <P@draigbrady.com>.
38051         Reported by Dmitry V. Levin <ldv@altlinux.org>.
38052
38053         nproc: Refactor.
38054         * lib/nproc.c (num_processors_via_affinity_mask): New function,
38055         extracted from num_processors.
38056         (num_processors): Call it.
38057
38058 2010-01-11  Jim Meyering  <meyering@redhat.com>
38059
38060         utimecmp: avoid new warning from upcoming gcc-4.5.0
38061         * lib/utimecmp.c (BILLION): Define using #define rather than an
38062         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
38063
38064 2010-01-11  Eric Blake  <ebb9@byu.net>
38065
38066         math: add portability warnings for classification macros
38067         * modules/math (Depends-on): Add warn-on-use.
38068         (Makefile.am): Provide new substitutions.
38069         * m4/math_h.m4 (gl_MATH_H): Require inline.
38070         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
38071         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
38072         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
38073         implement warnings.
38074
38075         unistd: warn on use of environ without module
38076         * modules/unistd (Depends-on): Add warn-on-use.
38077         (Makefile.am): Provide new substitutions.
38078         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
38079         * lib/unistd.in.h (environ): Wrap with a warning helper function.
38080
38081         stdio: warn on suspicious uses
38082         * modules/stdio (Depends-on): Add warn-on-use.
38083         (Makefile.am): Provide new substitutions.
38084         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
38085         fseeko.
38086         * lib/stdio.in.h (gets): Always warn on use.
38087         (fseek, ftell): Adjust when warnings are issued, and honor
38088         _GL_NO_LARGE_FILES as a way to silence the warning.
38089         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
38090         any warning about large file offsets.
38091         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
38092         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
38093         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
38094         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
38095         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
38096         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
38097         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
38098         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
38099
38100         warn-on-use: new module
38101         * modules/warn-on-use: New file.
38102         * build-aux/warn-on-use.h: Likewise.
38103         * m4/warn-on-use.m4: Likewise.
38104         * MODULES.html.sh (Support for building): Mention it.
38105
38106 2010-01-10  Bruno Haible  <bruno@clisp.org>
38107
38108         Tests for module 'unistr/u32-strdup'.
38109         * modules/unistr/u32-strdup-tests: New file.
38110         * tests/unistr/test-u32-strdup.c: New file.
38111
38112         Tests for module 'unistr/u16-strdup'.
38113         * modules/unistr/u16-strdup-tests: New file.
38114         * tests/unistr/test-u16-strdup.c: New file.
38115
38116         Tests for module 'unistr/u8-strdup'.
38117         * modules/unistr/u8-strdup-tests: New file.
38118         * tests/unistr/test-u8-strdup.c: New file.
38119         * tests/unistr/test-strdup.h: New file.
38120
38121         Tests for module 'unistr/u32-strncmp'.
38122         * modules/unistr/u32-strncmp-tests: New file.
38123         * tests/unistr/test-u32-strncmp.c: New file.
38124
38125         Tests for module 'unistr/u16-strncmp'.
38126         * modules/unistr/u16-strncmp-tests: New file.
38127         * tests/unistr/test-u16-strncmp.c: New file.
38128
38129         Tests for module 'unistr/u8-strncmp'.
38130         * modules/unistr/u8-strncmp-tests: New file.
38131         * tests/unistr/test-u8-strncmp.c: New file.
38132         * tests/unistr/test-strncmp.h: New file.
38133
38134         Tests for module 'unistr/u32-strcoll'.
38135         * modules/unistr/u32-strcoll-tests: New file.
38136         * tests/unistr/test-u32-strcoll.c: New file.
38137
38138         Tests for module 'unistr/u16-strcoll'.
38139         * modules/unistr/u16-strcoll-tests: New file.
38140         * tests/unistr/test-u16-strcoll.c: New file.
38141
38142         Tests for module 'unistr/u8-strcoll'.
38143         * modules/unistr/u8-strcoll-tests: New file.
38144         * tests/unistr/test-u8-strcoll.c: New file.
38145
38146         Tests for module 'unistr/u32-strcmp'.
38147         * modules/unistr/u32-strcmp-tests: New file.
38148         * tests/unistr/test-u32-strcmp.c: New file.
38149         * tests/unistr/test-u32-strcmp.h: New file.
38150
38151         Tests for module 'unistr/u16-strcmp'.
38152         * modules/unistr/u16-strcmp-tests: New file.
38153         * tests/unistr/test-u16-strcmp.c: New file.
38154         * tests/unistr/test-u16-strcmp.h: New file.
38155
38156         Tests for module 'unistr/u8-strcmp'.
38157         * modules/unistr/u8-strcmp-tests: New file.
38158         * tests/unistr/test-u8-strcmp.c: New file.
38159         * tests/unistr/test-u8-strcmp.h: New file.
38160         * tests/unistr/test-strcmp.h: New file.
38161
38162         Tests for module 'unistr/u32-strncat'.
38163         * modules/unistr/u32-strncat-tests: New file.
38164         * tests/unistr/test-u32-strncat.c: New file.
38165
38166         Tests for module 'unistr/u16-strncat'.
38167         * modules/unistr/u16-strncat-tests: New file.
38168         * tests/unistr/test-u16-strncat.c: New file.
38169
38170         Tests for module 'unistr/u8-strncat'.
38171         * modules/unistr/u8-strncat-tests: New file.
38172         * tests/unistr/test-u8-strncat.c: New file.
38173         * tests/unistr/test-strncat.h: New file.
38174
38175         Tests for module 'unistr/u32-strcat'.
38176         * modules/unistr/u32-strcat-tests: New file.
38177         * tests/unistr/test-u32-strcat.c: New file.
38178
38179         Tests for module 'unistr/u16-strcat'.
38180         * modules/unistr/u16-strcat-tests: New file.
38181         * tests/unistr/test-u16-strcat.c: New file.
38182
38183         Tests for module 'unistr/u8-strcat'.
38184         * modules/unistr/u8-strcat-tests: New file.
38185         * tests/unistr/test-u8-strcat.c: New file.
38186         * tests/unistr/test-strcat.h: New file.
38187
38188         Tests for module 'unistr/u32-stpncpy'.
38189         * modules/unistr/u32-stpncpy-tests: New file.
38190         * tests/unistr/test-u32-stpncpy.c: New file.
38191
38192         Tests for module 'unistr/u16-stpncpy'.
38193         * modules/unistr/u16-stpncpy-tests: New file.
38194         * tests/unistr/test-u16-stpncpy.c: New file.
38195
38196         Tests for module 'unistr/u8-stpncpy'.
38197         * modules/unistr/u8-stpncpy-tests: New file.
38198         * tests/unistr/test-u8-stpncpy.c: New file.
38199         * tests/unistr/test-stpncpy.h: New file.
38200
38201         Tests for module 'unistr/u32-strncpy'.
38202         * modules/unistr/u32-strncpy-tests: New file.
38203         * tests/unistr/test-u32-strncpy.c: New file.
38204
38205         Tests for module 'unistr/u16-strncpy'.
38206         * modules/unistr/u16-strncpy-tests: New file.
38207         * tests/unistr/test-u16-strncpy.c: New file.
38208
38209         Tests for module 'unistr/u8-strncpy'.
38210         * modules/unistr/u8-strncpy-tests: New file.
38211         * tests/unistr/test-u8-strncpy.c: New file.
38212         * tests/unistr/test-strncpy.h: New file.
38213
38214         Tests for module 'unistr/u32-stpcpy'.
38215         * modules/unistr/u32-stpcpy-tests: New file.
38216         * tests/unistr/test-u32-stpcpy.c: New file.
38217
38218         Tests for module 'unistr/u16-stpcpy'.
38219         * modules/unistr/u16-stpcpy-tests: New file.
38220         * tests/unistr/test-u16-stpcpy.c: New file.
38221
38222         Tests for module 'unistr/u8-stpcpy'.
38223         * modules/unistr/u8-stpcpy-tests: New file.
38224         * tests/unistr/test-u8-stpcpy.c: New file.
38225         * tests/unistr/test-stpcpy.h: New file.
38226
38227         Tests for module 'unistr/u32-strcpy'.
38228         * modules/unistr/u32-strcpy-tests: New file.
38229         * tests/unistr/test-u32-strcpy.c: New file.
38230
38231         Tests for module 'unistr/u16-strcpy'.
38232         * modules/unistr/u16-strcpy-tests: New file.
38233         * tests/unistr/test-u16-strcpy.c: New file.
38234
38235         Tests for module 'unistr/u8-strcpy'.
38236         * modules/unistr/u8-strcpy-tests: New file.
38237         * tests/unistr/test-u8-strcpy.c: New file.
38238         * tests/unistr/test-strcpy.h: New file.
38239
38240         Tests for module 'unistr/u32-strnlen'.
38241         * modules/unistr/u32-strnlen-tests: New file.
38242         * tests/unistr/test-u32-strnlen.c: New file.
38243
38244         Tests for module 'unistr/u16-strnlen'.
38245         * modules/unistr/u16-strnlen-tests: New file.
38246         * tests/unistr/test-u16-strnlen.c: New file.
38247
38248         Tests for module 'unistr/u8-strnlen'.
38249         * modules/unistr/u8-strnlen-tests: New file.
38250         * tests/unistr/test-u8-strnlen.c: New file.
38251         * tests/unistr/test-strnlen.h: New file.
38252
38253         Tests for module 'unistr/u32-strlen'.
38254         * modules/unistr/u32-strlen-tests: New file.
38255         * tests/unistr/test-u32-strlen.c: New file.
38256
38257         Tests for module 'unistr/u16-strlen'.
38258         * modules/unistr/u16-strlen-tests: New file.
38259         * tests/unistr/test-u16-strlen.c: New file.
38260
38261         Tests for module 'unistr/u8-strlen'.
38262         * modules/unistr/u8-strlen-tests: New file.
38263         * tests/unistr/test-u8-strlen.c: New file.
38264
38265         Tests for module 'unistr/u32-prev'.
38266         * modules/unistr/u32-prev-tests: New file.
38267         * tests/unistr/test-u32-prev.c: New file.
38268
38269         Tests for module 'unistr/u16-prev'.
38270         * modules/unistr/u16-prev-tests: New file.
38271         * tests/unistr/test-u16-prev.c: New file.
38272
38273         Tests for module 'unistr/u8-prev'.
38274         * modules/unistr/u8-prev-tests: New file.
38275         * tests/unistr/test-u8-prev.c: New file.
38276
38277         Tests for module 'unistr/u32-next'.
38278         * modules/unistr/u32-next-tests: New file.
38279         * tests/unistr/test-u32-next.c: New file.
38280
38281         Tests for module 'unistr/u16-next'.
38282         * modules/unistr/u16-next-tests: New file.
38283         * tests/unistr/test-u16-next.c: New file.
38284
38285         Tests for module 'unistr/u8-next'.
38286         * modules/unistr/u8-next-tests: New file.
38287         * tests/unistr/test-u8-next.c: New file.
38288
38289         Tests for module 'unistr/u32-strmbtouc'.
38290         * modules/unistr/u32-strmbtouc-tests: New file.
38291         * tests/unistr/test-u32-strmbtouc.c: New file.
38292
38293         Tests for module 'unistr/u16-strmbtouc'.
38294         * modules/unistr/u16-strmbtouc-tests: New file.
38295         * tests/unistr/test-u16-strmbtouc.c: New file.
38296
38297         Tests for module 'unistr/u8-strmbtouc'.
38298         * modules/unistr/u8-strmbtouc-tests: New file.
38299         * tests/unistr/test-u8-strmbtouc.c: New file.
38300
38301         Tests for module 'unistr/u32-strmblen'.
38302         * modules/unistr/u32-strmblen-tests: New file.
38303         * tests/unistr/test-u32-strmblen.c: New file.
38304
38305         Tests for module 'unistr/u16-strmblen'.
38306         * modules/unistr/u16-strmblen-tests: New file.
38307         * tests/unistr/test-u16-strmblen.c: New file.
38308
38309         Tests for module 'unistr/u8-strmblen'.
38310         * modules/unistr/u8-strmblen-tests: New file.
38311         * tests/unistr/test-u8-strmblen.c: New file.
38312
38313         Tests for module 'unistr/u32-cpy-alloc'.
38314         * modules/unistr/u32-cpy-alloc-tests: New file.
38315         * tests/unistr/test-u32-cpy-alloc.c: New file.
38316
38317         Tests for module 'unistr/u16-cpy-alloc'.
38318         * modules/unistr/u16-cpy-alloc-tests: New file.
38319         * tests/unistr/test-u16-cpy-alloc.c: New file.
38320
38321         Tests for module 'unistr/u8-cpy-alloc'.
38322         * modules/unistr/u8-cpy-alloc-tests: New file.
38323         * tests/unistr/test-u8-cpy-alloc.c: New file.
38324         * tests/unistr/test-cpy-alloc.h: New file.
38325
38326         Tests for module 'unistr/u32-mbsnlen'.
38327         * modules/unistr/u32-mbsnlen-tests: New file.
38328         * tests/unistr/test-u32-mbsnlen.c: New file.
38329
38330         Tests for module 'unistr/u16-mbsnlen'.
38331         * modules/unistr/u16-mbsnlen-tests: New file.
38332         * tests/unistr/test-u16-mbsnlen.c: New file.
38333
38334         Tests for module 'unistr/u8-mbsnlen'.
38335         * modules/unistr/u8-mbsnlen-tests: New file.
38336         * tests/unistr/test-u8-mbsnlen.c: New file.
38337
38338         Tests for module 'unistr/u32-chr'.
38339         * modules/unistr/u32-chr-tests: New file.
38340         * tests/unistr/test-u32-chr.c: New file.
38341
38342         Tests for module 'unistr/u16-chr'.
38343         * modules/unistr/u16-chr-tests: New file.
38344         * tests/unistr/test-u16-chr.c: New file.
38345
38346         Tests for module 'unistr/u8-chr'.
38347         * modules/unistr/u8-chr-tests: New file.
38348         * tests/unistr/test-u8-chr.c: New file.
38349         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
38350
38351         Tests for module 'unistr/u32-cmp2'.
38352         * modules/unistr/u32-cmp2-tests: New file.
38353         * tests/unistr/test-u32-cmp2.c: New file.
38354
38355         Tests for module 'unistr/u16-cmp2'.
38356         * modules/unistr/u16-cmp2-tests: New file.
38357         * tests/unistr/test-u16-cmp2.c: New file.
38358
38359         Tests for module 'unistr/u8-cmp2'.
38360         * modules/unistr/u8-cmp2-tests: New file.
38361         * tests/unistr/test-u8-cmp2.c: New file.
38362         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
38363
38364         Tests for module 'unistr/u32-cmp'.
38365         * modules/unistr/u32-cmp-tests: New file.
38366         * tests/unistr/test-u32-cmp.c: New file.
38367
38368         Tests for module 'unistr/u16-cmp'.
38369         * modules/unistr/u16-cmp-tests: New file.
38370         * tests/unistr/test-u16-cmp.c: New file.
38371
38372         Tests for module 'unistr/u8-cmp'.
38373         * modules/unistr/u8-cmp-tests: New file.
38374         * tests/unistr/test-u8-cmp.c: New file.
38375         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
38376
38377         Tests for module 'unistr/u32-set'.
38378         * modules/unistr/u32-set-tests: New file.
38379         * tests/unistr/test-u32-set.c: New file.
38380
38381         Tests for module 'unistr/u16-set'.
38382         * modules/unistr/u16-set-tests: New file.
38383         * tests/unistr/test-u16-set.c: New file.
38384
38385         Tests for module 'unistr/u8-set'.
38386         * modules/unistr/u8-set-tests: New file.
38387         * tests/unistr/test-u8-set.c: New file.
38388         * tests/unistr/test-set.h: New file.
38389
38390         Tests for module 'unistr/u32-move'.
38391         * modules/unistr/u32-move-tests: New file.
38392         * tests/unistr/test-u32-move.c: New file.
38393
38394         Tests for module 'unistr/u16-move'.
38395         * modules/unistr/u16-move-tests: New file.
38396         * tests/unistr/test-u16-move.c: New file.
38397
38398         Tests for module 'unistr/u8-move'.
38399         * modules/unistr/u8-move-tests: New file.
38400         * tests/unistr/test-u8-move.c: New file.
38401         * tests/unistr/test-move.h: New file.
38402
38403         Tests for module 'unistr/u32-cpy'.
38404         * modules/unistr/u32-cpy-tests: New file.
38405         * tests/unistr/test-u32-cpy.c: New file.
38406
38407         Tests for module 'unistr/u16-cpy'.
38408         * modules/unistr/u16-cpy-tests: New file.
38409         * tests/unistr/test-u16-cpy.c: New file.
38410
38411         Tests for module 'unistr/u8-cpy'.
38412         * modules/unistr/u8-cpy-tests: New file.
38413         * tests/unistr/test-u8-cpy.c: New file.
38414         * tests/unistr/test-cpy.h: New file.
38415
38416 2010-01-09  Bruno Haible  <bruno@clisp.org>
38417
38418         Tests for module 'unistr/u32-uctomb'.
38419         * modules/unistr/u32-uctomb-tests: New file.
38420         * tests/unistr/test-u32-uctomb.c: New file.
38421
38422         Tests for module 'unistr/u16-uctomb'.
38423         * modules/unistr/u16-uctomb-tests: New file.
38424         * tests/unistr/test-u16-uctomb.c: New file.
38425
38426         Tests for module 'unistr/u8-uctomb'.
38427         * modules/unistr/u8-uctomb-tests: New file.
38428         * tests/unistr/test-u8-uctomb.c: New file.
38429
38430         Tests for module 'unistr/u32-mbtoucr'.
38431         * modules/unistr/u32-mbtoucr-tests: New file.
38432         * tests/unistr/test-u32-mbtoucr.c: New file.
38433
38434         Tests for module 'unistr/u16-mbtoucr'.
38435         * modules/unistr/u16-mbtoucr-tests: New file.
38436         * tests/unistr/test-u16-mbtoucr.c: New file.
38437
38438         Tests for module 'unistr/u8-mbtoucr'.
38439         * modules/unistr/u8-mbtoucr-tests: New file.
38440         * tests/unistr/test-u8-mbtoucr.c: New file.
38441
38442         Tests for module 'unistr/u32-mbtouc'.
38443         * modules/unistr/u32-mbtouc-tests: New file.
38444         * tests/unistr/test-u32-mbtouc.c: New file.
38445
38446         Tests for module 'unistr/u16-mbtouc'.
38447         * modules/unistr/u16-mbtouc-tests: New file.
38448         * tests/unistr/test-u16-mbtouc.c: New file.
38449
38450         Tests for module 'unistr/u8-mbtouc'.
38451         * modules/unistr/u8-mbtouc-tests: New file.
38452         * tests/unistr/test-u8-mbtouc.c: New file.
38453
38454         Tests for module 'unistr/u32-mbtouc-unsafe'.
38455         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
38456         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
38457         * tests/unistr/test-u32-mbtouc.h: New file.
38458
38459         Tests for module 'unistr/u16-mbtouc-unsafe'.
38460         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
38461         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
38462         * tests/unistr/test-u16-mbtouc.h: New file.
38463
38464         Tests for module 'unistr/u8-mbtouc-unsafe'.
38465         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
38466         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
38467         * tests/unistr/test-u8-mbtouc.h: New file.
38468
38469         Tests for module 'unistr/u32-mblen'.
38470         * modules/unistr/u32-mblen-tests: New file.
38471         * tests/unistr/test-u32-mblen.c: New file.
38472
38473         Tests for module 'unistr/u16-mblen'.
38474         * modules/unistr/u16-mblen-tests: New file.
38475         * tests/unistr/test-u16-mblen.c: New file.
38476
38477         Tests for module 'unistr/u8-mblen'.
38478         * modules/unistr/u8-mblen-tests: New file.
38479         * tests/unistr/test-u8-mblen.c: New file.
38480
38481         Tests for module 'unistr/u32-to-u16'.
38482         * modules/unistr/u32-to-u16-tests: New file.
38483         * tests/unistr/test-u32-to-u16.c: New file.
38484
38485         Tests for module 'unistr/u32-to-u8'.
38486         * modules/unistr/u32-to-u8-tests: New file.
38487         * tests/unistr/test-u32-to-u8.c: New file.
38488
38489         Tests for module 'unistr/u16-to-u32'.
38490         * modules/unistr/u16-to-u32-tests: New file.
38491         * tests/unistr/test-u16-to-u32.c: New file.
38492
38493         Tests for module 'unistr/u16-to-u8'.
38494         * modules/unistr/u16-to-u8-tests: New file.
38495         * tests/unistr/test-u16-to-u8.c: New file.
38496
38497         Tests for module 'unistr/u8-to-u32'.
38498         * modules/unistr/u8-to-u32-tests: New file.
38499         * tests/unistr/test-u8-to-u32.c: New file.
38500
38501         Tests for module 'unistr/u8-to-u16'.
38502         * modules/unistr/u8-to-u16-tests: New file.
38503         * tests/unistr/test-u8-to-u16.c: New file.
38504
38505         Tests for module 'unistr/u32-check'.
38506         * modules/unistr/u32-check-tests: New file.
38507         * tests/unistr/test-u32-check.c: New file.
38508
38509         Tests for module 'unistr/u16-check'.
38510         * modules/unistr/u16-check-tests: New file.
38511         * tests/unistr/test-u16-check.c: New file.
38512
38513         Tests for module 'unistr/u8-check'.
38514         * modules/unistr/u8-check-tests: New file.
38515         * tests/unistr/test-u8-check.c: New file.
38516
38517         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
38518         (category_equals): New function.
38519         (main): Add more tests.
38520         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
38521
38522         * tests/unictype/test-bidi_byname.c (main): Add more tests.
38523
38524 2010-01-10  Bruno Haible  <bruno@clisp.org>
38525
38526         unistr/u*-strcoll: Try harder to distinguish different strings.
38527         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
38528         compare s1 and s2 to see if they are different.
38529
38530 2010-01-10  Bruno Haible  <bruno@clisp.org>
38531
38532         unistr/u*-stpncpy: Fix the return value.
38533         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
38534         description of the return value consistent with stpncpy in glibc.
38535         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
38536         written non-NUL unit.
38537
38538 2010-01-10  Bruno Haible  <bruno@clisp.org>
38539
38540         unistr/u*-next: Add missing dependencies.
38541         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
38542         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
38543         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
38544
38545 2010-01-10  Bruno Haible  <bruno@clisp.org>
38546
38547         unistr/u8-mbsnlen: Fix return value for incomplete character.
38548         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
38549         u8_mblen.
38550         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
38551         Remove unistr/u8-mblen.
38552         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
38553         u16_mblen.
38554         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
38555         Remove unistr/u16-mblen.
38556
38557 2010-01-10  Bruno Haible  <bruno@clisp.org>
38558
38559         wchar: Fix compilation error when <wchar.h> is used from coreutils.
38560         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
38561         Reported by Brian Gough <bjg@gnu.org> and
38562         Chris Clayton <chris2553@googlemail.com> via
38563         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
38564
38565 2010-01-09  Bruno Haible  <bruno@clisp.org>
38566
38567         unistr/u16-to-u32: Reject invalid input.
38568         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
38569         u16_mbtouc.
38570         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
38571         Remove unistr/u16-mbtouc.
38572
38573         unistr/u16-to-u8: Reject invalid input.
38574         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
38575         u16_mbtouc.
38576         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
38577         Remove unistr/u16-mbtouc.
38578
38579         unistr/u8-to-u32: Reject invalid input.
38580         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
38581         u8_mbtouc.
38582         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
38583         Remove unistr/u8-mbtouc.
38584
38585         unistr/u8-to-u16: Reject invalid input.
38586         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
38587         u8_mbtouc.
38588         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
38589         Remove unistr/u8-mbtouc.
38590
38591 2010-01-09  Bruno Haible  <bruno@clisp.org>
38592
38593         Tests for module 'getlogin'.
38594         * modules/getlogin-tests: New file.
38595         * tests/test-getlogin.c: New file.
38596
38597         New module 'getlogin'.
38598         * lib/unistd.in.h (getlogin): New declaration.
38599         * lib/getlogin.c: New file.
38600         * m4/getlogin.m4: New file.
38601         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
38602         HAVE_GETLOGIN.
38603         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
38604         HAVE_GETLOGIN.
38605         * modules/getlogin: New file.
38606         * doc/posix-functions/getlogin.texi: Mention the new module.
38607         Reported by John W. Eaton <jwe@gnu.org>.
38608
38609 2010-01-09  Bruno Haible  <bruno@clisp.org>
38610
38611         getlogin_r: Support for native Windows.
38612         * lib/getlogin_r.c: Include <windows.h>
38613         (getlogin_r): Implement for native Windows.
38614         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
38615         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
38616         via John W. Eaton <jwe@gnu.org>.
38617
38618 2010-01-09  Bruno Haible  <bruno@clisp.org>
38619
38620         getlogin_r: Small fixes.
38621         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
38622         succeeds.
38623         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
38624         before testing whether getlogin_r is declared. No need to set
38625         HAVE_DECL_GETLOGIN_R to 1.
38626         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
38627
38628 2010-01-09  Bruno Haible  <bruno@clisp.org>
38629
38630         * lib/unistd.in.h (getlogin_r): Add comment.
38631
38632 2010-01-09  Bruno Haible  <bruno@clisp.org>
38633
38634         Tests for module 'getlogin_r'.
38635         * modules/getlogin_r-tests: New file.
38636         * tests/test-getlogin_r.c: New file.
38637
38638 2010-01-09  Jim Meyering  <meyering@redhat.com>
38639
38640         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
38641         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
38642         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
38643
38644 2010-01-08  Simon Josefsson  <simon@josefsson.org>
38645
38646         * lib/dup2.c (rpl_dup2): Improve comment.
38647
38648 2010-01-08  Eric Blake  <ebb9@byu.net>
38649
38650         maint.mk: allow packages to add makefile @@ exceptions
38651         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
38652         (sc_makefile_check): Rename...
38653         (sc_makefile_at_at_check): ...to this, and use hook.
38654
38655         dup2: work around mingw bug
38656         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
38657         Reported by Simon Josefsson.
38658
38659 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
38660
38661         glob: Fix C++ compilation.
38662         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
38663         C++.
38664
38665 2010-01-07  Bruno Haible  <bruno@clisp.org>
38666
38667         Fix indentation of wctype.in.h, broken since 2007-01-06.
38668         * lib/wctype.in.h: Fix indentation of preprocessor directives.
38669
38670 2010-01-07  Bruno Haible  <bruno@clisp.org>
38671
38672         mbslen: Avoid collision with system function.
38673         * lib/string.in.h [MirBSD]: Include <wchar.h>.
38674         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
38675         * m4/mbslen.m4: New file.
38676         * modules/mbslen (Files): Add it.
38677         (configure.ac): Invoke gl_MBSLEN.
38678         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
38679         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
38680         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
38681         via Ian Beckwith <ianb@erislabs.net>.
38682
38683 2010-01-07  Bruno Haible  <bruno@clisp.org>
38684
38685         dirent: Document the last fix.
38686         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
38687
38688 2010-01-07  Bruno Haible  <bruno@clisp.org>
38689
38690         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
38691         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
38692         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
38693         va_list are defined.
38694         * doc/posix-headers/stdio.texi: Document the bug of missing types.
38695         Reported by Eric Blake.
38696
38697 2010-01-07  Bruno Haible  <bruno@clisp.org>
38698
38699         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
38700         * modules/xlist (Depends-on): Add 'list',
38701         * modules/xoset (Depends-on): Add 'oset'.
38702         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
38703
38704 2010-01-07  Bruno Haible  <bruno@clisp.org>
38705
38706         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
38707         * doc/posix-functions/strncasecmp.texi: Likewise.
38708
38709 2010-01-07  Bruno Haible  <bruno@clisp.org>
38710
38711         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
38712
38713 2010-01-07  John W. Eaton  <jwe@octave.org>
38714
38715         wctype: allow C++ use
38716         * lib/wctype.in.h: Add extern "C" block for C++.
38717
38718 2010-01-06  Eric Blake  <ebb9@byu.net>
38719
38720         maint.mk: detect incorrect GFDL usage
38721         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
38722
38723 2010-01-06  Jim Meyering  <meyering@redhat.com>
38724         and Eric Blake  <ebb9@byu.net>
38725
38726         maint.mk: ignore multi-line copyright in NEWS
38727         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
38728
38729 2010-01-06  Eric Blake  <ebb9@byu.net>
38730
38731         select: add missing dependency
38732         * modules/select-tests (Depends-on): Move sockets dependency...
38733         * modules/select (Depends-on): ...here.
38734         Reported by Ian Beckwith.
38735
38736         doc: regenerate INSTALL
38737         * doc/INSTALL: Reflect recent autoconf update.
38738         * doc/INSTALL.ISO: Likewise.
38739         * doc/INSTALL.UTF-8: Likewise.
38740
38741         pread: fix compilation on glibc
38742         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
38743         Reported by Ralf Wildenhues.
38744
38745         dirent: fix test failure
38746         * lib/dirent.in.h (includes): Guarantee ino_t.
38747         Reported by Ralf Wildenhues.
38748
38749 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
38750
38751         linkat, renameat: avoid bad free
38752         * lib/at-func2.c (at_func2): Fix typo.
38753         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
38754
38755 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38756
38757         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
38758         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
38759         to avoid failure of symlink test later.
38760
38761 2010-01-06  Eric Blake  <ebb9@byu.net>
38762
38763         stdio, unistd: guarantee ssize_t
38764         * lib/unistd.in.h (includes): Ensure that types required by POSIX
38765         2008 are exposed when needed.
38766         * lib/stdio.in.h (includes): Likewise.
38767         Reported by Ralf Wildenhues.
38768
38769 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
38770
38771         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
38772         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
38773         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
38774
38775 2010-01-06  Jim Meyering  <meyering@redhat.com>
38776
38777         readtokens: this module *does* require xalloc.h
38778         It uses only functions that were omitted by the old syntax-check rule.
38779         * lib/readtokens.c: Include "xalloc.h" once again.
38780         * modules/readtokens (Depends-on): Add xalloc.
38781         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
38782
38783 2010-01-05  Eric Blake  <ebb9@byu.net>
38784
38785         maint: support 'make announcement' from a VPATH build
38786         * top/maint.mk (announcement): Look for correct NEWS file.
38787
38788 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
38789
38790         utimens (fdutimens): ignore a negative FD, per contract
38791         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
38792         when we have a valid file descriptor.  Otherwise, using a brand
38793         new glibc (with just-patched futimens that now fails with EBADF)
38794         would cause this function to fail with ENOSYS.
38795         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
38796         See also http://bugzilla.redhat.com/552320.
38797
38798 2010-01-05  Eric Blake  <ebb9@byu.net>
38799
38800         strcase: document what it provides
38801         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
38802         gnulib module.
38803         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
38804         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
38805
38806 2010-01-05  Jim Meyering  <meyering@redhat.com>
38807
38808         maint: remove useless inclusions of "xalloc.h"
38809         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
38810         * lib/readtokens.c: Likewise.
38811         * lib/same.c: Likewise.
38812         * modules/getloadavg (Depends-on): Remove xalloc.
38813         * modules/readtokens: Likewise.
38814         * modules/same: Likewise.
38815
38816         maint.mk: include 4 more function names in alloca.h-checking regexp
38817         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
38818         regexp.  Before, we would give a false-positive (saying alloca.h
38819         is included unnecessarily) when the only uses involved omitted symbols.
38820
38821         xalloc.h: use consistent formatting
38822         * lib/xalloc.h: Move declarations to start in the first column.
38823
38824 2010-01-05  Eric Blake  <ebb9@byu.net>
38825
38826         mkdir: avoid xalloc
38827         * lib/mkdir.c (includes): Drop unused header.
38828         Reported by John W. Eaton.
38829
38830 2010-01-04  Jim Meyering  <meyering@redhat.com>
38831
38832         nl_langinfo: avoid configure-time syntax error
38833         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
38834         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
38835         the empty string.  Don't let that provoke a shell syntax error.
38836
38837         regcomp, regexec, fnmatch: avoid array bounds read error
38838         * lib/regcomp.c (build_equiv_class): From glibc:
38839         Use only the low 24 bits of a findidx return value as an index
38840         into the weights array.  Patch by Ulrich Drepper:
38841         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
38842         * lib/regexec.c (check_node_accept_bytes): Likewise.
38843         * lib/fnmatch_loop.c (FCT): Likewise.
38844
38845         regcomp: skip collseq lookup when there are no rules
38846         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
38847         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
38848
38849         regcomp: recognize ill-formed { } expressions
38850         * lib/regcomp.c (parse_dup_op): From glibc:
38851         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
38852
38853         regcomp: fix typo in comment
38854         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
38855         s/satisfy/satisfies/.
38856
38857         regcomp: sync from glibc: remove dead store
38858         * lib/regcomp.c (duplicate_node_closure): Remove useless
38859         search_duplicated_node call and dead store.
38860
38861         regcomp: sync from glibc; always use nl_langinfo
38862         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
38863         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
38864         * modules/regex (Depends-on): Add nl_langinfo.
38865
38866 2010-01-04  Eric Blake  <ebb9@byu.net>
38867
38868         fdopendir: fix configure test
38869         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
38870
38871 2010-01-01  Bruno Haible  <bruno@clisp.org>
38872
38873         wchar: Remove unused configure check.
38874         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
38875
38876 2010-01-01  Eric Blake  <ebb9@byu.net>
38877
38878         headers: make check of system header explicit
38879         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
38880         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
38881         ourselves.
38882         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
38883         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
38884         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
38885         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
38886         internals.
38887         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
38888         missing.
38889         Suggested by Bruno Haible.
38890
38891 2010-01-01  Jim Meyering  <meyering@redhat.com>
38892
38893         ChangeLog: tweak to eliminate unnecessary copyright line
38894         * ChangeLog: Remove a copyright line that was mistakenly updated
38895         by today's update-copyright run.  Reported by Eric Blake.
38896
38897         test-update-copyright: don't let envvar setting cause test failure
38898         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
38899
38900 2010-01-01  Bruno Haible  <bruno@clisp.org>
38901
38902         localename: Avoid gcc warning.
38903         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
38904         function if it is not used.
38905
38906 2010-01-01  Jim Meyering  <meyering@redhat.com>
38907
38908         update nearly all FSF copyright year lists to include 2010
38909         Use the same procedure as for 2009, outlined in
38910         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
38911
38912         version-etc: set COPYRIGHT_YEAR to 2010
38913         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
38914
38915 2009-12-31  Eric Blake  <ebb9@byu.net>
38916
38917         doc: correct availability of cygwin 1.5.x getopt
38918         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
38919         variables.
38920         * doc/posix-functions/opterr.texi (opterr): Likewise.
38921         * doc/posix-functions/optind.texi (optind): Likewise.
38922         * doc/posix-functions/optopt.texi (optopt): Likewise.
38923         * doc/posix-functions/tzname.texi (tzname): Likewise.
38924
38925         openat: update maintainer
38926         * modules/openat (Maintainer): Add myself.
38927
38928         utimens: avoid shadowing warning
38929         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
38930         buffers into one, to avoid shadowing, as well as avoiding a
38931         redundant stat.
38932         Reported by Jim Meyering.
38933
38934         test-dup2: avoid compiler warning
38935         * tests/test-dup2.c (is_inheritable): Only define if used.
38936
38937 2010-01-01  Bruno Haible  <bruno@clisp.org>
38938
38939         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
38940         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
38941         defined, use wctomb instead of wcrtomb.
38942
38943 2010-01-01  Bruno Haible  <bruno@clisp.org>
38944
38945         iconv: Reject native Solaris iconv.
38946         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
38947         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
38948
38949 2009-12-31  Bruno Haible  <bruno@clisp.org>
38950
38951         * tests/test-signal.c (main): Remove test of 'SIG'.
38952
38953 2009-12-31  Bruno Haible  <bruno@clisp.org>
38954
38955         spawn: Fix incomplete fix.
38956         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
38957         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
38958         warnings for GNULIB_POSIXCHECK again.
38959         Reported by Eric Blake.
38960
38961 2009-12-31  Bruno Haible  <bruno@clisp.org>
38962
38963         Avoid namespace pollution on glibc systems.
38964         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
38965         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
38966         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
38967         glibc systems.
38968
38969 2009-12-31  Bruno Haible  <bruno@clisp.org>
38970
38971         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
38972         (gl_REPLACE_WCHAR_H): Turn into a no-op.
38973         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
38974         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
38975         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
38976         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
38977         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
38978
38979 2009-12-31  Bruno Haible  <bruno@clisp.org>
38980
38981         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
38982         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
38983         afterwards.
38984
38985 2009-12-31  Bruno Haible  <bruno@clisp.org>
38986
38987         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
38988         SYS_UTSNAME_H.
38989
38990 2009-12-31  Bruno Haible  <bruno@clisp.org>
38991
38992         spawn: Fix misapplied patch.
38993         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
38994         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
38995         warnings for GNULIB_POSIXCHECK.
38996
38997 2009-12-31  Bruno Haible  <bruno@clisp.org>
38998
38999         times: Update after sys_times changed.
39000         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
39001         * modules/times (Files): Add it.
39002         (configure.ac): Invoke gl_FUNC_TIMES.
39003
39004 2009-12-31  Bruno Haible  <bruno@clisp.org>
39005
39006         Use AC_C_INLINE where necessary.
39007         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
39008         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
39009         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
39010         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
39011         * m4/mbfile.m4 (gl_MBFILE): Likewise.
39012         * m4/mbiter.m4 (gl_MBITER): Likewise.
39013         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
39014         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
39015         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
39016         * modules/u64 (configure.ac): Likewise.
39017
39018 2009-12-31  Bruno Haible  <bruno@clisp.org>
39019
39020         Use AC_C_INLINE instead of module 'inline' where possible.
39021         * modules/inline (Description): Clarify purpose.
39022         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
39023         * modules/count-one-bits (Depends-on): Remove inline.
39024         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
39025         * modules/openat (Depends-on): Remove inline.
39026         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
39027         instead of depending on module 'inline'.
39028         * modules/filevercmp (Depends-on, configure.ac): Likewise.
39029         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
39030         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
39031         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
39032         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
39033         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
39034         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
39035         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
39036         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
39037         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
39038         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
39039         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
39040         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
39041         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
39042         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
39043         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
39044         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
39045         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
39046         Likewise.
39047         * modules/unictype/property-ascii-hex-digit (Depends-on,
39048         configure.ac): Likewise.
39049         * modules/unictype/property-bidi-arabic-digit (Depends-on,
39050         configure.ac): Likewise.
39051         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
39052         configure.ac): Likewise.
39053         * modules/unictype/property-bidi-block-separator (Depends-on,
39054         configure.ac): Likewise.
39055         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
39056         configure.ac): Likewise.
39057         * modules/unictype/property-bidi-common-separator (Depends-on,
39058         configure.ac): Likewise.
39059         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
39060         Likewise.
39061         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
39062         configure.ac): Likewise.
39063         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
39064         configure.ac): Likewise.
39065         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
39066         configure.ac): Likewise.
39067         * modules/unictype/property-bidi-european-digit (Depends-on,
39068         configure.ac): Likewise.
39069         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
39070         configure.ac): Likewise.
39071         * modules/unictype/property-bidi-left-to-right (Depends-on,
39072         configure.ac): Likewise.
39073         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
39074         configure.ac): Likewise.
39075         * modules/unictype/property-bidi-other-neutral (Depends-on,
39076         configure.ac): Likewise.
39077         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
39078         Likewise.
39079         * modules/unictype/property-bidi-segment-separator (Depends-on,
39080         configure.ac): Likewise.
39081         * modules/unictype/property-bidi-whitespace (Depends-on,
39082         configure.ac): Likewise.
39083         * modules/unictype/property-combining (Depends-on, configure.ac):
39084         Likewise.
39085         * modules/unictype/property-composite (Depends-on, configure.ac):
39086         Likewise.
39087         * modules/unictype/property-currency-symbol (Depends-on,
39088         configure.ac): Likewise.
39089         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
39090         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
39091         Likewise.
39092         * modules/unictype/property-default-ignorable-code-point (Depends-on,
39093         configure.ac): Likewise.
39094         * modules/unictype/property-deprecated (Depends-on, configure.ac):
39095         Likewise.
39096         * modules/unictype/property-diacritic (Depends-on, configure.ac):
39097         Likewise.
39098         * modules/unictype/property-extender (Depends-on, configure.ac):
39099         Likewise.
39100         * modules/unictype/property-format-control (Depends-on, configure.ac):
39101         Likewise.
39102         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
39103         Likewise.
39104         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
39105         Likewise.
39106         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
39107         Likewise.
39108         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
39109         Likewise.
39110         * modules/unictype/property-hyphen (Depends-on, configure.ac):
39111         Likewise.
39112         * modules/unictype/property-id-continue (Depends-on, configure.ac):
39113         Likewise.
39114         * modules/unictype/property-id-start (Depends-on, configure.ac):
39115         Likewise.
39116         * modules/unictype/property-ideographic (Depends-on, configure.ac):
39117         Likewise.
39118         * modules/unictype/property-ids-binary-operator (Depends-on,
39119         configure.ac): Likewise.
39120         * modules/unictype/property-ids-trinary-operator (Depends-on,
39121         configure.ac): Likewise.
39122         * modules/unictype/property-ignorable-control (Depends-on,
39123         configure.ac): Likewise.
39124         * modules/unictype/property-iso-control (Depends-on, configure.ac):
39125         Likewise.
39126         * modules/unictype/property-join-control (Depends-on, configure.ac):
39127         Likewise.
39128         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
39129         Likewise.
39130         * modules/unictype/property-line-separator (Depends-on, configure.ac):
39131         Likewise.
39132         * modules/unictype/property-logical-order-exception (Depends-on,
39133         configure.ac): Likewise.
39134         * modules/unictype/property-lowercase (Depends-on, configure.ac):
39135         Likewise.
39136         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
39137         * modules/unictype/property-non-break (Depends-on, configure.ac):
39138         Likewise.
39139         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
39140         Likewise.
39141         * modules/unictype/property-numeric (Depends-on, configure.ac):
39142         Likewise.
39143         * modules/unictype/property-other-alphabetic (Depends-on,
39144         configure.ac): Likewise.
39145         * modules/unictype/property-other-default-ignorable-code-point
39146         (Depends-on, configure.ac): Likewise.
39147         * modules/unictype/property-other-grapheme-extend (Depends-on,
39148         configure.ac): Likewise.
39149         * modules/unictype/property-other-id-continue (Depends-on,
39150         configure.ac): Likewise.
39151         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
39152         Likewise.
39153         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
39154         Likewise.
39155         * modules/unictype/property-other-math (Depends-on, configure.ac):
39156         Likewise.
39157         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
39158         Likewise.
39159         * modules/unictype/property-paired-punctuation (Depends-on,
39160         configure.ac): Likewise.
39161         * modules/unictype/property-paragraph-separator (Depends-on,
39162         configure.ac): Likewise.
39163         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
39164         Likewise.
39165         * modules/unictype/property-pattern-white-space (Depends-on,
39166         configure.ac): Likewise.
39167         * modules/unictype/property-private-use (Depends-on, configure.ac):
39168         Likewise.
39169         * modules/unictype/property-punctuation (Depends-on, configure.ac):
39170         Likewise.
39171         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
39172         Likewise.
39173         * modules/unictype/property-radical (Depends-on, configure.ac):
39174         Likewise.
39175         * modules/unictype/property-sentence-terminal (Depends-on,
39176         configure.ac): Likewise.
39177         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
39178         Likewise.
39179         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
39180         * modules/unictype/property-terminal-punctuation (Depends-on,
39181         configure.ac): Likewise.
39182         * modules/unictype/property-titlecase (Depends-on, configure.ac):
39183         Likewise.
39184         * modules/unictype/property-unassigned-code-value (Depends-on,
39185         configure.ac): Likewise.
39186         * modules/unictype/property-unified-ideograph (Depends-on,
39187         configure.ac): Likewise.
39188         * modules/unictype/property-uppercase (Depends-on, configure.ac):
39189         Likewise.
39190         * modules/unictype/property-variation-selector (Depends-on,
39191         configure.ac): Likewise.
39192         * modules/unictype/property-white-space (Depends-on, configure.ac):
39193         Likewise.
39194         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
39195         Likewise.
39196         * modules/unictype/property-xid-start (Depends-on, configure.ac):
39197         Likewise.
39198         * modules/unictype/property-zero-width (Depends-on, configure.ac):
39199         Likewise.
39200         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
39201         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
39202         Likewise.
39203
39204 2009-12-31  Bruno Haible  <bruno@clisp.org>
39205
39206         Remove unnecessary AC_C_INLINE invocation.
39207         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
39208         since 2009-08-21.
39209
39210 2009-12-31  Jim Meyering  <meyering@redhat.com>
39211
39212         maint.mk: don't require explicit gpg_key_ID in cfg.mk
39213         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
39214         With this change, we can all remove the gpg_key_ID = ... definition
39215         from our respective cfg.mk files.
39216
39217         maint.mk: create announcement template in ~/, not in /tmp
39218         * top/maint.mk (emit_upload_commands): Adjust.
39219         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
39220         Remove temporary file, .ci-msg.
39221
39222 2009-12-31  Eric Blake  <ebb9@byu.net>
39223
39224         link-warning: always build headers with link warnings
39225         * modules/arpa_inet (Makefile.am): Always build replacement
39226         header.
39227         * modules/ctype (Makefile.am): Likewise.
39228         * modules/dirent (Makefile.am): Likewise.
39229         * modules/inttypes (Makefile.am): Likewise.
39230         * modules/langinfo (Makefile.am): Likewise.
39231         * modules/locale (Makefile.am): Likewise.
39232         * modules/spawn (Makefile.am): Likewise.
39233         * modules/sys_file (Makefile.am): Likewise.
39234         * modules/sys_ioctl (Makefile.am): Likewise.
39235         * modules/sys_select (Makefile.am): Likewise.
39236         * modules/sys_socket (Makefile.am): Likewise.
39237         * modules/sys_times (Makefile.am): Likewise.
39238         * modules/sys_utsname (Makefile.am): Likewise.
39239         * modules/sys_wait (Makefile.am): Likewise.
39240         * modules/wchar (Makefile.am): Likewise.
39241         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
39242         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
39243         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
39244         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
39245         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
39246         Likewise.
39247         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
39248         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
39249         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
39250         Likewise.
39251         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
39252         Likewise.
39253         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
39254         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
39255         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
39256         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
39257         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
39258         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
39259         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
39260         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
39261         (gl_WCHAR_H_DEFAULTS): Likewise.
39262
39263 2009-12-31  Eric Blake  <ebb9@byu.net>
39264
39265         signal, spawn: use link warnings
39266         * lib/signal.in.h (sigset_t): Make unconditional.
39267         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
39268         (sigpending, sigprocmask, sigaction): Add link warnings.
39269         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
39270         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
39271         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
39272         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
39273         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
39274         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
39275         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
39276         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
39277         (posix_spawn_file_actions_destroy)
39278         (posix_spawn_file_actions_addopen)
39279         (posix_spawn_file_actions_addclose)
39280         (posix_spawn_file_actions_adddup2): Likewise.
39281         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
39282         * tests/test-signal.c (main): Enhance test.
39283
39284         spawn: improve wrapper support
39285         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
39286         (gl_SPAWN_H_DEFAULTS): New defaults.
39287         * modules/spawn (Makefile.am): Substitute them.
39288         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
39289         Only declare if missing or broken.
39290
39291         sys_times, sys_utsname: use include_next
39292         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
39293         header.
39294         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
39295         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
39296         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
39297         * modules/sys_times (Depends-on): Add include_next.
39298         (Makefile.am): Substitute additional values.
39299         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
39300         * lib/sys_times.in.h (includes): Include native header, if
39301         available.
39302         * lib/sys_utsname.in.h (includes): Likewise.
39303         * tests/test-sys_times.c (main): Enhance test.
39304
39305         fdutimensat: revert prior patch
39306         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
39307         utimens.h.
39308         Reported by Bruno Haible.
39309
39310 2009-12-30  Eric Blake  <ebb9@byu.net>
39311
39312         sys_wait: drop link-warning dependency
39313         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
39314         link-warning efforts.
39315         * lib/sys_wait.in.h: Likewise.
39316
39317         fdutimensat: remove bogus dependency
39318         * modules/fdutimensat (Depends-on): Drop inline.
39319
39320         unistd: fix typo
39321         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
39322
39323 2009-12-30  Bruno Haible  <bruno@clisp.org>
39324
39325         Fix compilation error with Solaris cc.
39326         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
39327         * lib/unicase/u16-is-invariant.c: Likewise.
39328         * lib/unicase/u32-is-invariant.c: Likewise.
39329         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
39330
39331 2009-12-30  Bruno Haible  <bruno@clisp.org>
39332
39333         Fix test crash.
39334         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
39335         locales.
39336         Reported by Simon Josefsson <simon@josefsson.org>.
39337
39338 2009-12-30  Bruno Haible  <bruno@clisp.org>
39339
39340         Fix compilation error on most platforms.
39341         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
39342         Reported by Simon Josefsson <simon@josefsson.org>
39343         and Nelson H. F. Beebe <beebe@math.utah.edu>.
39344
39345 2009-12-30  Eric Blake  <ebb9@byu.net>
39346
39347         futimens, utimensat: work around ntfs-3g bug
39348         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
39349         a ctime bug is present, and expand workaround to cover ntfs-3g.
39350         * lib/utimens.c (fdutimens, lutimens): Likewise.
39351         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
39352         (validate_timespec): Adjust return value.
39353         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
39354         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
39355         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
39356
39357 2009-12-29  Eric Blake  <ebb9@byu.net>
39358
39359         link-warning: make usage consistent
39360         * modules/ctype (Depends-on): Add link-warning.
39361         (Makefile.am): Update rules accordingly.
39362         * modules/langinfo (Depends-on, Makefile.am): Likewise.
39363         * modules/locale (Depends-on, Makefile.am): Likewise.
39364         * modules/sys_file (Makefile.am): Likewise.
39365         * modules/getopt-posix (Makefile.am): Delete unused link warning
39366         efforts.
39367         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
39368         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
39369         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
39370         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
39371
39372         stdio: remove unused variables
39373         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
39374         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
39375         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
39376
39377         tests: test more substitute headers
39378         * modules/ctype-tests: New file.
39379         * modules/dirent-tests: Likewise.
39380         * modules/spawn-tests: Likewise.
39381         * modules/sys_file-tests: Likewise.
39382         * modules/sys_ioctl-tests: Likewise.
39383         * modules/sys_wait-tests: Likewise.
39384         * tests/test-ctype.c: Likewise.
39385         * tests/test-dirent.c: Likewise.
39386         * tests/test-spawn.c: Likewise.
39387         * tests/test-sys_file.c: Likewise.
39388         * tests/test-sys_ioctl.c: Likewise.
39389         * tests/test-sys_wait.c: Likewise.
39390         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
39391         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
39392         whether or not flock is in use.
39393
39394         tests: remove License section from module
39395         * modules/arpa_inet-tests: Remove unneeded section.
39396         * modules/byteswap-tests: Likewise.
39397         * modules/ceilf-tests: Likewise.
39398         * modules/ceill-tests: Likewise.
39399         * modules/crypto/des-tests: Likewise.
39400         * modules/crypto/gc-arcfour-tests: Likewise.
39401         * modules/crypto/gc-arctwo-tests: Likewise.
39402         * modules/crypto/gc-des-tests: Likewise.
39403         * modules/crypto/gc-hmac-md5-tests: Likewise.
39404         * modules/crypto/gc-hmac-sha1-tests: Likewise.
39405         * modules/crypto/gc-md2-tests: Likewise.
39406         * modules/crypto/gc-md4-tests: Likewise.
39407         * modules/crypto/gc-md5-tests: Likewise.
39408         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
39409         * modules/crypto/gc-rijndael-tests: Likewise.
39410         * modules/crypto/gc-sha1-tests: Likewise.
39411         * modules/crypto/gc-tests: Likewise.
39412         * modules/crypto/md2-tests: Likewise.
39413         * modules/crypto/md4-tests: Likewise.
39414         * modules/fcntl-h-tests: Likewise.
39415         * modules/floorf-tests: Likewise.
39416         * modules/floorl-tests: Likewise.
39417         * modules/frexp-nolibm-tests: Likewise.
39418         * modules/frexp-tests: Likewise.
39419         * modules/frexpl-nolibm-tests: Likewise.
39420         * modules/frexpl-tests: Likewise.
39421         * modules/getaddrinfo-tests: Likewise.
39422         * modules/inttypes-tests: Likewise.
39423         * modules/isfinite-tests: Likewise.
39424         * modules/isinf-tests: Likewise.
39425         * modules/ldexpl-tests: Likewise.
39426         * modules/locale-tests: Likewise.
39427         * modules/math-tests: Likewise.
39428         * modules/netdb-tests: Likewise.
39429         * modules/netinet_in-tests: Likewise.
39430         * modules/printf-frexp-tests: Likewise.
39431         * modules/printf-frexpl-tests: Likewise.
39432         * modules/priv-set-tests: Likewise.
39433         * modules/random_r-tests: Likewise.
39434         * modules/round-tests: Likewise.
39435         * modules/roundf-tests: Likewise.
39436         * modules/roundl-tests: Likewise.
39437         * modules/search-tests: Likewise.
39438         * modules/select-tests: Likewise.
39439         * modules/signal-tests: Likewise.
39440         * modules/stdbool-tests: Likewise.
39441         * modules/stddef-tests: Likewise.
39442         * modules/stdint-tests: Likewise.
39443         * modules/stdio-tests: Likewise.
39444         * modules/stdlib-tests: Likewise.
39445         * modules/string-tests: Likewise.
39446         * modules/strings-tests: Likewise.
39447         * modules/sys_select-tests: Likewise.
39448         * modules/sys_socket-tests: Likewise.
39449         * modules/sys_stat-tests: Likewise.
39450         * modules/sys_time-tests: Likewise.
39451         * modules/sys_utsname-tests: Likewise.
39452         * modules/sysexits-tests: Likewise.
39453         * modules/time-tests: Likewise.
39454         * modules/trunc-tests: Likewise.
39455         * modules/truncf-tests: Likewise.
39456         * modules/truncl-tests: Likewise.
39457         * modules/tsearch-tests: Likewise.
39458         * modules/unistd-tests: Likewise.
39459         * modules/wchar-tests: Likewise.
39460         * modules/wctype-tests: Likewise.
39461
39462         tests: fix license on several tests
39463         * tests/test-des.c: Update to GPLv3+.
39464         * tests/test-flock.c: Likewise.
39465         * tests/test-fsync.c: Likewise.
39466         * tests/test-futimens.h: Likewise.
39467         * tests/test-gc-arcfour.c: Likewise.
39468         * tests/test-gc-arctwo.c: Likewise.
39469         * tests/test-gc-des.c: Likewise.
39470         * tests/test-gc-hmac-md5.c: Likewise.
39471         * tests/test-gc-hmac-sha1.c: Likewise.
39472         * tests/test-gc-md2.c: Likewise.
39473         * tests/test-gc-md4.c: Likewise.
39474         * tests/test-gc-md5.c: Likewise.
39475         * tests/test-gc-pbkdf2-sha1.c: Likewise.
39476         * tests/test-gc-rijndael.c: Likewise.
39477         * tests/test-gc-sha1.c: Likewise.
39478         * tests/test-gc.c: Likewise.
39479         * tests/test-getcwd.c: Likewise.
39480         * tests/test-link.c: Likewise.
39481         * tests/test-link.h: Likewise.
39482         * tests/test-lutimens.h: Likewise.
39483         * tests/test-md2.c: Likewise.
39484         * tests/test-md4.c: Likewise.
39485         * tests/test-mkdir.h: Likewise.
39486         * tests/test-rename.c: Likewise.
39487         * tests/test-rename.h: Likewise.
39488         * tests/test-safe-alloc.c: Likewise.
39489         * tests/test-utimens-common.h: Likewise.
39490         * tests/test-utimens.h: Likewise.
39491
39492         maint: sync license texts
39493         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
39494         * doc/gpl-3.0.texi: Revert copyright year update.
39495         * doc/lgpl-3.0.texi: Likewise.
39496
39497 2009-12-29  Jim Meyering  <meyering@redhat.com>
39498
39499         update nearly all FSF copyright year lists to include 2009
39500         The files named by the following are exempted:
39501             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
39502               test -f "$dst" && { echo "$dst"; continue; }
39503               test -d "$dst" || continue
39504               echo "$dst"/$(basename "$src")
39505             done > exempt
39506             git ls-files tests/unictype >> exempt
39507         In the remaining files, convert to all-interval notation if
39508         - there is already at least one year interval like 2000-2003
39509         - the file is maintained by me
39510         - the file is in lib/uni*/, where that style already prevails
39511         Otherwise, use update-copyright's default.
39512
39513 2009-12-29  Simon Josefsson  <simon@josefsson.org>
39514         and Eric Blake  <ebb9@byu.net>
39515
39516         tests: don't require debug system() to pass
39517         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
39518         * tests/test-rmdir.h (test_rmdir_func): Likewise.
39519         * tests/test-unlink.h (test_unlink_func): Likewise.
39520         * tests/test-fstatat.c (main): ...into callers.
39521         * tests/test-lstat.c (main): Likewise.
39522         * tests/test-rmdir.c (main): Likewise.
39523         * tests/test-unlink.c (main): Likewise.
39524         * tests/test-unlinkat.c (main): Likewise.
39525         * tests/test-areadlink-with-size.c (main): Don't require a
39526         debug-only system call to pass, aiding cross-testing to mingw.
39527         * tests/test-areadlink.c (main): Likewise.
39528         * tests/test-areadlinkat-with-size.c (main): Likewise.
39529         * tests/test-areadlinkat.c (main): Likewise.
39530         * tests/test-canonicalize-lgpl.c (main): Likewise.
39531         * tests/test-canonicalize.c (main): Likewise.
39532         * tests/test-chown.c (main): Likewise.
39533         * tests/test-fchownat.c (main): Likewise.
39534         * tests/test-lchown.c (main): Likewise.
39535         * tests/test-fdutimensat.c (main): Likewise.
39536         * tests/test-futimens.c (main): Likewise.
39537         * tests/test-link.c (main): Likewise.
39538         * tests/test-linkat.c (main): Likewise.
39539         * tests/test-mkdir.c (main): Likewise.
39540         * tests/test-mkdirat.c (main): Likewise.
39541         * tests/test-mkfifo.c (main): Likewise.
39542         * tests/test-mkfifoat.c (main): Likewise.
39543         * tests/test-mknod.c (main): Likewise.
39544         * tests/test-readlink.c (main): Likewise.
39545         * tests/test-remove.c (main): Likewise.
39546         * tests/test-rename.c (main): Likewise.
39547         * tests/test-renameat.c (main): Likewise.
39548         * tests/test-symlink.c (main): Likewise.
39549         * tests/test-symlinkat.c (main): Likewise.
39550         * tests/test-utimens.c (main): Likewise.
39551         * tests/test-utimensat.c (main): Likewise.
39552
39553 2009-12-29  Simon Josefsson  <simon@josefsson.org>
39554
39555         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
39556         on $(UNUSED_PARAMETER_H) to avoid build failure.
39557
39558 2009-12-28  Jim Meyering  <meyering@redhat.com>
39559
39560         update-copyright: you may specify a max. line length other than 72
39561         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
39562
39563         maint: use consistent FSF copyright line syntax
39564         * lib/posixtm.c: Add missing comma in FSF copyright line.
39565         * lib/posixtm.h: Likewise.
39566         * lib/getugroups.c: Add missing ", Inc.".
39567
39568         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
39569         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
39570         FSF copyright line.  Remove trailing blanks.
39571
39572 2009-12-28  Eric Blake  <ebb9@byu.net>
39573
39574         test-dup2: reduce dependencies
39575         * modules/cloexec (Configure.ac): Set witness.
39576         * modules/dup2-tests (Depends-on): Drop cloexec.
39577         * tests/test-dup2.c (main): Skip portion of test if cloexec module
39578         not present.
39579         Suggested by Bruno Haible.
39580
39581 2009-12-26  Bruno Haible  <bruno@clisp.org>
39582
39583         Remove an unneeded dependency.
39584         * modules/fseterr (Depends-on): Remove dup2.
39585
39586 2009-12-26  Eric Blake  <ebb9@byu.net>
39587
39588         tests: use macros.h in more places
39589         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
39590         (ASSERT_STREAM): Provide default of stderr.
39591         * tests/test-dirent-safer.c: Include macros.h, using alternate
39592         stream for assertions.
39593         * tests/test-dup-safer.c: Likewise.
39594         * tests/test-freopen-safer.c: Likewise.
39595         * tests/test-getopt.c: Likewise.
39596         * tests/test-openat-safer.c: Likewise.
39597         * tests/test-pipe.c: Likewise.
39598         * tests/test-popen-safer.c: Likewise.
39599         * modules/dirent-safer-tests (Files): Include macros.h.
39600         * modules/unistd-safer-tests (Files): Likewise.
39601         * modules/freopen-safer-tests (Files): Likewise.
39602         * modules/getopt-posix-tests (Files): Likewise.
39603         * modules/openat-safer-tests (Files): Likewise.
39604         * modules/pipe-tests (Files): Likewise.
39605
39606 2009-12-26  Bruno Haible  <bruno@clisp.org>
39607
39608         javacomp: Portability fix.
39609         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
39610         that it also works on Solaris.
39611
39612 2009-12-26  Bruno Haible  <bruno@clisp.org>
39613
39614         localename: Fix storage allocation of gl_locale_name_thread's result.
39615         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
39616         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
39617         all platforms that have 'uselocale'.
39618         (gl_locale_name_thread_unsafe): New function, extracted from
39619         gl_locale_name_thread.
39620         (gl_locale_name_thread): Call struniq on all platforms that have
39621         'uselocale'.
39622         * tests/test-localename.c (test_locale_name_thread): Check that the
39623         resulting strings are permanently allocated.
39624         * modules/localename-tests (Depends-on): Add strdup.
39625
39626 2009-12-26  Bruno Haible  <bruno@clisp.org>
39627
39628         * tests/test-localename.c (categories): Fill in the strings.
39629
39630 2009-12-26  Jim Meyering  <meyering@redhat.com>
39631
39632         isdir: complete the removal of m4/isdir.m4
39633         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
39634
39635         isdir: clean up, since at least grep still uses it
39636         * lib/isdir.c: Include "isdir.h".
39637         (S_ISDIR): Remove now-unneeded definition.
39638         * modules/isdir (Files): Add lib/isdir.h.
39639         * lib/isdir.h: New file, with declaration.
39640         * m4/isdir.m4: Remove file -- unneeded.
39641
39642 2009-12-25  Bruno Haible  <bruno@clisp.org>
39643
39644         selinux-h: Make generated .h files standalone.
39645         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
39646         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
39647         * lib/se-selinux.in.h: Likewise.
39648         * modules/selinux-h (Depends-on): Add unused-parameter.
39649         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
39650         selinux/selinux.h and selinux/context.h.
39651         Suggested by Eric Blake.
39652
39653 2009-12-25  Bruno Haible  <bruno@clisp.org>
39654
39655         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
39656         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
39657         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
39658         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
39659         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
39660
39661 2009-12-24  Bruno Haible  <bruno@clisp.org>
39662
39663         openat: Fix warning.
39664         * lib/openat-proc.c: Include <unistd.h>.
39665
39666 2009-12-24  Bruno Haible  <bruno@clisp.org>
39667
39668         New module 'unused-parameter'.
39669         * build-aux/unused-parameter.h: New file, extracted from earlier
39670         gnulib-common.m4.
39671         * modules/unused-parameter: New file.
39672         * lib/unistr.h: Include unused-parameter.h.
39673         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
39674         _GL_UNUSED.
39675         * modules/unistr/base (Depends-on): Add unused-parameter.
39676
39677 2009-12-24  Bruno Haible  <bruno@clisp.org>
39678
39679         Add missing dependencies to 'extensions' module.
39680         * m4/extensions.m4: Add comment.
39681         * modules/accept4 (Depends-on): Add extensions.
39682         * modules/dup3 (Depends-on): Likewise.
39683         * modules/fcntl (Depends-on): Likewise.
39684         * modules/futimens (Depends-on): Likewise.
39685         * modules/mknod (Depends-on): Likewise.
39686         * modules/pipe2 (Depends-on): Likewise.
39687         * modules/stat-time (Depends-on): Likewise.
39688         * modules/strcasestr-simple (Depends-on): Likewise.
39689         * modules/strsignal (Depends-on): Likewise.
39690         * modules/utimensat (Depends-on): Likewise.
39691         * modules/localcharset (Depends-on): Likewise. Needed because of
39692         gl_FCNTL_O_FLAGS.
39693         * modules/wcrtomb (Depends-on): Likewise. Needed because of
39694         AC_TYPE_MBSTATE_T.
39695         * modules/wcsnrtombs (Depends-on): Likewise.
39696         * modules/wcsrtombs (Depends-on): Likewise.
39697
39698 2009-12-24  Bruno Haible  <bruno@clisp.org>
39699
39700         binary-io: Avoid gcc warning due to SET_BINARY.
39701         * lib/binary-io.h (SET_BINARY): Cast the result to void.
39702         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
39703
39704 2009-12-24  Bruno Haible  <bruno@clisp.org>
39705
39706         Avoid future namespace pollution on glibc systems.
39707         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
39708         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
39709         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
39710         glibc systems.
39711
39712 2009-12-24  Bruno Haible  <bruno@clisp.org>
39713
39714         Refactor common macros used in tests.
39715         * tests/macros.h: New file.
39716         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
39717         and/or <stdlib.h>, if appropriate.
39718         (ASSERT, SIZEOF): Remove macros.
39719         * tests/test-areadlink-with-size.c: Likewise.
39720         * tests/test-areadlinkat.c: Likewise.
39721         * tests/test-areadlinkat-with-size.c: Likewise.
39722         * tests/test-argmatch.c: Likewise.
39723         * tests/test-argv-iter.c: Likewise.
39724         * tests/test-array-mergesort.c: Likewise.
39725         * tests/test-array_list.c: Likewise.
39726         * tests/test-array_oset.c: Likewise.
39727         * tests/test-avltree_list.c: Likewise.
39728         * tests/test-avltree_oset.c: Likewise.
39729         * tests/test-avltreehash_list.c: Likewise.
39730         * tests/test-base64.c: Likewise.
39731         * tests/test-binary-io.c: Likewise.
39732         * tests/test-bitrotate.c: Likewise.
39733         * tests/test-btowc.c: Likewise.
39734         * tests/test-byteswap.c: Likewise.
39735         * tests/test-c-ctype.c: Likewise.
39736         * tests/test-c-stack.c: Likewise.
39737         * tests/test-c-strcasecmp.c: Likewise.
39738         * tests/test-c-strcasestr.c: Likewise.
39739         * tests/test-c-strncasecmp.c: Likewise.
39740         * tests/test-c-strstr.c: Likewise.
39741         * tests/test-canonicalize-lgpl.c: Likewise.
39742         * tests/test-canonicalize.c: Likewise.
39743         * tests/test-carray_list.c: Likewise.
39744         * tests/test-ceilf1.c: Likewise.
39745         * tests/test-ceilf2.c: Likewise.
39746         * tests/test-ceill.c: Likewise.
39747         * tests/test-chown.c: Likewise.
39748         * tests/test-cloexec.c: Likewise.
39749         * tests/test-copy-acl.c: Likewise.
39750         * tests/test-copy-file.c: Likewise.
39751         * tests/test-count-one-bits.c: Likewise.
39752         * tests/test-dprintf-posix.c: Likewise.
39753         * tests/test-dup2.c: Likewise.
39754         * tests/test-dup3.c: Likewise.
39755         * tests/test-duplocale.c: Likewise.
39756         * tests/test-fbufmode.c: Likewise.
39757         * tests/test-fchdir.c: Likewise.
39758         * tests/test-fchownat.c: Likewise.
39759         * tests/test-fcntl-safer.c: Likewise.
39760         * tests/test-fcntl.c: Likewise.
39761         * tests/test-fdopendir.c: Likewise.
39762         * tests/test-fdutimensat.c: Likewise.
39763         * tests/test-fflush2.c: Likewise.
39764         * tests/test-file-has-acl.c: Likewise.
39765         * tests/test-filevercmp.c: Likewise.
39766         * tests/test-flock.c: Likewise.
39767         * tests/test-floorf1.c: Likewise.
39768         * tests/test-floorf2.c: Likewise.
39769         * tests/test-floorl.c: Likewise.
39770         * tests/test-fnmatch.c: Likewise.
39771         * tests/test-fopen.h: Likewise.
39772         * tests/test-fpending.c: Likewise.
39773         * tests/test-fprintf-posix.c: Likewise.
39774         * tests/test-fpurge.c: Likewise.
39775         * tests/test-freadable.c: Likewise.
39776         * tests/test-freadahead.c: Likewise.
39777         * tests/test-freading.c: Likewise.
39778         * tests/test-freadptr.c: Likewise.
39779         * tests/test-freadptr2.c: Likewise.
39780         * tests/test-freadseek.c: Likewise.
39781         * tests/test-freopen.c: Likewise.
39782         * tests/test-frexp.c: Likewise.
39783         * tests/test-frexpl.c: Likewise.
39784         * tests/test-fseek.c: Likewise.
39785         * tests/test-fseeko.c: Likewise.
39786         * tests/test-fstatat.c: Likewise.
39787         * tests/test-fstrcmp.c: Likewise.
39788         * tests/test-fsync.c: Likewise.
39789         * tests/test-ftell.c: Likewise.
39790         * tests/test-ftello.c: Likewise.
39791         * tests/test-func.c: Likewise.
39792         * tests/test-futimens.c: Likewise.
39793         * tests/test-fwritable.c: Likewise.
39794         * tests/test-fwriting.c: Likewise.
39795         * tests/test-getcwd.c: Likewise.
39796         * tests/test-getdate.c: Likewise.
39797         * tests/test-getdelim.c: Likewise.
39798         * tests/test-getdtablesize.c: Likewise.
39799         * tests/test-getgroups.c: Likewise.
39800         * tests/test-getline.c: Likewise.
39801         * tests/test-getndelim2.c: Likewise.
39802         * tests/test-glob.c: Likewise.
39803         * tests/test-hash.c: Likewise.
39804         * tests/test-i-ring.c: Likewise.
39805         * tests/test-iconv-utf.c: Likewise.
39806         * tests/test-iconv.c: Likewise.
39807         * tests/test-idpriv-drop.c: Likewise.
39808         * tests/test-idpriv-droptemp.c: Likewise.
39809         * tests/test-inet_ntop.c: Likewise.
39810         * tests/test-inet_pton.c: Likewise.
39811         * tests/test-isblank.c: Likewise.
39812         * tests/test-isfinite.c: Likewise.
39813         * tests/test-isinf.c: Likewise.
39814         * tests/test-isnan.c: Likewise.
39815         * tests/test-isnand.h: Likewise.
39816         * tests/test-isnanf.h: Likewise.
39817         * tests/test-isnanl.h: Likewise.
39818         * tests/test-lchown.c: Likewise.
39819         * tests/test-ldexpl.c: Likewise.
39820         * tests/test-link.c: Likewise.
39821         * tests/test-linkat.c: Likewise.
39822         * tests/test-linked_list.c: Likewise.
39823         * tests/test-linkedhash_list.c: Likewise.
39824         * tests/test-localename.c: Likewise.
39825         * tests/test-lseek.c: Likewise.
39826         * tests/test-lstat.c: Likewise.
39827         * tests/test-mbmemcasecmp.c: Likewise.
39828         * tests/test-mbmemcasecoll.c: Likewise.
39829         * tests/test-mbrtowc.c: Likewise.
39830         * tests/test-mbscasecmp.c: Likewise.
39831         * tests/test-mbscasestr1.c: Likewise.
39832         * tests/test-mbscasestr2.c: Likewise.
39833         * tests/test-mbscasestr3.c: Likewise.
39834         * tests/test-mbscasestr4.c: Likewise.
39835         * tests/test-mbschr.c: Likewise.
39836         * tests/test-mbscspn.c: Likewise.
39837         * tests/test-mbsinit.c: Likewise.
39838         * tests/test-mbsncasecmp.c: Likewise.
39839         * tests/test-mbsnrtowcs.c: Likewise.
39840         * tests/test-mbspbrk.c: Likewise.
39841         * tests/test-mbspcasecmp.c: Likewise.
39842         * tests/test-mbsrchr.c: Likewise.
39843         * tests/test-mbsrtowcs.c: Likewise.
39844         * tests/test-mbsspn.c: Likewise.
39845         * tests/test-mbsstr1.c: Likewise.
39846         * tests/test-mbsstr2.c: Likewise.
39847         * tests/test-mbsstr3.c: Likewise.
39848         * tests/test-memchr.c: Likewise.
39849         * tests/test-memchr2.c: Likewise.
39850         * tests/test-memcmp.c: Likewise.
39851         * tests/test-memmem.c: Likewise.
39852         * tests/test-memrchr.c: Likewise.
39853         * tests/test-mkdir.c: Likewise.
39854         * tests/test-mkdirat.c: Likewise.
39855         * tests/test-mkfifo.c: Likewise.
39856         * tests/test-mkfifoat.c: Likewise.
39857         * tests/test-mknod.c: Likewise.
39858         * tests/test-nanosleep.c: Likewise.
39859         * tests/test-nl_langinfo.c: Likewise.
39860         * tests/test-obstack-printf.c: Likewise.
39861         * tests/test-open.c: Likewise.
39862         * tests/test-openat.c: Likewise.
39863         * tests/test-pipe-filter-gi1.c: Likewise.
39864         * tests/test-pipe-filter-gi2-main.c: Likewise.
39865         * tests/test-pipe-filter-ii1.c: Likewise.
39866         * tests/test-pipe-filter-ii2-main.c: Likewise.
39867         * tests/test-pipe2.c: Likewise.
39868         * tests/test-popen.h: Likewise.
39869         * tests/test-posixtm.c: Likewise.
39870         * tests/test-pread.c: Likewise.
39871         * tests/test-printf-frexp.c: Likewise.
39872         * tests/test-printf-frexpl.c: Likewise.
39873         * tests/test-printf-posix.c: Likewise.
39874         * tests/test-priv-set.c: Likewise.
39875         * tests/test-quotearg.c: Likewise.
39876         * tests/test-random_r.c: Likewise.
39877         * tests/test-rawmemchr.c: Likewise.
39878         * tests/test-rbtree_list.c: Likewise.
39879         * tests/test-rbtree_oset.c: Likewise.
39880         * tests/test-rbtreehash_list.c: Likewise.
39881         * tests/test-readlink.c: Likewise.
39882         * tests/test-remove.c: Likewise.
39883         * tests/test-rename.c: Likewise.
39884         * tests/test-renameat.c: Likewise.
39885         * tests/test-rmdir.c: Likewise.
39886         * tests/test-round1.c: Likewise.
39887         * tests/test-roundf1.c: Likewise.
39888         * tests/test-roundl.c: Likewise.
39889         * tests/test-safe-alloc.c: Likewise.
39890         * tests/test-sameacls.c: Likewise.
39891         * tests/test-set-mode-acl.c: Likewise.
39892         * tests/test-setenv.c: Likewise.
39893         * tests/test-sigaction.c: Likewise.
39894         * tests/test-signbit.c: Likewise.
39895         * tests/test-sleep.c: Likewise.
39896         * tests/test-snprintf-posix.c: Likewise.
39897         * tests/test-snprintf.c: Likewise.
39898         * tests/test-sprintf-posix.c: Likewise.
39899         * tests/test-stat-time.c: Likewise.
39900         * tests/test-stat.c: Likewise.
39901         * tests/test-strcasestr.c: Likewise.
39902         * tests/test-strchrnul.c: Likewise.
39903         * tests/test-strerror.c: Likewise.
39904         * tests/test-striconv.c: Likewise.
39905         * tests/test-striconveh.c: Likewise.
39906         * tests/test-striconveha.c: Likewise.
39907         * tests/test-strsignal.c: Likewise.
39908         * tests/test-strstr.c: Likewise.
39909         * tests/test-strtod.c: Likewise.
39910         * tests/test-strverscmp.c: Likewise.
39911         * tests/test-symlink.c: Likewise.
39912         * tests/test-symlinkat.c: Likewise.
39913         * tests/test-trunc1.c: Likewise.
39914         * tests/test-trunc2.c: Likewise.
39915         * tests/test-truncf1.c: Likewise.
39916         * tests/test-truncf2.c: Likewise.
39917         * tests/test-truncl.c: Likewise.
39918         * tests/test-uname.c: Likewise.
39919         * tests/test-unlink.c: Likewise.
39920         * tests/test-unlinkat.c: Likewise.
39921         * tests/test-unsetenv.c: Likewise.
39922         * tests/test-usleep.c: Likewise.
39923         * tests/test-utimens.c: Likewise.
39924         * tests/test-utimensat.c: Likewise.
39925         * tests/test-vasnprintf-posix.c: Likewise.
39926         * tests/test-vasnprintf-posix2.c: Likewise.
39927         * tests/test-vasnprintf.c: Likewise.
39928         * tests/test-vasprintf-posix.c: Likewise.
39929         * tests/test-vasprintf.c: Likewise.
39930         * tests/test-vdprintf-posix.c: Likewise.
39931         * tests/test-vfprintf-posix.c: Likewise.
39932         * tests/test-vprintf-posix.c: Likewise.
39933         * tests/test-vsnprintf-posix.c: Likewise.
39934         * tests/test-vsnprintf.c: Likewise.
39935         * tests/test-vsprintf-posix.c: Likewise.
39936         * tests/test-wcrtomb.c: Likewise.
39937         * tests/test-wcsnrtombs.c: Likewise.
39938         * tests/test-wcsrtombs.c: Likewise.
39939         * tests/test-wctype.c: Likewise.
39940         * tests/test-wcwidth.c: Likewise.
39941         * tests/test-xfprintf-posix.c: Likewise.
39942         * tests/test-xmemdup0.c: Likewise.
39943         * tests/test-xprintf-posix.c: Likewise.
39944         * tests/test-xvasprintf.c: Likewise.
39945         * tests/unicase/test-locale-language.c: Likewise.
39946         * tests/unicase/test-mapping-part1.h: Likewise.
39947         * tests/unicase/test-predicate-part1.h: Likewise.
39948         * tests/unicase/test-u8-casecmp.c: Likewise.
39949         * tests/unicase/test-u8-casecoll.c: Likewise.
39950         * tests/unicase/test-u8-casefold.c: Likewise.
39951         * tests/unicase/test-u8-is-cased.c: Likewise.
39952         * tests/unicase/test-u8-is-casefolded.c: Likewise.
39953         * tests/unicase/test-u8-is-lowercase.c: Likewise.
39954         * tests/unicase/test-u8-is-titlecase.c: Likewise.
39955         * tests/unicase/test-u8-is-uppercase.c: Likewise.
39956         * tests/unicase/test-u8-tolower.c: Likewise.
39957         * tests/unicase/test-u8-totitle.c: Likewise.
39958         * tests/unicase/test-u8-toupper.c: Likewise.
39959         * tests/unicase/test-u16-casecmp.c: Likewise.
39960         * tests/unicase/test-u16-casecoll.c: Likewise.
39961         * tests/unicase/test-u16-casefold.c: Likewise.
39962         * tests/unicase/test-u16-is-cased.c: Likewise.
39963         * tests/unicase/test-u16-is-casefolded.c: Likewise.
39964         * tests/unicase/test-u16-is-lowercase.c: Likewise.
39965         * tests/unicase/test-u16-is-titlecase.c: Likewise.
39966         * tests/unicase/test-u16-is-uppercase.c: Likewise.
39967         * tests/unicase/test-u16-tolower.c: Likewise.
39968         * tests/unicase/test-u16-totitle.c: Likewise.
39969         * tests/unicase/test-u16-toupper.c: Likewise.
39970         * tests/unicase/test-u32-casecmp.c: Likewise.
39971         * tests/unicase/test-u32-casecoll.c: Likewise.
39972         * tests/unicase/test-u32-casefold.c: Likewise.
39973         * tests/unicase/test-u32-is-cased.c: Likewise.
39974         * tests/unicase/test-u32-is-casefolded.c: Likewise.
39975         * tests/unicase/test-u32-is-lowercase.c: Likewise.
39976         * tests/unicase/test-u32-is-titlecase.c: Likewise.
39977         * tests/unicase/test-u32-is-uppercase.c: Likewise.
39978         * tests/unicase/test-u32-tolower.c: Likewise.
39979         * tests/unicase/test-u32-totitle.c: Likewise.
39980         * tests/unicase/test-u32-toupper.c: Likewise.
39981         * tests/unicase/test-ulc-casecmp.c: Likewise.
39982         * tests/unicase/test-ulc-casecoll.c: Likewise.
39983         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
39984         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
39985         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
39986         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
39987         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
39988         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
39989         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
39990         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
39991         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
39992         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
39993         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
39994         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
39995         * tests/unictype/test-bidi_byname.c: Likewise.
39996         * tests/unictype/test-bidi_name.c: Likewise.
39997         * tests/unictype/test-bidi_of.c: Likewise.
39998         * tests/unictype/test-bidi_test.c: Likewise.
39999         * tests/unictype/test-block_list.c: Likewise.
40000         * tests/unictype/test-block_of.c: Likewise.
40001         * tests/unictype/test-block_test.c: Likewise.
40002         * tests/unictype/test-categ_and.c: Likewise.
40003         * tests/unictype/test-categ_and_not.c: Likewise.
40004         * tests/unictype/test-categ_byname.c: Likewise.
40005         * tests/unictype/test-categ_name.c: Likewise.
40006         * tests/unictype/test-categ_none.c: Likewise.
40007         * tests/unictype/test-categ_of.c: Likewise.
40008         * tests/unictype/test-categ_or.c: Likewise.
40009         * tests/unictype/test-categ_test_withtable.c: Likewise.
40010         * tests/unictype/test-combining.c: Likewise.
40011         * tests/unictype/test-decdigit.c: Likewise.
40012         * tests/unictype/test-digit.c: Likewise.
40013         * tests/unictype/test-mirror.c: Likewise.
40014         * tests/unictype/test-numeric.c: Likewise.
40015         * tests/unictype/test-pr_byname.c: Likewise.
40016         * tests/unictype/test-pr_test.c: Likewise.
40017         * tests/unictype/test-predicate-part1.h: Likewise.
40018         * tests/unictype/test-scripts.c: Likewise.
40019         * tests/unictype/test-sy_c_ident.c: Likewise.
40020         * tests/unictype/test-sy_java_ident.c: Likewise.
40021         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
40022         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
40023         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
40024         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
40025         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
40026         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
40027         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
40028         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
40029         * tests/uninorm/test-canonical-decomposition.c: Likewise.
40030         * tests/uninorm/test-compat-decomposition.c: Likewise.
40031         * tests/uninorm/test-composition.c: Likewise.
40032         * tests/uninorm/test-decomposing-form.c: Likewise.
40033         * tests/uninorm/test-decomposition.c: Likewise.
40034         * tests/uninorm/test-u8-nfc.c: Likewise.
40035         * tests/uninorm/test-u8-nfd.c: Likewise.
40036         * tests/uninorm/test-u8-nfkc.c: Likewise.
40037         * tests/uninorm/test-u8-nfkd.c: Likewise.
40038         * tests/uninorm/test-u8-normcmp.c: Likewise.
40039         * tests/uninorm/test-u8-normcoll.c: Likewise.
40040         * tests/uninorm/test-u16-nfc.c: Likewise.
40041         * tests/uninorm/test-u16-nfd.c: Likewise.
40042         * tests/uninorm/test-u16-nfkc.c: Likewise.
40043         * tests/uninorm/test-u16-nfkd.c: Likewise.
40044         * tests/uninorm/test-u16-normcmp.c: Likewise.
40045         * tests/uninorm/test-u16-normcoll.c: Likewise.
40046         * tests/uninorm/test-u32-nfc.c: Likewise.
40047         * tests/uninorm/test-u32-nfd.c: Likewise.
40048         * tests/uninorm/test-u32-nfkc.c: Likewise.
40049         * tests/uninorm/test-u32-nfkd.c: Likewise.
40050         * tests/uninorm/test-u32-normalize-big.c: Likewise.
40051         * tests/uninorm/test-u32-normcmp.c: Likewise.
40052         * tests/uninorm/test-u32-normcoll.c: Likewise.
40053         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
40054         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
40055         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
40056         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
40057         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
40058         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
40059         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
40060         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
40061         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
40062         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
40063         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
40064         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
40065         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
40066         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
40067         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
40068         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
40069         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
40070         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
40071         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
40072         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
40073         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
40074         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
40075         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
40076         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
40077         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
40078         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
40079         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
40080         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
40081         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
40082         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
40083         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
40084         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
40085         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
40086         * tests/uniwidth/test-u8-strwidth.c: Likewise.
40087         * tests/uniwidth/test-u8-width.c: Likewise.
40088         * tests/uniwidth/test-u16-strwidth.c: Likewise.
40089         * tests/uniwidth/test-u16-width.c: Likewise.
40090         * tests/uniwidth/test-u32-strwidth.c: Likewise.
40091         * tests/uniwidth/test-u32-width.c: Likewise.
40092         * tests/uniwidth/test-uc_width.c: Likewise.
40093         * tests/uniwidth/test-uc_width2.c: Likewise.
40094         * modules/acl-tests (Files): Add tests/macros.h.
40095         * modules/areadlink-tests (Files): Likewise.
40096         * modules/areadlink-with-size-tests (Files): Likewise.
40097         * modules/areadlinkat-tests (Files): Likewise.
40098         * modules/areadlinkat-with-size-tests (Files): Likewise.
40099         * modules/argmatch-tests (Files): Likewise.
40100         * modules/argv-iter-tests (Files): Likewise.
40101         * modules/array-list-tests (Files): Likewise.
40102         * modules/array-mergesort-tests (Files): Likewise.
40103         * modules/array-oset-tests (Files): Likewise.
40104         * modules/avltree-list-tests (Files): Likewise.
40105         * modules/avltree-oset-tests (Files): Likewise.
40106         * modules/avltreehash-list-tests (Files): Likewise.
40107         * modules/base64-tests (Files): Likewise.
40108         * modules/binary-io-tests (Files): Likewise.
40109         * modules/bitrotate-tests (Files): Likewise.
40110         * modules/btowc-tests (Files): Likewise.
40111         * modules/byteswap-tests (Files): Likewise.
40112         * modules/c-ctype-tests (Files): Likewise.
40113         * modules/c-stack-tests (Files): Likewise.
40114         * modules/c-strcase-tests (Files): Likewise.
40115         * modules/c-strcasestr-tests (Files): Likewise.
40116         * modules/c-strstr-tests (Files): Likewise.
40117         * modules/canonicalize-lgpl-tests (Files): Likewise.
40118         * modules/canonicalize-tests (Files): Likewise.
40119         * modules/carray-list-tests (Files): Likewise.
40120         * modules/ceilf-tests (Files): Likewise.
40121         * modules/ceill-tests (Files): Likewise.
40122         * modules/chown-tests (Files): Likewise.
40123         * modules/cloexec-tests (Files): Likewise.
40124         * modules/copy-file-tests (Files): Likewise.
40125         * modules/count-one-bits-tests (Files): Likewise.
40126         * modules/dprintf-posix-tests (Files): Likewise.
40127         * modules/dup2-tests (Files): Likewise.
40128         * modules/dup3-tests (Files): Likewise.
40129         * modules/duplocale-tests (Files): Likewise.
40130         * modules/fbufmode-tests (Files): Likewise.
40131         * modules/fchdir-tests (Files): Likewise.
40132         * modules/fcntl-safer-tests (Files): Likewise.
40133         * modules/fcntl-tests (Files): Likewise.
40134         * modules/fdopendir-tests (Files): Likewise.
40135         * modules/fdutimensat-tests (Files): Likewise.
40136         * modules/fflush-tests (Files): Likewise.
40137         * modules/filevercmp-tests (Files): Likewise.
40138         * modules/flock-tests (Files): Likewise.
40139         * modules/floorf-tests (Files): Likewise.
40140         * modules/floorl-tests (Files): Likewise.
40141         * modules/fnmatch-tests (Files): Likewise.
40142         * modules/fopen-safer-tests (Files): Likewise.
40143         * modules/fopen-tests (Files): Likewise.
40144         * modules/fpending-tests (Files): Likewise.
40145         * modules/fprintf-posix-tests (Files): Likewise.
40146         * modules/fpurge-tests (Files): Likewise.
40147         * modules/freadable-tests (Files): Likewise.
40148         * modules/freadahead-tests (Files): Likewise.
40149         * modules/freading-tests (Files): Likewise.
40150         * modules/freadptr-tests (Files): Likewise.
40151         * modules/freadseek-tests (Files): Likewise.
40152         * modules/freopen-tests (Files): Likewise.
40153         * modules/frexp-nolibm-tests (Files): Likewise.
40154         * modules/frexp-tests (Files): Likewise.
40155         * modules/frexpl-nolibm-tests (Files): Likewise.
40156         * modules/frexpl-tests (Files): Likewise.
40157         * modules/fseek-tests (Files): Likewise.
40158         * modules/fseeko-tests (Files): Likewise.
40159         * modules/fstrcmp-tests (Files): Likewise.
40160         * modules/fsync-tests (Files): Likewise.
40161         * modules/ftell-tests (Files): Likewise.
40162         * modules/ftello-tests (Files): Likewise.
40163         * modules/func-tests (Files): Likewise.
40164         * modules/futimens-tests (Files): Likewise.
40165         * modules/fwritable-tests (Files): Likewise.
40166         * modules/fwriting-tests (Files): Likewise.
40167         * modules/getcwd-tests (Files): Likewise.
40168         * modules/getdate-tests (Files): Likewise.
40169         * modules/getdelim-tests (Files): Likewise.
40170         * modules/getdtablesize-tests (Files): Likewise.
40171         * modules/getgroups-tests (Files): Likewise.
40172         * modules/getline-tests (Files): Likewise.
40173         * modules/getndelim2-tests (Files): Likewise.
40174         * modules/glob-tests (Files): Likewise.
40175         * modules/hash-tests (Files): Likewise.
40176         * modules/i-ring-tests (Files): Likewise.
40177         * modules/iconv-tests (Files): Likewise.
40178         * modules/iconv_open-utf-tests (Files): Likewise.
40179         * modules/idpriv-drop-tests (Files): Likewise.
40180         * modules/idpriv-droptemp-tests (Files): Likewise.
40181         * modules/inet_ntop-tests (Files): Likewise.
40182         * modules/inet_pton-tests (Files): Likewise.
40183         * modules/isblank-tests (Files): Likewise.
40184         * modules/isfinite-tests (Files): Likewise.
40185         * modules/isinf-tests (Files): Likewise.
40186         * modules/isnan-tests (Files): Likewise.
40187         * modules/isnand-nolibm-tests (Files): Likewise.
40188         * modules/isnand-tests (Files): Likewise.
40189         * modules/isnanf-nolibm-tests (Files): Likewise.
40190         * modules/isnanf-tests (Files): Likewise.
40191         * modules/isnanl-nolibm-tests (Files): Likewise.
40192         * modules/isnanl-tests (Files): Likewise.
40193         * modules/lchown-tests (Files): Likewise.
40194         * modules/ldexpl-tests (Files): Likewise.
40195         * modules/link-tests (Files): Likewise.
40196         * modules/linkat-tests (Files): Likewise.
40197         * modules/linked-list-tests (Files): Likewise.
40198         * modules/linkedhash-list-tests (Files): Likewise.
40199         * modules/localename-tests (Files): Likewise.
40200         * modules/lseek-tests (Files): Likewise.
40201         * modules/lstat-tests (Files): Likewise.
40202         * modules/mbmemcasecmp-tests (Files): Likewise.
40203         * modules/mbmemcasecoll-tests (Files): Likewise.
40204         * modules/mbrtowc-tests (Files): Likewise.
40205         * modules/mbscasecmp-tests (Files): Likewise.
40206         * modules/mbscasestr-tests (Files): Likewise.
40207         * modules/mbschr-tests (Files): Likewise.
40208         * modules/mbscspn-tests (Files): Likewise.
40209         * modules/mbsinit-tests (Files): Likewise.
40210         * modules/mbsncasecmp-tests (Files): Likewise.
40211         * modules/mbsnrtowcs-tests (Files): Likewise.
40212         * modules/mbspbrk-tests (Files): Likewise.
40213         * modules/mbspcasecmp-tests (Files): Likewise.
40214         * modules/mbsrchr-tests (Files): Likewise.
40215         * modules/mbsrtowcs-tests (Files): Likewise.
40216         * modules/mbsspn-tests (Files): Likewise.
40217         * modules/mbsstr-tests (Files): Likewise.
40218         * modules/memchr-tests (Files): Likewise.
40219         * modules/memchr2-tests (Files): Likewise.
40220         * modules/memcmp-tests (Files): Likewise.
40221         * modules/memmem-tests (Files): Likewise.
40222         * modules/memrchr-tests (Files): Likewise.
40223         * modules/mkdir-tests (Files): Likewise.
40224         * modules/mkfifo-tests (Files): Likewise.
40225         * modules/mkfifoat-tests (Files): Likewise.
40226         * modules/mknod-tests (Files): Likewise.
40227         * modules/nanosleep-tests (Files): Likewise.
40228         * modules/nl_langinfo-tests (Files): Likewise.
40229         * modules/obstack-printf-tests (Files): Likewise.
40230         * modules/open-tests (Files): Likewise.
40231         * modules/openat-tests (Files): Likewise.
40232         * modules/pipe-filter-gi-tests (Files): Likewise.
40233         * modules/pipe-filter-ii-tests (Files): Likewise.
40234         * modules/pipe2-tests (Files): Likewise.
40235         * modules/popen-safer-tests (Files): Likewise.
40236         * modules/popen-tests (Files): Likewise.
40237         * modules/posixtm-tests (Files): Likewise.
40238         * modules/pread-tests (Files): Likewise.
40239         * modules/printf-frexp-tests (Files): Likewise.
40240         * modules/printf-frexpl-tests (Files): Likewise.
40241         * modules/printf-posix-tests (Files): Likewise.
40242         * modules/priv-set-tests (Files): Likewise.
40243         * modules/quotearg-tests (Files): Likewise.
40244         * modules/random_r-tests (Files): Likewise.
40245         * modules/rawmemchr-tests (Files): Likewise.
40246         * modules/rbtree-list-tests (Files): Likewise.
40247         * modules/rbtree-oset-tests (Files): Likewise.
40248         * modules/rbtreehash-list-tests (Files): Likewise.
40249         * modules/readlink-tests (Files): Likewise.
40250         * modules/remove-tests (Files): Likewise.
40251         * modules/rename-tests (Files): Likewise.
40252         * modules/renameat-tests (Files): Likewise.
40253         * modules/rmdir-tests (Files): Likewise.
40254         * modules/round-tests (Files): Likewise.
40255         * modules/roundf-tests (Files): Likewise.
40256         * modules/roundl-tests (Files): Likewise.
40257         * modules/safe-alloc-tests (Files): Likewise.
40258         * modules/setenv-tests (Files): Likewise.
40259         * modules/sigaction-tests (Files): Likewise.
40260         * modules/signbit-tests (Files): Likewise.
40261         * modules/sleep-tests (Files): Likewise.
40262         * modules/snprintf-posix-tests (Files): Likewise.
40263         * modules/snprintf-tests (Files): Likewise.
40264         * modules/sprintf-posix-tests (Files): Likewise.
40265         * modules/stat-tests (Files): Likewise.
40266         * modules/stat-time-tests (Files): Likewise.
40267         * modules/strcasestr-tests (Files): Likewise.
40268         * modules/strchrnul-tests (Files): Likewise.
40269         * modules/strerror-tests (Files): Likewise.
40270         * modules/striconv-tests (Files): Likewise.
40271         * modules/striconveh-tests (Files): Likewise.
40272         * modules/striconveha-tests (Files): Likewise.
40273         * modules/strsignal-tests (Files): Likewise.
40274         * modules/strstr-tests (Files): Likewise.
40275         * modules/strtod-tests (Files): Likewise.
40276         * modules/strverscmp-tests (Files): Likewise.
40277         * modules/symlink-tests (Files): Likewise.
40278         * modules/symlinkat-tests (Files): Likewise.
40279         * modules/trunc-tests (Files): Likewise.
40280         * modules/truncf-tests (Files): Likewise.
40281         * modules/truncl-tests (Files): Likewise.
40282         * modules/uname-tests (Files): Likewise.
40283         * modules/unicase/cased-tests (Files): Likewise.
40284         * modules/unicase/ignorable-tests (Files): Likewise.
40285         * modules/unicase/locale-language-tests (Files): Likewise.
40286         * modules/unicase/tolower-tests (Files): Likewise.
40287         * modules/unicase/totitle-tests (Files): Likewise.
40288         * modules/unicase/toupper-tests (Files): Likewise.
40289         * modules/unicase/u8-casecmp-tests (Files): Likewise.
40290         * modules/unicase/u8-casecoll-tests (Files): Likewise.
40291         * modules/unicase/u8-casefold-tests (Files): Likewise.
40292         * modules/unicase/u8-is-cased-tests (Files): Likewise.
40293         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
40294         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
40295         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
40296         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
40297         * modules/unicase/u8-tolower-tests (Files): Likewise.
40298         * modules/unicase/u8-totitle-tests (Files): Likewise.
40299         * modules/unicase/u8-toupper-tests (Files): Likewise.
40300         * modules/unicase/u16-casecmp-tests (Files): Likewise.
40301         * modules/unicase/u16-casecoll-tests (Files): Likewise.
40302         * modules/unicase/u16-casefold-tests (Files): Likewise.
40303         * modules/unicase/u16-is-cased-tests (Files): Likewise.
40304         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
40305         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
40306         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
40307         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
40308         * modules/unicase/u16-tolower-tests (Files): Likewise.
40309         * modules/unicase/u16-totitle-tests (Files): Likewise.
40310         * modules/unicase/u16-toupper-tests (Files): Likewise.
40311         * modules/unicase/u32-casecmp-tests (Files): Likewise.
40312         * modules/unicase/u32-casecoll-tests (Files): Likewise.
40313         * modules/unicase/u32-casefold-tests (Files): Likewise.
40314         * modules/unicase/u32-is-cased-tests (Files): Likewise.
40315         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
40316         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
40317         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
40318         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
40319         * modules/unicase/u32-tolower-tests (Files): Likewise.
40320         * modules/unicase/u32-totitle-tests (Files): Likewise.
40321         * modules/unicase/u32-toupper-tests (Files): Likewise.
40322         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
40323         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
40324         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
40325         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
40326         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
40327         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
40328         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
40329         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
40330         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
40331         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
40332         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
40333         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
40334         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
40335         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
40336         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
40337         * modules/unictype/bidicategory-name-tests (Files): Likewise.
40338         * modules/unictype/bidicategory-of-tests (Files): Likewise.
40339         * modules/unictype/bidicategory-test-tests (Files): Likewise.
40340         * modules/unictype/block-list-tests (Files): Likewise.
40341         * modules/unictype/block-of-tests (Files): Likewise.
40342         * modules/unictype/block-test-tests (Files): Likewise.
40343         * modules/unictype/category-C-tests (Files): Likewise.
40344         * modules/unictype/category-Cc-tests (Files): Likewise.
40345         * modules/unictype/category-Cf-tests (Files): Likewise.
40346         * modules/unictype/category-Cn-tests (Files): Likewise.
40347         * modules/unictype/category-Co-tests (Files): Likewise.
40348         * modules/unictype/category-Cs-tests (Files): Likewise.
40349         * modules/unictype/category-L-tests (Files): Likewise.
40350         * modules/unictype/category-Ll-tests (Files): Likewise.
40351         * modules/unictype/category-Lm-tests (Files): Likewise.
40352         * modules/unictype/category-Lo-tests (Files): Likewise.
40353         * modules/unictype/category-Lt-tests (Files): Likewise.
40354         * modules/unictype/category-Lu-tests (Files): Likewise.
40355         * modules/unictype/category-M-tests (Files): Likewise.
40356         * modules/unictype/category-Mc-tests (Files): Likewise.
40357         * modules/unictype/category-Me-tests (Files): Likewise.
40358         * modules/unictype/category-Mn-tests (Files): Likewise.
40359         * modules/unictype/category-N-tests (Files): Likewise.
40360         * modules/unictype/category-Nd-tests (Files): Likewise.
40361         * modules/unictype/category-Nl-tests (Files): Likewise.
40362         * modules/unictype/category-No-tests (Files): Likewise.
40363         * modules/unictype/category-P-tests (Files): Likewise.
40364         * modules/unictype/category-Pc-tests (Files): Likewise.
40365         * modules/unictype/category-Pd-tests (Files): Likewise.
40366         * modules/unictype/category-Pe-tests (Files): Likewise.
40367         * modules/unictype/category-Pf-tests (Files): Likewise.
40368         * modules/unictype/category-Pi-tests (Files): Likewise.
40369         * modules/unictype/category-Po-tests (Files): Likewise.
40370         * modules/unictype/category-Ps-tests (Files): Likewise.
40371         * modules/unictype/category-S-tests (Files): Likewise.
40372         * modules/unictype/category-Sc-tests (Files): Likewise.
40373         * modules/unictype/category-Sk-tests (Files): Likewise.
40374         * modules/unictype/category-Sm-tests (Files): Likewise.
40375         * modules/unictype/category-So-tests (Files): Likewise.
40376         * modules/unictype/category-Z-tests (Files): Likewise.
40377         * modules/unictype/category-Zl-tests (Files): Likewise.
40378         * modules/unictype/category-Zp-tests (Files): Likewise.
40379         * modules/unictype/category-Zs-tests (Files): Likewise.
40380         * modules/unictype/category-and-not-tests (Files): Likewise.
40381         * modules/unictype/category-and-tests (Files): Likewise.
40382         * modules/unictype/category-byname-tests (Files): Likewise.
40383         * modules/unictype/category-name-tests (Files): Likewise.
40384         * modules/unictype/category-none-tests (Files): Likewise.
40385         * modules/unictype/category-of-tests (Files): Likewise.
40386         * modules/unictype/category-or-tests (Files): Likewise.
40387         * modules/unictype/category-test-withtable-tests (Files): Likewise.
40388         * modules/unictype/combining-class-tests (Files): Likewise.
40389         * modules/unictype/ctype-alnum-tests (Files): Likewise.
40390         * modules/unictype/ctype-alpha-tests (Files): Likewise.
40391         * modules/unictype/ctype-blank-tests (Files): Likewise.
40392         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
40393         * modules/unictype/ctype-digit-tests (Files): Likewise.
40394         * modules/unictype/ctype-graph-tests (Files): Likewise.
40395         * modules/unictype/ctype-lower-tests (Files): Likewise.
40396         * modules/unictype/ctype-print-tests (Files): Likewise.
40397         * modules/unictype/ctype-punct-tests (Files): Likewise.
40398         * modules/unictype/ctype-space-tests (Files): Likewise.
40399         * modules/unictype/ctype-upper-tests (Files): Likewise.
40400         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
40401         * modules/unictype/decimal-digit-tests (Files): Likewise.
40402         * modules/unictype/digit-tests (Files): Likewise.
40403         * modules/unictype/mirror-tests (Files): Likewise.
40404         * modules/unictype/numeric-tests (Files): Likewise.
40405         * modules/unictype/property-alphabetic-tests (Files): Likewise.
40406         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
40407         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
40408         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
40409         Likewise.
40410         * modules/unictype/property-bidi-block-separator-tests (Files):
40411         Likewise.
40412         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
40413         Likewise.
40414         * modules/unictype/property-bidi-common-separator-tests (Files):
40415         Likewise.
40416         * modules/unictype/property-bidi-control-tests (Files): Likewise.
40417         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
40418         Likewise.
40419         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
40420         Likewise.
40421         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
40422         Likewise.
40423         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
40424         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
40425         Likewise.
40426         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
40427         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
40428         Likewise.
40429         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
40430         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
40431         * modules/unictype/property-bidi-segment-separator-tests (Files):
40432         Likewise.
40433         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
40434         * modules/unictype/property-byname-tests (Files): Likewise.
40435         * modules/unictype/property-combining-tests (Files): Likewise.
40436         * modules/unictype/property-composite-tests (Files): Likewise.
40437         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
40438         * modules/unictype/property-dash-tests (Files): Likewise.
40439         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
40440         * modules/unictype/property-default-ignorable-code-point-tests (Files):
40441         Likewise.
40442         * modules/unictype/property-deprecated-tests (Files): Likewise.
40443         * modules/unictype/property-diacritic-tests (Files): Likewise.
40444         * modules/unictype/property-extender-tests (Files): Likewise.
40445         * modules/unictype/property-format-control-tests (Files): Likewise.
40446         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
40447         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
40448         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
40449         * modules/unictype/property-hex-digit-tests (Files): Likewise.
40450         * modules/unictype/property-hyphen-tests (Files): Likewise.
40451         * modules/unictype/property-id-continue-tests (Files): Likewise.
40452         * modules/unictype/property-id-start-tests (Files): Likewise.
40453         * modules/unictype/property-ideographic-tests (Files): Likewise.
40454         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
40455         * modules/unictype/property-ids-trinary-operator-tests (Files):
40456         Likewise.
40457         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
40458         * modules/unictype/property-iso-control-tests (Files): Likewise.
40459         * modules/unictype/property-join-control-tests (Files): Likewise.
40460         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
40461         * modules/unictype/property-line-separator-tests (Files): Likewise.
40462         * modules/unictype/property-logical-order-exception-tests (Files):
40463         Likewise.
40464         * modules/unictype/property-lowercase-tests (Files): Likewise.
40465         * modules/unictype/property-math-tests (Files): Likewise.
40466         * modules/unictype/property-non-break-tests (Files): Likewise.
40467         * modules/unictype/property-not-a-character-tests (Files): Likewise.
40468         * modules/unictype/property-numeric-tests (Files): Likewise.
40469         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
40470         * modules/unictype/property-other-default-ignorable-code-point-tests
40471         (Files): Likewise.
40472         * modules/unictype/property-other-grapheme-extend-tests (Files):
40473         Likewise.
40474         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
40475         * modules/unictype/property-other-id-start-tests (Files): Likewise.
40476         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
40477         * modules/unictype/property-other-math-tests (Files): Likewise.
40478         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
40479         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
40480         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
40481         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
40482         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
40483         * modules/unictype/property-private-use-tests (Files): Likewise.
40484         * modules/unictype/property-punctuation-tests (Files): Likewise.
40485         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
40486         * modules/unictype/property-radical-tests (Files): Likewise.
40487         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
40488         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
40489         * modules/unictype/property-space-tests (Files): Likewise.
40490         * modules/unictype/property-terminal-punctuation-tests (Files):
40491         Likewise.
40492         * modules/unictype/property-test-tests (Files): Likewise.
40493         * modules/unictype/property-titlecase-tests (Files): Likewise.
40494         * modules/unictype/property-unassigned-code-value-tests (Files):
40495         Likewise.
40496         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
40497         * modules/unictype/property-uppercase-tests (Files): Likewise.
40498         * modules/unictype/property-variation-selector-tests (Files): Likewise.
40499         * modules/unictype/property-white-space-tests (Files): Likewise.
40500         * modules/unictype/property-xid-continue-tests (Files): Likewise.
40501         * modules/unictype/property-xid-start-tests (Files): Likewise.
40502         * modules/unictype/property-zero-width-tests (Files): Likewise.
40503         * modules/unictype/scripts-tests (Files): Likewise.
40504         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
40505         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
40506         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
40507         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
40508         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
40509         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
40510         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
40511         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
40512         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
40513         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
40514         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
40515         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
40516         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
40517         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
40518         * modules/uninorm/composition-tests (Files): Likewise.
40519         * modules/uninorm/decomposing-form-tests (Files): Likewise.
40520         * modules/uninorm/decomposition-tests (Files): Likewise.
40521         * modules/uninorm/filter-tests (Files): Likewise.
40522         * modules/uninorm/nfc-tests (Files): Likewise.
40523         * modules/uninorm/nfd-tests (Files): Likewise.
40524         * modules/uninorm/nfkc-tests (Files): Likewise.
40525         * modules/uninorm/nfkd-tests (Files): Likewise.
40526         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
40527         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
40528         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
40529         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
40530         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
40531         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
40532         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
40533         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
40534         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
40535         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
40536         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
40537         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
40538         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
40539         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
40540         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
40541         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
40542         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
40543         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
40544         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
40545         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
40546         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
40547         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
40548         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
40549         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
40550         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
40551         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
40552         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
40553         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
40554         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
40555         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
40556         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
40557         * modules/uniwidth/u8-width-tests (Files): Likewise.
40558         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
40559         * modules/uniwidth/u16-width-tests (Files): Likewise.
40560         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
40561         * modules/uniwidth/u32-width-tests (Files): Likewise.
40562         * modules/uniwidth/width-tests (Files): Likewise.
40563         * modules/unlink-tests (Files): Likewise.
40564         * modules/unsetenv-tests (Files): Likewise.
40565         * modules/usleep-tests (Files): Likewise.
40566         * modules/utimens-tests (Files): Likewise.
40567         * modules/utimensat-tests (Files): Likewise.
40568         * modules/vasnprintf-posix-tests (Files): Likewise.
40569         * modules/vasnprintf-tests (Files): Likewise.
40570         * modules/vasprintf-posix-tests (Files): Likewise.
40571         * modules/vasprintf-tests (Files): Likewise.
40572         * modules/vdprintf-posix-tests (Files): Likewise.
40573         * modules/vfprintf-posix-tests (Files): Likewise.
40574         * modules/vprintf-posix-tests (Files): Likewise.
40575         * modules/vsnprintf-posix-tests (Files): Likewise.
40576         * modules/vsnprintf-tests (Files): Likewise.
40577         * modules/vsprintf-posix-tests (Files): Likewise.
40578         * modules/wcrtomb-tests (Files): Likewise.
40579         * modules/wcsnrtombs-tests (Files): Likewise.
40580         * modules/wcsrtombs-tests (Files): Likewise.
40581         * modules/wctype-tests (Files): Likewise.
40582         * modules/wcwidth-tests (Files): Likewise.
40583         * modules/xmemdup0-tests (Files): Likewise.
40584         * modules/xprintf-posix-tests (Files): Likewise.
40585         * modules/xvasprintf-tests (Files): Likewise.
40586
40587 2009-12-24  Eric Blake  <ebb9@byu.net>
40588
40589         test-nanosleep: fix typo
40590         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
40591         patch.
40592         Reported by Bruno Haible.
40593
40594 2009-12-24  Bruno Haible  <bruno@clisp.org>
40595
40596         Reduce namespace pollution on glibc systems.
40597         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
40598         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
40599         systems.
40600         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
40601         <getopt.h> on glibc systems.
40602         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
40603         systems.
40604         * lib/fcntl.c: Include <unistd.h> here instead.
40605
40606 2009-12-24  Bruno Haible  <bruno@clisp.org>
40607
40608         * lib/stdlib.in.h (includes): Fix typo in today's commit.
40609
40610 2009-12-24  Eric Blake  <ebb9@byu.net>
40611
40612         tests: add signature checks
40613         * tests/signature.h (SIGNATURE_CHECK): New file.
40614         * modules/atexit-tests (Files): Use it.
40615         * modules/btowc-tests (Files): Likewise.
40616         * modules/canonicalize-lgpl-tests (Files): Likewise.
40617         * modules/ceilf-tests (Files): Likewise.
40618         * modules/ceill-tests (Files): Likewise.
40619         * modules/chown-tests (Files): Likewise.
40620         * modules/dprintf-posix-tests (Files): Likewise.
40621         * modules/dup2-tests (Files): Likewise.
40622         * modules/dup3-tests (Files): Likewise.
40623         * modules/duplocale-tests (Files): Likewise.
40624         * modules/fchdir-tests (Files): Likewise.
40625         * modules/fcntl-tests (Files): Likewise.
40626         * modules/fdopendir-tests (Files): Likewise.
40627         * modules/fflush-tests (Files): Likewise.
40628         * modules/flock-tests (Files): Likewise.
40629         * modules/floorf-tests (Files): Likewise.
40630         * modules/floorl-tests (Files): Likewise.
40631         * modules/fnmatch-tests (Files): Likewise.
40632         * modules/fopen-tests (Files): Likewise.
40633         * modules/fprintf-posix-tests (Files): Likewise.
40634         * modules/freopen-tests (Files): Likewise.
40635         * modules/frexp-nolibm-tests (Files): Likewise.
40636         * modules/frexp-tests (Files): Likewise.
40637         * modules/frexpl-nolibm-tests (Files): Likewise.
40638         * modules/frexpl-tests (Files): Likewise.
40639         * modules/fseek-tests (Files): Likewise.
40640         * modules/fseeko-tests (Files): Likewise.
40641         * modules/fsync-tests (Files): Likewise.
40642         * modules/ftell-tests (Files): Likewise.
40643         * modules/ftello-tests (Files): Likewise.
40644         * modules/futimens-tests (Files): Likewise.
40645         * modules/getaddrinfo-tests (Files): Likewise.
40646         * modules/getcwd-tests (Files): Likewise.
40647         * modules/getdelim-tests (Files): Likewise.
40648         * modules/getdtablesize-tests (Files): Likewise.
40649         * modules/getgroups-tests (Files): Likewise.
40650         * modules/gethostname-tests (Files): Likewise.
40651         * modules/getline-tests (Files): Likewise.
40652         * modules/getopt-posix-tests (Files): Likewise.
40653         * modules/gettimeofday-tests (Files): Likewise.
40654         * modules/glob-tests (Files): Likewise.
40655         * modules/iconv-tests (Files): Likewise.
40656         * modules/inet_ntop-tests (Files): Likewise.
40657         * modules/inet_pton-tests (Files): Likewise.
40658         * modules/isblank-tests (Files): Likewise.
40659         * modules/lchown-tests (Files): Likewise.
40660         * modules/ldexpl-tests (Files): Likewise.
40661         * modules/link-tests (Files): Likewise.
40662         * modules/linkat-tests (Files): Likewise.
40663         * modules/lseek-tests (Files): Likewise.
40664         * modules/lstat-tests (Files): Likewise.
40665         * modules/mbrtowc-tests (Files): Likewise.
40666         * modules/mbsinit-tests (Files): Likewise.
40667         * modules/mbsnrtowcs-tests (Files): Likewise.
40668         * modules/mbsrtowcs-tests (Files): Likewise.
40669         * modules/memchr-tests (Files): Likewise.
40670         * modules/memcmp-tests (Files): Likewise.
40671         * modules/memmem-tests (Files): Likewise.
40672         * modules/memrchr-tests (Files): Likewise.
40673         * modules/mkdir-tests (Files): Likewise.
40674         * modules/mkfifo-tests (Files): Likewise.
40675         * modules/mkfifoat-tests (Files): Likewise.
40676         * modules/mknod-tests (Files): Likewise.
40677         * modules/nanosleep-tests (Files): Likewise.
40678         * modules/nl_langinfo-tests (Files): Likewise.
40679         * modules/obstack-printf-tests (Files): Likewise.
40680         * modules/open-tests (Files): Likewise.
40681         * modules/openat-tests (Files): Likewise.
40682         * modules/perror-tests (Files): Likewise.
40683         * modules/pipe2-tests (Files): Likewise.
40684         * modules/poll-tests (Files): Likewise.
40685         * modules/popen-tests (Files): Likewise.
40686         * modules/posix_spawn-tests (Files): Likewise.
40687         * modules/posix_spawnp-tests (Files): Likewise.
40688         * modules/pread-tests (Files): Likewise.
40689         * modules/printf-posix-tests (Files): Likewise.
40690         * modules/pty-tests (Files): Likewise.
40691         * modules/random_r-tests (Files): Likewise.
40692         * modules/rawmemchr-tests (Files): Likewise.
40693         * modules/readlink-tests (Files): Likewise.
40694         * modules/remove-tests (Files): Likewise.
40695         * modules/rename-tests (Files): Likewise.
40696         * modules/renameat-tests (Files): Likewise.
40697         * modules/rmdir-tests (Files): Likewise.
40698         * modules/round-tests (Files): Likewise.
40699         * modules/roundf-tests (Files): Likewise.
40700         * modules/roundl-tests (Files): Likewise.
40701         * modules/select-tests (Files): Likewise.
40702         * modules/setenv-tests (Files): Likewise.
40703         * modules/sigaction-tests (Files): Likewise.
40704         * modules/sleep-tests (Files): Likewise.
40705         * modules/snprintf-posix-tests (Files): Likewise.
40706         * modules/snprintf-tests (Files): Likewise.
40707         * modules/sprintf-posix-tests (Files): Likewise.
40708         * modules/stat-tests (Files): Likewise.
40709         * modules/strcasestr-tests (Files): Likewise.
40710         * modules/strchrnul-tests (Files): Likewise.
40711         * modules/strerror-tests (Files): Likewise.
40712         * modules/strsignal-tests (Files): Likewise.
40713         * modules/strstr-tests (Files): Likewise.
40714         * modules/strtod-tests (Files): Likewise.
40715         * modules/strverscmp-tests (Files): Likewise.
40716         * modules/symlink-tests (Files): Likewise.
40717         * modules/symlinkat-tests (Files): Likewise.
40718         * modules/times-tests (Files): Likewise.
40719         * modules/trunc-tests (Files): Likewise.
40720         * modules/truncf-tests (Files): Likewise.
40721         * modules/truncl-tests (Files): Likewise.
40722         * modules/tsearch-tests (Files): Likewise.
40723         * modules/uname-tests (Files): Likewise.
40724         * modules/unlink-tests (Files): Likewise.
40725         * modules/unsetenv-tests (Files): Likewise.
40726         * modules/usleep-tests (Files): Likewise.
40727         * modules/utimensat-tests (Files): Likewise.
40728         * modules/vasprintf-tests (Files): Likewise.
40729         * modules/vdprintf-posix-tests (Files): Likewise.
40730         * modules/vfprintf-posix-tests (Files): Likewise.
40731         * modules/vprintf-posix-tests (Files): Likewise.
40732         * modules/vsnprintf-posix-tests (Files): Likewise.
40733         * modules/vsnprintf-tests (Files): Likewise.
40734         * modules/vsprintf-posix-tests (Files): Likewise.
40735         * modules/wcrtomb-tests (Files): Likewise.
40736         * modules/wcsnrtombs-tests (Files): Likewise.
40737         * modules/wcsrtombs-tests (Files): Likewise.
40738         * modules/wcwidth-tests (Files): Likewise.
40739         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
40740         * tests/test-isinf.c (isinf): Likewise.
40741         * tests/test-isnan.c (isnan): Likewise.
40742         * tests/test-signbit.c (signbit): Likewise.
40743         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
40744         declaration, either as macro or with correct signature.
40745         (select): Ensure function under test is declared with correct
40746         signature in correct header.
40747         * tests/test-atexit.c (atexit): Likewise.
40748         * tests/test-btowc.c (btowc): Likewise.
40749         * tests/test-canonicalize-lgpl.c (realpath)
40750         (canonicalize_file_name): Likewise.
40751         * tests/test-ceilf1.c (ceilf): Likewise.
40752         * tests/test-ceill.c (ceill): Likewise.
40753         * tests/test-chown.c (chown): Likewise.
40754         * tests/test-dprintf-posix.c (dprintf): Likewise.
40755         * tests/test-dup2.c (dup2): Likewise.
40756         * tests/test-dup3.c (dup3): Likewise.
40757         * tests/test-duplocale.c (duplocale): Likewise.
40758         * tests/test-fchdir.c (fchdir): Likewise.
40759         * tests/test-fchownat.c (fchownat): Likewise.
40760         * tests/test-fcntl.c (fcntl): Likewise.
40761         * tests/test-fdopendir.c (fdopendir): Likewise.
40762         * tests/test-fflush.c (fflush): Likewise.
40763         * tests/test-flock.c (flock): Likewise.
40764         * tests/test-floorf1.c (floorf): Likewise.
40765         * tests/test-floorl.c (floorl): Likewise.
40766         * tests/test-fnmatch.c (fnmatch): Likewise.
40767         * tests/test-fopen.c (fopen): Likewise.
40768         * tests/test-fprintf-posix.c (fprintf): Likewise.
40769         * tests/test-freopen.c (freopen): Likewise.
40770         * tests/test-frexp.c (frexp): Likewise.
40771         * tests/test-frexpl.c (frexpl): Likewise.
40772         * tests/test-fseek.c (fseek): Likewise.
40773         * tests/test-fseeko.c (fseeko): Likewise.
40774         * tests/test-fstatat.c (fstatat): Likewise.
40775         * tests/test-fsync.c (fsync): Likewise.
40776         * tests/test-ftell.c (ftell): Likewise.
40777         * tests/test-ftello.c (ftello): Likewise.
40778         * tests/test-futimens.c (futimens): Likewise.
40779         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
40780         (gai_strerror): Likewise.
40781         * tests/test-getcwd.c (getcwd): Likewise.
40782         * tests/test-getdelim.c (getdelim): Likewise.
40783         * tests/test-getdtablesize.c (getdtablesize): Likewise.
40784         * tests/test-getgroups.c (getgroups): Likewise.
40785         * tests/test-gethostname.c (gethostname): Likewise.
40786         * tests/test-getline.c (getline): Likewise.
40787         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
40788         Likewise.
40789         * tests/test-gettimeofday.c (gettimeofday): Likewise.
40790         * tests/test-glob.c (glob, globfree): Likewise.
40791         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
40792         * tests/test-inet_ntop.c (inet_ntop): Likewise.
40793         * tests/test-inet_pton.c (inet_pton): Likewise.
40794         * tests/test-isblank.c (isblank): Likewise.
40795         * tests/test-lchown.c (lchown): Likewise.
40796         * tests/test-ldexpl.c (ldexpl): Likewise.
40797         * tests/test-link.c (link): Likewise.
40798         * tests/test-linkat.c (linkat): Likewise.
40799         * tests/test-lseek.c (lseek): Likewise.
40800         * tests/test-lstat.c (lstat): Likewise.
40801         * tests/test-mbrtowc.c (mbrtowc): Likewise.
40802         * tests/test-mbsinit.c (mbsinit): Likewise.
40803         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
40804         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
40805         * tests/test-memchr.c (memchr): Likewise.
40806         * tests/test-memcmp.c (memcmp): Likewise.
40807         * tests/test-memmem.c (memmem): Likewise.
40808         * tests/test-memrchr.c (memrchr): Likewise.
40809         * tests/test-mkdir.c (mkdir): Likewise.
40810         * tests/test-mkdirat.c (mkdirat): Likewise.
40811         * tests/test-mkfifo.c (mkfifo): Likewise.
40812         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
40813         * tests/test-mknod.c (mknod): Likewise.
40814         * tests/test-nanosleep.c (nanosleep): Likewise.
40815         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
40816         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
40817         Likewise.
40818         * tests/test-open.c (open): Likewise.
40819         * tests/test-openat.c (openat): Likewise.
40820         * tests/test-perror.c (perror): Likewise.
40821         * tests/test-pipe2.c (pipe2): Likewise.
40822         * tests/test-poll.c (poll): Likewise.
40823         * tests/test-popen.c (popen, pclose): Likewise.
40824         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
40825         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
40826         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
40827         (posix_spawn_file_actions_destroy)
40828         (posix_spawn_file_actions_addclose)
40829         (posix_spawn_file_actions_addopen)
40830         (posix_spawn_file_actions_adddup2): Likewise.
40831         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
40832         * tests/test-pread.c (pread): Likewise.
40833         * tests/test-printf-posix.c (printf): Likewise.
40834         * tests/test-pty.c (openpty, forkpty): Likewise.
40835         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
40836         (random_r): Likewise.
40837         * tests/test-rawmemchr.c (rawmemchr): Likewise.
40838         * tests/test-readlink.c (readlink): Likewise.
40839         * tests/test-remove.c (remove): Likewise.
40840         * tests/test-rename.c (rename): Likewise.
40841         * tests/test-renameat.c (renameat): Likewise.
40842         * tests/test-rmdir.c (rmdir): Likewise.
40843         * tests/test-round1.c (round): Likewise.
40844         * tests/test-roundf1.c (roundf): Likewise.
40845         * tests/test-roundl.c (roundl): Likewise.
40846         * tests/test-setenv.c (setenv): Likewise.
40847         * tests/test-sigaction.c (sigaction): Likewise.
40848         * tests/test-sleep.c (sleep): Likewise.
40849         * tests/test-snprintf.c (snprintf): Likewise.
40850         * tests/test-sprintf-posix.c (sprintf): Likewise.
40851         * tests/test-stat.c (stat): Likewise.
40852         * tests/test-stpncpy.c (stpncpy): Likewise.
40853         * tests/test-strcasestr.c (strcasestr): Likewise.
40854         * tests/test-strchrnul.c (strchrnul): Likewise.
40855         * tests/test-strerror.c (strerror): Likewise.
40856         * tests/test-strsignal.c (strsignal): Likewise.
40857         * tests/test-strstr.c (strstr): Likewise.
40858         * tests/test-strtod.c (strtod): Likewise.
40859         * tests/test-strverscmp.c (strverscmp): Likewise.
40860         * tests/test-symlink.c (symlink): Likewise.
40861         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
40862         * tests/test-times.c (times): Likewise.
40863         * tests/test-trunc1.c (trunc): Likewise.
40864         * tests/test-truncf1.c (truncf): Likewise.
40865         * tests/test-truncl.c (truncl): Likewise.
40866         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
40867         Likewise.
40868         * tests/test-uname.c (uname): Likewise.
40869         * tests/test-unlink.c (unlink): Likewise.
40870         * tests/test-unlinkat.c (unlinkat): Likewise.
40871         * tests/test-unsetenv.c (unsetenv): Likewise.
40872         * tests/test-usleep.c (usleep): Likewise.
40873         * tests/test-utimensat.c (utimensat): Likewise.
40874         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
40875         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
40876         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
40877         * tests/test-vprintf-posix.c (vprintf): Likewise.
40878         * tests/test-vsnprintf.c (vsnprintf): Likewise.
40879         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
40880         * tests/test-wcrtomb.c (wcrtomb): Likewise.
40881         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
40882         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
40883         * tests/test-wcwidth.c (wcwidth): Likewise.
40884
40885         build: pull in conditional headers during GNULIB_POSIXCHECK
40886         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
40887         definitions from any conditionally-included headers.
40888         * lib/stdlib.in.h (includes): Likewise.
40889         * lib/unistd.in.h (includes): Likewise.
40890
40891 2009-12-24  Bruno Haible  <bruno@clisp.org>
40892
40893         * tests/test-argv-iter.c: Include header file being tested immediately
40894         after config.h.
40895         * tests/test-base64.c: Likewise.
40896         * tests/test-flock.c: Likewise.
40897         * tests/test-fsync.c: Likewise.
40898         * tests/test-getdate.c: Likewise.
40899         * tests/test-getndelim2.c: Likewise.
40900         * tests/test-isfinite.c: Likewise.
40901         * tests/test-isinf.c: Likewise.
40902         * tests/test-strerror.c: Likewise.
40903         * tests/test-strsignal.c: Likewise.
40904
40905 2009-12-23  Eric Blake  <ebb9@byu.net>
40906
40907         unistd: work around cygwin bug
40908         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
40909         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
40910         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
40911
40912 2009-12-23  Bruno Haible  <bruno@clisp.org>
40913
40914         localename: More tests.
40915         * tests/test-localename.c (SIZEOF): New macro.
40916         (categories): New variable.
40917         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
40918         test_locale_name_default): Add test w.r.t. thread locale.
40919         (test_locale_name_thread): New function.
40920         (main): Invoke it.
40921
40922         localename: Make aware of thread locale.
40923         * lib/localename.h (gl_locale_name_thread): New declaration.
40924         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
40925         behaviour with respect to thread locale.
40926         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
40927         <langinfo.h>, glthread/lock.h.
40928         (SIZE_BITS): New macro.
40929         (string_hash): New function.
40930         (struct hash_node): New type.
40931         (HASH_TABLE_SIZE): New macro.
40932         (struniq_hash_table, struniq_lock): New variables.
40933         (struniq): New function.
40934         (gl_locale_name_thread): New function.
40935         (gl_locale_name): Invoke it.
40936         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
40937         * modules/localename (Depends-on): Add lock.
40938         Reported by Mike Gran <spk121@yahoo.com>.
40939
40940 2009-12-23  Eric Blake  <ebb9@byu.net>
40941
40942         va-args: new module
40943         * modules/va-args: New file.
40944         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
40945         * MODULES.html.sh (Core language properties): Mention it.
40946
40947         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
40948         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
40949         named alias for __attribute__((__unused__)).
40950         * lib/chown.c: Update client.
40951         * lib/fchmodat.c: Likewise.
40952         * lib/fts.c: Likewise.
40953         * lib/getdate.y: Likewise.
40954         * lib/getgroups.c: Likewise.
40955         * lib/getopt.c: Likewise.
40956         * lib/getugroups.c: Likewise.
40957         * lib/mkdir.c: Likewise.
40958         * lib/mkfifo.c: Likewise.
40959         * lib/mkfifoat.c: Likewise.
40960         * lib/mknod.c: Likewise.
40961         * lib/mknodat.c: Likewise.
40962         * lib/readlink.c: Likewise.
40963         * lib/se-context.in.h: Likewise.
40964         * lib/se-selinux.in.h: Likewise.
40965         * lib/sockets.c: Likewise.
40966         * lib/symlink.c: Likewise.
40967         * lib/symlinkat.c: Likewise.
40968         * lib/unicodeio.c: Likewise.
40969         * lib/unistr.h: Likewise.
40970         * tests/test-areadlink.c: Likewise.
40971         * tests/test-areadlinkat.c: Likewise.
40972         * tests/test-filenamecat.c: Likewise.
40973         * tests/test-fseeko.c: Likewise.
40974         * tests/test-ftello.c: Likewise.
40975         * tests/test-getdate.c: Likewise.
40976         * tests/test-getgroups.c: Likewise.
40977         * tests/test-gethostname.c: Likewise.
40978         * tests/test-quotearg.c: Likewise.
40979         * tests/test-version-etc.c: Likewise.
40980         * tests/test-xalloc-die.c: Likewise.
40981         * tests/test-xfprintf-posix.c: Likewise.
40982         * tests/test-xprintf-posix.c: Likewise.
40983         * tests/test-xvasprintf.c: Likewise.
40984
40985         tests: avoid compiler warnings
40986         * tests/test-fcntl.c (main): Delete unused parameters.
40987         * tests/test-freopen-safer.c (main): Likewise.
40988         * tests/test-xalloc-die.c (main): Mark unused parameters.
40989         * tests/test-fseeko.c (main): Likewise.
40990         * tests/test-ftello.c (main): Likewise.
40991         * tests/test-nanosleep.c (main): Avoid declaration warning.
40992         * tests/test-sleep.c (main): Likewise.
40993         * tests/test-unsetenv.c (main): Silence warning about string
40994         literal.
40995         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
40996
40997 2009-12-23  Bruno Haible  <bruno@clisp.org>
40998
40999         * tests/test-localename.c (test_locale_name): New function, extracted
41000         from main. Also test mixed situations.
41001         (test_locale_name_posix, test_locale_name_environ,
41002         test_locale_name_default): New functions.
41003         (main): Invoke them all.
41004         * modules/localename-tests (configure.ac): Test for newlocale.
41005
41006 2009-12-23  Bruno Haible  <bruno@clisp.org>
41007
41008         unistd: Ensure getcwd gets declared before being overridden.
41009         * lib/unistd.in.h: Conditionally include <io.h>.
41010
41011 2009-12-22  Bruno Haible  <bruno@clisp.org>
41012
41013         wchar: Diagnose broken combination of glibc and gcc versions and flags.
41014         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
41015         (gl_WCHAR_H): Invoke it.
41016         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
41017         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
41018         Reported by Karl Berry <karl@freefriends.org>.
41019
41020 2009-12-22  Eric Blake  <ebb9@byu.net>
41021
41022         math, unistd: avoid redundant includes
41023         * lib/math.in.h (isnan): No need to re-include <math.h>.
41024         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
41025
41026         getsubopt: work around cygwin bug
41027         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
41028         avoid conflicting with system getsubopt.
41029         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
41030         bug.
41031
41032         getopt: synchronize from glibc
41033         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
41034         parameter order.  Adjust all callers.
41035         (_getopt_internal_r, main): Adjust quoting in error messages.
41036         Drop considerations for outdated POSIX 1003.2 error message.
41037         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
41038         callers.
41039         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
41040
41041         test-getopt: test stderr behavior
41042         * modules/getopt-posix-tests (Depends-on): Add dup2.
41043         * tests/test-getopt.c (ASSERT): Avoid stderr.
41044         (main): Move stderr to a temporary file.
41045         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
41046         Instead, add parameter to inform caller if output occurred.
41047         (test_getopt): Adjust all existing tests to expect silence, and
41048         add new tests of leading ":".
41049         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
41050         glibc shortcomings with leading "-:" or "+:" in optstring.
41051         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
41052         Likewise.
41053         * doc/posix-functions/getopt.texi (getopt): Likewise.
41054
41055         test-getopt: enhance test
41056         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
41057         supports optind=0.
41058         * tests/test-getopt.c (OPTIND_MIN): Move...
41059         * tests/test-getopt.h (OPTIND_MIN): ...here.
41060         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
41061         Require that optind=0 works, since modern BSD supports it in
41062         addition to optreset, and since coreutils expects it.
41063         (test_getopt_long_only): New test.
41064         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
41065         glibc shortcomings with 'W;', and enforcement of optind=0.
41066         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
41067         Likewise.
41068
41069 2009-12-21  Bruno Haible  <bruno@clisp.org>
41070
41071         localename: Improvements for MacOS X and Cygwin.
41072         * lib/localename.h (gl_locale_name_environ): New declaration.
41073         * lib/localename.c (gl_locale_name_environ): New function, extracted from
41074         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
41075         (gl_locale_name_posix): Invoke it.
41076         (gl_locale_name_default): Add comments. Use Windows native API also on
41077         Cygwin.
41078
41079 2009-12-21  Bruno Haible  <bruno@clisp.org>
41080
41081         Update list of Win32 locale ids.
41082         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
41083         (LANG_SAMI): Renamed from LANG_SAAMI.
41084         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
41085         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
41086         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
41087         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
41088         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
41089         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
41090         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
41091         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
41092         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
41093         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
41094         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
41095         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
41096         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
41097         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
41098         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
41099         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
41100         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
41101         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
41102         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
41103         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
41104         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
41105         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
41106         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
41107         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
41108         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
41109         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
41110         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
41111         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
41112         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
41113         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
41114         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
41115         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
41116         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
41117         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
41118         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
41119         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
41120         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
41121         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
41122         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
41123         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
41124         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
41125         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
41126         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
41127         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
41128         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
41129         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
41130         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
41131         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
41132         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
41133         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
41134         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
41135         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
41136         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
41137         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
41138         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
41139         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
41140         Add more languages and countries for Sami, Sorbian. Add more countries
41141         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
41142         for Pashto. Change country for Syriac, Tswana.
41143
41144 2009-12-21  Eric Blake  <ebb9@byu.net>
41145
41146         test-utimens: avoid spurious failure
41147         * tests/test-chown.h (nap): Factor...
41148         * tests/nap.h: ...into new file.
41149         * tests/test-lchown.h (nap): Avoid duplication.
41150         * tests/test-utimens-common.h (nap): Use shared implementation,
41151         necessary on file systems with 1-second resolution.
41152         * modules/chown-tests (Files): Include new file.
41153         * modules/fdutimensat-tests (Files): Likewise.
41154         * modules/futimens-tests (Files): Likewise.
41155         * modules/lchown-tests (Files): Likewise.
41156         * modules/openat-tests (Files): Likewise.
41157         * modules/utimens-tests (Files): Likewise.
41158         * modules/utimensat-tests (Files): Likewise.
41159
41160 2009-12-19  Eric Blake  <ebb9@byu.net>
41161
41162         futimens, utimensat: work around Linux bug
41163         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
41164         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
41165         * lib/utimensat.c (rpl_utimensat): Work around it.
41166         * lib/futimens.c (rpl_futimens): Adjust comment.
41167
41168         utimens: work around Linux ctime bug
41169         * lib/utimens.c (detect_ctime_bug): New helper function.
41170         (update_timespec): Differentiate between workaround needed for
41171         this bug vs. what is needed for systems that lack utimensat.
41172         (fdutimens, lutimens): Work around bug.
41173
41174         utimens: check for ctime update
41175         * tests/test-utimens-common.h (check_ctime): Define.
41176         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
41177         * tests/test-futimens.h (test_futimens): Likewise.
41178         * tests/test-lutimens.h (test_lutimens): Likewise.
41179         * doc/posix-functions/futimens.texi (futimens): Document the bug.
41180         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
41181
41182 2009-12-19  Bruno Haible  <bruno@clisp.org>
41183
41184         dprintf-posix: Check against memory leak fixed on 2009-12-15.
41185         * tests/test-dprintf-posix2.sh: New file.
41186         * tests/test-dprintf-posix2.c: New file.
41187         * modules/dprintf-posix-tests (Files): Add them.
41188         (configure.ac): Check for getrlimit and setrlimit.
41189         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
41190
41191 2009-12-19  Bruno Haible  <bruno@clisp.org>
41192
41193         fprintf-posix: Check against memory leak fixed on 2009-12-15.
41194         * tests/test-fprintf-posix3.sh: New file.
41195         * tests/test-fprintf-posix3.c: New file.
41196         * modules/fprintf-posix-tests (Files): Add them.
41197         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
41198
41199 2009-12-19  Eric Blake  <ebb9@byu.net>
41200
41201         dirfd: fix prototype
41202         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
41203         * lib/dirfd.c (dirfd): Likewise.
41204
41205         canonicalize: reduce memory usage
41206         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
41207         allocation to size.
41208         Reported by Solar Designer <solar@openwall.com>.
41209
41210 2009-12-19  Bruno Haible  <bruno@clisp.org>
41211
41212         New module attribute 'Applicability'.
41213         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
41214         * gnulib-tool: New option --extract-applicability.
41215         (func_usage): Document it.
41216         (sed_extract_prog): Recognize it.
41217         (func_get_applicability): New function.
41218         (func_import): Generalize handling of 'link-warning' module.
41219         * modules/link-warning (Applicability): New section.
41220         * modules/arg-nonnull (Applicability): New section.
41221         Repoted by Simon Josefsson <simon@josefsson.org>.
41222
41223 2009-12-19  Bruno Haible  <bruno@clisp.org>
41224
41225         fflush: tweak
41226         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
41227         * lib/fseeko.c (rpl_fseeko): Likewise.
41228
41229 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
41230
41231         * lib/gl_list.h: Fix typo in comment.
41232
41233 2009-12-16  Eric Blake  <ebb9@byu.net>
41234
41235         fcntl: use to simplify other modules
41236         * modules/cloexec (Depends-on): Add fcntl.
41237         * modules/fchdir (Depends-on): Likewise.
41238         * modules/fd-safer-flag (Depends-on): Likewise.
41239         * modules/unistd-safer (Depends-on): Likewise.
41240         * modules/dup3 (configure.ac): Set module indicator.
41241         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
41242         missing.
41243         * lib/fchdir.c (_gl_register_dup): Fix comment.
41244         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
41245         * lib/dup-safer.c (dup_safer): Likewise.
41246         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
41247         * lib/dup3.c (dup3): Likewise.
41248         * tests/test-fchdir.c (main): Enhance test.
41249         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
41250
41251         fcntl: port portions of fcntl to mingw
41252         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
41253         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
41254         replacement for mingw.
41255         * modules/fcntl (Description): Update.
41256         (Depends-on): Add dup2.
41257         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
41258         * modules/fcntl-h (Makefile.am): Substitute it.
41259         * lib/fcntl.in.h (fcntl): Update declaration.
41260         (F_DUPFD, F_GETFD): New macros, when needed.
41261         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
41262         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
41263         * tests/test-fcntl.c (check_flags, main): Enhance test for items
41264         we now guarantee.
41265
41266         fcntl: work around cygwin bug in F_DUPFD
41267         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
41268         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
41269         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
41270         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
41271         * doc/posix-functions/fcntl.texi (fcntl): Document it.
41272
41273         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
41274         * modules/fcntl (Files): List new files.
41275         (configure.ac): Run a test.
41276         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
41277         * lib/fcntl.c (rpl_fcntl): Likewise.
41278         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
41279         (gl_FCNTL_H): Always replace fcntl.h.
41280         * modules/fcntl-h (Makefile.am): Substitute witnesses.
41281         * lib/fcntl.in.h (fcntl): Declare replacement.
41282         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
41283         needed, plus a witness.
41284         * doc/posix-functions/fcntl.texi (fcntl): Document this.
41285         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
41286         * tests/test-fcntl.c: New file.
41287         * modules/fcntl-tests: Likewise.
41288
41289         binary-io: avoid potential compilation warning
41290         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
41291         directives.
41292
41293         fflush: avoid compilation error on NetBSD
41294         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
41295         between off_t and fpos_t, since the latter is sometimes a struct.
41296         * lib/fseeko.c (rpl_fseeko): Likewise.
41297         Reported by Alexander Nasonov <alnsn@yandex.ru>.
41298
41299 2009-12-15  Eric Blake  <ebb9@byu.net>
41300
41301         fcntl-h, stdio, sys_ioctl: fix declarations
41302         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
41303         function must not take arguments.
41304         * lib/sys_ioctl.in.h (ioctl): Likewise.
41305         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
41306         (open): Add a link warning.
41307
41308 2009-12-15  Jim Meyering  <meyering@redhat.com>
41309
41310         areadlink, areadlink-with-size: relax license to LGPLv2+
41311         * modules/areadlink (License): Relax to LGPLv2+.
41312         * modules/areadlink-with-size (License): Likewise.
41313
41314 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
41315             Bruno Haible  <bruno@clisp.org>
41316
41317         *printf: Fix memory leak.
41318         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
41319         * lib/vfprintf.c (vfprintf): Likewise.
41320         * lib/dprintf.c (dprintf): Likewise.
41321         * lib/vdprintf.c (vdprintf): Likewise.
41322
41323 2009-12-14  Eric Blake  <ebb9@byu.net>
41324
41325         accept4: adjust module dependencies
41326         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
41327
41328         utimens: one more try at avoiding compiler warning
41329         * lib/utimens.c (lutimens): Lower scope of result.
41330
41331 2009-12-13  Bruno Haible  <bruno@clisp.org>
41332
41333         Move the malloc checking from module 'list' to new module 'xlist'.
41334         * modules/xlist: New file.
41335         * lib/gl_xlist.h: New file.
41336         * lib/gl_xlist.c: New file.
41337         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
41338         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
41339         gl_list_add_last, gl_list_add_before, gl_list_add_after,
41340         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
41341         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
41342         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
41343         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
41344         gl_sortedlist_nx_add): New declarations.
41345         (struct gl_list_implementation): Rename and change methods accordingly.
41346         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
41347         (gl_list_nx_create): Renamed from gl_list_create.
41348         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
41349         (gl_list_nx_set_at): Renamed from gl_list_set_at.
41350         (gl_list_nx_add_first): Renamed from gl_list_add_first.
41351         (gl_list_nx_add_last): Renamed from gl_list_add_last.
41352         (gl_list_nx_add_before): Renamed from gl_list_add_before.
41353         (gl_list_nx_add_after): Renamed from gl_list_add_after.
41354         (gl_list_nx_add_at): Renamed from gl_list_add_at.
41355         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
41356         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
41357         gl_list_create_empty.
41358         (gl_list_nx_create): Renamed from gl_list_create.
41359         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
41360         (gl_list_nx_set_at): Renamed from gl_list_set_at.
41361         (gl_list_nx_add_first): Renamed from gl_list_add_first.
41362         (gl_list_nx_add_last): Renamed from gl_list_add_last.
41363         (gl_list_nx_add_before): Renamed from gl_list_add_before.
41364         (gl_list_nx_add_after): Renamed from gl_list_add_after.
41365         (gl_list_nx_add_at): Renamed from gl_list_add_at.
41366         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
41367         * lib/gl_array_list.c: Don't include xalloc.h.
41368         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
41369         NULL upon out-of-memory.
41370         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
41371         out-of-memory.
41372         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
41373         Change return type to 'int'.
41374         (gl_array_nx_set_at): Renamed from gl_array_set_at.
41375         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
41376         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
41377         upon out-of-memory.
41378         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
41379         upon out-of-memory.
41380         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
41381         upon out-of-memory.
41382         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
41383         upon out-of-memory.
41384         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
41385         out-of-memory.
41386         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
41387         Update.
41388         (gl_array_list_implementation): Update.
41389         * lib/gl_carray_list.c: Don't include xalloc.h.
41390         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
41391         Return NULL upon out-of-memory.
41392         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
41393         out-of-memory.
41394         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
41395         Change return type to 'int'.
41396         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
41397         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
41398         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
41399         upon out-of-memory.
41400         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
41401         upon out-of-memory.
41402         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
41403         out-of-memory.
41404         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
41405         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
41406         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
41407         Update.
41408         (gl_carray_list_implementation): Update.
41409         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
41410         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
41411         gl_linked_create_empty. Return NULL upon out-of-memory.
41412         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
41413         out-of-memory.
41414         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
41415         Change return type to 'int'. Return -1 upon out-of-memory.
41416         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
41417         out-of-memory.
41418         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
41419         upon out-of-memory.
41420         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
41421         upon out-of-memory.
41422         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
41423         NULL upon out-of-memory.
41424         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
41425         upon out-of-memory.
41426         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
41427         out-of-memory.
41428         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
41429         Update.
41430         * lib/gl_linked_list.c: Don't include xalloc.h.
41431         (gl_linked_list_implementation): Update.
41432         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
41433         (add_to_bucket): Change return type to 'int'.
41434         (gl_linkedhash_list_implementation): Update.
41435         * lib/gl_anytree_list1.h (free_subtree): New function.
41436         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
41437         gl_tree_create_empty. Return NULL upon out-of-memory.
41438         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
41439         Change return type to 'int'. Return -1 upon out-of-memory.
41440         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
41441         out-of-memory.
41442         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
41443         (gl_tree_remove_node): New function, moved here from
41444         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
41445         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
41446         Update.
41447         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
41448         malloc, not xmalloc. Return NULL upon out-of-memory.
41449         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
41450         out-of-memory.
41451         (gl_tree_remove_node_from_tree): New function, extracted from
41452         gl_tree_remove_node.
41453         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
41454         upon out-of-memory.
41455         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
41456         out-of-memory.
41457         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
41458         upon out-of-memory.
41459         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
41460         upon out-of-memory.
41461         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
41462         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
41463         not xmalloc. Return NULL upon out-of-memory.
41464         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
41465         out-of-memory.
41466         (gl_tree_remove_node_from_tree): New function, extracted from
41467         gl_tree_remove_node.
41468         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
41469         upon out-of-memory.
41470         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
41471         out-of-memory.
41472         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
41473         upon out-of-memory.
41474         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
41475         upon out-of-memory.
41476         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
41477         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
41478         gl_anytree_list1.h before gl_anyavltree_list2.h.
41479         (gl_avltree_list_implementation): Update.
41480         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
41481         gl_anytree_list1.h before gl_anyavltree_list2.h.
41482         (gl_rbtree_list_implementation): Update.
41483         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
41484         Change return type to 'int'. Return -1 upon out-of-memory. Use
41485         __builtin_expect.
41486         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
41487         (gl_avltreehash_list_implementation): Update.
41488         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
41489         (gl_rbtreehash_list_implementation): Update.
41490         * modules/array-list (Depends-on): Remove xalloc.
41491         * modules/carray-list (Depends-on): Likewise.
41492         * modules/linked-list (Depends-on): Likewise.
41493         * modules/linkedhash-list (Depends-on): Likewise.
41494         * modules/avltree-list (Depends-on): Likewise.
41495         * modules/rbtree-list (Depends-on): Likewise.
41496         * modules/avltreehash-list (Depends-on): Likewise.
41497         * modules/rbtreehash-list (Depends-on): Likewise.
41498
41499         * modules/xsublist: New file.
41500         * lib/gl_xsublist.h: New file.
41501         * lib/gl_xsublist.c: New file.
41502         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
41503         (gl_sublist_nx_create): New declaration.
41504         * lib/gl_sublist.c: Don't include xalloc.h.
41505         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
41506         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
41507         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
41508         Change return type to 'int'. Return -1 upon out-of-memory.
41509         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
41510         upon out-of-memory.
41511         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
41512         NULL upon out-of-memory.
41513         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
41514         upon out-of-memory.
41515         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
41516         NULL upon out-of-memory.
41517         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
41518         NULL upon out-of-memory.
41519         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
41520         upon out-of-memory.
41521         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
41522         (gl_sublist_list_implementation): Update.
41523         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
41524         upon out-of-memory.
41525         * modules/sublist (Depends-on): Remove xalloc.
41526
41527         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
41528         * tests/test-carray_list.c: Likewise.
41529         * tests/test-linked_list.c: Likewise.
41530         * tests/test-linkedhash_list.c: Likewise.
41531         * tests/test-avltree_list.c: Likewise.
41532         * tests/test-rbtree_list.c: Likewise.
41533         * tests/test-avltreehash_list.c: Likewise.
41534         * tests/test-rbtreehash_list.c: Likewise.
41535         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
41536         * modules/carray-list-tests (Makefile.am): Likewise.
41537         * modules/linked-list-tests (Makefile.am): Likewise.
41538         * modules/linkedhash-list-tests (Makefile.am): Likewise.
41539         * modules/avltree-list-tests (Makefile.am): Likewise.
41540         * modules/rbtree-list-tests (Makefile.am): Likewise.
41541         * modules/avltreehash-list-tests (Makefile.am): Likewise.
41542         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
41543
41544         * NEWS: Mention the changes.
41545
41546         * lib/clean-temp.c: Include gl_xlist.h.
41547         * modules/clean-temp (Depends-on): Add xlist.
41548
41549         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
41550         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
41551
41552         * tests/test-array_oset.c: Include gl_xlist.h.
41553         * modules/array-oset-tests (Depends-on): Add xlist.
41554
41555         Reported by José E. Marchesi <jemarch@gnu.org>.
41556
41557 2009-12-13  Bruno Haible  <bruno@clisp.org>
41558
41559         Move the malloc checking from module 'oset' to new module 'xoset'.
41560         * modules/xoset: New file.
41561         * lib/gl_xoset.h: New file.
41562         * lib/gl_xoset.c: New file.
41563         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
41564         declarations.
41565         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
41566         (struct gl_oset_implementation): Rename and change methods accordingly.
41567         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
41568         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
41569         'int'. Mark as __warn_unused_result__.
41570         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
41571         gl_oset_create_empty.
41572         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
41573         'int'.
41574         * lib/gl_array_oset.c: Don't include xalloc.h.
41575         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
41576         malloc, not xmalloc.
41577         (grow): Change return type to 'int'. Don't call xalloc_die.
41578         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
41579         to 'int'.
41580         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
41581         'int'.
41582         (gl_array_oset_implementation): Update.
41583         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
41584         gl_tree_create_empty.
41585         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
41586         'int'.
41587         * lib/gl_avltree_oset.c: Don't include xalloc.h.
41588         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
41589         xmalloc.
41590         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
41591         not xmalloc.
41592         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
41593         xmalloc.
41594         (gl_avltree_oset_implementation): Update.
41595         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
41596         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
41597         xmalloc.
41598         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
41599         not xmalloc.
41600         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
41601         xmalloc.
41602         (gl_rbtree_oset_implementation): Update.
41603         * modules/array-oset (Depends-on): Remove xalloc.
41604         * modules/avltree-oset (Depends-on): Likewise.
41605         * modules/rbtree-oset (Depends-on): Likewise.
41606         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
41607         * tests/test-avltree_oset.c: Likewise.
41608         * tests/test-rbtree_oset.c: Likewise.
41609         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
41610         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
41611         * modules/rbtree-oset-tests (Makefile.am): Likewise.
41612         * NEWS: Mention the change.
41613
41614 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
41615
41616         maint.mk: allow a project to override release-prep commands
41617         * top/maint.mk (alpha, beta, stable): Move release-preparatory
41618         commands into a new rule.
41619         (release-prep): New rule.
41620         (release-prep-hook): New overridable variable.
41621
41622 2009-12-13  Bruno Haible  <bruno@clisp.org>
41623
41624         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
41625
41626 2009-12-13  Jim Meyering  <meyering@redhat.com>
41627
41628         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
41629         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
41630
41631 2009-12-12  Bruno Haible  <bruno@clisp.org>
41632
41633         duplocale: Tweak.
41634         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
41635
41636 2009-12-12  Karl Berry  <karl@gnu.org>
41637
41638         * config/srclist.txt (strtoll.c): tab changes, no more sync.
41639
41640 2009-12-12  Bruno Haible  <bruno@clisp.org>
41641
41642         * m4/po.m4: Undo incorrect untabification.
41643
41644 2009-12-12  Bruno Haible  <bruno@clisp.org>
41645
41646         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
41647         * modules/c-strtod (Depends-on): Add locale.
41648         * modules/c-strtold (Depends-on): Likewise.
41649
41650 2009-12-12  Bruno Haible  <bruno@clisp.org>
41651
41652         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
41653
41654 2009-12-11  Eric Blake  <ebb9@byu.net>
41655
41656         setenv: relax requirement in light of POSIX ruling
41657         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
41658         not NULL.
41659         * tests/test-setenv.c (main): Relax test.
41660         * tests/test-unsetenv.c (main): Likewise.
41661         * doc/posix-functions/setenv.texi (setenv): Document this.
41662         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
41663
41664 2009-12-11  Bruno Haible  <bruno@clisp.org>
41665
41666         New module 'fd-safer-flag'.
41667         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
41668         * lib/dup-safer.c (dup_safer_flag): Remove function.
41669         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
41670         * lib/fd-safer.c (fd_safer_flag): Remove function.
41671         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
41672         * modules/cloexec (configure.ac): Drop indicator macro.
41673         * modules/fd-safer-flag: New file.
41674         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
41675         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
41676         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
41677
41678 2009-12-11  Bruno Haible  <bruno@clisp.org>
41679
41680         Tests for module 'nl_langinfo'.
41681         * modules/nl_langinfo-tests: New file.
41682         * tests/test-nl_langinfo.sh: New file.
41683         * tests/test-nl_langinfo.c: New file.
41684
41685         New module 'nl_langinfo'.
41686         * lib/nl_langinfo.c: New file.
41687         * m4/nl_langinfo.m4: New file.
41688         * modules/nl_langinfo: New file.
41689         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
41690
41691 2009-12-11  Bruno Haible  <bruno@clisp.org>
41692
41693         Tests for module 'langinfo'.
41694         * modules/langinfo-tests: New file.
41695         * tests/test-langinfo.c: New file.
41696
41697         New module 'langinfo'.
41698         * lib/langinfo.in.h: New file.
41699         * m4/langinfo_h.m4: New file.
41700         * modules/langinfo: New file.
41701         * doc/posix-headers/langinfo.texi: Mention the new module.
41702
41703 2009-12-11  Bruno Haible  <bruno@clisp.org>
41704
41705         * lib/config.charset: Untabify.
41706
41707 2009-12-11  Bruno Haible  <bruno@clisp.org>
41708
41709         * modules/unistd-safer (configure.ac): Drop indicator macro.
41710
41711 2009-12-11  Bruno Haible  <bruno@clisp.org>
41712
41713         Move pipe2-safer code to its own file.
41714         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
41715         * lib/pipe-safer.c (pipe2_safer): Remove function.
41716         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
41717         (Makefile.am): Add it to lib_SOURCES.
41718
41719 2009-12-10  Bruno Haible  <bruno@clisp.org>
41720
41721         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
41722
41723 2009-12-10  Bruno Haible  <bruno@clisp.org>
41724
41725         Declare which arguments expect non-NULL values, for GCC and clang.
41726         * build-aux/arg-nonnull.h: New file.
41727         * modules/arg-nonnull: New file.
41728         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
41729         (inet_ntop, inet_pton): Use it.
41730         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
41731         (closedir, dirfd, opendir, scandir, alphasort): Use it.
41732         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
41733         (open, openat): Use it.
41734         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
41735         (fnmatch): Use it.
41736         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
41737         (getopt, getopt_long, getopt_long_only): Use it.
41738         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
41739         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
41740         Use it.
41741         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
41742         (iconv_open): Use it.
41743         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
41744         (strtoimax, strtoumax): Use it.
41745         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
41746         (duplocale): Use it.
41747         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
41748         (frexp, frexpl): Use it.
41749         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
41750         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
41751         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
41752         (tsearch, tfind, tdelete, twalk): Use it.
41753         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
41754         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
41755         sigpending): Use it.
41756         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
41757         (posix_spawn, posix_spawnp, posix_spawnattr_init,
41758         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
41759         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
41760         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
41761         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
41762         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
41763         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
41764         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
41765         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
41766         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
41767         Use it.
41768         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
41769         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
41770         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
41771         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
41772         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
41773         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
41774         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
41775         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
41776         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
41777         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
41778         strtoull, unsetenv): Use it.
41779         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
41780         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
41781         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
41782         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
41783         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
41784         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
41785         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
41786         (strcasecmp, strncasecmp): Use it.
41787         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
41788         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
41789         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
41790         rpl_setsockopt): Use it.
41791         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
41792         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
41793         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
41794         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
41795         (gettimeofday): Use it.
41796         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
41797         (times): Use it.
41798         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
41799         (uname): Use it.
41800         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
41801         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
41802         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
41803         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
41804         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
41805         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
41806         unlinkat, write): Use it.
41807         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
41808         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
41809         * lib/argv-iter.h: Include arg-nonnull.h.
41810         (_ATTRIBUTE_NONNULL_): Remove macro.
41811         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
41812         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
41813         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
41814         optimization.
41815         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
41816         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
41817         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
41818         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
41819         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
41820         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
41821         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
41822         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
41823         * modules/arpa_inet (Depends-on): Add arg-nonnull.
41824         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
41825         * modules/dirent (Depends-on): Add arg-nonnull.
41826         (Makefile.am): Insert arg-nonnull.h into dirent.h.
41827         * modules/fcntl-h (Depends-on): Add arg-nonnull.
41828         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
41829         * modules/fnmatch (Depends-on): Add arg-nonnull.
41830         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
41831         * modules/getopt-posix (Depends-on): Add arg-nonnull.
41832         (Makefile.am): Insert arg-nonnull.h into getopt.h.
41833         * modules/glob (Depends-on): Add arg-nonnull.
41834         (Makefile.am): Insert arg-nonnull.h into glob.h.
41835         * modules/iconv_open (Depends-on): Add arg-nonnull.
41836         (Makefile.am): Insert arg-nonnull.h into iconv.h.
41837         * modules/inttypes (Depends-on): Add arg-nonnull.
41838         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
41839         * modules/locale (Depends-on): Add arg-nonnull.
41840         (Makefile.am): Insert arg-nonnull.h into locale.h.
41841         * modules/math (Depends-on): Add arg-nonnull.
41842         (Makefile.am): Insert arg-nonnull.h into math.h.
41843         * modules/netdb (Depends-on): Add arg-nonnull.
41844         (Makefile.am): Insert arg-nonnull.h into netdb.h.
41845         * modules/search (Depends-on): Add arg-nonnull.
41846         (Makefile.am): Insert arg-nonnull.h into search.h.
41847         * modules/signal (Depends-on): Add arg-nonnull.
41848         (Makefile.am): Insert arg-nonnull.h into signal.h.
41849         * modules/spawn (Depends-on): Add arg-nonnull.
41850         (Makefile.am): Insert arg-nonnull.h into spawn.h.
41851         * modules/stdio (Depends-on): Add arg-nonnull.
41852         (Makefile.am): Insert arg-nonnull.h into stdio.h.
41853         * modules/stdlib (Depends-on): Add arg-nonnull.
41854         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
41855         * modules/string (Depends-on): Add arg-nonnull.
41856         (Makefile.am): Insert arg-nonnull.h into string.h.
41857         * modules/strings (Depends-on): Add arg-nonnull.
41858         (Makefile.am): Insert arg-nonnull.h into strings.h.
41859         * modules/sys_socket (Depends-on): Add arg-nonnull.
41860         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
41861         * modules/sys_stat (Depends-on): Add arg-nonnull.
41862         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
41863         * modules/sys_time (Depends-on): Add arg-nonnull.
41864         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
41865         * modules/sys_times (Depends-on): Add arg-nonnull.
41866         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
41867         * modules/sys_utsname (Depends-on): Add arg-nonnull.
41868         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
41869         * modules/time (Depends-on): Add arg-nonnull.
41870         (Makefile.am): Insert arg-nonnull.h into time.h.
41871         * modules/unistd (Depends-on): Add arg-nonnull.
41872         (Makefile.am): Insert arg-nonnull.h into unistd.h.
41873         * modules/wchar (Depends-on): Add arg-nonnull.
41874         (Makefile.am): Insert arg-nonnull.h into wchar.h.
41875         * modules/argv-iter (Depends-on): Add arg-nonnull.
41876         * tests/test-canonicalize.c (null_ptr): New function.
41877         (main): Use it.
41878         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
41879         (main): Use it.
41880         * tests/test-memmem.c (null_ptr): New function.
41881         (main): Use it.
41882         Reported by Jim Meyering.
41883
41884 2009-12-10  Bruno Haible  <bruno@clisp.org>
41885
41886         Use spaces for indentation, not tabs.
41887         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
41888         * m4/*.m4: Untabify.
41889         * build-aux/*.h: Untabify.
41890         * tests/**/*.[hc]: Untabify.
41891         * README: New section "Indent with spaces, not TABs", based on
41892         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
41893         * NEWS: Mention the change.
41894
41895 2009-12-10  Bruno Haible  <bruno@clisp.org>
41896
41897         pty test: Fix link error.
41898         * modules/pty-tests (Makefile.am): Add the default LDADD value to
41899         test_pty_LDADD.
41900
41901 2009-12-07  Simon Josefsson  <simon@josefsson.org>
41902
41903         * modules/pty: New file.
41904         * modules/pty-tests: New file.
41905         * m4/pty.m4: New file.
41906         * tests/test-pty.c: New file.
41907         * doc/glibc-headers/pty.texi: Modified.
41908         * doc/glibc-functions/forkpty.texi: Modified.
41909         * doc/glibc-functions/openpty.texi: Modified.
41910
41911 2009-12-10  Bruno Haible  <bruno@clisp.org>
41912
41913         Avoid syntax error in C++ mode.
41914         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
41915
41916 2009-12-10  Bruno Haible  <bruno@clisp.org>
41917
41918         Use sed with option -e.
41919         * gnulib-tool (func_version, func_emit_copyright_notice,
41920         func_emit_initmacro_end, func_import, func_create_testdir): Pass
41921         option -e to sed.
41922         * modules/link-warning (Makefile.am): Likewise.
41923
41924 2009-12-10  Jim Meyering  <meyering@redhat.com>
41925
41926         mgetgroups: do not write bytes beyond end of malloc'd buffer
41927         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
41928         username, we call getgroups with a one-element-shorter buffer,
41929         but still told it the length was original, max_n_groups.
41930
41931 2009-12-09  Eric Blake  <ebb9@byu.net>
41932
41933         cloexec: relax license
41934         * modules/cloexec (Maintainer): Add myself.
41935         (License): Use LGPL, not GPL.
41936
41937         link-warning: optimize generation
41938         * modules/link-warning (Makefile.am): Reduce process usage.
41939
41940 2009-12-09  Bruno Haible  <bruno@clisp.org>
41941
41942         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
41943         workaround was added on 2009-11-17.
41944
41945 2009-12-09  Jim Meyering  <meyering@redhat.com>
41946             Bruno Haible  <bruno@clisp.org>
41947
41948         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
41949         * modules/link-warning (Makefile.am): Make the comment-removing sed
41950         command more robust in the face of bootstrap-prepended comment lines.
41951
41952 2009-12-09  Bruno Haible  <bruno@clisp.org>
41953
41954         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
41955         most one group.
41956
41957 2009-12-09  Simon Josefsson <simon@josefsson.org>
41958             Bruno Haible  <bruno@clisp.org>
41959
41960         * build-aux/link-warning.h: Add copyright notice.
41961         * modules/link-warning (Makefile.am): Generate link-warning.h from
41962         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
41963         * NEWS: Mention change in link-warning module.
41964         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
41965         * modules/dirent (Makefile.am): Add dependency to dirent.h.
41966         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
41967         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
41968         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
41969         * modules/math (Makefile.am): Add dependency to math.h.
41970         * modules/search (Makefile.am): Add dependency to search.h.
41971         * modules/signal (Makefile.am): Add dependency to signal.h.
41972         * modules/spawn (Makefile.am): Add dependency to spawn.h.
41973         * modules/stdio (Makefile.am): Add dependency to stdio.h.
41974         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
41975         * modules/string (Makefile.am): Add dependency to string.h.
41976         * modules/strings (Makefile.am): Add dependency to strings.h.
41977         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
41978         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
41979         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
41980         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
41981         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
41982         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
41983         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
41984         * modules/unistd (Makefile.am): Add dependency to unistd.h.
41985         * modules/wchar (Makefile.am): Add dependency to wchar.h.
41986
41987 2009-12-09  Bruno Haible  <bruno@clisp.org>
41988
41989         fchdir: Optimize away rpl_fstat when possible.
41990         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
41991         REPLACE_OPEN_DIRECTORY.
41992         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
41993
41994 2009-12-09  Bruno Haible  <bruno@clisp.org>
41995
41996         * lib/fchdir.c: Update comment.
41997
41998 2009-12-09  Bruno Haible  <bruno@clisp.org>
41999
42000         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
42001
42002 2009-12-08  Eric Blake  <ebb9@byu.net>
42003
42004         fchdir: avoid memory leak on re-registration.
42005         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
42006
42007 2009-12-08  Jim Meyering  <meyering@redhat.com>
42008
42009         init.sh: avoid Solaris 10 /bin/sh portability problem
42010         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
42011         sourced script:
42012           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
42013           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
42014           bar
42015         tests/init.sh relied on that, accepting a --set-path=DIR argument,
42016         and two tests used that idiom.
42017         * tests/init.sh: Update suggested usage comments.
42018         (path_prepend_): New function, to be used in place
42019         of the --src-path=DIR option.
42020         (setup_): Move PATH-prepending code into path_prepend_.
42021         * tests/test-pread.sh: Adapt to new usage.
42022         * tests/test-xalloc-die.sh: Likewise.
42023
42024 2009-12-08  Simon Josefsson  <simon@josefsson.org>
42025
42026         * doc/gnulib.texi (Glibc pty.h): Add.
42027         * doc/glibc-functions/forkpty.texi: Add.
42028         * doc/glibc-functions/openpty.texi: Add.
42029         Suggested by Bruno Haible.
42030
42031 2009-12-08  Eric Blake  <ebb9@byu.net>
42032
42033         fchdir: fix logic bugs
42034         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
42035         * tests/test-fchdir.c (main): Enhance test.
42036         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
42037         is in use.
42038
42039         dup2: fix logic bugs
42040         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
42041         REPLACE_DUP2 to decide when rpl_dup2 is needed.
42042         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
42043         exists.
42044         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
42045
42046 2009-12-07  Eric Blake  <ebb9@byu.net>
42047
42048         unlink: fix m4 detection
42049         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
42050
42051         unistd-safer: add unit test
42052         * modules/unistd-safer-tests: New file.
42053         * tests/test-dup-safer.c: Likewise.
42054         * tests/test-cloexec.c (setmode): Avoid compiler warning.
42055         * tests/test-dup2.c (setmode): Likewise.
42056         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
42057
42058         cloexec: preserve text vs. binary across dup_cloexec
42059         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
42060         mode.
42061         * modules/dup2-tests (Depends-on): Add binary-io.
42062         * modules/cloexec-tests (Depends-on): Likewise.
42063         * tests/test-dup2.c (setmode, is_mode): New helpers.
42064         (main): Add tests that translation mode is preserved.
42065         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
42066         Reported by Bruno Haible.
42067
42068         mgetgroups: reduce duplicate listings
42069         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
42070         resulting array.
42071         * tests/test-chown.h (test_chown): Simplify client.
42072         * tests/test-lchown.h (test_lchown): Likewise.
42073
42074 2009-12-06  Bruno Haible  <bruno@clisp.org>
42075
42076         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
42077         value.
42078
42079 2009-12-06  Bruno Haible  <bruno@clisp.org>
42080
42081         * lib/progname.c: Include stdio.h, stdlib.h.
42082         (set_program_name): Reject a NULL argument.
42083
42084 2009-12-05  Eric Blake  <ebb9@byu.net>
42085
42086         pipe2-safer: new module
42087         * modules/pipe2-safer: New file.
42088         * lib/unistd-safer.h (pipe2_safer): New prototype.
42089         * lib/unistd--.h (pipe2): New wrapper.
42090         * lib/pipe-safer.c (pipe2_safer): New function.
42091         * modules/pipe (Depends-on): Add pipe2-safer.
42092         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
42093
42094         stdlib-safer: preserve cloexec flag for mkostemp[s]
42095         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
42096         fd_safer_flag.
42097
42098         unistd-safer: allow preservation of cloexec status via flag
42099         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
42100         prototypes.
42101         * lib/dup-safer.c (dup_safer_flag): New function.
42102         * lib/fd-safer.c (fd_safer_flag): Likewise.
42103         * modules/cloexec (configure.ac): Set witness.
42104
42105         test-dup2: enhance test
42106         * modules/dup2-tests (Depends-on): Add cloexec.
42107         * tests/test-dup2.c (main): Enhance test.
42108
42109         cloexec: add dup_cloexec
42110         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
42111         header and comments.
42112         * lib/cloexec.c (set_cloexec_flag): Add comments.
42113         (dup_cloexec): New function, with mingw implementation borrowed
42114         from...
42115         * lib/w32spawn.h (dup_noinherit): ...here.
42116         * modules/execute (Depends-on): Add cloexec.
42117         * modules/pipe (Depends-on): Likewise.
42118         * modules/cloexec (Depends-on): Add dup2.
42119         * modules/cloexec-tests (Files): New file.
42120         * tests/test-cloexec.c: Likewise.
42121
42122         test-xalloc-die: fix test for mingw
42123         * modules/xalloc-die-tests (Files): Add tests/init.sh.
42124         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
42125         directory and .exe suffix off argv[0] output.
42126
42127         test-fseeko: fix test for mingw
42128         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
42129         than undefining fseek, so test will pass on mingw.
42130
42131 2009-12-05  Bruno Haible  <bruno@clisp.org>
42132
42133         * lib/progname.h (set_program_name): Clarify specification.
42134         * lib/progname.c (set_program_name): Likewise.
42135         Reported by Jim Meyering.
42136
42137 2009-12-05  Jim Meyering  <meyering@redhat.com>
42138
42139         maint.mk: backslash-escape parens in default regexp
42140         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
42141         backslash-escape the literal parentheses.
42142
42143         maint.mk: news-date-check: use grep -E
42144         * top/maint.mk (today): Define a Make variable, not a...
42145         (news-date-check): ...shell variable.
42146         (news-date-regexp): Use the Make variable.
42147         Use grep's -E option.  Change the failing diagnostic to mention
42148         the variable, $(news-date-regexp).
42149
42150 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
42151
42152         maintainer-makefile: allow customization of NEWS entry format
42153         * top/maint.mk (news-date-regexp): New overridable variable.
42154         (news-date-check): Use it.
42155
42156 2009-12-04  Eric Blake  <ebb9@byu.net>
42157
42158         mgetgroups: add xgetgroups, and avoid ENOSYS failures
42159         * lib/mgetgroups.h (xgetgroups): New prototype.
42160         * lib/mgetgroups.c (xgetgroups): New wrapper.
42161         (mgetgroups): Handle ENOSYS.
42162         * modules/mgetgroups (Depends-on): Add realloc.
42163         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
42164
42165         mgetgroups: avoid argument promotion issues with -1
42166         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
42167         for invalid gid_t.
42168         * tests/test-chown.h (getegid, test_chown): Likewise.
42169         * tests/test-lchown.h (getegid, test_lchown): Likewise.
42170
42171 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
42172
42173         exclude: Fix header file problems.
42174         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
42175
42176 2009-12-01  Jim Meyering  <meyering@redhat.com>
42177
42178         fts: fts_open: do not let an empty string cause immediate failure
42179         This is required in support of GNU rm, for which the command
42180         "rm A '' B" must process and remove both A and B, in spite of
42181         the empty string argument.
42182         * lib/fts.c (fts_open): Do not let the presence of an empty string
42183         cause fts_open to fail immediately.  Most fts-using tools must be
42184         able to process all arguments, in order, and can be expected to
42185         diagnose such arguments themselves.
42186
42187 2009-11-30  Eric Blake  <ebb9@byu.net>
42188
42189         utimens: fix compilation error
42190         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
42191         Declare variable at right scope.
42192
42193 2009-11-29  Jim Meyering  <meyering@redhat.com>
42194
42195         bootstrap: handle perl-5.11's changed --version output
42196         * build-aux/bootstrap (get_version): Handle perl separately,
42197         since perl-5.11's --version output is different.
42198
42199 2009-11-28  Jim Meyering  <meyering@redhat.com>
42200
42201         userspec: depend on the inttostr module, too
42202         * modules/userspec (Depends-on): Add inttostr.
42203
42204         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
42205         * lib/userspec.c (parse_with_separator): Do not accept a user ID
42206         number of MAXUID when it evaluates to (uid_t) -1.
42207         Likewise for group ID.  Reported by Matt McCutchen in
42208         <http://savannah.gnu.org/bugs/?28113>
42209
42210         userspec: reformat to use spaces, not TABs
42211         * lib/userspec.c: Expand TABs to spaces.
42212         Add Emacs' "indent-tabs-mode: nil" hint.
42213
42214 2009-11-27  Eric Blake  <ebb9@byu.net>
42215
42216         getopt-gnu: flush out another BSD bug
42217         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
42218         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
42219         flush out BSD bug.
42220         * tests/test-getopt.h (test_getopt): End lists with NULL.
42221         * tests/test-getopt_long.h (test_getopt_long): Likewise.
42222         (test_getopt_long_posix): Enhance test.
42223         * modules/getopt-posix-tests (Depends-on): Add stdbool.
42224         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
42225         getopt-gnu.
42226         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
42227         Likewise.
42228
42229 2009-11-27  Simon Josefsson  <simon@josefsson.org>
42230
42231         * modules/idpriv-droptemp-tests (Notice): Fix text.
42232
42233 2009-11-27  Jim Meyering  <meyering@redhat.com>
42234
42235         test-xalloc-die: avoid spurious failure due to libtool argv difference
42236         In a libtool-enabled project, this test would fail due to a difference
42237         in the emitted program name, e.g.,
42238         -test-xalloc-die: memory exhausted
42239         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
42240         Use program to avoid that.
42241         * modules/xalloc-die-tests (Depends-on): Add progname.
42242         * tests/test-xalloc-die.c: Include progname.h".
42243         (program_name): Remove decl.
42244         (main): Call set_program_name.
42245         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
42246
42247 2009-11-26  Richard Jones  <rjones@redhat.com>
42248
42249         w32sock: leave win32 error in place.
42250         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
42251
42252 2009-11-26  Eric Blake  <ebb9@byu.net>
42253
42254         init.sh: suggest to use skip_ and fail_ functions in comments
42255         * tests/init.sh: Add a sentence.
42256
42257 2009-11-25  Bruno Haible  <bruno@clisp.org>
42258
42259         init.sh: add documentation in comments
42260         * tests/init.sh: Add some developer and user documentation.
42261
42262 2009-11-26  Jim Meyering  <meyering@redhat.com>
42263
42264         init.sh: accommodate even those who specify bogus srcdir manually
42265         * tests/init.sh: Normally, srcdir is guaranteed by automake and
42266         configure-time tests to be sanitized, so that there is no need to
42267         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
42268         (with no double quotes) suffices.  However, since tests may be
42269         invoked manually, and since you may explicitly set srcdir to the
42270         name of a directory containing spaces, do quote its uses here.
42271         * tests/test-pread.sh: Likewise.
42272         Suggested by Bruno Haible.
42273
42274         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
42275         * tests/test-pread.sh: Write no data into the pipe, because
42276         test-pread actually reads none.  This avoids a diagnostic,
42277         "bash: echo: write error: Broken pipe", that arises in the unusual
42278         event something is ignoring SIGPIPE, and might be interpreted
42279         as some sort of failure.  Reported by Bruno Haible.
42280
42281 2009-11-25  Jim Meyering  <meyering@redhat.com>
42282
42283         test-pread: cover failure with ESPIPE and EINVAL
42284         * tests/test-pread.c (main): Test for failure, too.
42285         * tests/test-pread.sh: Invoke with stdin on a pipe.
42286         Suggested by Eric Blake.
42287
42288         pread: improvement and fix
42289         * modules/pread (Depends-on): Depend on lseek, for portability to
42290         e.g., mingw.  Suggested by Eric Blake.
42291         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
42292
42293         unistd.in.h: correct declaration of pread
42294         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
42295         Reported by Richard W.M. Jones.
42296
42297         test-pread.sh: distribute the test script
42298         * modules/pread-tests (Files): Include test-pread.sh.
42299
42300         test-pread.sh: clean up
42301         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
42302         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
42303         That is unnecessary, since it's always ".".
42304         Suggestion from Eric Blake.
42305
42306         test-pread.sh: make executable
42307         * tests/test-pread.sh: Set executable bit.
42308         Reported by Eric Blake.
42309
42310         correct typo in test-pread.sh
42311         * tests/test-pread.sh: Add #! line.
42312
42313         test pread
42314         * tests/test-pread.c: New file.
42315         * tests/test-pread.sh: Likewise.
42316         * modules/pread-tests: Likewise.
42317
42318         pread: new module
42319         * modules/pread: New file.
42320         * lib/unistd.in.h (pread): Define/declare.
42321         * lib/pread.c (pread): New file.
42322         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
42323         * modules/unistd (Makefile.am): Substitute witnesses.
42324         * doc/posix-functions/pread.texi (pread): Update.
42325         * MODULES.html.sh: Add pread.
42326
42327 2009-11-25  Jim Meyering  <meyering@redhat.com>
42328
42329         tests/init.sh: new file to be used via most *.sh tests
42330         * tests/init.sh: New file.
42331
42332 2009-11-25  Eric Blake  <ebb9@byu.net>
42333
42334         utimens: work around older Linux failure with symlinks
42335         * lib/utimens.c (lutimensat_works_really): New variable.
42336         (fdutimens, lutimens): Use it to manage kernels that support
42337         nanosecond times on files, but not on symlinks.
42338         Reported by OndÅ™ej Vašík.
42339
42340         utimes: fix configure grammar
42341         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
42342
42343 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
42344
42345         regex: Fix fastmap for multibyte character ranges.
42346         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
42347         characters when a multibyte character range is included.
42348
42349 2009-11-22  Andy Wingo  <wingo@pobox.com>
42350
42351         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
42352         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
42353
42354 2009-11-24  Bruno Haible  <bruno@clisp.org>
42355
42356         doc: Most *_l functions exist in MacOS X 10.5.
42357         * doc/posix-functions/duplocale.texi: Update platforms list.
42358         * doc/posix-functions/freelocale.texi: Likewise.
42359         * doc/posix-functions/newlocale.texi: Likewise.
42360         * doc/posix-functions/uselocale.texi: Likewise.
42361         * doc/posix-functions/isalnum_l.texi: Likewise.
42362         * doc/posix-functions/isalpha_l.texi: Likewise.
42363         * doc/posix-functions/isblank_l.texi: Likewise.
42364         * doc/posix-functions/iscntrl_l.texi: Likewise.
42365         * doc/posix-functions/isdigit_l.texi: Likewise.
42366         * doc/posix-functions/isgraph_l.texi: Likewise.
42367         * doc/posix-functions/islower_l.texi: Likewise.
42368         * doc/posix-functions/isprint_l.texi: Likewise.
42369         * doc/posix-functions/ispunct_l.texi: Likewise.
42370         * doc/posix-functions/isspace_l.texi: Likewise.
42371         * doc/posix-functions/isupper_l.texi: Likewise.
42372         * doc/posix-functions/iswalnum_l.texi: Likewise.
42373         * doc/posix-functions/iswalpha_l.texi: Likewise.
42374         * doc/posix-functions/iswblank_l.texi: Likewise.
42375         * doc/posix-functions/iswcntrl_l.texi: Likewise.
42376         * doc/posix-functions/iswctype_l.texi: Likewise.
42377         * doc/posix-functions/iswdigit_l.texi: Likewise.
42378         * doc/posix-functions/iswgraph_l.texi: Likewise.
42379         * doc/posix-functions/iswlower_l.texi: Likewise.
42380         * doc/posix-functions/iswprint_l.texi: Likewise.
42381         * doc/posix-functions/iswpunct_l.texi: Likewise.
42382         * doc/posix-functions/iswspace_l.texi: Likewise.
42383         * doc/posix-functions/iswupper_l.texi: Likewise.
42384         * doc/posix-functions/iswxdigit_l.texi: Likewise.
42385         * doc/posix-functions/isxdigit_l.texi: Likewise.
42386         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
42387         * doc/posix-functions/strcasecmp_l.texi: Likewise.
42388         * doc/posix-functions/strcoll_l.texi: Likewise.
42389         * doc/posix-functions/strfmon_l.texi: Likewise.
42390         * doc/posix-functions/strftime_l.texi: Likewise.
42391         * doc/posix-functions/strncasecmp_l.texi: Likewise.
42392         * doc/posix-functions/strxfrm_l.texi: Likewise.
42393         * doc/posix-functions/tolower_l.texi: Likewise.
42394         * doc/posix-functions/toupper_l.texi: Likewise.
42395         * doc/posix-functions/towctrans_l.texi: Likewise.
42396         * doc/posix-functions/towlower_l.texi: Likewise.
42397         * doc/posix-functions/towupper_l.texi: Likewise.
42398         * doc/posix-functions/wcscoll_l.texi: Likewise.
42399         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
42400         * doc/posix-functions/wctrans_l.texi: Likewise.
42401         * doc/posix-functions/wctype_l.texi: Likewise.
42402         * doc/glibc-functions/strptime_l.texi: Likewise.
42403         * doc/glibc-functions/strtod_l.texi: Likewise.
42404         * doc/glibc-functions/strtof_l.texi: Likewise.
42405         * doc/glibc-functions/strtol_l.texi: Likewise.
42406         * doc/glibc-functions/strtold_l.texi: Likewise.
42407         * doc/glibc-functions/strtoll_l.texi: Likewise.
42408         * doc/glibc-functions/strtoul_l.texi: Likewise.
42409         * doc/glibc-functions/strtoull_l.texi: Likewise.
42410         * doc/glibc-functions/wcsftime_l.texi: Likewise.
42411         * doc/glibc-functions/wcstod_l.texi: Likewise.
42412         * doc/glibc-functions/wcstof_l.texi: Likewise.
42413         * doc/glibc-functions/wcstol_l.texi: Likewise.
42414         * doc/glibc-functions/wcstold_l.texi: Likewise.
42415         * doc/glibc-functions/wcstoll_l.texi: Likewise.
42416         * doc/glibc-functions/wcstoul_l.texi: Likewise.
42417         * doc/glibc-functions/wcstoull_l.texi: Likewise.
42418
42419 2009-11-24  Bruno Haible  <bruno@clisp.org>
42420
42421         duplocale: Fix logic bug.
42422         * lib/duplocale.c: Don't include <langinfo.h>.
42423         (_NL_LOCALE_NAME): Remove macro.
42424         (rpl_duplocale): Use setlocale instead of nl_langinfo.
42425         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
42426
42427 2009-11-23  Jim Meyering  <meyering@redhat.com>
42428
42429         test-update-copyright: don't hard-code /usr/bin/perl
42430         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
42431         perl to print the current year.  Gilles Espinasse reported that
42432         the replaced use of perl was hard-coded as /usr/bin/perl.
42433
42434 2009-11-23  Bruno Haible  <bruno@clisp.org>
42435
42436         duplocale: Add support for glibc 2.3.x.
42437         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
42438
42439 2009-11-22  Bruno Haible  <bruno@clisp.org>
42440
42441         vasnprintf: Tiny optimization.
42442         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
42443         MacOS X.
42444
42445 2009-11-22  Bruno Haible  <bruno@clisp.org>
42446
42447         Tests for module 'duplocale'.
42448         * modules/duplocale-tests: New file.
42449         * tests/test-duplocale.c: New file.
42450
42451         New module 'duplocale'.
42452         * m4/duplocale.m4: New file.
42453         * lib/locale.in.h (duplocale): New declaration.
42454         * lib/duplocale.c: New file.
42455         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
42456         gl_LOCALE_H_DEFAULTS): New macros.
42457         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
42458         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
42459         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
42460         REPLACE_DUPLOCALE.
42461         * modules/duplocale: New file.
42462         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
42463
42464 2009-11-22  Bruno Haible  <bruno@clisp.org>
42465
42466         * modules/locale-tests (configure.ac): Test for newlocale function.
42467         * tests/test-locale.c: When the system has extended locale functions,
42468         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
42469
42470         locale: Make locale_t available when possible.
42471         * lib/locale.in.h: Include <xlocale.h> when it exists.
42472         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
42473         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
42474         * modules/locale (Depends-on): Add extensions.
42475         (Makefile.am): Also substitute HAVE_XLOCALE_H.
42476         * doc/posix-headers/locale.texi: Document the problem with locale_t.
42477
42478 2009-11-22  Bruno Haible  <bruno@clisp.org>
42479
42480         Add comments.
42481         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
42482         invocation.
42483         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
42484         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
42485         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
42486
42487 2009-11-22  Bruno Haible  <bruno@clisp.org>
42488
42489         error: account for the possibility of freopen (stdout).
42490         * lib/error.c: Include <unistd.h>.
42491         (flush_stdout): New function, extracted from error and error_at_line.
42492         Determine stdout's fd dynamically.
42493         (error, error_at_line): Invoke flush_stdout.
42494         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
42495         * modules/error (Depends-on): Add unistd.
42496
42497 2009-11-22  Bruno Haible  <bruno@clisp.org>
42498
42499         diffseq: Add comment.
42500         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
42501
42502 2009-11-22  Jim Meyering  <meyering@redhat.com>
42503
42504         c-stack: avoid defining an unused static function
42505         * lib/c-stack.c (find_stack_direction): Do not define this function
42506         when it will not be used.
42507
42508         diffseq: avoid spurious gcc warnings
42509         * lib/diffseq.h (IF_LINT2): Define.
42510         (compareseq): Use it to initialize two members of "part".
42511         This avoids two used-uninitialized warnings.
42512
42513 2009-11-21  Jim Meyering  <meyering@redhat.com>
42514
42515         c-stack: avoid "ignoring return value of `write'" warning
42516         * lib/c-stack.c: Include "ignore-value.h".
42517         (die): Explicitly ignore each write return value.
42518         * modules/c-stack (Depends-on): Add ignore-value.
42519
42520 2009-11-21  Bruno Haible  <bruno@clisp.org>
42521
42522         diffseq: reduce scope of variable 'best'.
42523         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
42524         variable, earlier used for two different purposes.
42525
42526 2009-11-21  Jim Meyering  <meyering@redhat.com>
42527
42528         diffseq: remove useless assignment to "best"
42529         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
42530         assignment.  At that point "best" is already guaranteed to be zero.
42531
42532 2009-11-20  Eric Blake  <ebb9@byu.net>
42533
42534         build: mention ftp redirector in release announcements
42535         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
42536         values that used to come from cfg.mk; mention FTP redirect URL.
42537         * build-aux/announce-gen: Mention the mirror list.
42538         Suggested by Karl Berry.
42539
42540         nanosleep: improve port to mingw
42541         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
42542         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
42543         LIB_NANOSLEEP, but only when needed.
42544         * modules/select (Link): Document LIBSOCKET.
42545         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
42546         enough.
42547
42548         nanosleep: work around cygwin bug
42549         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
42550         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
42551         bug.
42552         (getnow): Delete, not needed.
42553         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
42554         LIB_CLOCK_GETTIME.
42555         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
42556         clock-time, gettime.
42557         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
42558         bug.
42559         * modules/nanosleep-tests: New test.
42560         * tests/test-nanosleep.c: New file.
42561
42562         sleep: work around cygwin bug
42563         * lib/sleep.c (rpl_sleep): Work around the bug.
42564         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
42565         (gl_PREREQ_SLEEP): Delete unused macro.
42566         * modules/sleep (Depends-on): Add verify.
42567         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
42568         * modules/unistd (Makefile.am): Substitute witness.
42569         * lib/unistd.in.h (sleep): Update prototype.
42570         * doc/posix-functions/sleep.texi (sleep): Document the bug.
42571         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
42572         * modules/sleep-tests (Depends-on): Check for alarm.
42573
42574 2009-11-20  Jim Meyering  <meyering@redhat.com>
42575
42576         maint.mk: improve sc_prohibit_magic_number_exit
42577         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
42578         so it does not match uses like System.exit(1).
42579         Add comments showing how to correct all offenders.
42580
42581 2009-11-19  Eric Blake  <ebb9@byu.net>
42582
42583         xalloc-die-tests: add missing library
42584         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
42585
42586         test-xvasprintf: silence compiler warnings
42587         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
42588         empty string from gcc.
42589
42590 2009-11-19  Jim Meyering  <meyering@redhat.com>
42591
42592         xfreopen: new module, from coreutils
42593         * modules/xfreopen: New module.
42594         * lib/xfreopen.c: New file.
42595         * lib/xfreopen.h: New file.
42596         * MODULES.html.sh (File stream based Input/Output"): Add it.
42597
42598 2009-11-19  Eric Blake  <ebb9@byu.net>
42599
42600         manywarnings: depend on warnings
42601         * modules/manywarnings (Depends-on): Add warnings.
42602
42603         build: avoid compiler warnings
42604         * lib/select.c (rpl_select): Delete unused variable.
42605         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
42606
42607 2009-11-18  Eric Blake  <ebb9@byu.net>
42608
42609         tests: avoid false negative with --with-packager
42610         * tests/test-version-etc.sh: Discard packager information.
42611         * tests/test-argp-version-etc-1.sh: Likewise.
42612         Reported by Mike Frysinger.
42613
42614         utimens: fix regression on Solaris
42615         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
42616         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
42617         can only change fd timestamps via futimesat.  Instead, use an
42618         additional witness macro to avoid BSD bug.
42619         Reported by Jim Meyering.
42620
42621 2009-11-17  Eric Blake  <ebb9@byu.net>
42622
42623         usleep: use it to simplify tests
42624         * modules/stat-time-tests (Depends-on): Add usleep.
42625         (configure.ac): Drop usleep check.
42626         * modules/chown-tests (Depends-on, configure.ac): Likewise.
42627         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
42628         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
42629         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
42630         * modules/openat-tests (Depends-on, configure.ac): Likewise.
42631         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
42632         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
42633         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
42634         Likewise.
42635         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
42636         * tests/test-lchown.h (nap): Likewise.
42637         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
42638         * tests/test-stat-time.c (nap): Likewise.
42639         * tests/test-utimens-common.h (nap): Update comments.
42640
42641         usleep: new module
42642         * modules/usleep: New file.
42643         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
42644         * lib/usleep.c (usleep): Likewise.
42645         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
42646         * modules/unistd (Makefile.am): Substitute witnesses.
42647         * lib/unistd.in.h (usleep): Add declaration.
42648         * doc/pastposix-functions/usleep.texi (usleep): Document this.
42649         * MODULES.html.sh (Date and time): Likewise.
42650         * modules/usleep-tests (Depends-on): New test.
42651         * tests/test-usleep.c: New file.
42652
42653         chown: work around OpenBSD bug
42654         * lib/chown.c (rpl_chown): Work around the bug.
42655         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
42656         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
42657         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
42658         * modules/chown (Depends-on): Add stdbool.
42659         * modules/lchown (Depends-on): Likewise.
42660         * doc/posix-functions/chown.texi (chown): Document the bug.
42661         * doc/posix-functions/lchown.texi (lchown): Likewise.
42662         * tests/test-lchown.h (test_chown): Relax test.
42663
42664         mkstemp: avoid conflict with C++ keyword template
42665         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
42666         * lib/mkostemp.c (mkostemp): Likewise.
42667         * lib/mkostemps.c (mkostemps): Likewise.
42668         * lib/mkstemp.c (mkstemp): Likewise.
42669         * lib/mkstemps.c (mkstemps): Likewise.
42670
42671         xalloc-die-tests: optimize
42672         * tests/test-xalloc-die.sh: Reduce number of processes.
42673
42674 2009-11-17  Simon Josefsson  <simon@josefsson.org>
42675
42676         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
42677         patch from ludo@gnu.org (Ludovic Courtès).
42678
42679 2009-11-17  Jim Meyering  <meyering@redhat.com>
42680
42681         version-etc: use proper license string
42682         * modules/version-etc (License): Use LGPL, not LGPLv3+.
42683         * modules/version-etc-fsf: Likewise.
42684
42685 2009-11-17  Simon Josefsson  <simon@josefsson.org>
42686
42687         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
42688         printed to stdout.  Deal with EOL differences.
42689
42690 2009-11-17  Eric Blake  <ebb9@byu.net>
42691
42692         unsetenv: work around Solaris bug
42693         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
42694         * lib/unsetenv.c (rpl_unsetenv): Work around it.
42695         Reported by Jim Meyering.
42696
42697         vasnprintf: avoid compiler warnings
42698         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
42699         variables.
42700         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
42701
42702 2009-11-17  Simon Josefsson  <simon@josefsson.org>
42703
42704         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
42705         settings since xalloc-die is no longer the self test,
42706         xalloc-die.sh is.
42707
42708 2009-11-17  Jim Meyering  <meyering@redhat.com>
42709
42710         test-xalloc-die.sh: make the code agree with the commit log
42711         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
42712         at the end, just in case you happen to have a test-xalloc-die
42713         program in some other PATH directory.
42714
42715         test-xalloc-die.sh: fix a portability bug
42716         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
42717         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
42718         Otherwise, argv[0] (as often seen in diagnostics) would be too
42719         system-dependent, sometimes with, and sometimes without the leading "./".
42720
42721         version-etc-fsf: relax license to LGPLv3+
42722         * modules/version-etc-fsf (License): Relax license.
42723
42724 2009-11-16  Eric Blake  <ebb9@byu.net>
42725
42726         xalloc-die-tests: avoid printing null pointer
42727         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
42728         shell script.
42729         * tests/test-xalloc-die.c (program_name): Declare.
42730         * tests/test-xalloc-die.sh (tmpfiles): New file.
42731
42732         setenv, unsetenv: work around various bugs
42733         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
42734         (setenv) [HAVE_SETENV]: Work around bugs.
42735         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
42736         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
42737         for bugs.
42738         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
42739         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
42740         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
42741         * modules/stdlib (Makefile.am): Update substitutions.
42742         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
42743         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
42744         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
42745         * modules/setenv-tests: New test.
42746         * modules/unsetenv-tests: Likewise.
42747         * tests/test-setenv.c: New file.
42748         * tests/test-unsetenv.c: Likewise.
42749
42750 2009-11-16  Jim Meyering  <meyering@redhat.com>
42751
42752         version-etc: relax license to LGPLv3+
42753         * modules/version-etc (License): Relax license.
42754
42755         better AC_REQUIRE expanded-before-required-warning avoidance
42756         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
42757         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
42758         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
42759         which is no longer needed.
42760
42761 2009-11-16  Eric Blake  <ebb9@byu.net>
42762
42763         test-freading: clean up temporary file
42764         * tests/test-freading.c (main): Remove file on success, and use
42765         ASSERT more liberally.
42766         Reported by Jim Meyering.
42767
42768 2009-11-16  Jim Meyering  <meyering@redhat.com>
42769
42770         avoid new AC_REQUIRE expanded-before-required warnings
42771         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
42772         merely using it.
42773         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
42774         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
42775
42776 2009-11-15  Simon Josefsson  <simon@josefsson.org>
42777
42778         * tests/test-xalloc-die.c: New file.
42779         * modules/xalloc-die-tests: New file.
42780         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
42781         XFAIL_TESTS so it can be appended by modules.
42782
42783 2009-11-15  Simon Josefsson  <simon@josefsson.org>
42784
42785         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
42786         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
42787
42788 2009-11-14  Eric Blake  <ebb9@byu.net>
42789
42790         fnmatch: avoid compiler warning
42791         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
42792         to silence compiler warning about mismatch signedness in ?:.
42793         Reported by Robert Millan.
42794
42795         intprops: add double-inclusion guard
42796         * lib/intprops.h: Allow idempotent includes.
42797         Suggested by Bruce Korb.
42798
42799         openat: detect Solaris fchownat bug
42800         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
42801         penalizing glibc chownat when only lchownat is broken.
42802         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
42803         trailing slash bugs.
42804         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
42805         * modules/openat-tests (Files): Include more files.
42806         (Depends-on): Add mgetgroups, sleep, stat-time.
42807         (configure.ac): Add additional checks.
42808         (Makefile.am): Build new test.
42809         * tests/test-fchownat.c: New file.
42810
42811         lchown: detect Solaris and FreeBSD bug
42812         * lib/lchown.c (rpl_lchown): Work around bug.
42813         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
42814         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
42815         * modules/unistd (Makefile.am): Populate it.
42816         * lib/unistd.in.h (lchown): Update declaration.
42817         * doc/posix-functions/lchown.texi (lchown): Document the bug.
42818         * modules/lchown-tests: New file.
42819         * tests/test-lchown.h (test_lchown): Likewise.
42820         * tests/test-lchown.c (main): Likewise.
42821
42822         chown: detect Solaris and FreeBSD bug
42823         * lib/chown.c (rpl_chown): Work around bug.
42824         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
42825         (gl_PREREQ_CHOWN): Delete.
42826         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
42827         * modules/unistd (Makefile.am): Populate it.
42828         * lib/unistd.in.h (chown): Update declaration.
42829         * lib/lchown.c (chown): Update client.
42830         * modules/lchown (Depends-on): Add lstat.
42831         * doc/posix-functions/chown.texi (chown): Document the bug.
42832         * doc/posix-functions/getgroups.texi (getgroups): Document
42833         getgroups pitfall.
42834         * modules/chown-tests: New file.
42835         * tests/test-chown.h (test_chown): Likewise.
42836         * tests/test-chown.c (main): Likewise.
42837
42838 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
42839
42840         gnulib-tool: correctly detect absence of m4 directories
42841         * gnulib-tool: Avoid extra newline on data passed to wc -l.
42842
42843 2009-11-14  Jim Meyering  <meyering@redhat.com>
42844
42845         maint.mk: Prohibit inclusion of "xalloc.h" without use.
42846         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
42847
42848 2009-11-14  John W. Eaton  <jwe@gnu.org>
42849
42850         strftime.h: wrap function declaration in extern "C" block
42851         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
42852
42853 2009-11-13  Eric Blake  <ebb9@byu.net>
42854
42855         getgroups: avoid compiler warning
42856         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
42857
42858         getgroups: work around FreeBSD bug
42859         * lib/getgroups.c (rpl_getgroups): Work around the bug.
42860         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
42861         * doc/posix-functions/getgroups.texi (getgroups): Document it.
42862         * tests/test-getgroups.c (main): Fix buffer overrun.
42863
42864         getgroups: avoid compilation failure
42865         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
42866         * modules/getgroups (Depends-on): Add stdint.
42867
42868 2009-11-13  Jim Meyering  <meyering@redhat.com>
42869
42870         test-getgroups: avoid compilation failure
42871         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
42872
42873 2009-11-13  Eric Blake  <ebb9@byu.net>
42874
42875         mgetgroups: new module, taken from coreutils
42876         * modules/mgetgroups: New file.
42877         * lib/mgetgroups.h: Likewise.
42878         * lib/mgetgroups.c (mgetgroups): Likewise.
42879         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
42880         * MODULES.html.sh (Users and groups): Mention it.
42881
42882         getgroups: don't expose GETGROUPS_T to user
42883         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
42884         an element at a time if GETGROUPS_T is wrong size.
42885         * lib/getugroups.h (getugroups): Change signature.
42886         * lib/unistd.in.h (getgroups): Likewise.
42887         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
42888         signature needs fixing.
42889         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
42890         AC_TYPE_GETGROUPS.
42891         * modules/group-member (Depends-on): Add getgroups.
42892         * lib/group-member.c (group_info, get_group_info): Use gid_t.
42893         (group_member): Rely on getgroups replacement.
42894         * lib/getugroups.c (getugroups): Use gid_t.
42895         * tests/test-getgroups.c (main): Likewise.
42896         * NEWS: Mention the signature change.
42897         * doc/posix-functions/getgroups.texi (getgroups): Mention the
42898         problem with signature.
42899         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
42900         GETGROUPS_T is still useful for setgroups.
42901
42902         getgroups, getugroups: provide stubs for mingw
42903         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
42904         * lib/getugroups.c (getugroups): Likewise.
42905         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
42906         function.  Modernize replacement scheme.
42907         (gl_PREREQ_GETGROUPS): Delete.
42908         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
42909         * modules/getgroups (configure.ac): Declare witness.
42910         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
42911         * modules/unistd (Depends-on): Substitute witness.
42912         * lib/unistd.in.h (getgroups): Declare replacement.
42913
42914         getgroups: avoid calling exit
42915         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
42916         drop xalloc.
42917         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
42918         dependencies.
42919         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
42920         exiting, in the rare case of malloc failure.
42921
42922         getgroups: fix logic error
42923         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
42924         has more than 20 groups.
42925         * modules/getgroups-tests: New test.
42926         * tests/test-getgroups.c: New file.
42927
42928 2009-11-13  Simon Josefsson  <simon@josefsson.org>
42929
42930         * tests/test-base64.c: Improve.
42931
42932 2009-11-13  Simon Josefsson  <simon@josefsson.org>
42933
42934         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
42935         Blake <ebb9@byu.net>.
42936
42937 2009-11-13  Simon Josefsson  <simon@josefsson.org>
42938
42939         * tests/test-xvasprintf.c: Add %s%s related checks.
42940
42941 2009-11-12  Eric Blake  <ebb9@byu.net>
42942
42943         version-etc: match standards.texi style
42944         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
42945         and use <> only for URLs.
42946
42947 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
42948
42949         fts: do not fail on a submount during traversal
42950         * lib/fts.c (fts_build): Read the stat info again after opening
42951         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
42952         Original report at http://bugzilla.redhat.com/501848.
42953
42954 2009-11-12  Jim Meyering  <meyering@redhat.com>
42955
42956         bootstrap: sync from coreutils
42957         * build-aux/bootstrap (bootstrap_epilogue): New function.
42958         Use git_modules_config in one more place.  This make bootstrap's
42959         --gnulib-srcdir option more useful for testing.
42960
42961         bootstrap: generalize autoheader check
42962         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
42963         AC_CONFIG_HEADERS.
42964
42965 2009-11-11  Eric Blake  <ebb9@byu.net>
42966
42967         mkfifoat: use new modules for Solaris and BSD bugs
42968         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
42969         * lib/mkfifoat.c (mknodat): Split...
42970         * lib/mknodat.c (mknodat): ...into new file.
42971         * modules/mkfifoat (Files): Ship new file.
42972         (Depends-on): Add mkfifo, mknod.
42973         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
42974         (Depends-on): Add symlink.
42975         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
42976         redundant with test_mkfifo.h.
42977         (do_mkfifoat, do_mknodat): New helpers.
42978
42979         mknod: new module
42980         * modules/mknod: New file.
42981         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
42982         * lib/mknod.c (mknod): Likewise.
42983         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
42984         defaults.
42985         * modules/sys_stat (Makefile.am): Substitute them.
42986         * lib/sys_stat.in.h (mknod): Declare replacement.
42987         * MODULES.html.sh (Support for systems lacking POSIX:2008):
42988         Document it.
42989         * doc/posix-functions/mknod.texi (mknod): Likewise.
42990         * modules/mknod-tests: New test.
42991         * tests/test-mknod.c: Likewise.
42992
42993         mkfifo: new module
42994         * modules/mkfifo: New file.
42995         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
42996         * lib/mkfifo.c (mkfifo): Likewise.
42997         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
42998         defaults.
42999         * modules/sys_stat (Makefile.am): Substitute them.
43000         * lib/sys_stat.in.h (mkfifo): Declare replacement.
43001         * MODULES.html.sh (Support for systems lacking POSIX:2008):
43002         Document it.
43003         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
43004         * modules/mkfifo-tests: New test.
43005         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
43006         from test-mkfifoat.c.
43007         * tests/test-mkfifo.c: New file.
43008
43009         readlink: detect FreeBSD bug
43010         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
43011         slash on symlink.
43012         * doc/posix-functions/readlink.texi (readlink): Document the bug.
43013         * tests/test-readlink.h (test_readlink): Enhance test.
43014
43015         symlink: detect FreeBSD bug
43016         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
43017         slash on symlink.
43018         * doc/posix-functions/symlink.texi (symlink): Document the bug.
43019         * tests/test-symlink.h (test_symlink): Enhance test.
43020
43021 2009-11-10  Eric Blake  <ebb9@byu.net>
43022
43023         link: detect FreeBSD bug
43024         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
43025         symlink.
43026         * doc/posix-functions/link.texi (link): Document the bug.
43027         * tests/test-link.h (test_link): Enhance test.
43028         * tests/test-linkat.c (main): Update caller.
43029
43030         unlink, remove: detect FreeBSD bug
43031         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
43032         slash on symlink.
43033         * doc/posix-functions/unlink.texi (unlink): Document the bug.
43034         * doc/posix-functions/remove.texi (remove): Likewise.
43035         * tests/test-unlink.h (test_unlink): Enhance test.
43036         * tests/test-remove.c (main): Likewise.
43037
43038 2009-11-09  Eric Blake  <ebb9@byu.net>
43039
43040         rename: detect FreeBSD bug
43041         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
43042         slash on symlink.
43043         * modules/renameat-tests (Depends-on): Add filenamecat.
43044         * tests/test-rename.h (test_rename): Allow one more errno.
43045         * tests/test-renameat.c (main): Likewise.
43046         * doc/posix-functions/rename.texi (rename): Document the bug.
43047
43048         open: detect FreeBSD bug
43049         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
43050         symlink.
43051         * doc/posix-functions/open.texi (open): Document the bug.
43052         * doc/posix-functions/utimes.texi (utimes): Likewise.
43053         * tests/test-open.h (test_open): Add parameters, and test symlink
43054         handling.
43055         * tests/test-open.c (main): Adjust caller.
43056         * tests/test-fcntl-safer.c (main): Likewise.
43057         * modules/open-tests (Depends-on): Add stdbool, symlink.
43058         * modules/fcntl-safer-tests (Depends-on): Likewise.
43059         * tests/test-openat.c (main): Add test-open tests.
43060
43061         stat: detect FreeBSD bug
43062         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
43063         symlink.
43064         * doc/posix-functions/stat.texi (stat): Document the bug.
43065         * tests/test-stat.h (test_stat_func): Add argument.
43066         * tests/test-stat.c (main): Adjust caller.
43067         * tests/test-fstatat.c (main): Likewise.
43068         * modules/stat-tests (Depends-on): Add stdbool, symlink.
43069         Reported by Jim Meyering.
43070
43071 2009-11-09  James Youngman  <jay@gnu.org>
43072
43073         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
43074         * lib/strftime.c: Correct placement of #include "ignore-value.h".
43075
43076 2009-11-08  Jim Meyering  <meyering@redhat.com>
43077
43078         utimens: remove invalid futimesat call
43079         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
43080         It used the file descriptor of the target file as the DIR_FD
43081         parameter and NULL as the file name.  That caused failure with
43082         errno == EFAULT on FreeBSD-8.0-rc2
43083
43084 2009-11-07  Eric Blake  <ebb9@byu.net>
43085
43086         fflush, freadseek: use fseeko, not fseek
43087         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
43088         (clear_ungetc_buffer): Avoid potential problems on large files.
43089         * lib/freadseek.c (freadseek): Likewise.
43090         * modules/freadseek (Depends-on): Add fseeko.
43091         * modules/fseek (configure.ac): Set a witness.
43092         * tests/test-fflush.c (main): Use fseeko.
43093         * tests/test-fpurge.c (fseek): Disable link warning.
43094         * tests/test-freadable.c (fseek): Likewise.
43095         * tests/test-freading.c (fseek): Likewise.
43096         * tests/test-fseeko.c (fseek): Likewise.
43097         * tests/test-ftell.c (fseek): Likewise.
43098         * tests/test-ftello.c (fseek): Likewise.
43099         * tests/test-fwritable.c (fseek): Likewise.
43100         * tests/test-fwriting.c (fseek): Likewise.
43101
43102 2009-11-06  Simon Josefsson  <simon@josefsson.org>
43103
43104         * modules/memchr (Depends-on): Drop getpagesize dependency.
43105
43106 2009-11-06  Simon Josefsson  <simon@josefsson.org>
43107
43108         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
43109         Reported by Ludovic Courtès.
43110         * build-aux/pmccabe2html: Improve example usage.
43111         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
43112
43113 2009-11-06  Jim Meyering  <meyering@redhat.com>
43114
43115         do-release-commit-and-tag: New module.
43116         Automate the release-commit and tag process.
43117         * build-aux/do-release-commit-and-tag: New script, from coreutils.
43118         * modules/do-release-commit-and-tag: New file.
43119         * MODULES.html.sh (Support for maintaining and releasing): Add it.
43120
43121 2009-11-06  Simon Josefsson  <simon@josefsson.org>
43122
43123         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
43124         because test-select.c uses inet_pton.
43125
43126 2009-11-06  Simon Josefsson  <simon@josefsson.org>
43127
43128         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
43129         GETADDRINFO_LIB.  Bump serial number.
43130         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
43131         Suggested by Eric Blake <ebb9@byu.net>.
43132
43133 2009-11-05  Eric Blake  <ebb9@byu.net>
43134
43135         strtod: detect darwin bug
43136         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
43137         Reported by Leo Davis.
43138
43139         freopen-safer: new module
43140         * modules/freopen-safer: New module.
43141         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
43142         * lib/freopen-safer.c (freopen_safer): New file.
43143         * lib/stdio-safer.h (freopen_safer): New declaration.
43144         * lib/stdio--.h (freopen): New override.
43145         * MODULES.html.sh (File stream based Input/Output): Mention it.
43146         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
43147         freopen-safer module.
43148         * doc/posix-functions/stderr.texi (stderr): Likewise.
43149         * doc/posix-functions/stdin.texi (stdin): Likewise.
43150         * doc/posix-functions/stdout.texi (stdout): Likewise.
43151         * modules/freopen-safer-tests: New test.
43152         * tests/test-reopen-safer.c: New file.
43153
43154 2009-11-05  Jim Meyering  <meyering@redhat.com>
43155
43156         maint.mk: Prohibit inclusion of "close-stream.h" without use.
43157         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
43158
43159 2009-11-05  Simon Josefsson  <simon@josefsson.org>
43160
43161         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
43162
43163 2009-11-05  Simon Josefsson  <simon@josefsson.org>
43164
43165         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
43166
43167 2009-11-05  Simon Josefsson  <simon@josefsson.org>
43168
43169         Fix link error.
43170         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
43171         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
43172
43173 2009-11-05  Simon Josefsson  <simon@josefsson.org>
43174
43175         * tests/test-func.c: Also test value of __func__.
43176
43177 2009-11-05  Simon Josefsson  <simon@josefsson.org>
43178
43179         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
43180         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
43181
43182 2009-11-05  Bruno Haible  <bruno@clisp.org>
43183
43184         Fix link error.
43185         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
43186         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
43187         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
43188
43189 2009-11-05  Bruno Haible  <bruno@clisp.org>
43190
43191         Tests for module 'inet_pton'.
43192         * modules/inet_pton-tests: New file.
43193         * tests/test-inet_pton.c: New file.
43194
43195 2009-11-05  Bruno Haible  <bruno@clisp.org>
43196
43197         Tests for module 'inet_ntop'.
43198         * modules/inet_ntop-tests: New file.
43199         * tests/test-inet_ntop.c: New file.
43200
43201 2009-11-04  Eric Blake  <ebb9@byu.net>
43202
43203         stdlib-safer: wrap all mkstemp variants
43204         * modules/mkostemp (configure.ac): Set witness.
43205         * modules/mkostemps (configure.ac): Likewise.
43206         * modules/mkstemps (configure.ac): Likewise.
43207         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
43208         (mkstemps_safer): Wrap more functions.
43209         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
43210         wrapping.
43211         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
43212         (mkstemps_safer): Implement the wrappers.
43213
43214         mkstemps, mkostemps: new modules
43215         * modules/mkostemps: New module.
43216         * modules/mkstemps: Likewise.
43217         * lib/mkostemps.c (mkostemps): New file.
43218         * lib/mkstemps.c (mkstemps): Likewise.
43219         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
43220         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
43221         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
43222         * modules/stdlib (Makefile.am): Substitute them.
43223         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
43224         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
43225         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
43226         * doc/gnulib.texi (Glibc stdlib.h): Include them.
43227         * MODULES.html.sh (File system functions): Mention them.
43228
43229         tempname: resync from glibc
43230         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
43231         same values for __GT_FILE as glibc.  Abort even when assertions
43232         are disabled.
43233         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
43234         match its value otherwise.  Allow idempotent inclusion.
43235         * lib/mkdtemp.c (mkdtemp): Adjust caller.
43236         * lib/mkostemp.c (mkostemp): Likewise.
43237         * lib/mkstemp.c (mkstemp): Likewise.
43238         * lib/tmpfile.c (tmpfile): Likewise.
43239         * NEWS: Document this.
43240
43241         utimens: fix use of futimens on older Linux
43242         * lib/utimens.c (fdutimens): Use updated, rather than original,
43243         timespec to avoid bug in older Linux kernel.
43244         Reported by Simon Josefsson.
43245
43246 2009-11-04  Bruno Haible  <bruno@clisp.org>
43247
43248         Make num_processors more flexible and consistent.
43249         * lib/nproc.h (enum nproc_query): New type.
43250         (num_processors): Add a 'query' argument.
43251         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
43252         (num_processors): Add a 'query' argument. Test the value of the
43253         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
43254         mingw, count the number of CPUs available for the current process.
43255         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
43256         Check for sched_getaffinity and sched_getaffinity_np.
43257         * modules/nproc (Depends-on): Add c-ctype, extensions.
43258         * NEWS: Mention the change.
43259
43260 2009-11-03  Bruno Haible  <bruno@clisp.org>
43261
43262         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
43263
43264 2009-11-03  Jim Meyering  <meyering@redhat.com>
43265
43266         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
43267         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
43268         if it is defined.
43269
43270 2009-11-02  Eric Blake  <ebb9@byu.net>
43271
43272         mktime, timegm: share common declaration
43273         * lib/mktime-internal.h: New file.
43274         * lib/mktime.c: Use it rather than open-coding a declaration.
43275         * lib/timegm.c: Likewise.
43276         * modules/mktime (Files): Ship it.
43277         * modules/timegm (Files): Likewise.
43278         Suggested by Bruno Haible.
43279
43280         test-update-copyright: update test to match script changes
43281         * tests/test-update-copyright.sh: Avoid hard-coding perl
43282         location.  Don't update *.bak created by earlier runs.
43283
43284 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
43285             Simon Josefsson  <simon@josefsson.org>
43286             Bruno Haible  <bruno@clisp.org>
43287
43288         Fix link error on Solaris 8.
43289         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
43290         also in libnsl. Define also INET_PTON_LIB.
43291         * modules/inet_pton (Link): New section.
43292
43293 2009-11-02  Simon Josefsson  <simon@josefsson.org>
43294             Bruno Haible  <bruno@clisp.org>
43295
43296         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
43297         * modules/inet_ntop (Link): New section.
43298         Reported by Boyan Kasarov <bkasarov@gmail.com>.
43299
43300 2009-11-02  Eric Blake  <ebb9@byu.net>
43301
43302         maint: avoid compiler warnings in m4 macros
43303         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
43304         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
43305
43306 2009-11-02  Simon Josefsson  <simon@josefsson.org>
43307
43308         * m4/pmccabe2html.m4: Remove file.
43309         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
43310         function.  Change maintainer.
43311         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
43312         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
43313         Courtès).
43314
43315 2009-10-31  Eric Blake  <ebb9@byu.net>
43316
43317         fseeko: fix m4 regression
43318         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
43319         regression from 2009-10-27.
43320         Reported by Ralf Wildenhues.
43321
43322 2009-10-31  Jim Meyering  <meyering@redhat.com>
43323
43324         inttostr: aesthetics and improved (compile-time) safety
43325         Define inttype_is_signed rather than inttype_is_unsigned,
43326         since the sole use is via "#if inttype_is_signed".
43327         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
43328         inttype_is_unsigned.
43329         * lib/offtostr.c (inttype_is_signed): Likewise.
43330         * lib/uinttostr.c (inttype_is_signed): Likewise.
43331         * lib/umaxtostr.c (inttype_is_signed): Likewise.
43332         * lib/inttostr.c (inttostr): Use verify to cross-check the
43333         inttype_is_signed value and the signedness of the actual type.
43334         * modules/inttostr (Depends-on): Add verify.
43335
43336 2009-10-30  Eric Blake  <ebb9@byu.net>
43337
43338         build: avoid compiler warnings
43339         * lib/fchmodat.c (lchmod): Mark unused variables.
43340         * lib/getopt.c (_getopt_initialize): Likewise.
43341         * lib/mktime.c (__mktime_internal): Provide prototype.
43342         * lib/inttostr.c (inttostr): Avoid compiler warning even with
43343         older gcc that do not understand #pragma GCC diagnostic.
43344         * lib/uinttostr.c (inttype_is_unsigned): Define.
43345         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
43346
43347 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
43348
43349         stat: fix compilation on AIX
43350         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
43351         only see struct stat64.
43352
43353 2009-10-30  Eric Blake  <ebb9@byu.net>
43354
43355         exclude: make more robust
43356         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
43357         rather than masking a coding bug.
43358         Suggested by Bruno Haible.
43359
43360 2009-10-30  Jim Meyering  <meyering@redhat.com>
43361
43362         perl scripts: remove #!/usr/bin/perl in favor of more portable...
43363         Rather than putting #!/usr/bin/perl on the first line,
43364         start with a variant of what's recommended by "man perlrun" that
43365         invokes the first "perl" program from your shell's search path.
43366         * build-aux/gitlog-to-changelog: Replace #!... as above.
43367         Add a "Local Variables" perl mode setting.
43368         Prompted by a patch from Ludovic Courtès.
43369         Improved by Eric Blake.
43370         * build-aux/useless-if-before-free: Likewise.
43371         * build-aux/announce-gen: Likewise.
43372         * build-aux/update-copyright: Likewise.
43373
43374 2009-10-29  Eric Blake  <ebb9@byu.net>
43375
43376         filenamecat-lgpl: adjust clients
43377         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
43378         filenamecat.
43379         * modules/renameat (Depends-on): Likewise.
43380
43381         filenamecat: split into filenamecat-lgpl
43382         * modules/filenamecat-lgpl: New module.
43383         * modules/filenamecat (Files): Move library-safe files into
43384         filenamecat-lgpl.
43385         (Depends-on): Add filenamecat-lgpl.
43386         (configure.ac): Declare witness.
43387         * lib/filenamecat.h (file_name_concat): Only declare when using
43388         GPL module.
43389         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
43390         Move...
43391         * lib/filenamecat-lgpl.c: ...into new file.
43392         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
43393         (gl_FILE_NAME_CONCAT): Use it.
43394         * MODULES.html.sh (File system functions): Mention new module.
43395
43396         argp: avoid memory leak
43397         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
43398         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
43399         base_name, since the latter malloc()s and can call exit().
43400         Leak introduced 2006-07-03.
43401
43402         dirname-lgpl: adjust clients that don't need full dirname
43403         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
43404         * modules/filenamecat (Depends-on): Likewise.
43405         * modules/linkat (Depends-on): Likewise.
43406         * modules/mkancesdirs (Depends-on): Likewise.
43407         * modules/mkdir (Depends-on): Likewise.
43408         * modules/openat (Depends-on): Likewise.
43409         * modules/savewd (Depends-on): Likewise.
43410         * modules/rename (Depends-on): Likewise.
43411         (License): Relax license.
43412         * modules/mkdir-tests (Depends-on): Drop progname.
43413         (Makefile.am): Delete unneeded LDADD.
43414         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
43415
43416         dirname: split into dirname-lgpl
43417         * modules/dirname-lgpl: New module.
43418         * modules/dirname (Files): Move library-safe files into
43419         dirname-lgpl.
43420         (Depends-on): Add dirname-lgpl.
43421         (configure.ac): Declare witness.
43422         * modules/double-slash-root (License): Relax license.
43423         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
43424         module.
43425         * lib/dirname.c (dir_len, mdir_name): Move...
43426         * lib/dirname-lgpl.c: ...into new file.
43427         * lib/basename.c (last_component, base_len): Move...
43428         * lib/basename-lgpl.c: ...into new file.
43429         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
43430         (gl_DIRNAME): Use it.
43431         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
43432         Mention new module.
43433         * modules/dirname-tests (Depends-on): Add progname.
43434         * tests/test-dirname.c (program_name): Delete.
43435
43436         mkdir: make safe for libraries
43437         * modules/mkdir (Depends-on): Drop xalloc.
43438         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
43439         exit.
43440
43441         tests: avoid some compiler warnings
43442         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
43443         literals.
43444         * tests/test-memchr.c (main): Avoid type mismatch.
43445         * tests/test-arpa_inet.c (main): Avoid unused parameters.
43446         * tests/test-base64.c (main): Likewise.
43447         * tests/test-getdelim.c (main): Likewise.
43448         * tests/test-gethostname.c (main): Likewise.
43449         * tests/test-getline.c (main): Likewise.
43450         * tests/test-netinet_in.c (main): Likewise.
43451         * tests/test-select.c (open_server_socket, main): Likewise.
43452         * tests/test-select-stdin.c (main): Likewise.
43453         * tests/test-sockets.c (main): Likewise.
43454         * tests/test-strsignal.c (main): Likewise.
43455         * tests/test-sys_select.c (main): Likewise.
43456         * tests/test-sys_socket.c (main): Likewise.
43457         * tests/test-u64.c (main): Likewise.
43458         * tests/test-xfprintf-posix.c (main): Likewise.
43459         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
43460
43461         sockets: avoid compiler warning
43462         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
43463
43464         maint: detect usage(1) and other suspicious exits
43465         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
43466
43467 2009-10-29  Jim Meyering  <meyering@redhat.com>
43468
43469         timespec: long-to-int truncation could make timespec_cmp malfunction
43470         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
43471         a multiple of 2^32 nanoseconds as no difference.
43472
43473 2009-10-28  Jim Meyering  <meyering@redhat.com>
43474
43475         fprintftime: wrap macro code argument in "do {...} while(0)"
43476         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
43477         cpy macro must be a statement that can be followed by a semicolon.
43478         Now that the else clause contains a comment and is hence longer
43479         than one line, I require curly braces.  That in turn requires
43480         that we wrap this code block in the standard do...while(0).
43481
43482         fprintftime: remove stray semicolon from previous change
43483         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
43484
43485         fprintftime: avoid a warning about ignored fwrite return value
43486         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
43487         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
43488         that is unsafe.
43489         * modules/fprintftime (Depends-on): Add ignore-value.
43490
43491         exclude: avoid an unwarranted warning
43492         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
43493
43494 2009-10-27  Eric Blake  <ebb9@byu.net>
43495
43496         fseek: avoid compilation failure when fflush is replaced
43497         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
43498         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
43499         module is in use.
43500         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
43501         module is not in use; since REPLACE_FSEEK worked otherwise.
43502         (GNULIB_FTELLO): Likewise for ftell.
43503         Reported by Ian Beckwith and others.
43504
43505 2009-10-27  Bruno Haible  <bruno@clisp.org>
43506
43507         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
43508         Reported by Jim Meyering.
43509
43510 2009-10-27  Jim Meyering  <jim@meyering.net>
43511             Bruno Haible  <bruno@clisp.org>
43512
43513         Avoid warning despite dropping the return value of fwrite.
43514         * lib/unicodeio.c: Include ignore-value.h.
43515         (fwrite_success_callback): Explicitly ignore fwrite's return value.
43516         * modules/unicodeio (Depends-on): Add ignore-value.
43517
43518 2009-10-26  Eric Blake  <ebb9@byu.net>
43519
43520         areadlinkat: fix fallback path
43521         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
43522         pointer and zero.
43523
43524 2009-10-22  Pádraig Brady  <P@draigBrady.com>
43525
43526         Use a better IO block size for modern systems
43527         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
43528         * lib/md2.c: Likewise.
43529         * lib/md4.c: Likewise.
43530         * lib/md5.c: Likewise.
43531         * lib/sha1.c: Likewise.
43532         * lib/sha256.c: Likewise.
43533         * lib/sha512.c: Likewise.
43534
43535 2009-10-22  Eric Blake  <ebb9@byu.net>
43536
43537         tests: avoid several compiler warnings
43538         * tests/test-getcwd.c (main): Avoid buffer underflow.
43539         * tests/test-getdate.c (main): String literals are not safe with
43540         putenv, so use setenv.  Declare unused argument.
43541         * modules/getdate-tests (Depends-on): Add setenv.
43542         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
43543         problems with string literals in char *.
43544         * tests/test-hash.c (main): Avoid shadowing declaration.
43545         (insert_new): Treat string literals as char const *.
43546         * tests/test-getopt.h (test_getopt): Likewise.
43547         (getopt_loop): Alter types to minimize casting elsewhere.
43548         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
43549         (test_getopt_long_posix): Likewise.
43550         (do_getopt_long): Add wrapper to minimize casting.
43551         * tests/test-atexit.c (clear_temp_file): Use void.
43552         * tests/test-areadlink-with-size.c (main): Declare unused
43553         arguments.
43554         * tests/test-areadlink.c (main): Likewise.
43555         * tests/test-areadlinkat-with-size.c (main): Likewise.
43556         * tests/test-areadlinkat.c (main): Likewise.
43557         * tests/test-canonicalize-lgpl.c (main): Likewise.
43558         * tests/test-canonicalize.c (main): Likewise.
43559         * tests/test-dirent-safer.c (main): Likewise.
43560         * tests/test-dirname.c (main): Likewise.
43561         * tests/test-dup2.c (main): Likewise.
43562         * tests/test-fchdir.c (main): Likewise.
43563         * tests/test-fcntl-h.c (main): Likewise.
43564         * tests/test-fcntl-safer.c (main): Likewise.
43565         * tests/test-fdopendir.c (main): Likewise.
43566         * tests/test-fdutimensat.c (main): Likewise.
43567         * tests/test-fflush.c (main): Likewise.
43568         * tests/test-filenamecat.c (main): Likewise.
43569         * tests/test-filevercmp.c (main): Likewise.
43570         * tests/test-fopen-safer.c (main): Likewise.
43571         * tests/test-fopen.c (main): Likewise.
43572         * tests/test-fpending.c (main): Likewise.
43573         * tests/test-fpurge.c (main): Likewise.
43574         * tests/test-freading.c (main): Likewise.
43575         * tests/test-fstatat.c (main): Likewise.
43576         * tests/test-fsync.c (main): Likewise.
43577         * tests/test-futimens.c (main): Likewise.
43578         * tests/test-getndelim2.c (main): Likewise.
43579         * tests/test-gettimeofday.c (main): Likewise.
43580         * tests/test-getopt.c (main): Likewise.
43581         * tests/test-i-ring.c (main): Likewise.
43582         * tests/test-inttypes.c (main): Likewise.
43583         * tests/test-link.c (main): Likewise.
43584         * tests/test-lstat.c (main): Likewise.
43585         * tests/test-math.c (main): Likewise.
43586         * tests/test-md5.c (main): Likewise.
43587         * tests/test-memchr2.c (main): Likewise.
43588         * tests/test-memrchr.c (main): Likewise.
43589         * tests/test-mkdir.c (main): Likewise.
43590         * tests/test-mkdirat.c (main): Likewise.
43591         * tests/test-mkfifoat.c (main): Likewise.
43592         * tests/test-open.c (main): Likewise.
43593         * tests/test-openat-safer.c (main): Likewise.
43594         * tests/test-openat.c (main): Likewise.
43595         * tests/test-quotearg.c (main): Likewise.
43596         * tests/test-rawmemchr.c (main): Likewise.
43597         * tests/test-readlink.c (main): Likewise.
43598         * tests/test-remove.c (main): Likewise.
43599         * tests/test-rename.c (main): Likewise.
43600         * tests/test-renameat.c (main): Likewise.
43601         * tests/test-rmdir.c (main): Likewise.
43602         * tests/test-sha1.c (main): Likewise.
43603         * tests/test-signal.c (main): Likewise.
43604         * tests/test-sigaction.c (main): Likewise.
43605         * tests/test-stat.c (main): Likewise.
43606         * tests/test-stat-time.c (main): Likewise.
43607         * tests/test-stddef.c (main): Likewise.
43608         * tests/test-stdint.c (main): Likewise.
43609         * tests/test-stdio.c (main): Likewise.
43610         * tests/test-stdlib.c (main): Likewise.
43611         * tests/test-strchrnul.c (main): Likewise.
43612         * tests/test-strerror.c (main): Likewise.
43613         * tests/test-string.c (main): Likewise.
43614         * tests/test-strtod.c (main): Likewise.
43615         * tests/test-strverscmp.c (main): Likewise.
43616         * tests/test-symlink.c (main): Likewise.
43617         * tests/test-symlinkat.c (main): Likewise.
43618         * tests/test-sys_stat.c (main): Likewise.
43619         * tests/test-sys_time.c (main): Likewise.
43620         * tests/test-time.c (main): Likewise.
43621         * tests/test-unistd.c (main): Likewise.
43622         * tests/test-unlink.c (main): Likewise.
43623         * tests/test-unlinkat.c (main): Likewise.
43624         * tests/test-utimens.c (main): Likewise.
43625         * tests/test-utimensat.c (main): Likewise.
43626         * tests/test-version-etc.c (main): Likewise.
43627         * tests/test-wchar.c (main): Likewise.
43628         * tests/test-wctype.c (main): Likewise.
43629         * tests/test-xprintf-posix.c (main): Likewise.
43630         * tests/test-posixtm.c (main): Likewise.
43631         (STREQ): Delete unused macro.
43632         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
43633         shadowed variables.
43634         * tests/test-memchr.c (main): Likewise.
43635
43636 2009-10-21  Eric Blake  <ebb9@byu.net>
43637
43638         areadlinkat: avoid failure on older glibc
43639         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
43640         rather than mis-comparing 0 against FUNC_RESULT of char*.
43641
43642 2009-10-21  Bruno Haible  <bruno@clisp.org>
43643
43644         * modules/stpncpy (License): Relicense under LGPLv2+.
43645         Reported by David Lutterkort <lutter@redhat.com>.
43646
43647 2009-10-20  Eric Blake  <ebb9@byu.net>
43648
43649         utimensat: work around Solaris 9 bug
43650         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
43651         has trailing slash bugs.
43652         * tests/test-lutimens.h (test_lutimens): Enhance test.
43653         * tests/test-utimens.h (test_utimens): Likewise.
43654         * doc/posix-functions/utime.texi (utime): Enhance documentation.
43655         * doc/posix-functions/utimes.texi (utimes): Likewise.
43656         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
43657         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
43658         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
43659         * doc/posix-functions/futimens.texi (futimens): Likewise.
43660
43661         fdutimensat: new module
43662         * modules/fdutimensat: New file.
43663         * lib/fdutimensat.c (fdutimensat): Likewise.
43664         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
43665         * MODULES.html.sh (File system functions): Mention module.
43666         * modules/fdutimensat-tests: New test.
43667         * tests/test-fdutimensat.c: Likewise.
43668
43669         doc: regenerate INSTALL
43670         * doc/INSTALL: Reflect recent autoconf update.
43671         * doc/INSTALL.ISO: Likewise.
43672         * doc/INSTALL.UTF-8: Likewise.
43673
43674 2009-10-20  Pádraig Brady  <P@draigBrady.com>
43675
43676         acl: warn if ACL support is not detected
43677         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
43678
43679 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
43680
43681         * lib/nproc.h: Add extern "C" block for C++.
43682
43683 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
43684             Bruno Haible  <bruno@clisp.org>
43685
43686         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
43687         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
43688         * doc/posix-functions/isalpha.texi: Likewise.
43689         * doc/posix-functions/isblank.texi: Likewise.
43690         * doc/posix-functions/iscntrl.texi: Likewise.
43691         * doc/posix-functions/isdigit.texi: Likewise.
43692         * doc/posix-functions/isgraph.texi: Likewise.
43693         * doc/posix-functions/islower.texi: Likewise.
43694         * doc/posix-functions/isprint.texi: Likewise.
43695         * doc/posix-functions/ispunct.texi: Likewise.
43696         * doc/posix-functions/isspace.texi: Likewise.
43697         * doc/posix-functions/isupper.texi: Likewise.
43698         * doc/posix-functions/isxdigit.texi: Likewise.
43699
43700 2009-10-18  Bruno Haible  <bruno@clisp.org>
43701
43702         Tests for module 'isblank'.
43703         * modules/isblank-tests: New file.
43704         * tests/test-isblank.c: New file.
43705
43706         New module 'isblank'.
43707         * lib/isblank.c: New file.
43708         * m4/isblank.m4: New file.
43709         * modules/isblank: New file.
43710         * doc/posix-functions/isblank.texi: Mention the new module.
43711
43712 2009-10-18  Bruno Haible  <bruno@clisp.org>
43713
43714         New module 'ctype'.
43715         * lib/ctype.in.h: New file.
43716         * m4/ctype.m4: New file.
43717         * modules/ctype: New file.
43718         * doc/posix-headers/ctype.texi: Mention the new module.
43719
43720 2009-10-18  Jim Meyering  <meyering@redhat.com>
43721
43722         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
43723         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
43724         right after its initialization, rather than farther down.
43725         Keeping these in close proximity makes it easier to ensure
43726         that each such variable is initialized.  E.g.,
43727
43728             LIB_CLOCK_GETTIME=
43729             AC_SUBST([LIB_CLOCK_GETTIME])
43730
43731         This change also increments these serial numbers.
43732         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
43733         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
43734         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
43735
43736 2009-10-18  Bruno Haible  <bruno@clisp.org>
43737
43738         Don't let environment variables perturb build.
43739         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
43740         (gl_PREREQ_GETHRXTIME): ... not here.
43741
43742 2009-10-18  Bruno Haible  <bruno@clisp.org>
43743
43744         Avoid symlink attack in localcharset module.
43745         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
43746         (O_NOFOLLOW): Define fallback.
43747         (get_charset_aliases): Don't open the file if it is a symbolic link.
43748         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
43749         gl_FCNTL_H.
43750         (gl_FCNTL_H): Require it.
43751         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
43752         * modules/localcharset (Files): Add m4/fcntl_h.m4.
43753         Reported by Fergal Glynn <fglynn@veracode.com>.
43754
43755 2009-10-18  Bruno Haible  <bruno@clisp.org>
43756
43757         Implement nproc for mingw.
43758         * lib/nproc.c: Include <windows.h>
43759         (num_processors): On native Windows platforms, try GetSystemInfo.
43760
43761 2009-10-18  Bruno Haible  <bruno@clisp.org>
43762
43763         Implement nproc for IRIX.
43764         * lib/nproc.c: Include <sys/sysmp.h>.
43765         (num_processors): On IRIX systems, try sysmp.
43766         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
43767
43768 2009-10-18  Bruno Haible  <bruno@clisp.org>
43769
43770         Implement nproc for HP-UX.
43771         * lib/nproc.c: Include <sys/pstat.h>
43772         (num_processors): On HP-UX systems, try pstat_getdynamic.
43773         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
43774         pstat_getdynamic.
43775
43776 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
43777             Bruno Haible  <bruno@clisp.org>
43778
43779         Implement nproc for NetBSD, OpenBSD.
43780         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
43781         (ARRAY_SIZE): New macro.
43782         (num_processors): On BSD systems, try sysctl of HW_NCPU.
43783         * m4/nproc.m4: New file.
43784         * modules/nproc (Files): Add m4/nproc.m4.
43785         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
43786         (Makefile.am): Instead, augment lib_SOURCES.
43787
43788 2009-10-18  Bruno Haible  <bruno@clisp.org>
43789
43790         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
43791         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
43792         sys/param.h.
43793
43794 2009-10-16  Eric Blake  <ebb9@byu.net>
43795
43796         utimensat: new module
43797         * modules/utimensat: New file.
43798         * lib/utimensat.c (utimensat): Likewise.
43799         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
43800         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
43801         so we can work around Linux bugs.
43802         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
43803         * modules/sys_stat (Makefile.am): Substitute them.
43804         * lib/sys_stat.in.h (utimensat): Declare it.
43805         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
43806         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
43807         * modules/utimensat-tests: New test.
43808         * tests/test-utimensat.c: Likewise.
43809
43810         utimens: let lutimens work on non-symlinks
43811         * lib/utimens.c (lutimens): Fall back to utimens rather than
43812         failing with ENOSYS, when file is not a symlink.
43813         (utimens): Reduce redirection.
43814         * tests/test-lutimens.h (test_lutimens): Update test to cover
43815         non-symlinks.
43816         * tests/test-utimens.h (test_utimens): Update test to cover
43817         symlinks.
43818         * tests/test-utimens.c (main): Update caller.
43819
43820         utimens: cache whether utimensat syscall works
43821         * lib/utimens.c (utimensat_works_really): New cache variable.
43822         (fdutimens, lutimens): Use it to avoid failing syscall.
43823
43824         test-stat-time, test-utimens: improve portability
43825         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
43826         ext4 on alpha, and for cygwin.
43827         * tests/test-utimens-common.h: New file.
43828         (nap): Factor delays into single function.
43829         * tests/test-lutimens.h (test_lutimens): Use new header.
43830         * tests/test-futimens.h (test_futimens): Likewise.
43831         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
43832         timestamps to occur from same machine, as was done previously for
43833         test_utimens.
43834         * modules/utimens-tests (Files): Ship new file.
43835         * modules/futimens-tests (Files): Likewise.
43836         Reported in part by Jim Meyering.
43837
43838         sys_stat: sort replacement declarations
43839         * lib/sys_stat.in.h: Sort declarations.
43840         * lib/futimens.c (futimens): Fix typo.
43841
43842 2009-10-15  Jim Meyering  <meyering@redhat.com>
43843
43844         don't let environment settings perturb build
43845         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
43846         could cause a configure-time and/or build-time malfunction.
43847         Typically, a configure-time function-in-library test is performed
43848         via code like this:
43849
43850           LIB_VAR=
43851           AC_SUBST([LIB_VAR])
43852           prefix_saved_LIBS=$LIBS
43853             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
43854                        [test "$ac_cv_search_FUNC" = "none required" ||
43855                         LIB_VAR=$ac_cv_search_FUNC])
43856           LIBS=$prefix_saved_LIBS
43857
43858         However, in each of the files affected by this change, the LIB_VAR=
43859         initialization was omitted.  Thus, when set in the environment, its
43860         value would propagate into generated Makefiles when FUNC is not found
43861         in LIB_NAME.
43862         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
43863         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
43864         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
43865
43866 2009-10-14  Eric Blake  <ebb9@byu.net>
43867
43868         fchdir: avoid infinite recursion in mingw
43869         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
43870         recursing.
43871
43872         test-stat-time: port to mingw
43873         * tests/test-stat-time.c (force_unlink): Return a value.
43874         (test_ctime) [W32]: Fix compilation error.
43875         (nap): Don't call usleep with too large an argument.  Use
43876         force_unlink.
43877         * doc/pastposix-functions/usleep.texi (usleep): Document the
43878         portability issue.
43879
43880 2009-10-13  Jim Meyering  <meyering@redhat.com>
43881
43882         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
43883         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
43884         * modules/pipe-filter-ii: Likewise.
43885         * modules/sys_socket-tests: Likewise.
43886         * modules/tsearch-tests: Likewise.
43887         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
43888         (check): Depend on it.
43889
43890 2009-10-12  Eric Blake  <ebb9@byu.net>
43891
43892         utimens-tests: port to NFS file systems
43893         * tests/test-utimens.h (test_utimens): Refactor utimecmp
43894         comparisons to avoid spurious failures from timestamp drift
43895         between NFS machines.
43896
43897 2009-10-12  Eric Blake  <ebb9@byu.net>
43898
43899         stat-time-tests: minor cleanups
43900         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
43901         * tests/test-stat-time.c (nap): Separate assignment from call.
43902         Suggested by Paolo Bonzini and Bruno Haible.
43903
43904         sys_stat: guarantee struct timespec
43905         * lib/sys_stat.in.h (includes): Always include <time.h>
43906         * modules/sys_stat (Depends-on): Add time.
43907         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
43908         mode_t permission values.
43909         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
43910         get at subsecond timestamps.
43911
43912 2009-10-10  Eric Blake  <ebb9@byu.net>
43913
43914         futimens: new module
43915         * modules/futimens: New file.
43916         * lib/futimens.c (futimens): Likewise.
43917         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
43918         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
43919         we can work around Linux bugs.
43920         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
43921         * modules/sys_stat (Makefile.am): Substitute them.
43922         * lib/sys_stat.in.h (futimens): Declare it.
43923         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
43924         * doc/posix-functions/futimens.texi (futimens): Likewise.
43925         * modules/futimens-tests: New test.
43926         * tests/test-futimens.c: Likewise.
43927
43928         utimens: introduce fdutimens
43929         * lib/utimens.h (fdutimens): New prototype.
43930         * lib/utimens.c (gl_futimens): Move guts...
43931         (fdutimens): ...to new interface.
43932         * tests/test-utimens.c (do_fdutimens): Use it.
43933
43934         utimens: add UTIME_NOW and UTIME_OMIT support
43935         * lib/utimens.c (validate_timespec, update_timespec): New helper
43936         functions.
43937         (gl_futimens, lutimens): Use them.
43938         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
43939         stdbool, sys_stat.
43940         (Link): Mention resulting library dependency.
43941         * modules/utimecmp (Link): Likewise.
43942         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
43943         (Makefile.am): Pick up library dependency.
43944         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
43945         definition.
43946         * tests/test-sys_stat.c: Test the definitions.
43947         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
43948         * NEWS: Document library dependency.
43949
43950         utimecmp: support symlink timestamps
43951         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
43952         hashing when possible.  Use pathconf when available.
43953         (SYSCALL_RESOLUTION): Recognize tighter resolution.
43954         * modules/utimecmp (Depends-on): Add lstat.
43955
43956         utimens: add lutimens interface
43957         * lib/utimens.c (lutimens): New function.
43958         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
43959         * lib/utimens.h (lutimens): Declare new interface.
43960         * tests/test-utimens.c (main): Enhance test.
43961         * tests/test-lutimens.h (test_lutimens): New file.
43962         * modules/utimens-tests (Files): Distribute it.
43963         (Depends-on): Add symlink.
43964         (configure.ac): Check for usleep.
43965
43966         utimens: validate futimens usage
43967         * lib/utimens.c (gl_futimens): Require valid fd up front, using
43968         fewer syscalls on failure later on.  Avoid compiler warning on
43969         mingw.
43970         * modules/utimens (Depends-on): Add dup2.
43971
43972         utimens: add test
43973         * modules/utimens-tests: New test.
43974         * tests/test-utimens.h: New file.
43975         * tests/test-futimens.h: Likewise.
43976         * tests/test-utimens.c: Likewise.
43977
43978         doc: mention timestamp portability issues
43979         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
43980         instead.
43981         * doc/posix-functions/utime.texi (utime): Likewise.
43982         * doc/posix-functions/utimes.texi (utimes): Likewise.
43983         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
43984         instead.
43985         * doc/posix-functions/futimens.texi (futimens): Mention utimens
43986         module.
43987         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
43988         Mention weakness with symlink timestamps.
43989         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
43990         to utimensat/futimens instead.
43991         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
43992
43993         test-dup2: enhance test
43994         * tests/test-dup2.c (main): Also check AT_FDCWD.
43995
43996         test-stat-time: avoid more spurious failures
43997         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
43998         xfs; and avoid race if the two timestamps cross quantization edge.
43999
44000         relocatable: prefer 'file system' over 'filesystem'
44001         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
44002         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
44003         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
44004         * doc/relocatable.texi (Enabling Relocatability): Likewise.
44005         * lib/relocatable.c (compute_curr_prefix): Likewise.
44006
44007 2009-10-10  Jim Meyering  <meyering@redhat.com>
44008
44009         stat-time-tests: check for the usleep function
44010         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
44011
44012 2009-10-10  Bruno Haible  <bruno@clisp.org>
44013
44014         * modules/xnanosleep: Put the Link section after the Include section.
44015
44016 2009-10-09  Eric Blake  <ebb9@byu.net>
44017
44018         dup2: work around FreeBSD 6.1 bug
44019         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
44020         * doc/posix-functions/dup2.texi (dup2): Document it.
44021         Reported by Nelson H. F. Beebe and Jim Meyering.
44022
44023         test-stat-time: port to buggy NFS clients
44024         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
44025         (test_ctime): Also skip test if mtime and ctime are skewed.
44026
44027         maint: prefer 'file system' over 'filesystem'
44028         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
44029         * doc/posix-functions/lstat.texi (lstat): Likewise.
44030         * lib/file-has-acl.c (file_has_acl): Likewise.
44031         * lib/fwriteerror.c [TEST]: Likewise.
44032         * tests/test-areadlink.h (test_areadlink): Likewise.
44033         * tests/test-areadlinkat-with-size.c (main): Likewise.
44034         * tests/test-areadlinkat.c (main): Likewise.
44035         * tests/test-canonicalize-lgpl.c (main): Likewise.
44036         * tests/test-canonicalize.c (main): Likewise.
44037         * tests/test-fstatat.c (main): Likewise.
44038         * tests/test-linkat.c (main): Likewise.
44039         * tests/test-lstat.h (test_lstat_func): Likewise.
44040         * tests/test-mkdir.h (test_mkdir): Likewise.
44041         * tests/test-readlink.h (test_readlink): Likewise.
44042         * tests/test-remove.c (main): Likewise.
44043         * tests/test-rename.h (test_rename): Likewise.
44044         * tests/test-renameat.c (main): Likewise.
44045         * tests/test-rmdir.h (test_rmdir_func): Likewise.
44046         * tests/test-symlink.h (test_symlink): Likewise.
44047         * tests/test-symlinkat.c (main): Likewise.
44048         * tests/test-unlink.h (test_unlink_func): Likewise.
44049         * tests/test-unlinkat.c (main): Likewise.
44050
44051         maint: make realtime library usage explicit
44052         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
44053         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
44054         * modules/settime (Link): Likewise.
44055         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
44056
44057         test-stat-time: speed up execution
44058         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
44059         warning on mingw.
44060         (nap): New helper function.
44061         (prepare_test): Use it to reduce sleep time.
44062         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
44063         execution.
44064         * modules/stat-time-tests (configure.ac): Check for usleep.
44065
44066 2009-10-09  Jim Meyering  <meyering@redhat.com>
44067
44068         selinux-h: always use getfilecon wrappers
44069         * lib/getfilecon.c: New file.
44070         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
44071         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
44072         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
44073         (fgetfilecon): Provide a stub.
44074         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
44075         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
44076         file unconditionally.
44077         When <selinux/selinux.h> is found, arrange to use wrappers.
44078         * modules/selinux-h (Files): Add getfilecon.c.
44079         (Makefile.am): Substitute include-next-related bits
44080         into the now-always-generated selinux/selinux.h file.
44081         * doc/glibc-functions/lgetfilecon.texi: New file.
44082         * doc/glibc-functions/fgetfilecon.texi: New file.
44083         * doc/glibc-functions/getfilecon.texi: New file.
44084         * doc/glibc-functions/getfilecon-desc.texi: New file.
44085         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
44086         which to pull in the new files.
44087         * MODULES.html.sh (Misc): Add selinux-h.
44088
44089 2009-10-08  Jim Meyering  <meyering@redhat.com>
44090
44091         unistd: fix comment typo
44092         * lib/unistd.in.h (euidaccess): Fix a comment typo.
44093
44094 2009-10-08  Eric Blake  <ebb9@byu.net>
44095
44096         areadlink: use SIZE_MAX consistently
44097         * modules/areadlink (Depends-on): Add stdint.
44098         * modules/areadlink-with-size (Depends-on): Likewise.
44099         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
44100         gives NULL; drop sys/types, since unistd gives size_t; and add
44101         stdint for SIZE_MAX.
44102         (SIZE_MAX): Rely on headers.
44103         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
44104         and add stdint.
44105         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
44106         (SIZE_MAX): Likewise.
44107         (INITIAL_BUF_SIZE): Turn into enum.
44108         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
44109
44110 2009-10-08  Jim Meyering  <meyering@redhat.com>
44111
44112         areadlinkat: avoid compilation failure
44113         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
44114         Fix typo in comment.
44115
44116 2009-10-07  Eric Blake  <ebb9@byu.net>
44117
44118         areadlinkat-with-size: new module
44119         * modules/areadlinkat-with-size: New module.
44120         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
44121         * lib/areadlink.h (areadlinkat): Declare it.
44122         * MODULES.html.sh (File system functions): Mention it.
44123         * modules/areadlinkat-with-size-tests: New test.
44124         * tests/test-areadlinkat-with-size.c: New file.
44125
44126         xreadlinkat: new module
44127         * modules/xreadlinkat: New module.
44128         * lib/xreadlinkat.c (xreadlinkat): New file.
44129         * lib/xreadlink.h (xreadlinkat): Declare it.
44130         * MODULES.html.sh (File system functions): Mention it.
44131
44132         areadlinkat: new module
44133         * lib/at-func.c (FUNC_FAIL): New define.
44134         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
44135         * modules/areadlinkat: New module.
44136         * lib/linkat.c (areadlinkat): Move...
44137         * lib/areadlinkat.c (areadlinkat): ...to new file.
44138         * lib/areadlink.h (areadlinkat): Declare it.
44139         * modules/linkat (Depends-on): Add areadlinkat.
44140         * MODULES.html.sh (File system functions): Mention it.
44141         * modules/areadlinkat-tests: New test.
44142         * tests/test-areadlinkat.c: New file.
44143
44144         areadlink, areadlink-with-size: add tests
44145         * modules/areadlink-tests: New test.
44146         * modules/areadlink-with-size-tests: Likewise.
44147         * tests/test-areadlink.h: New file.
44148         * tests/test-areadlink.c: Likewise.
44149         * tests/test-areadlink-with-size.c: Likewise.
44150
44151         maint: minor cleanups
44152         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
44153         _UNUSED_PARAMETER_ instead.
44154         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
44155         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
44156         * modules/linkat-tests (Files): Distribute test-link.h.
44157
44158         openat, utimens: whitespace cleanup
44159         * lib/openat.c: Prefer space throughout, rather than mix of 8
44160         spaces vs. tabs.
44161         * lib/at-func.c: Likewise.
44162         * lib/utimens.c: Likewise.
44163
44164         openat: avoid using wrong fd
44165         * lib/openat.c (openat_permissive): Reject user's fd if saving the
44166         working directory chooses same fd.
44167         * lib/at-func.c (AT_FUNC_NAME): Likewise.
44168
44169         mkdir, mkdirat: fix cygwin 1.5.x bug
44170         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
44171         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
44172         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
44173         bug.
44174         (gl_PREREQ_MKDIR): Delete unused macro.
44175         * modules/mkdir (Files): Track file rename.
44176         (configure.ac): Update macro name.
44177         * modules/openat (Depends-on): Add mkdir.
44178         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
44179
44180         mkdir, mkdirat: add tests
44181         * modules/mkdir-tests: New test.
44182         * tests/test-mkdir.h: New file.
44183         * tests/test-mkdir.c: Likewise.
44184         * tests/test-mkdirat.c: Likewise.
44185         * modules/openat-tests (Files): Add new files.
44186         (Makefile.am): Run new test.
44187
44188 2009-10-06  Eric Blake  <ebb9@byu.net>
44189
44190         doc: tweak *at function documentation
44191         * doc/posix-functions/faccessat.texi (faccessat): Mention
44192         known issue with replacement.
44193         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
44194         * doc/posix-functions/linkat.texi (linkat): Likewise.
44195         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
44196         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
44197         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
44198         * doc/posix-functions/renameat.texi (renameat): Likewise.
44199         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
44200
44201         openat: fix GNU/Hurd bug in unlinkat
44202         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
44203         broken.
44204         * doc/posix-functions/unlink.texi (unlink): Document this.
44205         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
44206
44207         fdopendir: fix GNU/Hurd bug
44208         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
44209         allowing non-directory fds.
44210         * lib/fdopendir.c (rpl_fdopendir): Work around it.
44211         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
44212         * modules/dirent (Makefile.am): Substitute it.
44213         * lib/dirent.in.h (fdopendir): Declare replacement.
44214         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
44215         * tests/test-fdopendir.c (main): Test something other than
44216         /dev/null, since on Hurd that behaves like a directory.
44217
44218         test-symlink: port to GNU/Hurd
44219         * tests/test-symlink.h (test_symlink): Relax expected errno.
44220
44221         doc: tweak more cygwin information
44222         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
44223         now compatible with glibc.
44224         * doc/posix-functions/getopt.texi (getopt): Likewise.
44225
44226         getopt-gnu: add another test
44227         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
44228         guarantee behavior relied on by m4.
44229         * tests/test-getopt.c (main): Use it.
44230         * modules/getopt-posix-tests (Depends-on): Add setenv.
44231         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
44232
44233         getopt: fix compilation on darwin
44234         * lib/getopt.in.h (includes): Leave breadcrumbs during system
44235         include.
44236         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
44237         Reported by Ludovic Courtès.
44238
44239 2009-10-06  Bruno Haible  <bruno@clisp.org>
44240
44241         * modules/size_max (Description): Discourage its use.
44242         Reported by Simon Josefsson.
44243
44244 2009-10-06  Jim Meyering  <meyering@redhat.com>
44245
44246         linkat: avoid compilation failure
44247         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
44248
44249 2009-10-05  Eric Blake  <ebb9@byu.net>
44250
44251         linkat: support Linux 2.6.17
44252         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
44253         linkat on Linux, but allow cache variable override.
44254         * lib/linkat.c (rpl_linkat): Define override.
44255         * modules/linkat (Depends-on): Add symlinkat.
44256         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
44257         * modules/unistd (Makefile.am): Substitute it.
44258         * lib/unistd.in.h (linkat): Declare replacement.
44259         Reported by Pádraig Brady.
44260
44261         quotearg: port test to systems with C.UTF-8 locale
44262         * tests/test-quotearg.c (struct result_strings): Add another
44263         member, differentiating between C.ASCII and C.UTF-8 handling.
44264         (compare_strings): Add parameter.
44265         (main): Adjust all callers.
44266
44267         getopt: avoid clash with FreeBSD _getopt_internal
44268         * lib/getopt.in.h (_getopt_internal): Override the name.
44269         * lib/getopt_int.h (includes): Pick up any overrides.
44270         Reported by Reuben Thomas.
44271
44272         hash: allow C89 compilation
44273         * lib/hash.c (check_tuning): Move declaration before statement.
44274         Reported by Reuben Thomas.
44275
44276 2009-10-05  Karl Berry  <karl@gnu.org>
44277
44278         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
44279
44280 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
44281             Bruno Haible  <bruno@clisp.org>
44282
44283         * lib/uname.c (uname): Use a table-driven algorithm to compute
44284         Windows NT versions.
44285
44286 2009-10-04  Bruno Haible  <bruno@clisp.org>
44287
44288         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
44289         program_invocation_short_name.
44290         * modules/progname (configure.ac): Test for presence of
44291         program_invocation_short_name.
44292         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
44293
44294 2009-10-04  Bruno Haible  <bruno@clisp.org>
44295
44296         * lib/progname.c (set_program_name): Fix comment.
44297         Reported by Jim Meyering.
44298
44299 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
44300             Bruno Haible  <bruno@clisp.org>
44301
44302         * lib/uname.c: Include <string.h>.
44303         (uname): Do only one call to GetVersionEx in the common case.
44304
44305 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
44306             Bruno Haible  <bruno@clisp.org>
44307
44308         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
44309         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
44310         (uname): Add support for Windows CE and various non-x86 CPU types.
44311
44312 2009-10-03  Bruno Haible  <bruno@clisp.org>
44313
44314         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
44315         invocation to tests/configure.ac.
44316         Reported by Ian Beckwith <ianb@erislabs.net>.
44317
44318 2009-10-02  Eric Blake  <ebb9@byu.net>
44319
44320         fchdir: avoid compiler warning
44321         * lib/fchdir.c (canonicalize_file_name)
44322         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
44323
44324         test-open: support mingw errno values
44325         * tests/test-open.h (test_open): Relax test.
44326         * tests/test-fopen.h (test_fopen): Likewise.
44327         * tests/test-openat-safer.c (main): Likewise.
44328
44329         open: fix opening directory on mingw
44330         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
44331
44332         test-open: on GNU/Hurd, /dev/null is a directory
44333         * tests/test-fopen.h (main): Rename...
44334         (test_fopen): ...to this.  Use a guaranteed non-directory when
44335         confirming open behavior on trailing slash.
44336         * tests/test-openat-safer.c (main): Likewise.
44337         * tests/test-open.h (main): Likewise....
44338         (test_open): ...to this.
44339         * tests/test-fopen.c (main): Adjust caller.
44340         * tests/test-fopen-safer.c (main): Likewise.
44341         * tests/test-open.c (main): Likewise.
44342         * tests/test-fcntl-safer.c (main): Likewise.
44343         Reported by Samuel Thibault.
44344
44345         rename, fchdir: don't ignore chdir failure
44346         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
44347         * lib/rename.c (rpl_rename) [W32]: Likewise.
44348         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
44349         an empty destination directory if source cannot be renamed,
44350         although there is still possibility for failure.
44351         * doc/posix-functions/rename.texi (rename): Document the race.
44352         Reported by Jim Meyering.
44353
44354         maint: cleanup whitespace in recent commits
44355         * lib/rename.c (rpl_rename): Remove tabs.
44356         * tests/test-link.h (test_link): Likewise.
44357         * lib/fchdir.c (get_name): Likewise.
44358         Reported by Jim Meyering.
44359
44360 2009-10-02  Ben Pfaff  <blp@gnu.org>
44361
44362         relocatable-prog-wrapper: Add missing dependency on
44363         double-slash-root.
44364         * modules/relocatable-prog-wrapper: Add dependency.
44365         Reported by Ian Beckwith <ianb@erislabs.net>.
44366
44367 2009-10-02  Eric Blake  <ebb9@byu.net>
44368
44369         renameat: fix Solaris bugs
44370         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
44371         needed fixing.
44372         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
44373         * modules/stdio (Makefile.am): Substitute it.
44374         * lib/stdio.in.h (renameat): Declare replacement.
44375         * lib/renameat.c (rpl_renameat): Implement fix.
44376
44377         renameat: new module
44378         * modules/renameat: New file.
44379         * lib/renameat.c (renameat): Likewise.
44380         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
44381         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
44382         * modules/stdio (Makefile.am): Substitute them.
44383         * lib/stdio.in.h (renameat): Declare it.
44384         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
44385         * doc/posix-functions/renameat.texi (renameat): Likewise.
44386         * modules/renameat-tests: New test.
44387         * tests/test-renameat.c: Likewise.
44388
44389         rename: fix mingw bugs
44390         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
44391         directory overwrite bugs.
44392
44393         rename: fix another cygwin 1.5 bug
44394         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
44395         checks.
44396         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
44397         unnecessary cygwin workarounds.  Also work around bug with moving
44398         full directory onto an empty one.
44399         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
44400
44401         rename-dest-slash: merge into rename module
44402         * modules/rename-dest-slash (Status): Mark obsolete.
44403         (Depends-on): Add rename.
44404         (Files): Let rename do it all.
44405         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
44406         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
44407         * m4/rename-dest-slash.m4: ...so this file can be deleted.
44408         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
44409         * lib/rename.c (rpl_rename): Update comments.
44410
44411         rename: fix cygwin 1.5.x bugs
44412         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
44413         * lib/rename.c (rpl_rename): Work around them.
44414         * modules/rename (Depends-on): Add same-inode.
44415
44416         rename: fix Solaris 10 bug
44417         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
44418         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
44419         was the only bug.
44420
44421         rename: fix Solaris 9 bug
44422         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
44423         on non-directory.  Avoid calling exit.
44424         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
44425         strdup.
44426         * modules/rename-tests (Depends-on): Drop lstat.
44427         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
44428         (gl_PREREQ_RENAME): Delete unused macro.
44429
44430         rename-dest-slash: fix NetBSD bug
44431         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
44432         links.
44433         * modules/rename-dest-slash (Depends-on): Add same-inode.
44434
44435         rename-tests: new test, exposes several platform bugs
44436         * modules/rename-tests: New file.
44437         * tests/test-rename.h: Likewise.
44438         * tests/test-rename.c: Likewise.
44439         * doc/posix-functions/rename.texi (rename): Improve documentation,
44440         including bugs that will eventually be fixed in gnulib.
44441
44442 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
44443
44444         * lib/uname.c: Include <stdlib.h>
44445         (uname): Assume version info is available.
44446
44447 2009-10-02  Jim Meyering  <meyering@redhat.com>
44448
44449         gnu-web-doc-update: correct --help output
44450         * build-aux/gnu-web-doc-update: Make --help output relevant.
44451
44452         gnu-web-doc-update: add standard options
44453         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
44454
44455         gnu-web-doc-update: New module.
44456         Use this script to automatically update the on-line web documentation
44457         for your GNU project at http://www.gnu.org/software/$pkg/manual/
44458         * modules/gnu-web-doc-update: New file, from coreutils.
44459         * build-aux/gnu-web-doc-update: New script.
44460
44461 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
44462
44463         link: LoadLibrary is not needed.
44464         * lib/link.c: Use GetModuleHandle.
44465
44466 2009-10-01  Eric Blake  <ebb9@byu.net>
44467
44468         getopt: bump serial number
44469         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
44470         change.
44471
44472         tests: tighten link, rmdir, and remove tests
44473         * tests/test-link.h (includes): No need to use <config.h> here.
44474         Clean up if directory hard link was created, otherwise test for
44475         trailing '.'.
44476         * tests/test-linkat.c (main): Simplify.
44477         * tests/test-remove.c (main): Enhance test for trailing '.'.
44478         * tests/test-rmdir.h (test_rmdir_func): Likewise.
44479
44480 2009-10-01  Jim Meyering  <meyering@redhat.com>
44481
44482         maint.mk: requiring "make major" was annoying, for a "minor" release.
44483         What is intended is "stable", to contrast with alpha and beta,
44484         so require "make stable", not "make major".
44485         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
44486         (get_tool_versions): Likewise.
44487         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
44488
44489 2009-09-30  Ben Pfaff  <blp@gnu.org>
44490
44491         Fix broken build of replacement for Windows tmpfile().
44492         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
44493         flags argument added along with the 'mkostemp' module.
44494
44495 2009-09-28  Bruno Haible  <bruno@clisp.org>
44496
44497         Avoid identifier clash with POSIX function 'remove' defined as a macro.
44498         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
44499         to 'remove_elt'.
44500         (gl_list_remove): Update.
44501         * lib/gl_list.c (gl_list_remove): Update.
44502         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
44503         to 'remove_elt'.
44504         (gl_oset_remove): Update.
44505         * lib/gl_list.c (gl_oset_remove): Update.
44506         Reported by Eric Blake.
44507
44508 2009-09-28  Eric Blake  <ebb9@byu.net>
44509
44510         doc: mention yet more cygwin 1.7 status
44511         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
44512         cygwin.
44513         * doc/glibc-functions/execvpe.texi (execvpe): New file.
44514         * doc/gnulib.texi (Glibc unistd.h): Mention it.
44515
44516         argp: fix test failure
44517         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
44518         that are not upper-case.  Pass correct range to tolower.
44519
44520 2009-09-27  Jim Meyering  <meyering@redhat.com>
44521
44522         test-yesno: work around sparc-dash here-document infelicity
44523         Without this change, the literal \177 byte in a here document
44524         would make dash 0.5.5.1-3 access uninitialized memory.
44525         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
44526         Instead, use a marker, "@", and filter through tr to create the desired
44527         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
44528
44529 2009-09-27  Bruno Haible  <bruno@clisp.org>
44530
44531         Disable untested support for new flavours of ACLs on AIX.
44532         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
44533         progress.
44534         * lib/set-mode-acl.c (qset_acl): Likewise.
44535
44536 2008-12-07  Bruno Haible  <bruno@clisp.org>
44537
44538         Add support for new flavours of ACLs on AIX. (Untested.)
44539         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
44540         (file_has_acl): Add support for newer AIX.
44541         * lib/set-mode-acl.c (qset_acl): Likewise.
44542         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
44543         Rainer Tammer <tammer@tammer.net>.
44544
44545 2009-09-26  Eric Blake  <ebb9@byu.net>
44546
44547         argp: fix compilation of getopt
44548         * lib/getopt.in.h (includes): Use different guard than glibc.
44549         Reported by Sergey Poznyakoff.
44550
44551         doc: mention more cygwin 1.7 status
44552         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
44553         bug.
44554         * doc/posix-functions/execl.texi (execl): Likewise.
44555         * doc/posix-functions/execle.texi (execle): Likewise.
44556         * doc/posix-functions/execlp.texi (execlp): Likewise.
44557         * doc/posix-functions/execv.texi (execv): Likewise.
44558         * doc/posix-functions/execve.texi (execve): Likewise.
44559         * doc/posix-functions/execvp.texi (execvp): Likewise.
44560         * doc/glibc-functions/canonicalize_file_name.texi
44561         (canonicalize_file_name): Cygwin 1.7 now provides this.
44562         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
44563         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
44564         on AT_SYMLINK_NOFOLLOW.
44565
44566 2009-09-24  Eric Blake  <ebb9@byu.net>
44567
44568         test-linkat: make test more robust
44569         * tests/test-linkat.c (main): Avoid collision with EEXIST.
44570
44571         getopt: fix inclusion guards for cygwin
44572         * modules/getopt-posix (Depends-on): Add include-next.
44573         (Makefile.am): Substitute more items in replacement header.
44574         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
44575         <getopt.h>.
44576         * lib/getopt.in.h (includes): Use split inclusion guard, and
44577         prefer <getopt.h> over include <unistd.h> when one is present.
44578         (option): Also override name of 'struct option'.
44579
44580         same-inode: revert prior change; it is not yet ready
44581         * NEWS: Undo mention of this change.
44582         * lib/same-inode.h (same-inode.h): Undo tri-state change.
44583         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
44584         * lib/cycle-check.c (cycle_check): Likewise.
44585         * lib/same.c (same_name): Likewise.
44586         * lib/at-func2.c (at_func2): Likewise.
44587
44588 2009-09-23  Eric Blake  <ebb9@byu.net>
44589
44590         linkat: new module
44591         * modules/linkat: New file.
44592         * lib/at-func2.c (at_func2): Likewise.
44593         * lib/linkat.c (linkat): Likewise.
44594         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
44595         * lib/openat-priv.h (at_func2): Add declaration.
44596         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
44597         * modules/unistd (Makefile.am): Substitute them.
44598         * lib/unistd.in.h (linkat): Declare it.
44599         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
44600         * doc/posix-functions/linkat.texi (linkat): Likewise.
44601         * doc/posix-functions/link.texi (link): Tweak wording.
44602         * tests/test-link.c (main): Move guts...
44603         * tests/test-link.h (test_link): ...into new file.
44604         * modules/linkat-tests: New test.
44605         * tests/test-linkat.c: Likewise.
44606         * modules/link-tests (Files): Ship new file.
44607         (Depends-on): Add stdbool.
44608
44609         dirname: add library-safe mdir_name
44610         * lib/dirname.h (mdir_name): New prototype.
44611         * lib/dirname.c (dir_name): Move guts...
44612         (mdir_name): ...to new function that avoids xalloc_die.
44613
44614         fchdir: another mingw fix
44615         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
44616         * lib/fchdir.c (get_name): New helper method; skips canonicalize
44617         on mingw (where it has not yet been ported), and make it optional
44618         elsewhere.
44619         (_gl_register_fd): Use it.
44620
44621         same-inode: make SAME_INODE tri-state, to port to mingw
44622         * NEWS: Mention this change.
44623         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
44624         st_ino always being 0.
44625         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
44626         * lib/cycle-check.c (cycle_check): Likewise.
44627         * lib/same.c (same_name): Likewise.
44628
44629         lstat: avoid mingw compilation error
44630         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
44631         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
44632         lstat ourselves.
44633         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
44634         was adequate.
44635         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
44636         the checks for lstat.
44637         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
44638
44639         link: fix test failure on Solaris 9
44640         * lib/link.c (rpl_link): Don't assume link will catch bogus
44641         trailing slash on source.
44642
44643         test-symlinkat: enhance test
44644         * tests/test-readlink.c (main): Move guts...
44645         * tests/test-readlink.h (test_readlink): ...into new file.
44646         * tests/test-symlink.c (main): Move guts...
44647         * tests/test-symlink.h (test_symlink): ...into new file.
44648         * tests/test-symlinkat.c (main): Use new files for further
44649         coverage.
44650         (do_symlink, do_readlink): New helper functions.
44651         * modules/symlink-tests (Files): Ship new file.
44652         (Depends-on): Add stdbool.
44653         * modules/readlink-tests (Files): Ship new file.
44654         (Depends-on): Add stdbool.
44655         * modules/symlinkat-tests (Files): Use new files.
44656
44657 2009-09-23  Eric Blake  <ebb9@byu.net>
44658
44659         readlink: document portability issue with symlink length
44660         * doc/posix-functions/lstat.texi (lstat): Mention that some file
44661         systems have bogus st_size on symlinks, and mention the
44662         areadlink-with-size module.
44663         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
44664         * doc/posix-functions/readlink.texi (readlink): Mention the
44665         areadlink module, and ERANGE failure.
44666         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
44667         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
44668
44669         readlink: fix Solaris 9 bug with trailing slash
44670         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
44671         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
44672         * doc/posix-functions/readlink.texi (readlink): Document this.
44673         * modules/readlink-tests: New test.
44674         * tests/test-readlink.c: Likewise.
44675
44676         readlink: fix cygwin 1.5.x bug with return type
44677         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
44678         * lib/unistd.in.h (readlink): Use ssize_t.
44679         * lib/readlink.c (readlink): Likewise.
44680         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
44681         * modules/unistd (Makefile.am): Substitute it.
44682         * lib/unistd.in.h (readlink): Declare replacement.
44683         * doc/posix-functions/readlink.texi (readlink): Document this.
44684
44685         symlink: use throughout gnulib
44686         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
44687         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
44688         symlink is not used.
44689         * modules/symlinkat (Depends-on): Add symlink.
44690         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
44691         * modules/canonicalize-tests (Depends-on): Likewise.
44692         * modules/lstat-tests (Depends-on): Likewise.
44693         * modules/openat-tests (Depends-on): Likewise.
44694         * modules/remove-tests (Depends-on): Likewise.
44695         * modules/rmdir-tests (Depends-on): Likewise.
44696         * modules/unlink-tests (Depends-on): Likewise.
44697         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
44698         * tests/test-canonicalize.c (symlink): Likewise.
44699         * tests/test-fstatat.c (symlink): Likewise.
44700         * tests/test-lstat.c (symlink): Likewise.
44701         * tests/test-remove.c (symlink): Likewise.
44702         * tests/test-rmdir.c (symlink): Likewise.
44703         * tests/test-unlink.c (symlink): Likewise.
44704         * tests/test-unlinkat.c (symlink): Likewise.
44705
44706         symlink: new module, for Solaris 9 bug
44707         * modules/symlink: New file.
44708         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
44709         * lib/symlink.c: Likewise.
44710         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
44711         * modules/unistd (Makefile.am): Substitute them.
44712         * lib/unistd.in.h (symlink): Declare replacement.
44713         * MODULES.html.sh (File system functions): Mention it.
44714         * doc/posix-functions/symlink.texi (symlink): Likewise.
44715         * modules/symlink-tests: New test.
44716         * tests/test-symlink.c: Likewise.
44717
44718 2009-09-23  Bruno Haible  <bruno@clisp.org>
44719
44720         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
44721         when needed.
44722         Test case: gnulib-tool --import --with-tests atexit inttypes.
44723         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
44724
44725 2009-09-23  Bruno Haible  <bruno@clisp.org>
44726
44727         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
44728         subcommand, not in a subshell.
44729
44730 2009-09-22  Eric Blake  <ebb9@byu.net>
44731
44732         unistd: sort replacement declarations
44733         * lib/unistd.in.h: Sort declarations.
44734
44735         open, openat: minor optimization
44736         * lib/open.c (open): If open succeeded, len is non-zero.
44737         * lib/openat.c (rpl_openat): Likewise.
44738
44739         link-follow: ensure correct result
44740         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
44741         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
44742         distinguish between possible failures.
44743
44744 2009-09-21  Eric Blake  <ebb9@byu.net>
44745
44746         fts: avoid compiler warning
44747         * lib/fts.c (dirent_inode_sort_may_be_useful)
44748         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
44749
44750 2009-09-19  Bruno Haible  <bruno@clisp.org>
44751
44752         * lib/progreloc.c (canonicalize_file_name): New declaration.
44753
44754 2009-09-19  Eric Blake  <ebb9@byu.net>
44755
44756         link: fix quoting
44757         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
44758
44759         openat: fix openat bugs on Solaris 9
44760         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
44761         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
44762         * modules/openat (Depends-on): Add open.
44763         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
44764         * modules/fcntl-h (Makefile.am): Substitute it.
44765         * lib/fcntl.in.h (openat): Declare replacement.
44766         * doc/posix-functions/openat.texi (openat): Document this.
44767
44768         openat: move fstatat and unlinkat into correct files
44769         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
44770         compiled.
44771         * lib/openat.c (fstatat, unlinkat): Move...
44772         * lib/fstatat.c (fstatat): ...into correct files.
44773         * lib/unlinkat.c (unlinkat): Likewise.
44774
44775         openat: fix unlinkat bugs on Solaris 9
44776         * lib/unlinkat.c (unlinkat): New file.
44777         * modules/openat (Depends-on): Add unlink.
44778         (Files): Distribute it.
44779         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
44780         trailing slash behavior is broken.
44781         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
44782         * modules/unistd (Makefile.am): Substitute it.
44783         * lib/unistd.in.h (unlinkat): Declare replacement.
44784         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
44785
44786         openat: fix fstatat bugs on Solaris 9
44787         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
44788         stat.
44789         * doc/posix-functions/fstatat.texi (fstatat): Document this.
44790
44791         test-unlinkat: enhance test, to expose Solaris 9 bug
44792         * tests/test-unlink.c (main): Factor guts...
44793         * tests/test-unlink.h (test_rmdir_func): ...into new file.
44794         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
44795         * tests/test-rmdir.c (main): Adjust caller.
44796         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
44797         (unlinker): New helper function.
44798         (rmdirat): Enhance check.
44799         * modules/rmdir-tests (Depends-on): Add stdbool.
44800         * modules/unlink-tests (Depends-on): Likewise.
44801         (Files): Add test-unlink.h.
44802         * modules/openat-tests (Files): Likewise.
44803         (Depends-on): Add unlinkdir.
44804
44805         test-fstatat: new test, to expose Solaris 9 bugs
44806         * tests/test-stat.c (main): Factor guts...
44807         * tests/test-stat.h (test_stat_func): ...into new file.
44808         * tests/test-lstat.c (main): Factor guts...
44809         * tests/test-lstat.h (test_lstat_func): ...into new file.
44810         * tests/test-fstatat.c: New file.
44811         * modules/stat-tests (Files): Add test-stat.h.
44812         * modules/lstat-tests (Files): Add test-lstat.h.
44813         (Depends-on): Add stdbool.
44814         * modules/openat-tests (Depends-on): Add pathmax.
44815         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
44816         (Makefile.am): Run new test.
44817
44818         remove: new module, for mingw and Solaris 9 bugs
44819         * modules/remove: New file.
44820         * lib/remove.c: Likewise.
44821         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
44822         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
44823         * modules/stdio (Makefile.am): Use them.
44824         * lib/stdio.in.h (remove): Declare replacement.
44825         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
44826         * doc/posix-functions/remove.texi (remove): Likewise.
44827         * modules/remove-tests: New test.
44828         * tests/test-remove.c: Likewise.
44829
44830         unlink: new module, for Solaris 9 bug
44831         * modules/unlink: New file.
44832         * lib/unlink.c: Likewise.
44833         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
44834         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
44835         * modules/unistd (Makefile.am): Use them.
44836         * lib/unistd.in.h (stat): Declare replacement.
44837         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
44838         * doc/posix-functions/unlink.texi (unlink): Likewise.
44839         * modules/unlink-tests: New test.
44840         * tests/test-unlink.c: Likewise.
44841
44842         lstat: fix Solaris 9 bug
44843         * lib/lstat.c (lstat): Also check for trailing slash on
44844         non-symlink, non-directories.  Use stat module to simplify logic.
44845         * doc/posix-functions/lstat.texi (lstat): Document it.
44846         * modules/lstat-tests (Depends-on): Add errno, same-inode.
44847         (configure.ac): Check for symlink.
44848         * tests/test-lstat.c (main): Add more tests.
44849
44850         stat: add as dependency to other modules
44851         * modules/chown (Depends-on): Add stat.
44852         * modules/euidaccess (Depends-on): Likewise.
44853         * modules/fchdir (Depends-on): Likewise.
44854         * modules/isdir (Depends-on): Likewise.
44855         * modules/link (Depends-on): Likewise.
44856         * modules/lstat (Depends-on): Likewise.
44857         * modules/mkdir-p (Depends-on): Likewise.
44858         * modules/modechange (Depends-on): Likewise.
44859         * modules/open (Depends-on): Likewise.
44860         * modules/readlink (Depends-on): Likewise.
44861         * modules/same (Depends-on): Likewise.
44862
44863         stat: fix Solaris 9 bug
44864         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
44865         slash.
44866         * lib/stat.c (rpl_stat): Work around it.
44867         * doc/posix-functions/stat.texi (stat): Update documentation.
44868
44869         stat: new module, for mingw bug
44870         * modules/stat: New file.
44871         * lib/stat.c: Likewise.
44872         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
44873         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
44874         * modules/sys_stat (Makefile.am): Use them.
44875         * lib/sys_stat.in.h (stat): Declare replacement.
44876         * lib/openat.c (fstatat): Deal with lstat and stat being function
44877         macros.
44878         * modules/openat (Depends-on): Add inline.
44879         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
44880         * doc/posix-functions/stat.texi (stat): Likewise.
44881         * modules/stat-tests: New test.
44882         * tests/test-stat.c: Likewise.
44883
44884 2009-09-19  Jim Meyering  <meyering@redhat.com>
44885
44886         syntax-check: detect unnecessary inclusion of canonicalize.h
44887         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
44888
44889 2009-09-19  Eric Blake  <ebb9@byu.net>
44890
44891         canonicalize-lgpl: adjust clients to use correct header
44892         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
44893         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
44894         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
44895         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
44896         * lib/progreloc.c (includes): Likewise.
44897
44898 2009-09-19  Jim Meyering  <meyering@redhat.com>
44899
44900         test-posixtm.c: correct a comment
44901         * tests/test-posixtm.c: Correct first-line comment.
44902         Spotted by Eric Blake.
44903
44904 2009-09-16  Jim Meyering  <meyering@redhat.com>
44905
44906         posixtm-tests: make T const-correct; add a test case
44907         * tests/test-posixtm.c (T): Declare const.
44908         Add a test for -(2^31+1).
44909         Remove useless can-succeed-only-in-2002 test.
44910
44911         posixtm-tests: adjust the sole failing test
44912         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
44913         expected output matches what mktime now produces.  Cross-checked via
44914         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
44915
44916         posixtm: move #ifdef'd tests into a new module
44917         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
44918         * tests/test-posixtm.c: ... this new file.
44919         * modules/posixtm-tests: New module.
44920
44921 2009-09-19  Eric Blake  <ebb9@byu.net>
44922
44923         openat: simplify use of at-func.c
44924         * lib/at-func.c (includes): Include prerequisites here, to
44925         simplify requirements on client files.
44926         * lib/openat-priv.h: Add double-inclusion guard.
44927         * lib/faccessat.c (includes): Simplify.
44928         * lib/fchmodat.c (includes): Likewise.
44929         * lib/fchownat.c (includes): Likewise.
44930         * lib/mkdirat.c (includes): Likewise.
44931         * lib/mkfifoat.c (includes): Likewise.
44932         * lib/symlinkat.c (includes): Likewise.
44933
44934         openat: allow return of fd 0
44935         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
44936         * modules/save-cwd (Depends-on): Replace fcntl-safer with
44937         unistd-safer.
44938         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
44939         <fcntl.h>; this module does not leak fds.
44940         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
44941         must be allowed to return 0, leaving openat_safer to add the
44942         safety.
44943         (openat_permissive): Avoid writing to just-opened fd 2 if
44944         restoring the current directory fails.
44945         * lib/openat-die.c (openat_restore_fail): Add comment.
44946         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
44947         (save_cwd): Guarantee safe fd, but without use of open_safer.
44948         * tests/test-openat.c: New test.
44949         * modules/openat-tests (Files, Makefile.am): Distribute and build
44950         new file.
44951
44952         relocatable-prog-wrapper: fix build
44953         * modules/relocatable-prog-wrapper (Files): Update name of
44954         canonicalize m4 file, broken on 2009-09-17.
44955         Reported by emad hajjar <aleppos@hotmail.com>.
44956
44957 2009-09-19  Bruno Haible  <bruno@clisp.org>
44958
44959         * lib/safe-alloc.h: Use the standard header with GPL copyright.
44960         * lib/safe-alloc.c: Likewise.
44961         Reported by Ian Beckwith <ianb@erislabs.net>.
44962
44963 2009-09-18  Bruno Haible  <bruno@clisp.org>
44964
44965         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
44966         Reported by <erobles@sensacd.com.mx>.
44967
44968 2009-09-17  Eric Blake  <ebb9@byu.net>
44969
44970         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
44971         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
44972         slashes when checking if last component is missing.
44973         * tests/test-canonicalize.c (main): Test this.
44974
44975         canonicalize, canonicalize-lgpl: honor // if distinct from /
44976         * modules/canonicalize (Files): Add double-slash-root.m4.
44977         * modules/canonicalize-lgpl (Files): Likewise.
44978         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
44979         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
44980         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
44981         fallback definition.
44982         (canonicalize_filename_mode): Use it to protect //.
44983         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
44984         (__realpath): Likewise.
44985         * tests/test-canonicalize.c (main): Test this.
44986         * tests/test-canonicalize-lgpl.c (main): Likewise.
44987         * modules/canonicalize-tests (Depends-on): Add same-inode.
44988         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
44989
44990         canonicalize-lgpl: fix glibc bug with trailing slash
44991         * m4/canonicalize-lgpl.m4: Move contents...
44992         * m4/canonicalize.m4: ...here.
44993         (gl_CANONICALIZE_LGPL): Factor realpath check...
44994         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
44995         glibc 2.3.5 bug, fixed 2005-04-27.
44996         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
44997         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
44998         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
44999         * modules/canonicalize-lgpl (Files): Manage file rename.
45000         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
45001         * modules/stdlib (Makefile.am): Substitute witness.
45002         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
45003         is needed.
45004         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
45005         replacement is required.
45006         * lib/canonicalize.c (canonicalize_file_name): Likewise.
45007         * doc/glibc-functions/canonicalize_file_name.texi
45008         (canonicalize_file_name): Document this.
45009         * doc/posix-functions/realpath.texi (realpath): Likewise.
45010
45011         canonicalize-lgpl: reject non-directory with trailing slash
45012         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
45013         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
45014         catches failures in glibc 2.3.5.
45015         * tests/test-canonicalize.c (main): Likewise.
45016
45017         canonicalize-lgpl: use native realpath if it works
45018         * lib/canonicalize-lgpl.c (realpath): Guard with
45019         FUNC_REALPATH_WORKS.
45020         * lib/stdlib.in.h (realpath): Make declaration optional based on
45021         HAVE_REALPATH.
45022         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
45023         native realpath works.
45024         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
45025         * modules/stdlib (Makefile.am): Substitute witness.
45026
45027         canonicalize, canonicalize-lgpl: use <stdlib.h>
45028         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
45029         (Include): Mention <stdlib.h>.
45030         (configure.ac): Mention functions we provide.
45031         * modules/canonicalize (configure.ac): Likewise.
45032         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
45033         realpath if canonicalize_file_name is missing.
45034         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
45035         * modules/stdlib (Makefile.am): Substitute witnesses.
45036         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
45037         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
45038         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
45039         * NEWS: Document this.
45040         * doc/glibc-functions/canonicalize_file_name.texi
45041         (canonicalize_file_name): Likewise.
45042         * doc/posix-functions/realpath.texi (realpath): Likewise.
45043         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
45044
45045         test-canonicalize: consolidate into single C program
45046         * tests/test-canonicalize.sh: Delete; move setup into...
45047         * tests/test-canonicalize.c (main): ...the program, making it
45048         easier to run in debugger.  Add some tests.
45049         * modules/canonicalize-tests (Files): Remove unused file.
45050         (Depends-on): Add progname.
45051         (configure.ac, Makefile.am): Simplify.
45052
45053         test-canonicalize-lgpl: consolidate into single C program
45054         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
45055         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
45056         easier to run in debugger.  Add some tests.
45057         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
45058         (configure.ac, Makefile.am): Simplify.
45059
45060         canonicalize: avoid resolvepath
45061         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
45062         unnecessary checks.
45063         * lib/canonicalize.c (includes): Simplify.
45064         (canonicalize_file_name): Drop resolvepath implementation.
45065         * modules/canonicalize (Depends-on): Drop filenamecat.
45066
45067         canonicalize: don't lose errno
45068         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
45069         over calls to free.
45070
45071         canonicalize: simplify errno handling
45072         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
45073         assignment.
45074
45075         canonicalize, canonicalize-lgpl: update module dependencies
45076         * modules/canonicalize (Depends-on): Add extensions, lstat,
45077         pathmax, stdlib.
45078         (Files): Drop pathmax.h.
45079         (configure.ac): Adjust macro name.
45080         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
45081         lstat, stdlib, sys_stat.
45082         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
45083         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
45084         extensions.
45085         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
45086         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
45087         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
45088         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
45089         declaration, if available.
45090         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
45091         we can rely on the readlink module.
45092         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
45093         (includes): Use <unistd.h> unconditionally.
45094
45095 2009-09-17  Eric Blake  <ebb9@byu.net>
45096
45097         maint: make Include sections of modules consistent
45098         * modules/alloca: Use only header name; no need to list #include.
45099         * modules/alloca-opt: Likewise.
45100         * modules/arpa_inet: Likewise.
45101         * modules/canon-host: Likewise.
45102         * modules/configmake: Likewise.
45103         * modules/dirent: Likewise.
45104         * modules/eealloc: Likewise.
45105         * modules/environ: Likewise.
45106         * modules/fchdir: Likewise.
45107         * modules/fcntl: Likewise.
45108         * modules/fcntl-h: Likewise.
45109         * modules/gethrxtime: Likewise.
45110         * modules/gettime: Likewise.
45111         * modules/ignore-value: Likewise.
45112         * modules/inet_ntop: Likewise.
45113         * modules/inet_pton: Likewise.
45114         * modules/inttypes: Likewise.
45115         * modules/isnand-nolibm: Likewise.
45116         * modules/isnanf-nolibm: Likewise.
45117         * modules/mbchar: Likewise.
45118         * modules/mbfile: Likewise.
45119         * modules/mbiter: Likewise.
45120         * modules/mbuiter: Likewise.
45121         * modules/netdb: Likewise.
45122         * modules/netinet_in: Likewise.
45123         * modules/nproc: Likewise.
45124         * modules/pagealign_alloc: Likewise.
45125         * modules/poll: Likewise.
45126         * modules/printf-frexp: Likewise.
45127         * modules/pthread: Likewise.
45128         * modules/putenv: Likewise.
45129         * modules/random_r: Likewise.
45130         * modules/relocatable-prog: Likewise.
45131         * modules/search: Likewise.
45132         * modules/select: Likewise.
45133         * modules/selinux-h: Likewise.
45134         * modules/settime: Likewise.
45135         * modules/signal: Likewise.
45136         * modules/size_max: Likewise.
45137         * modules/socklen: Likewise.
45138         * modules/ssize_t: Likewise.
45139         * modules/stdarg: Likewise.
45140         * modules/stdbool: Likewise.
45141         * modules/stddef: Likewise.
45142         * modules/stdint: Likewise.
45143         * modules/stdio: Likewise.
45144         * modules/stdlib: Likewise.
45145         * modules/string: Likewise.
45146         * modules/strings: Likewise.
45147         * modules/sys_file: Likewise.
45148         * modules/sys_ioctl: Likewise.
45149         * modules/sys_select: Likewise.
45150         * modules/sys_socket: Likewise.
45151         * modules/sys_stat: Likewise.
45152         * modules/sys_time: Likewise.
45153         * modules/sys_times: Likewise.
45154         * modules/sys_utsname: Likewise.
45155         * modules/sys_wait: Likewise.
45156         * modules/sysexits: Likewise.
45157         * modules/time: Likewise.
45158         * modules/times: Likewise.
45159         * modules/tmpfile: Likewise.
45160         * modules/trim: Likewise.
45161         * modules/unistd: Likewise.
45162         * modules/wchar: Likewise.
45163         * modules/wctype: Likewise.
45164
45165 2009-09-17  Bruno Haible  <bruno@clisp.org>
45166
45167         Make getdate.y compile on QNX and NetBSD 5 / i386.
45168         * m4/getdate.m4 (gl_GETDATE): Conditionally define
45169         TIME_T_FITS_IN_LONG_INT.
45170         * lib/getdate.y (long_time_t): New type.
45171         (relative_time): Change type of 'seconds' field to long_time_t.
45172         (get_date): Update types of local variables. Check against overflow
45173         during conversion from long_time_t to time_t.
45174         Reported by Matt Kraai <kraai@ftbfs.org>
45175         and Hasso Tepper <hasso@netbsd.org>.
45176
45177 2009-09-17  Bruno Haible  <bruno@clisp.org>
45178
45179         * modules/COPYING: Update copyright years.
45180         * modules/README: Likeiwse.
45181         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
45182         Reported by Ian Beckwith <ianb@erislabs.net>.
45183
45184 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
45185
45186         * users.txt: Update references for gnuit package.
45187
45188 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
45189
45190         * m4/getdelim.m4: Fix typo in copyright line.
45191
45192 2009-09-17  Bruno Haible  <bruno@clisp.org>
45193
45194         * lib/atoll.c: Use the standard header with GPL copyright.
45195         * lib/argz.in.h: Likewise.
45196         * lib/glob.c: Likewise.
45197         * lib/glob-libc.h: Likewise.
45198         * lib/random_r.c: Likewise.
45199         * lib/siglist.h: Likewise.
45200         * lib/strsignal.c: Likewise.
45201         Reported by Ian Beckwith <ianb@erislabs.net>.
45202
45203 2009-09-17  Eric Blake  <ebb9@byu.net>
45204
45205         rmdir: ensure correct dependency order
45206         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
45207
45208 2009-09-17  Bruno Haible  <bruno@clisp.org>
45209
45210         Disable assertion that fails on NetBSD 5 / i386.
45211         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
45212         Reported by Sam Steingold <sds@gnu.org>
45213         and Hasso Tepper <hasso@netbsd.org>.
45214
45215 2009-09-16  Eric Blake  <ebb9@byu.net>
45216
45217         unlinkdir: port to mingw
45218         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
45219         on which no one can unlink a directory.
45220
45221         stdlib: sort witness names
45222         * modules/stdlib (Makefile.am): Sort replacements.
45223         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
45224         * lib/stdlib.in.h: Likewise.
45225
45226         parse-duration-tests: avoid link failure
45227         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
45228         LIBINTL.
45229         Reported by Tom G. Christensen.
45230
45231         openat-tests: ensure unlinkat behaves like rmdir
45232         * tests/test-rmdir.c (main): Factor guts...
45233         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
45234         * modules/rmdir-tests (Files): Ship new file.
45235         * modules/openat-tests: New test.
45236         * tests/test-unlinkat.c: Likewise.
45237
45238         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
45239         * modules/rmdir-errno (Status, Notice): Now obsolete.
45240
45241         rmdir: work around cygwin 1.5.x and mingw bugs
45242         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
45243         * lib/rmdir.c (rmdir): Work around it.
45244         * modules/rmdir (Status, Notice): No longer obsolete.
45245         (Files): Add dos.m4.
45246         (Depends-on): Add unistd.
45247         (configure.ac): Set witnesses.
45248         (License): Relax to LGPLv2+.
45249         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
45250         * modules/unistd (Makefile.am): Substitute witnesses.
45251         * lib/unistd.in.h (rmdir): Declare replacement.
45252         * doc/posix-functions/rmdir.texi (rmdir): Document this.
45253         * modules/rmdir-tests: New tests.
45254         * tests/test-rmdir.c: Likewise.
45255
45256 2009-09-15  Eric Blake  <ebb9@byu.net>
45257
45258         fchdir: improve use of replacement functions
45259         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
45260         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
45261         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
45262         REPLACE_CLOSEDIR.
45263         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
45264         * modules/sys_stat (Makefile.am): Substitute correct witness.
45265         * modules/dirent (Makefile.am): Likewise.
45266         * modules/unistd (Makefile.am): Likewise.
45267         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
45268         * lib/unistd.in.h (dup): Likewise.
45269         * lib/sys_stat.in.h (fstat): Likewise.
45270
45271         maint: ignore gnulib-tool temp files
45272         * .gitignore: Ignore files created during gnulib-tool --test.
45273
45274 2009-09-13  Jim Meyering  <meyering@redhat.com>
45275
45276         posixtm: don't reject a time that specify "60" as the number of seconds
45277         * lib/posixtm.c (posixtime): The code to reject invalid dates
45278         would also reject a time specified with the .60 suffix.
45279         But POSIX allows that, in order to accommodate leap seconds.
45280         So don't reject it.
45281         (main): Adjust tests accordingly.
45282         * modules/posixtm (Depends-on): Add stpcpy.
45283
45284 2009-09-11  Jim Meyering  <meyering@redhat.com>
45285
45286         announce-gen: include [$release_type] in emitted Subject:
45287         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
45288         e.g., [stable] in the emitted Subject: line.
45289
45290 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45291
45292         Remove obsolete macros from several modules.
45293         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
45294         obsolete Autoconf macros with their modern counterparts.
45295         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
45296         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
45297         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
45298         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
45299         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
45300         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
45301         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
45302         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
45303         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
45304         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
45305         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
45306         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
45307         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
45308         * m4/sockets.m4 (gl_SOCKETS): Likewise.
45309         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
45310         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
45311         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
45312         * m4/time_r.m4 (gl_TIME_R): Likewise.
45313         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
45314         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
45315         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
45316
45317         Fix copyright header in build-aux scripts.
45318         * build-aux/git-version-gen: Fix copyright header to match GPLv3
45319         recommendation.
45320         * build-aux/ncftpput-ftp: Likewise.
45321         * build-aux/update-copyright: Likewise.
45322
45323 2009-09-09  Eric Blake  <ebb9@byu.net>
45324
45325         test-link: allow Linux choice of errno
45326         * tests/test-link.c (main): Relax test for alternate error.
45327
45328         strndup: fix improper m4 caching
45329         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
45330         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
45331         (gl_PREREQ_STRNDUP): Delete.
45332         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
45333         * modules/string (Makefile.am): Substitute it.
45334         * lib/string.in.h (strndup): Modernize prototype.
45335
45336         getcwd: port to mingw
45337         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
45338         different from the POSIX assumptions made throughout the getcwd
45339         module; fortunately, the mingw getcwd does not need replacement.
45340         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
45341         * modules/getcwd-tests: New test.
45342         * tests/test-getcwd.c: Likewise.
45343
45344         link: fix platform bugs
45345         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
45346         * lib/link.c (link): Work around them.  Fix related mingw bug.
45347         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
45348         * modules/unistd (Makefile.am): Substitute it.
45349         * lib/unistd.in.h (link): Declare replacement.
45350         * doc/posix-functions/link.texi (link): Document this.
45351         * modules/link (Depends-on): Add strdup-posix, sys_stat.
45352
45353         test-link: consolidate into single C program, test more cases
45354         * tests/test-link.sh: Delete.
45355         * tests/test-link.c: Test more error conditions.  Exposes bugs on
45356         at least Cygwin and Solaris.
45357         * modules/link-tests (Files): Remove unused file.
45358         (Depends-on): Add errno, sys_stat.
45359         (Makefile.am): Simplify.
45360
45361 2009-09-08  Bruno Haible  <bruno@clisp.org>
45362
45363         Work around towlower, towupper bug on mingw.
45364         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
45365         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
45366         * doc/posix-functions/towlower.texi: Mention the mingw bug.
45367         * doc/posix-functions/towupper.texi: Likewise.
45368         Reported by Eric Blake.
45369
45370 2009-09-08  Jim Meyering  <meyering@redhat.com>
45371
45372         build: don't try to run autoheader if we don't use it
45373         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
45374         is not used in configure.ac.
45375
45376 2009-09-08  Eric Blake  <ebb9@byu.net>
45377
45378         euidaccess: fix compilation error
45379         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
45380
45381         rawmemchr: relax license
45382         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
45383         okay.
45384         Reported by Jim Meyering.
45385
45386         mkfifoat: new module
45387         * modules/mkfifoat: New file.
45388         * lib/mkfifoat.c: Likewise.
45389         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
45390         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
45391         * modules/sys_stat (Makefile.am): Use them.
45392         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
45393         * MODULES.html.sh (File system functions): Mention module.
45394         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
45395         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
45396         * modules/mkfifoat-tests: New test.
45397         * tests/test-mkfifoat.c: Likewise.
45398
45399         strchrnul: relax license
45400         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
45401         okay.
45402         Reported by Jim Meyering.
45403
45404 2009-09-08  Eric Blake  <ebb9@byu.net>
45405
45406         fstatat: fix compilation on Solaris
45407         * lib/fstatat.c (includes): Add fcntl.h.
45408         Reported by Pádraig Brady.
45409
45410 2009-09-07  Eric Blake  <ebb9@byu.net>
45411
45412         rename: modernize replacement
45413         * modules/rename (Depends-on): Add stdio.
45414         (configure.ac): Declare witness.
45415         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
45416         stdio take care of replacement.
45417         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
45418         * modules/stdio (Makefile.am): Substitute them.
45419         * lib/stdio.in.h (rename): Declare replacement.
45420         * lib/rename.c (includes): Allow cross-compilation to non-windows
45421         machines.
45422         * doc/posix-functions/rename.texi (rename): Improve
45423         documentation.
45424
45425         stdio: sort witness names
45426         * modules/stdio (Makefile.am): Sort replacements.
45427         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
45428         * lib/stdio.in.h: Likewise.
45429
45430         getcwd: minor cleanups
45431         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
45432         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
45433
45434         openat: provide more convenience names
45435         * modules/faccessat (configure.ac): Add C witness.
45436         * lib/unistd.in.h (readlinkat): Fix typo.
45437         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
45438         convenience wrappers.
45439         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
45440         wrappers in syntax checks.
45441
45442 2009-09-06  Eric Blake  <ebb9@byu.net>
45443
45444         doc: fix comments in recent patches
45445         * lib/faccessat.c: Mention correct function.
45446         * lib/fchmodat.c: Likewise.
45447         * lib/fchownat.c: Likewise.
45448         * lib/symlinkat.c: Likewise.
45449         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
45450         constants.
45451
45452         faccessat, symlinkat: continue cleanup of previous patch
45453         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
45454         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
45455         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
45456         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
45457         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
45458         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
45459         set.
45460
45461 2009-09-06  Bruno Haible  <bruno@clisp.org>
45462
45463         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
45464         (fstatat): Declare if GNULIB_FSTATAT is set.
45465         (mkdirat): Declare if GNULIB_MKDIRAT is set.
45466         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
45467         (unlinkat): Declare if GNULIB_UNLINKAT is set.
45468         * modules/fcntl-h (Files): Remove m4/openat.m4.
45469         * modules/sys_stat (Files): Remove m4/openat.m4.
45470         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
45471         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
45472         * modules/unistd (Files): Remove m4/openat.m4.
45473         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
45474         GNULIB_OPENAT.
45475         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
45476         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
45477         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
45478         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
45479         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
45480         gl_OPENAT_DEFAULTS.
45481         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
45482         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
45483         Don't require gl_OPENAT_DEFAULTS.
45484         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
45485         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
45486         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
45487         (gl_OPENAT_DEFAULTS): Remove macro.
45488
45489 2009-09-06  Bruno Haible  <bruno@clisp.org>
45490
45491         * modules/openat (configure.ac): Remove unneeded witness.
45492
45493 2009-09-06  Bruno Haible  <bruno@clisp.org>
45494
45495         Set errno to ENOSYS when a function is entirely unsupported.
45496         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
45497         EOPNOTSUPP.
45498         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
45499         * modules/chown (Depends-on): Remove errno.
45500
45501 2009-09-06  Bruno Haible  <bruno@clisp.org>
45502
45503         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
45504
45505 2009-09-06  Bruno Haible  <bruno@clisp.org>
45506
45507         * lib/sys_stat.in.h: Fix preprocessor command indentation.
45508
45509 2009-09-06  Ben Pfaff  <blp@gnu.org>
45510             Bruno Haible  <bruno@clisp.org>
45511
45512         Work around a glibc bug in strtok_r.
45513         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
45514         Undefine if UNDEFINE_STRTOK_R is set.
45515         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
45516         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
45517         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
45518         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
45519         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
45520         UNDEFINE_STRTOK_R.
45521         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
45522
45523 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
45524
45525         exclude: minor fix
45526         * lib/exclude.c: Include wctype.h
45527
45528 2009-09-06  Akim Demaille  <demaille@gostai.com>
45529
45530         bootstrap: improve error message
45531         * build-aux/bootstrap (find_tool): Upon failure, report the list
45532         of candidates.
45533         Honor the initial value of the envvar.
45534
45535 2009-09-05  Eric Blake  <ebb9@byu.net>
45536
45537         symlinkat: new module
45538         * modules/symlinkat: New file.
45539         * lib/symlinkat.c: Likewise.
45540         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
45541         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
45542         * modules/unistd (Makefile.am): Use them.
45543         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
45544         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
45545         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
45546         * MODULES.html.sh (File system functions): Mention module.
45547         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
45548         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
45549         * modules/symlinkat-tests: New test.
45550         * tests/test-symlinkat.c: Likewise.
45551
45552         test-openat-safer: add more checks
45553         * tests/test-openat-safer.c (main): Check more code paths.
45554
45555 2009-09-05  Jim Meyering  <meyering@redhat.com>
45556
45557         syntax-check: detect unnecessary inclusion of openat.h
45558         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
45559
45560 2009-09-05  Bruno Haible  <bruno@clisp.org>
45561
45562         Support towlower, towupper.
45563         * doc/posix-functions/towlower.texi: Mention module wctype.
45564         * doc/posix-functions/towupper.texi: Likewise.
45565         * lib/wctype.in.h (towlower, towupper): New functions.
45566         * tests/test-wctype.c: Include stdio.h, stdlib.h.
45567         (ASSERT): New macro.
45568         (e): New variable.
45569         (main): Test also towlower, towupper. Test WEOF argument.
45570         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
45571
45572 2009-09-05  Bruno Haible  <bruno@clisp.org>
45573
45574         Fix conversion behaviour when the input is invalid.
45575         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
45576         mark occurring in first pass of indirect conversion.
45577         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
45578         input.
45579         Found by clang's static analyzer.
45580
45581 2009-09-05  Bruno Haible  <bruno@clisp.org>
45582
45583         * tests/test-striconveh.c (main): Test indirect conversion on platforms
45584         where direct conversion is possible.
45585
45586 2009-09-04  Eric Blake  <ebb9@byu.net>
45587
45588         openat: fail with ENOENT on empty name
45589         * lib/openat-proc.c (openat_proc_name): Special-case the empty
45590         buffer.
45591
45592         link-follow: fix logic bug in prior patch
45593         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
45594         reversed sense of yes and no in prior patch.  Avoid confusing
45595         compilation failure with desired semantics.
45596
45597         link-follow: accommodate mingw and cross-compilation
45598         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
45599         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
45600         cross-compilation results to -1, to make linkat easier to
45601         implement when cross-compiling.  Trivially support mingw.
45602         * modules/link-follow (configure.ac): Call new name.
45603         * NEWS: Mention this.
45604
45605 2009-09-03  Eric Blake  <ebb9@byu.net>
45606
45607         faccessat: compile replacement
45608         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
45609         needed.
45610
45611         fts: fix compilation error
45612         * lib/fts.c (includes): Re-add "openat.h", for
45613         openat_needs_fchdir.
45614
45615         faccessat: new module
45616         * modules/faccessat: New file.
45617         * lib/faccessat.c: Likewise.
45618         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
45619         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
45620         * modules/unistd (Makefile.am): Use it.
45621         * lib/unistd.in.h (faccessat): Declare it.
45622         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
45623         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
45624         * MODULES.html.sh (File system functions): Mention it.
45625         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
45626         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
45627
45628         euidaccess: prefer POSIX over non-standard implementation
45629         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
45630         * lib/euidaccess.c (euidaccess): Use it if available.
45631
45632         openat: make template easier to use
45633         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
45634         AT_FUNC_F2 to be undefined.
45635         (VALIDATE_FLAG): New macro; use it to reject bad flags.
45636         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
45637         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
45638         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
45639         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
45640         Likewise.
45641         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
45642         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
45643         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
45644         Likewise.
45645
45646         openat: declare in POSIX headers
45647         * NEWS: Mention this.
45648         * modules/openat (configure.ac): Declare witnesses.
45649         (Depends-on): Add fcntl-h, sys_stat, unistd.
45650         (Include): Mention correct headers.
45651         * modules/fcntl-h (Depends-on): Add link-warning.
45652         (Files): Add openat.m4.
45653         (Makefile.am): Substitute witnesses.
45654         * modules/sys_stat (Files, Makefile.am): Likewise.
45655         * modules/unistd (Files, Makefile.am): Likewise.
45656         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
45657         (gl_OPENAT_DEFAULTS): New macro.
45658         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
45659         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
45660         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
45661         (SYS_STAT_H): Remove unused variable.
45662         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
45663         * lib/fcntl--.h (includes): Remove unneeded header.
45664         * lib/openat-safer.c (includes): Likewise.
45665         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
45666         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
45667         appropriate headers.
45668         (__OPENAT_PREFIX): Delete.
45669         * lib/fcntl.in.h (openat): Provide declaration.
45670         (AT_FDCWD): Fix Solaris bug.
45671         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
45672         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
45673         * lib/fchmodat.c (includes):  Adjust to find declaration.
45674         * lib/fchownat.c (includes): Likewise.
45675         * lib/mkdirat.c (includes): Likewise.
45676         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
45677         still visible.
45678
45679 2009-09-02  Eric Blake  <ebb9@byu.net>
45680
45681         errno: use consistently
45682         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
45683         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
45684         * lib/canonicalize.c (ELOOP): Likewise.
45685         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
45686         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
45687         * lib/lchown.c (EOPNOTSUPP): Likewise.
45688         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
45689         * lib/savewd.c (ESTALE): Likewise.
45690         * lib/settime.c (ENOSYS): Likewise.
45691         * lib/utimens.c (ENOSYS): Likewise.
45692         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
45693         * lib/chdir-safer.c (ELOOP): Likewise.
45694         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
45695         * modules/c-stack (Depends-on): Add errno.
45696         * modules/canonicalize (Depends-on): Likewise.
45697         * modules/chdir-safer (Depends-on): Likewise.
45698         * modules/fdopendir (Depends-on): Likewise.
45699         * modules/inet_ntop (Depends-on): Likewise.
45700         * modules/inet_pton (Depends-on): Likewise.
45701         * modules/lchown (Depends-on): Likewise.
45702         * modules/openat (Depends-on): Likewise.
45703         * modules/savewd (Depends-on): Likewise.
45704         * modules/settime (Depends-on): Likewise.
45705         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
45706
45707         fts: avoid leaking fds
45708         * modules/fts (Depends-on): Add cloexec.
45709         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
45710         flag.
45711
45712         fts: make directory fds more robust
45713         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
45714         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
45715
45716         backupfile, chdir-long, fts, savedir: make safer
45717         * lib/backupfile.c (includes): Use "dirent--.h", since
45718         numbered_backup can write to stderr during readdir.
45719         * lib/savedir.c (includes): Likewise.
45720         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
45721         emulation can write to stderr on failure.
45722         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
45723         * lib/getcwd.c: Document why opendir_safer is unused.
45724         * lib/glob.c: Likewise.
45725         * lib/scandir.c: Likewise.
45726         * lib/openat-proc.c: Likewise, for open_safer.
45727         * modules/backupfile (Depends-on): Add dirent-safer.
45728         * modules/savedir (Depends-on): Likewise.
45729         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
45730         * modules/chdir-long (Depends-on): Add openat-safer.
45731
45732         openat-safer: new module
45733         * modules/openat-safer: New file.
45734         * lib/openat-safer.c: Likewise.
45735         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
45736         * lib/fcntl-safer.h (openat_safer): Declare.
45737         * lib/fcntl--.h (openat): Override.
45738         * MODULES.html.sh (File descriptor based I/O): Mention it.
45739         * lib/openat.h: Add double-inclusion guards.
45740         * lib/openat.c (includes): Only include "fcntl-safer.h", not
45741         "fcntl--.h", so we can implement openat.
45742         * modules/openat-safer-tests: New test.
45743         * tests/test-openat-safer.c: New file.
45744
45745         dirent-safer: new module
45746         * modules/dirent-safer: New file.
45747         * lib/dirent--.h: Likewise.
45748         * lib/dirent-safer.h: Likewise.
45749         * lib/opendir-safer.c: Likewise.
45750         * m4/dirent-safer.m4: Likewise.
45751         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
45752         * modules/dirent-safer-tests: New test.
45753         * tests/test-dirent-safer.c: New file.
45754         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
45755
45756         fdopendir: optimize on mingw
45757         * lib/unistd.in.h (_gl_directory_name): New prototype.
45758         * lib/fchdir.c (_gl_directory_name): Implement it.
45759         (fchdir): Use it to simplify implementation.
45760         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
45761         fchdir, when available, to avoid calling [f]chdir().
45762
45763         fdopendir: split into its own module
45764         * lib/openat.c (fdopendir): Move...
45765         * lib/fdopendir.c: ...into new file.
45766         * modules/fdopendir: New module.
45767         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
45768         * modules/openat (Depends-on): Add fdopendir.
45769         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
45770         fdopendir here.
45771         * modules/savedir (Depends-on): Only need fdopendir, not full
45772         openat.
45773         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
45774         * lib/openat.h (fdopendir): Drop prototype.
45775         * lib/dirent.in.h (fdopendir): Provide prototype.
45776         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
45777         * modules/dirent (Makefile.am): Substitute them.
45778         * MODULES.html.sh (File system functions): Mention it.
45779         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
45780         * modules/fdopendir-tests: New file.
45781         * tests/test-fdopendir.c: Likewise.
45782
45783         fchdir: use more consistent macro convention
45784         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
45785         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
45786         REPLACE_FCHDIR, rather than relying on config.h macros.
45787         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
45788         inside a single make-time REPLACE_FCHDIR block, rather than using
45789         the config.h FCHDIR_REPLACEMENT.
45790         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
45791         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
45792         Manage fstat replacement.
45793         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
45794         REPLACE_FCHDIR.
45795         * modules/sys_stat (Files): Add m4/unistd_h.m4.
45796         (Makefile.am): Substitute REPLACE_FCHDIR.
45797         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
45798         FCHDIR_REPLACEMENT.
45799         * lib/dup-safer.c (dup_safer): Likewise.
45800         * lib/dup2.c (rpl_dup2): Likewise.
45801         * lib/dup3.c (rpl_dup3): Likewise.
45802         * lib/open.c (rpl_open): Likewise.
45803
45804         fchdir: simplify error handling, and support dup3
45805         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
45806         stdbool, malloc-posix, realloc-posix.
45807         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
45808         (ensure_dirs_slot): Return false on allocation failure.
45809         (rpl_dup2): Delete.
45810         (_gl_register_dup): New function.
45811         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
45812         (_gl_register_fd): Close fd on allocation failure.
45813         * lib/fcntl.in.h (_gl_register_fd): Update signature.
45814         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
45815         prototype.
45816         (rpl_dup2_fchdir): Delete prototype.
45817         * lib/open.c (open): Update caller.
45818         * lib/dup2.c (dup2): Track fchdir metadata.
45819         * lib/dup3.c (dup3): Likewise.
45820         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
45821         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
45822
45823 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45824
45825         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
45826         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
45827         don't pass arguments to AC_OUTPUT.
45828
45829 2009-09-02  Bruno Haible  <bruno@clisp.org>
45830
45831         * modules/mkdtemp (License): Relicense under LGPLv2+.
45832         Reported by Paolo Bonzini.
45833
45834 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45835
45836         Replace uses of obsolete autoconf macros in Jim's modules.
45837         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
45838         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
45839         can evoke a warning from autoconf when run with -Wobsolete
45840         enabled.  They were declared obsolete for good reasons (see
45841         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
45842         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
45843         should not continue using the deprecated macros.
45844         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
45845         obsolete Autoconf macros with modern counterparts.
45846         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
45847         * m4/dos.m4 (gl_AC_DOS): Likewise.
45848         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
45849         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
45850         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
45851         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
45852         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
45853         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
45854         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
45855         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
45856         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
45857         Likewise.
45858         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
45859         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
45860         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
45861         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
45862         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
45863         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
45864
45865 2009-09-01  Eric Blake  <ebb9@byu.net>
45866
45867         fchdir: fix off-by-one bug in previous patch
45868         * lib/fchdir.c (rpl_fstat): Use correct bounds.
45869         (_gl_unregister_fd): Delete useless if.
45870
45871 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
45872
45873         maint.mk: sort the list of syntax-check rules
45874         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
45875         easier to get a sense of progress when the rules are run sequentially
45876         and take a long time.
45877
45878 2009-09-01  Simon Josefsson  <simon@josefsson.org>
45879
45880         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
45881         * modules/netinet_in: Likewise.
45882         * modules/sys_file: Likewise.
45883         * modules/sys_ioctl: Likewise.
45884         * modules/sys_select: Likewise.
45885         * modules/sys_socket: Likewise.
45886         * modules/sys_stat: Likewise.
45887         * modules/sys_time: Likewise.
45888         * modules/sys_times: Likewise.
45889         * modules/sys_utsname: Likewise.
45890         * modules/sys_wait: Likewise.
45891
45892 2009-09-01  Jim Meyering  <meyering@redhat.com>
45893
45894         fts: help ensure that return values are not ignored
45895         * lib/fts_.h (__GNUC_PREREQ): Define.
45896         (__attribute_warn_unused_result__): Define.
45897         (fts_children, fts_close, fts_open, fts_read): Declare with
45898         __attribute_warn_unused_result__.
45899
45900         fts: fts_close now fails also when closing a dir file descriptor fails
45901         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
45902         and propagate to caller, along with errno.
45903
45904         announce-gen: correct formatting in --help output
45905         * build-aux/announce-gen (usage): Move the one-line description in
45906         --help output "up", to where it belongs, just after Usage:.
45907
45908 2009-08-31  Eric Blake  <ebb9@byu.net>
45909
45910         fchdir: port to mingw
45911         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
45912         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
45913         opened, then use a substitute.
45914         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
45915         replacement.
45916         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
45917         (_gl_register_fd): No need to check stat if open already filters
45918         all directories.
45919         (fchdir): Fix error condition to match POSIX.
45920         * modules/fchdir (Depends-on): Add sys_stat.
45921         * doc/posix-functions/open.texi (open): Document the limitation.
45922         * modules/fchdir-tests: New file.
45923         * tests/test-fchdir.c: Likewise.
45924
45925         canonicalize: allow cross-testing from cygwin to mingw
45926         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
45927         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
45928         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
45929         Likewise.
45930         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
45931         target does not support symlinks.
45932         * tests/test-canonicalize-lgpl.sh: Likewise.
45933
45934         chown: avoid compilation warning on mingw
45935         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
45936         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
45937         mingw.
45938         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
45939         * modules/chown (Depends-on): Add errno.
45940
45941 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
45942
45943         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
45944         command.
45945
45946 2009-08-31  Jim Meyering  <meyering@redhat.com>
45947
45948         canonicalize: remove useless initialization
45949         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
45950         initialization of local, "end".
45951
45952 2009-08-30  Bruno Haible  <bruno@clisp.org>
45953
45954         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
45955         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
45956         ENOSYS.
45957
45958 2009-08-30  Bruno Haible  <bruno@clisp.org>
45959
45960         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
45961         /usr/xpg4/bin/tr when it exists.
45962         * tests/test-pipe-filter-gi1.sh: Likewise.
45963
45964 2009-08-30  Bruno Haible  <bruno@clisp.org>
45965
45966         Work around deficient /usr/bin/id program on Solaris.
45967         * tests/test-file-has-acl.sh (ID): New variable.
45968         * tests/test-set-mode-acl.sh (ID): Likewise.
45969         * tests/test-copy-acl.sh (ID): Likewise.
45970         * tests/test-copy-file.sh (ID): Likewise.
45971
45972 2009-08-30  Bruno Haible  <bruno@clisp.org>
45973
45974         New module 'xstriconveh'.
45975         * lib/xstriconveh.h: New file.
45976         * lib/xstriconveh.c: New file.
45977         * modules/xstriconveh: New file.
45978
45979 2009-08-30  Bruno Haible  <bruno@clisp.org>
45980
45981         Make it easier to use mem_cd_iconveh.
45982         * lib/striconveh.h (iconveh_t): New type.
45983         (iconveh_open, iconveh_close): New declarations.
45984         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
45985         with a single 'const iconveh_t *' argument.
45986         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
45987         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
45988         with a single 'const iconveh_t *' argument.
45989         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
45990         * tests/test-striconveh.c (main): Update.
45991         * NEWS: Mention the change.
45992
45993 2009-08-30  Bruno Haible  <bruno@clisp.org>
45994
45995         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
45996         problem.
45997
45998 2009-08-30  Bruno Haible  <bruno@clisp.org>
45999
46000         Work around iconv_open problem on Solaris.
46001         * lib/iconv_open-solaris.gperf: New file.
46002         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
46003         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
46004         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
46005         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
46006         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
46007         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
46008
46009 2009-08-29  Jim Meyering  <meyering@redhat.com>
46010
46011         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
46012         * top/maint.mk (cvs-check): Remove target; it was just an alias
46013         to the better-named vc-diff-check.
46014         (maintainer-distcheck): Remove rule.  It was used only from
46015         the (alpha/beta/major) target, and all of its commands but one
46016         were coreutils-specific.
46017         (vc-dist): Remove rule.
46018         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
46019         Run vc-diff-check, not vc-dist.
46020         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
46021
46022 2009-08-27  Bruno Haible  <bruno@clisp.org>
46023
46024         * tests/test-bitrotate.c (main): Remove test that uses a shift count
46025         of 0.
46026
46027 2009-08-27  Bruno Haible  <bruno@clisp.org>
46028
46029         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
46030         compilers.
46031         * doc/func.texi: Document the SunPRO C bug.
46032
46033 2009-08-27  Bruno Haible  <bruno@clisp.org>
46034
46035         Fix link error on Solaris.
46036         * tests/test-parse-duration.c (xstrdup): Remove function.
46037
46038 2009-08-26  Pádraig Brady  <P@draigbrady.com>
46039
46040         ignore-value: handle pointer types, too
46041         * lib/ignore-value.h (__attribute__): Remove definition.
46042         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
46043         of a more concise and more-often effective "(void) i" statement.
46044         (ignore_ptr): New function to suppress warnings from functions that
46045         return pointers, and to make it explicit that one function doesn't
46046         handle all cases.
46047
46048 2009-08-25  Bruno Haible  <bruno@clisp.org>
46049
46050         dup2: work around a Linux bug.
46051         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
46052         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
46053         * doc/posix-functions/dup2.texi: Mention the Linux bug.
46054         Reported by Simon Josefsson.
46055
46056 2009-08-25  Jim Meyering  <meyering@redhat.com>
46057
46058         libguestfs uses gnulib
46059         * users.txt: Add libguestfs.
46060
46061 2009-08-24  Eric Blake  <ebb9@byu.net>
46062
46063         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
46064         * lib/pipe2.c (includes): Add binary-io.h.
46065         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
46066
46067 2009-08-24  Bruno Haible  <bruno@clisp.org>
46068
46069         Tolerate declared but missing accept4 syscall.
46070         * lib/accept4.c (accept4): Invoke original accept4 function first, if
46071         available.
46072         * lib/sys_socket.in.h (accept4): If the function is already present,
46073         override it.
46074         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
46075         * modules/accept4 (Makefile.am): Compile accept4.c always.
46076         Reported by Paolo Bonzini and Eric Blake.
46077
46078 2009-08-23  Bruno Haible  <bruno@clisp.org>
46079
46080         New module 'accept4'.
46081         * lib/sys_socket.in.h (accept4): New declaration.
46082         * lib/accept4.c: New file.
46083         * m4/accept4.m4: New file.
46084         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
46085         GNULIB_ACCEPT4, HAVE_ACCEPT4.
46086         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
46087         HAVE_ACCEPT4.
46088         * modules/accept4: New file.
46089         * doc/glibc-functions/accept4.texi: Mention the new module.
46090
46091 2009-08-24  Jim Meyering  <meyering@redhat.com>
46092
46093         progname: also set global program_invocation_name, when possible
46094         Before this change, a libtool-enabled program that calls glibc's
46095         error function would report the program name as
46096         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
46097         * modules/progname (configure.ac): Check for a declaration of
46098         program_invocation_name.
46099         * lib/progname.c:  Include <errno.h>.
46100         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
46101         Set program_invocation_name.
46102
46103 2009-08-23  Bruno Haible  <bruno@clisp.org>
46104
46105         * lib/dup3.c: Include <string.h>.
46106
46107 2009-08-23  Bruno Haible  <bruno@clisp.org>
46108
46109         * lib/dup3.c (dup3): Test only once whether the system actually exists.
46110         * lib/pipe2.c (pipe2): Likewise.
46111         Suggested by Eric Blake.
46112
46113 2009-08-23  Bruno Haible  <bruno@clisp.org>
46114
46115         Tolerate declared but missing dup3 syscall.
46116         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
46117         * lib/unistd.in.h (dup3): If the function is already present,
46118         override it.
46119         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
46120         * modules/dup3 (Makefile.am): Compile dup3.c always.
46121         Reported by Paolo Bonzini.
46122
46123 2009-08-23  Bruno Haible  <bruno@clisp.org>
46124
46125         Tolerate declared but missing pipe2 syscall.
46126         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
46127         available.
46128         * lib/unistd.in.h (pipe2): If the function is already present,
46129         override it.
46130         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
46131         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
46132         Reported by Paolo Bonzini.
46133
46134 2009-08-23  Bruno Haible  <bruno@clisp.org>
46135
46136         * lib/pipe2.c (pipe2): Move #ifs inside function.
46137
46138 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
46139
46140         quotearg: document limitations of quote_these_too
46141         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
46142         those limitations are created.
46143         * lib/quotearg.h (set_char_quoting): Document that digits and
46144         letters that are special after backslash are not permitted.
46145         (quotearg_char): Cross-reference set_char_quoting documentation.
46146
46147 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
46148
46149         quotearg: implement custom_quoting_style
46150         * lib/quotearg.c: (struct quoting_options): Add left_quote and
46151         right_quote fields.
46152         (set_custom_quoting): New public function.
46153         (quotearg_buffer_restyled): Add left_quote and right_quote
46154         arguments, handle them very much like locale quoting, and update
46155         all uses.
46156         (quotearg_n_custom): New public function.
46157         (quotearg_n_custom_mem): New public function.
46158         (quotearg_custom): New public function.
46159         (quotearg_custom_mem): New public function.
46160         * lib/quotearg.h: Prototype and document new public functions.
46161         (enum quoting_style): For escape_quoting_style and
46162         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
46163         ignored even though they're otherwise like c_quoting_style.
46164         Add custom_quoting_style member and document with comparison to
46165         clocale_quoting_style.
46166         * tests/test-quotearg.c (custom_quotes): New array.
46167         (custom_results): New array.
46168         (main): Extend to test custom quoting.
46169
46170 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
46171
46172         quotearg: fix right quote escaping when it's in quote_these_too
46173         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
46174         quote, be sure to prepend only one backslash.
46175         * tests/test-quotearg.c (use_quote_double_quotes): New function.
46176         (main): Test it.
46177
46178 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
46179
46180         quotearg-tests: test escaping of embedded locale quotes
46181         * tests/test-quotearg.c (struct result_strings): Add member for
46182         new input.
46183         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
46184         (inputs): Add new input.
46185         (results_g): Add expected results.
46186         (flag_results): Likewise.
46187         (locale_results): Likewise.
46188         (compare_strings): Check those.
46189
46190 2009-08-23  Bruno Haible  <bruno@clisp.org>
46191
46192         Tests for module 'dup3'.
46193         * modules/dup3-tests: New file.
46194         * tests/test-dup3.c: New file.
46195
46196         New module 'dup3'.
46197         * lib/unistd.in.h (dup3): New declaration.
46198         * lib/dup3.c: New file.
46199         * m4/dup3.m4: New file.
46200         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
46201         HAVE_DUP3.
46202         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
46203         * modules/dup3: New file.
46204         * doc/glibc-functions/dup3.texi: Mention the new module.
46205
46206 2009-08-23  Bruno Haible  <bruno@clisp.org>
46207
46208         Tweak the dup2 test.
46209         * tests/test-dup2.c (main): Create the test file empty. Verify that an
46210         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
46211         the test file is still empty. Fix argument order of lseek.
46212
46213 2009-08-23  Bruno Haible  <bruno@clisp.org>
46214
46215         Avoid test link errors when the modules getopt-gnu, gettext are used.
46216         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
46217         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
46218
46219 2009-08-23  Bruno Haible  <bruno@clisp.org>
46220
46221         Fix getdtablesize() on mingw.
46222         * lib/getdtablesize.c (getdtablesize): Implement differently.
46223         * lib/unistd.in.h (getdtablesize): Improve comment.
46224
46225 2009-08-23  Bruno Haible  <bruno@clisp.org>
46226
46227         New module 'mkostemp'.
46228         Based on Ulrich Drepper's 2007-08-10 change in glibc.
46229         * lib/stdlib.in.h (mksotemp): New declaration.
46230         * lib/mkostemp.c: New file, from glibc with modifications.
46231         * lib/tempname.h (GT_FILE): Remove outdated comment.
46232         (gen_tempname): Add flags argument.
46233         * lib/tempname.c (__GT_BIGFILE): Remove macro.
46234         (__GT_FILE): Map to 1.
46235         (small_open, large_open): Remove macros.
46236         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
46237         * lib/mkstemp.c (mkstemp): Update.
46238         * lib/mkdtemp.c (mkdtemp): Likewise.
46239         * m4/mkostemp.m4: New file.
46240         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
46241         HAVE_MKOSTEMP.
46242         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
46243         HAVE_MKOSTEMP.
46244         * modules/mkostemp: New file, based on modules/mkstemp.
46245         * doc/glibc-functions/mkostemp.texi: Mention the new module.
46246         * NEWS: Mention the change.
46247
46248 2009-08-23  Bruno Haible  <bruno@clisp.org>
46249
46250         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
46251         Reported by Eric Blake.
46252
46253 2009-08-23  Bruno Haible  <bruno@clisp.org>
46254
46255         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
46256         Reported by Eric Blake.
46257
46258 2009-08-23  Bruno Haible  <bruno@clisp.org>
46259
46260         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
46261         * modules/pipe2 (Depends-on): Likewise.
46262
46263 2009-08-23  Eric Blake  <ebb9@byu.net>
46264
46265         fcntl-h: add O_TTY_INIT support
46266         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
46267         * tests/test-fcntl-h.c (o): Test it.
46268         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
46269
46270         fcntl-h: rename from fcntl, in preparation for fcntl(2)
46271         * modules/fcntl: Move <fcntl.h> header replacement...
46272         * modules/fcntl-h: ...to new name, so as not to collide with
46273         like-named function.
46274         * tests/test-fcntl.c: Rename...
46275         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
46276         * modules/fcntl-tests: Rename...
46277         * modules/fcntl-h-tests: ...to this.  Update test file name.
46278         * modules/chdir-long (Depends-on): Update clients.
46279         * modules/chdir-safer (Depends-on): Likewise.
46280         * modules/fcntl-safer (Depends-on): Likewise.
46281         * modules/fts (Depends-on): Likewise.
46282         * modules/mkancesdirs (Depends-on): Likewise.
46283         * modules/mkdir-p (Depends-on): Likewise.
46284         * modules/open (Depends-on): Likewise.
46285         * modules/savewd (Depends-on): Likewise.
46286         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
46287         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
46288
46289 2009-08-22  Bruno Haible  <bruno@clisp.org>
46290
46291         * modules/binary-io (License): Relicense under LGPL.
46292         * modules/pipe2 (License): Likewise.
46293
46294 2009-08-22  Bruno Haible  <bruno@clisp.org>
46295
46296         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
46297         return value.
46298         * lib/pipe-filter-gi.c (filter_init): Likewise.
46299         Reported by Eric Blake.
46300
46301 2009-08-22  Bruno Haible  <bruno@clisp.org>
46302
46303         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
46304         * modules/pipe (Depends-on): Add pipe2.
46305
46306 2009-08-22  Bruno Haible  <bruno@clisp.org>
46307
46308         Tests for module 'pipe2'.
46309         * modules/pipe2-tests: New file.
46310         * tests/test-pipe2.c: New file.
46311
46312         New module 'pipe2'.
46313         * lib/unistd.in.h (pipe2): New declaration.
46314         * lib/pipe2.c: New file.
46315         * m4/pipe2.m4: New file.
46316         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
46317         HAVE_PIPE2.
46318         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
46319         * modules/pipe2: New file.
46320         * doc/glibc-functions/pipe2.texi: Mention the new module.
46321
46322 2009-08-22  Bruno Haible  <bruno@clisp.org>
46323
46324         Reference some new glibc functions.
46325         * doc/glibc-functions/accept4.texi: New file.
46326         * doc/glibc-functions/dup3.texi: New file.
46327         * doc/glibc-functions/mkostemp.texi: New file.
46328         * doc/glibc-functions/pipe2.texi: New file.
46329         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
46330         (Glibc sys/socket.h): Refer to accept4.
46331         (Glibc unistd.h): Refer to dup3, pipe2.
46332         Reported by Eric Blake.
46333
46334 2009-08-22  Jim Meyering  <meyering@redhat.com>
46335             Bruno Haible  <bruno@clisp.org>
46336
46337         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
46338         This makes it so packages using automake-1.11's silent-rules option
46339         can print e.g., a single "GEN    configmake.h" line, rather than
46340         the 30+ statements that perform the job.  If you want to see the
46341         actual commands, you can still run "make V=1".
46342         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
46343         so that make output is abbreviated when those variables are defined
46344         appropriately.
46345         * modules/argz: Likewise.
46346         * modules/arpa_inet: Likewise.
46347         * modules/byteswap: Likewise.
46348         * modules/configmake: Likewise.
46349         * modules/dirent: Likewise.
46350         * modules/errno: Likewise.
46351         * modules/fcntl: Likewise.
46352         * modules/float: Likewise.
46353         * modules/fnmatch: Likewise.
46354         * modules/getopt-posix: Likewise.
46355         * modules/glob: Likewise.
46356         * modules/iconv_open: Likewise.
46357         * modules/inttypes: Likewise.
46358         * modules/localcharset: Likewise.
46359         * modules/locale: Likewise.
46360         * modules/math: Likewise.
46361         * modules/netdb: Likewise.
46362         * modules/netinet_in: Likewise.
46363         * modules/poll: Likewise.
46364         * modules/posix_spawnp-tests: Likewise.
46365         * modules/sched: Likewise.
46366         * modules/search: Likewise.
46367         * modules/selinux-h: Likewise.
46368         * modules/signal: Likewise.
46369         * modules/spawn: Likewise.
46370         * modules/stdarg: Likewise.
46371         * modules/stdbool: Likewise.
46372         * modules/stddef: Likewise.
46373         * modules/stdint: Likewise.
46374         * modules/stdio: Likewise.
46375         * modules/stdlib: Likewise.
46376         * modules/string: Likewise.
46377         * modules/strings: Likewise.
46378         * modules/sys_file: Likewise.
46379         * modules/sys_ioctl: Likewise.
46380         * modules/sys_select: Likewise.
46381         * modules/sys_socket: Likewise.
46382         * modules/sys_stat: Likewise.
46383         * modules/sys_time: Likewise.
46384         * modules/sys_times: Likewise.
46385         * modules/sys_utsname: Likewise.
46386         * modules/sys_wait: Likewise.
46387         * modules/sysexits: Likewise.
46388         * modules/time: Likewise.
46389         * modules/unistd: Likewise.
46390         * modules/wchar: Likewise.
46391         * modules/wctype: Likewise.
46392
46393 2009-08-22  Jim Meyering  <meyering@redhat.com>
46394
46395         announce-gen: detect write failure
46396         * build-aux/announce-gen: Add Coda at end.
46397         Remove equivalent-but-more-verbose block at top.
46398
46399 2009-08-19  Akim Demaille  <demaille@gostai.com>
46400
46401         bootstrap: --help to stdout.
46402         * bootstrap (usage): Don't send --help to stderr.
46403         Use a here doc instead of a long string.
46404
46405 2009-08-21  Eric Blake  <ebb9@byu.net>
46406
46407         test-popen-safer: split from test-popen
46408         * tests/test-popen.c (main): Move...
46409         * tests/test-popen.h: ...into new file.
46410         * tests/test-popen-safer2.c: New file.
46411         * modules/popen-tests (Files): Add test-popen.h.
46412         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
46413         Suggested by Bruno Haible.
46414
46415         test-fcntl-safer: split from test-open
46416         * tests/test-open.c (main): Move...
46417         * tests/test-open.h: ...into new file.
46418         * tests/test-fcntl-safer.c: New file.
46419         * modules/open-tests (Files): Add test-open.h.
46420         * modules/fcntl-safer-tests: New file.
46421         Suggested by Bruno Haible.
46422
46423         test-fopen-safer: split from test-fopen
46424         * tests/test-fopen.c (main): Move...
46425         * tests/test-fopen.h: ...into new file.
46426         * tests/test-fopen-safer.c: New file.
46427         * modules/fopen-tests (Files): Add test-fopen.h.
46428         * modules/fopen-safer-tests: New file.
46429         Suggested by Bruno Haible.
46430
46431 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
46432
46433         popen-safer: test O_CLOEXEC at run-time.
46434         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
46435
46436 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
46437
46438         fcntl: move more flags to the header
46439         * lib/cloexec.c: Do not define FD_CLOEXEC here.
46440         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
46441         * lib/fcntl.in.h: Do both things here.
46442
46443 2009-08-21  Jim Meyering  <meyering@redhat.com>
46444
46445         consistently remove $@-t before redirecting to it
46446         * modules/argz: Remove $@-t and $@ before redirecting to the former.
46447         * modules/alloca-opt: Likewise.
46448         * modules/byteswap: Likewise.
46449         * modules/fnmatch: Likewise.
46450         * modules/getopt-posix: Likewise.
46451         * modules/glob: Likewise.
46452         * modules/poll: Likewise.
46453         * modules/posix_spawnp-tests: Likewise.
46454         * modules/sys_socket: Likewise.
46455         * modules/sysexits: Likewise.
46456
46457 2009-08-21  Eric Blake  <ebb9@byu.net>
46458
46459         popen: simplify access to original popen
46460         * lib/popen.c (rpl_popen): No need to worry about popen being a
46461         macro.
46462         Reported by Bruno Haible.
46463
46464 2009-08-20  Eric Blake  <ebb9@byu.net>
46465
46466         build: avoid some compiler warnings
46467         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
46468         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
46469         type.
46470         (new_exclude_segment, excluded_file_pattern_p)
46471         (excluded_file_name_p): Reduce scope.
46472         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
46473         old-style declaration.
46474
46475 2009-08-20  Simon Josefsson  <simon@josefsson.org>
46476
46477         * tests/test-exclude1.sh: Handle Windows EOL.
46478         * tests/test-exclude2.sh: Likewise.
46479         * tests/test-exclude3.sh: Likewise.
46480         * tests/test-exclude4.sh: Likewise.
46481         * tests/test-exclude5.sh: Likewise.
46482         * tests/test-exclude6.sh: Likewise.
46483         * tests/test-exclude7.sh: Likewise.
46484
46485 2009-08-19  Akim Demaille  <demaille@gostai.com>
46486
46487         bootstrap: find sha1sum when named gsha1sum.
46488         * bootstrap (find_tool): New.
46489         ($SHA1SUM): New.
46490         Use it.
46491
46492 2009-08-20  Jim Meyering  <meyering@redhat.com>
46493
46494         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
46495         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
46496         expression that converts "." in a file name to "\." in the resulting
46497         regexp.  Start with a dummy statement, so that prior shell variable
46498         definitions are expanded portably.  Reported by Simon Josefsson.
46499
46500 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
46501
46502         Fix polling for writeability of a screen buffer.
46503         * lib/poll.c: Distinguish input and screen buffers for the
46504         Win32 implementation.
46505         * lib/select.c: Likewise.
46506
46507 2009-08-19  Eric Blake  <ebb9@byu.net>
46508
46509         popen-safer: prevent popen from clobbering std descriptors
46510         * modules/popen-safer: New file.
46511         * lib/popen-safer.c: Likewise.
46512         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
46513         * lib/stdio--.h (popen): Provide override.
46514         * lib/stdio-safer.h (popen_safer): Provide declaration.
46515         * tests/test-popen.c (includes): Partially test this.
46516         * modules/popen-safer-tests: New file, for more tests.
46517         * tests/test-popen-safer.c: Likewise.
46518         * MODULES.html.sh (file stream based Input/Output): Mention it.
46519
46520         tests: test some of the *-safer modules
46521         * modules/fopen-safer (Depends-on): Add fopen.
46522         * modules/fcntl-safer (Depends-on): Add fcntl.
46523         * modules/stdlib-safer (Depends-on): Add stdlib.
46524         (configure.ac): Set indicator.
46525         * modules/unistd-safer (configure.ac): Likewise.
46526         * modules/tmpfile-safer (configure.ac): Likewise.
46527         (Depends-on): Add tmpfile.
46528         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
46529         active.
46530         * tests/test-fopen.c (includes): Test safer versions when they are
46531         in use.
46532         * tests/test-open.c (includes): Likewise.
46533
46534         popen: fix cygwin 1.5 bug when stdin closed
46535         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
46536         * modules/popen: New file.
46537         * modules/popen-tests: Likewise.
46538         * tests/test-popen.c: Likewise.
46539         * m4/popen.m4: Likewise.
46540         * lib/popen.c: Likewise.
46541         * lib/stdio.in.h (popen): New declaration.
46542         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
46543         * modules/stdio (Makefile.am): Likewise.
46544         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
46545
46546 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
46547
46548         maint.mk: give full control over update-copyright exclusions
46549         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
46550         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
46551         (update-copyright): Don't force inclusion of top-level
46552         ChangeLog.  Don't force exclusion of all COPYING files, but make
46553         them the default exclusion instead.
46554
46555 2009-08-16  Bruno Haible  <bruno@clisp.org>
46556
46557         Fix test failures on Solaris 10.
46558         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
46559         tests when Solaris iconv() is used.
46560         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
46561         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
46562         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
46563         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
46564         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
46565
46566 2009-08-16  Bruno Haible  <bruno@clisp.org>
46567
46568         Fix test failures on Solaris 10.
46569         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
46570         'tr' program and pass it as first argument.
46571         * tests/test-pipe-filter-gi1.sh: Likewise.
46572         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
46573         program as first argument.
46574         * tests/test-pipe-filter-gi1.c (main): Likewise.
46575
46576 2009-08-16  Eric Blake  <ebb9@byu.net>
46577
46578         fpurge: fix previous commits
46579         * modules/fpurge (Makefile.am): Make replacement conditional,
46580         partially reverting 2007-04-29 change; missed in previous
46581         attempt.
46582         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
46583         is missing.
46584
46585 2009-08-16  Bruno Haible  <bruno@clisp.org>
46586
46587         Clarify fpurge's effect on the file position.
46588         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
46589         * tests/test-fpurge.c (main): Make a second pass for checking the file
46590         position.
46591
46592 2009-08-16  Bruno Haible  <bruno@clisp.org>
46593
46594         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
46595         declaration of fpurge is missing.
46596         * tests/test-fpurge.c (main): Check that the file has not more contents
46597         than expected. Close the file before removing it.
46598
46599 2009-08-15  Eric Blake  <ebb9@byu.net>
46600
46601         fpurge: don't wrap working cygwin implementation
46602         * lib/fpurge.c (fpurge): Fix comment typo.
46603         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
46604         1.7 to avoid replacement.
46605         * tests/test-fpurge.c (main): Enhance test.
46606
46607 2009-08-15  Eric Blake  <ebb9@byu.net>
46608         and Jim Meyering  <meyering@redhat.com>
46609
46610         test-update-copyright: skip if perl is insufficient
46611         * tests/test-update-copyright.sh: Failure to run maintainer tool
46612         should not cause testsuite failure on cygwin 1.5.
46613
46614 2009-08-14  Eric Blake  <ebb9@byu.net>
46615
46616         doc: mention more functions added in cygwin 1.7.0
46617         * doc/posix-headers/limits.texi (limits.h): Update for recent
46618         cygwin additions.
46619         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
46620         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
46621         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
46622         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
46623         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
46624
46625 2009-08-14  Eric Blake  <ebb9@byu.net>
46626
46627         maint.mk: simplify update-copyright rule
46628         * top/maint.mk (update-copyright-local): Delete, and document how
46629         to do it in cfg.mk instead.
46630         (update-copyright-exclude-regexp): Delete, and document how to do
46631         it in .x-update-copyright instead.
46632         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
46633         exclude ChangeLog.
46634
46635 2009-08-14  Bruno Haible  <bruno@clisp.org>
46636
46637         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
46638
46639 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
46640
46641         maint.mk: support update-copyright-env
46642         * top/maint.mk (update-copyright-env): Define place-holder.
46643         (update-copyright): Expand $(update-copyright-env) before
46644         invoking update-copyright.
46645
46646 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
46647
46648         update-copyright: implement forced reformatting
46649         * build-aux/update-copyright: Implement and document
46650         UPDATE_COPYRIGHT_FORCE.
46651         * tests/test-update-copyright.sh: Test it.
46652
46653 2009-08-14  Eric Blake  <ebb9@byu.net>
46654         and Bruno Haible  <bruno@clisp.org>
46655
46656         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
46657         * tests/test-locale.c: Revert previous patch related to NULL.
46658         * tests/test-stdio.c: Likewise.
46659         * tests/test-stdlib.c: Likewise.
46660         * tests/test-string.c: Likewise.
46661         * tests/test-unistd.c: Likewise.
46662         * modules/time-tests (Depends-on): Add verify.
46663         * modules/wchar-tests (Depends-on): Likewise.
46664         * tests/test-time.c: Test for NULL compliance.
46665         * tests/test-wchar.c: Likewise.
46666         * modules/locale (Depends-on): Add stddef.
46667         * modules/stdio (Depends-on): Likewise.
46668         * modules/stdlib (Depends-on): Likewise.
46669         * modules/string (Depends-on): Likewise.
46670         * modules/time (Depends-on): Likewise.
46671         * modules/unistd (Depends-on): Likewise.
46672         * modules/wchar (Depends-on): Likewise.
46673         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
46674         * lib/stdlib.in.h (includes): Likewise.
46675         * lib/string.in.h (includes): Likewise.
46676         * lib/time.in.h (includes): Likewise.
46677         * lib/unistd.in.h (includes): Likewise.
46678         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
46679         replaced.
46680         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
46681         * m4/stddef_h.m4: New file.
46682         * modules/stddef: Likewise.
46683         * lib/stddef.in.h: Likewise.
46684         * modules/stddef-tests: Likewise.
46685         * tests/test-stddef.c: Likewise.
46686         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
46687         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
46688         * doc/posix-headers/locale.texi (locale.h): Likewise.
46689         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
46690         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
46691         * doc/posix-headers/string.texi (string.h): Likewise.
46692         * doc/posix-headers/time.texi (time.h): Likewise.
46693         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
46694         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
46695
46696 2009-08-14  Eric Blake  <ebb9@byu.net>
46697
46698         doc: improve git diff of texinfo files
46699         * .gitattributes: Add rule for *.texi files, with hint on how to
46700         use it.
46701         Copied from m4, and based on a report by Bruno Haible.
46702
46703 2009-08-14  Bruno Haible  <bruno@clisp.org>
46704
46705         Disable multithread support by default on Cygwin 1.5.x for real.
46706         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
46707
46708 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
46709
46710         update-copyright: much ado about intervals
46711         * build-aux/update-copyright: Implement and document
46712         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
46713         of copyright year intervals.
46714         Also, document UPDATE_COPYRIGHT_YEAR.
46715         * tests/test-update-copyright.sh: Test it.
46716
46717         update-copyright: convert 2-digit to 4-digit years
46718         * build-aux/update-copyright: Implement and document.
46719         * tests/test-update-copyright.sh: Update.
46720
46721 2009-08-14  Jim Meyering  <meyering@redhat.com>
46722
46723         test-exclude: avoid coreutils "make check" failure
46724         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
46725         just as in test-argmatch.c.
46726
46727 2009-08-13  Eric Blake  <ebb9@byu.net>
46728
46729         test-dup2: fix bad assumption
46730         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
46731         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
46732
46733         test-version-etc: fix CRLF portability issue
46734         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
46735         recognize \r.
46736         * tests/test-argp-version-etc-1.sh: Likewise.
46737
46738         getopt: update client modules
46739         * modules/argp (Depends-on): Use getopt-gnu.
46740         * modules/git-merge-changelog (Depends-on): Likewise.
46741         * modules/long-options (Depends-on): Likewise.
46742         * modules/xstrtol (Depends-on): Likewise.
46743
46744 2009-08-13  Simon Josefsson  <simon@josefsson.org>
46745
46746         * tests/test-version-etc.sh: Don't fail on different
46747         project/version.  Don't fail on CRLF differences.  Rewrite to use
46748         multiple -e instead of multiple sed forks, suggested by Eric Blake
46749         <ebb9@byu.net>.
46750         * tests/test-argp-version-etc-1.sh: Likewise.
46751
46752 2009-08-13  Simon Josefsson  <simon@josefsson.org>
46753
46754         * tests/test-version-etc.sh: Don't fail on different
46755         project/version.
46756
46757 2009-08-12  Bruno Haible  <bruno@clisp.org>
46758
46759         Tests for modules 'getopt-posix', 'getopt-gnu'.
46760         * modules/getopt-posix-tests: New file.
46761         * tests/test-getopt.c: New file.
46762         * tests/test-getopt.h: New file.
46763         * tests/test-getopt_long.h: New file.
46764
46765         New modules 'getopt-posix', 'getopt-gnu'.
46766         * modules/getopt-gnu: New file, renamed from modules/getopt.
46767         * modules/getopt-posix: New file.
46768         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
46769         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
46770         (gl_GETOPT): Remove macro.
46771         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
46772         Disable the test against BSD systems that declare optreset. Test
46773         against mingw bug. Test against lack of support of optional arguments
46774         on many platforms.
46775         * doc/glibc-headers/getopt.texi: Update module name and list of
46776         relevant platforms.
46777         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
46778         'getopt-gnu' and more portability problems.
46779         * NEWS: Mention the changes.
46780
46781 2009-08-12  Bruno Haible  <bruno@clisp.org>
46782
46783         Ensure that optarg etc. get declared by <unistd.h>.
46784         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
46785         AC_USE_SYSTEM_EXTENSIONS.
46786         * modules/getopt (Depends-on): Add 'extensions'.
46787
46788 2009-08-12  Bruno Haible  <bruno@clisp.org>
46789
46790         Avoid test link errors.
46791         * modules/pipe-filter-ii-tests (Makefile.am): Define
46792         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
46793         * modules/pipe-filter-gi-tests (Makefile.am): Define
46794         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
46795         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
46796
46797 2009-08-12  Bruno Haible  <bruno@clisp.org>
46798
46799         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
46800         gl_GETOPT_SUBSTITUTE before.
46801         (gl_GETOPT): Use it.
46802         * m4/argp.m4 (gl_ARGP): Update.
46803         Reported by Sergey Poznyakoff.
46804
46805         * m4/getopt.m4: Reorder macros.
46806         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
46807         (gl_GETOPT_SUBSTITUTE): Remove macro.
46808
46809 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
46810
46811         Minor improvement in gitlog-to-changelog
46812
46813         * build-aux/gitlog-to-changelog: New option `--format' makes
46814         output format string configurable.
46815
46816 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
46817
46818         Optimize exclude: use hash tables for non-wildcard patterns.
46819
46820         * lib/exclude.c: Include hash.h and mbuiter.h
46821         (struct exclude_pattern, exclude_segment): New data types.
46822         (struct exclude): Rewrite.
46823         (fnmatch_pattern_has_wildcards): New function.
46824         (new_exclude_segment, free_exclude_segment): New functions.
46825         (excluded_file_pattern_p, excluded_file_name_p): New functions.
46826         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
46827         * lib/exclude.h (is_fnmatch_pattern): New prototype.
46828         * modules/exclude: Depend on hash and mbuiter.
46829
46830         * modules/exclude-tests: New file.
46831         * tests/test-exclude.c: New file.
46832         * tests/test-exclude1.sh: New file.
46833         * tests/test-exclude2.sh: New file.
46834         * tests/test-exclude3.sh: New file.
46835         * tests/test-exclude4.sh: New file.
46836         * tests/test-exclude5.sh: New file.
46837         * tests/test-exclude6.sh: New file.
46838         * tests/test-exclude7.sh: New file.
46839
46840 2009-08-12  Bruno Haible  <bruno@clisp.org>
46841
46842         Ensure that getopt() gets declared by <unistd.h>.
46843         * lib/unistd.in.h: Conditionally include getopt.h.
46844         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
46845         Set GNULIB_UNISTD_H_GETOPT.
46846         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
46847         GNULIB_UNISTD_H_GETOPT.
46848         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
46849
46850 2009-08-12  Bruno Haible  <bruno@clisp.org>
46851
46852         Clarify logic.
46853         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
46854         gl_replace_getopt instead of GETOPT_H.
46855
46856 2009-08-12  Bruno Haible  <bruno@clisp.org>
46857
46858         * m4/getopt.m4: Add comments.
46859
46860 2009-08-12  Bruno Haible  <bruno@clisp.org>
46861
46862         Disable multithread support by default on Cygwin 1.5.x.
46863         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
46864         set gl_use_threads=no if not specified otherwise.
46865
46866 2009-08-11  Bruno Haible  <bruno@clisp.org>
46867
46868         Avoid compilation error on NetBSD 5.0.
46869         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
46870         * tests/test-stdio.c: Likewise.
46871         * tests/test-stdlib.c: Likewise.
46872         * tests/test-string.c: Likewise.
46873         * tests/test-unistd.c: Likewise.
46874         Reported by Greg Troxel <gdt@ir.bbn.com>
46875         at <https://savannah.gnu.org/support/?106973>.
46876
46877 2009-08-11  Bruno Haible  <bruno@clisp.org>
46878
46879         * modules/dup2-tests (Depends-on): Remove close.
46880
46881         Undo 2009-07-19 commit.
46882         * modules/acl-tests (Depends-on): Remove close.
46883         * modules/binary-io-tests (Depends-on): Likewise.
46884         * modules/closein-tests (Depends-on): Likewise.
46885         * modules/flock-tests (Depends-on): Likewise.
46886         * modules/fsync-tests (Depends-on): Likewise.
46887         * modules/lseek-tests (Depends-on): Likewise.
46888         * modules/pipe-tests (Depends-on): Likewise.
46889         * modules/posix_spawn-tests (Depends-on): Likewise.
46890         * modules/posix_spawnp-tests (Depends-on): Likewise.
46891         * modules/stat-time-tests (Depends-on): Likewise.
46892         * modules/yesno-tests (Depends-on): Likewise.
46893
46894 2009-08-10  Bruno Haible  <bruno@clisp.org>
46895
46896         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
46897
46898 2009-08-10  Bruno Haible  <bruno@clisp.org>
46899
46900         Fix a gcc warning.
46901         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
46902
46903 2009-08-10  Bruno Haible  <bruno@clisp.org>
46904
46905         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
46906         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
46907         not only the first time.
46908         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
46909         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
46910         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
46911         is 1, not only the the first time.
46912
46913 2009-08-10  Bruno Haible  <bruno@clisp.org>
46914
46915         Make it possible to use module 'gethostname' without module 'close'.
46916         * lib/unistd.in.h (close): Evoke a link error only if
46917         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
46918         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
46919         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
46920         * modules/unistd (Makefile.am): Substitute
46921         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
46922         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
46923         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
46924         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
46925         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
46926         * modules/sys_ioctl (Makefile.am): Substitute
46927         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
46928         * modules/socket (configure.ac): On native Windows, set
46929         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
46930         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
46931         Reported by Sam Steingold <sds@gnu.org>.
46932
46933 2009-08-10  Bruno Haible  <bruno@clisp.org>
46934
46935         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
46936         * modules/ioctl (configure.ac): Likewise.
46937
46938 2009-08-10  Bruno Haible  <bruno@clisp.org>
46939
46940         Avoid collision between gnulib wrapper and libintl wrapper.
46941         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
46942         already defined in intl/printf.c.
46943         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
46944         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
46945
46946 2009-08-09  Bruno Haible  <bruno@clisp.org>
46947
46948         Make <sys/select.h> really self-contained, also on Solaris 10.
46949         * lib/sys_select.in.h: Include <string.h>.
46950         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
46951         Solaris 10 problem.
46952         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
46953         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
46954         Reported by Jim Meyering.
46955
46956 2009-08-09  Bruno Haible  <bruno@clisp.org>
46957
46958         Avoid warnings from 'aclocal' that are due to a use of macro name
46959         AM_XGETTEXT_OPTION that is not defined in automake.
46960         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
46961         automake.
46962         * modules/error (configure.ac): Likewise.
46963         * modules/propername (configure.ac): Likewise.
46964         * modules/vasprintf (configure.ac): Likewise.
46965         * modules/verror (configure.ac): Likewise.
46966         * modules/xprintf (configure.ac): Likewise.
46967         * modules/xvasprintf (configure.ac): Likewise.
46968
46969 2009-08-08  Bruno Haible  <bruno@clisp.org>
46970
46971         Avoid compilation error in C++ mode.
46972         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
46973         Reported by Sam Steingold <sds@gnu.org>.
46974
46975 2009-08-08  Bruno Haible  <bruno@clisp.org>
46976
46977         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
46978         for the various Unix platforms.
46979         * doc/posix-headers/limits.texi: Update platforms list regarding
46980         HOST_NAME_MAX.
46981         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
46982
46983 2009-08-07  Jim Meyering  <meyering@redhat.com>
46984
46985         selinux-at: fix typo in a comment
46986         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
46987         Spotted by Paolo Bonzini.
46988
46989         selinux-at: remove redundant m4 code, add documentation
46990         * modules/selinux-at (configure.ac): Remove redundant code.
46991         LIB_SELINUX is already set via the dependent module, selinux-h.
46992         (Include): Add quotes around selinux-at.h.
46993         * lib/selinux-at.h: Add documentation.
46994         Reported by Bruno Haible in
46995         http://marc.info/?l=gnulib-bug&m=124958988300749
46996
46997 2009-08-07  Bruno Haible  <bruno@clisp.org>
46998
46999         Avoid link error on MacOS X 10.3 and 10.4.
47000         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
47001         on non-ELF systems.
47002         * lib/argp-pv.c (argp_program_version): Likewise.
47003         Reported by Simon Josefsson.
47004
47005 2009-08-07  Simon Josefsson  <simon@josefsson.org>
47006
47007         * tests/test-version-etc.sh: Use $EXEEXT.
47008
47009 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
47010
47011         update-copyright: update documentation to point to maint.mk
47012         * build-aux/update-copyright: Here.
47013
47014 2009-08-06  Jim Meyering  <meyering@redhat.com>
47015
47016         maint.mk: support update-copyright-local
47017         * top/maint.mk (update-copyright-local): Define place-holder.
47018         (update-copyright): Depend on $(update-copyright-local).
47019
47020 2009-08-06  Jim Meyering  <meyering@redhat.com>
47021
47022         selinux-at: new module
47023         Initially written for coreutils, this module will soon be
47024         used by findutils, too.
47025         * MODULES.html.sh [Misc]: Add selinux-at.
47026         * lib/selinux-at.h: New file, from coreutils.
47027         * lib/selinux-at.c: Likewise.
47028         * modules/selinux-at: Likewise.
47029         (License): Change from LGPL to GPL, since it depends
47030         on the GPL'd openat module.
47031
47032         doc: update README
47033         * README: Remove references to cogito.
47034         Remove cvs-repo-updating instructions from 2007.
47035         Don't imply that CVS is better if you have limited disk space.
47036
47037 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
47038
47039         update-copyright: support C-style comments
47040         * build-aux/update-copyright: Implement and document.
47041         * tests/test-update-copyright.sh: Test.
47042
47043 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
47044
47045         update-copyright: support omitted "(C)"
47046         * build-aux/update-copyright: Implement and document.  Also,
47047         allow variable whitespace before "(C)".
47048         * tests/test-update-copyright.sh: Test.
47049
47050 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
47051
47052         update-copyright: don't trip on non-FSF copyright statements
47053         * build-aux/update-copyright: Fix so that the first correctly
47054         formatted FSF copyright statement is recognized no matter what
47055         appears before it.  Update documentation.
47056         * tests/test-update-copyright.sh: Test that.
47057
47058 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
47059
47060         update-copyright: clean up code a little
47061         * build-aux/update-copyright: Append "_re" to the name of any
47062         variable holding a regular expression.
47063         Replace "old" and "new" with "stmt" in variable names.
47064         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
47065         handled correctly.
47066         Format code more consistently.
47067
47068 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
47069
47070         update-copyright-tests: improve portability
47071         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
47072         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
47073
47074 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
47075
47076         update-copyright: support @copyright{} and &copy;
47077         * build-aux/update-copyright: Implement and document.
47078         * tests/test-update-copyright.sh: Test.
47079
47080 2009-08-04  Jim Meyering  <meyering@redhat.com>
47081
47082         update-copyright-tests: correctly test EOL=\r\n handling
47083         * tests/test-update-copyright.sh: Put \r at the end of some lines
47084         for the dos-eol tests.  Based on a patch by Joel E. Denny.
47085
47086         maint.mk: make update-copyright exclusion list more configurable
47087         * top/maint.mk (update-copyright): Default to excluding COPYING,
47088         but allow an override, in case someone does want to update that file.
47089
47090         maint.mk: don't update copyright date in COPYING
47091         * top/maint.mk (update-copyright): Exclude COPYING.
47092
47093         maint.mk: add a copyright-updating rule
47094         * top/maint.mk (update-copyright): New rule.
47095         Derived from coreutils/Makefile.am.
47096
47097         update-copyright: rename some variables
47098         * build-aux/update-copyright: Rename a few variables for clarity.
47099         Tweak syntax.  List Joel E. Denny as coauthor.
47100
47101 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
47102
47103         update-copyright: fix bug for 2-digit last year and add tests
47104         * build-aux/update-copyright: Fix bug.
47105         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
47106         specified.
47107         * modules/update-copyright-tests: New
47108         * tests/test-update-copyright.sh: New.
47109
47110 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
47111
47112         update-copyright: handle leading tabs in line prefix
47113         * build-aux/update-copyright: Count leading tabs as 8 spaces
47114         when computing margin.  This helps with the formatting of
47115         ChangeLogs, for example.
47116         Fix documentation a little.
47117
47118 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
47119
47120         update-copyright: support EOL=\r\n
47121         * build-aux/update-copyright: Implement that.
47122
47123 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
47124
47125         update-copyright: automatically format copyright statements
47126         * build-aux/update-copyright: Implement that.
47127         Also, be a little more predictable and safer by always failing
47128         when the full copyright format is not perfectly recognized as an
47129         unbroken whole.  Discussed at
47130         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
47131         Rewrite documentation.
47132
47133 2009-08-03  Bruno Haible  <bruno@clisp.org>
47134
47135         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
47136
47137 2009-08-02  Bruno Haible  <bruno@clisp.org>
47138
47139         Tests for module 'uname'.
47140         * modules/uname-tests: New file.
47141         * tests/test-uname.c: New file.
47142
47143         New module 'uname'.
47144         * lib/uname.c: New file.
47145         * m4/uname.m4: New file.
47146         * modules/uname: New file.
47147         * doc/posix-functions/uname.texi: Mention the new module.
47148
47149 2009-08-02  Bruno Haible  <bruno@clisp.org>
47150
47151         Tests for module 'sys_utsname'.
47152         * modules/sys_utsname-tests: New file.
47153         * tests/test-sys_utsname.c: New file.
47154
47155         New module 'sys_utsname'.
47156         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
47157         * m4/sys_utsname_h.m4: New file.
47158         * modules/sys_utsname: New file.
47159         * doc/posix-headers/sys_utsname.texi: Mention the new module.
47160
47161 2009-08-02  Bruno Haible  <bruno@clisp.org>
47162
47163         Implicitly initialize the sockets library.
47164         * lib/gethostname.c: Include sockets.h.
47165         (rpl_gethostname): Invoke gl_sockets_startup.
47166         * lib/socket.c: Include sockets.h.
47167         (rpl_socket): Invoke gl_sockets_startup.
47168         * modules/gethostname (Depends-on): Add sockets.
47169         * modules/socket (Depends-on): Likewise.
47170         * tests/test-poll.c: Don't include sockets.h.
47171         (main): Don't invoke gl_sockets_startup.
47172         * tests/test-select.c: Don't include sockets.h.
47173         (main): Don't invoke gl_sockets_startup.
47174
47175 2009-08-02  Bruno Haible  <bruno@clisp.org>
47176
47177         Allow multiple calls to gl_sockets_startup.
47178         * lib/sockets.c (initialized_sockets_version): New variable.
47179         (gl_sockets_startup): Do nothing if already called for this or a higher
47180         version.
47181         (gl_sockets_cleanup): Reset initialized_sockets_version.
47182
47183 2009-08-03  Simon Josefsson  <simon@josefsson.org>
47184
47185         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
47186         different project/version.
47187
47188 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
47189             Bruno Haible  <bruno@clisp.org>
47190
47191         Tests for module 'pipe-filter-gi'.
47192         * modules/pipe-filter-gi-tests: New file.
47193         * tests/test-pipe-filter-gi1.sh: New file.
47194         * tests/test-pipe-filter-gi1.c: New file.
47195         * tests/test-pipe-filter-gi2.sh: New file.
47196         * tests/test-pipe-filter-gi2-main.c: New file.
47197         * tests/test-pipe-filter-gi2-child.c: New file.
47198
47199         New module 'pipe-filter-gi'.
47200         * lib/pipe-filter-gi.c: New file.
47201         * modules/pipe-filter-gi: New file.
47202
47203 2009-08-02  Bruno Haible  <bruno@clisp.org>
47204             Paolo Bonzini  <bonzini@gnu.org>
47205
47206         Tests for module 'pipe-filter-ii'.
47207         * modules/pipe-filter-ii-tests: New file.
47208         * tests/test-pipe-filter-ii1.sh: New file.
47209         * tests/test-pipe-filter-ii1.c: New file.
47210         * tests/test-pipe-filter-ii2.sh: New file.
47211         * tests/test-pipe-filter-ii2-main.c: New file.
47212         * tests/test-pipe-filter-ii2-child.c: New file.
47213
47214         New module 'pipe-filter-ii'.
47215         * lib/pipe-filter.h: New file.
47216         * lib/pipe-filter-ii.c: New file.
47217         * lib/pipe-filter-aux.h: New file.
47218         * modules/pipe-filter-ii: New file.
47219
47220 2009-08-02  Simon Josefsson  <simon@josefsson.org>
47221
47222         * lib/gc-libgcrypt.c: Change copyright to FSF.
47223         * lib/gc-gnulib.c: Likewise.
47224
47225 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
47226
47227         * lib/gethostname.c: Include limits.h.
47228
47229 2009-08-02  Simon Josefsson  <simon@josefsson.org>
47230             Bruno Haible  <bruno@clisp.org>
47231
47232         Ensure HOST_NAME_MAX as part of the gethostname module.
47233         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
47234         define also HOST_NAME_MAX.
47235         * tests/test-gethostname.c: Include <limits.h>.
47236         (main): Check also HOST_NAME_MAX.
47237         * doc/posix-headers/limits.texi: Document the mingw problem.
47238
47239 2009-08-02  Bruno Haible  <bruno@clisp.org>
47240
47241         * lib/gethostname.c (gethostname): Fix handling of large len argument.
47242         Add comments.
47243
47244 2009-03-31  Simon Josefsson  <simon@josefsson.org>
47245
47246         * lib/gethostname.c: Add Windows wrapper.
47247         * m4/gethostname.m4: Look for gethostname in -lws2_32.
47248         * modules/gethostname: Depend on sys_socket & errno, for also
47249         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
47250         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
47251
47252 2009-07-31  Jim Meyering  <meyering@redhat.com>
47253
47254         getloadavg: fix symbol name in comment
47255         * lib/getloadavg.c: Correct a typo I introduced when adding
47256         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
47257         Matt Kraai spotted the problem.
47258
47259 2009-07-29  Matt Kraai  <mkraai@beckman.com>
47260
47261         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
47262         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
47263         code also if ! defined N_NAME_POINTER.
47264         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
47265         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
47266         but the n_name member is a 12-byte array.
47267
47268 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
47269
47270         update-copyright: generalize comment handling
47271         * build-aux/update-copyright: Handle copyright statements
47272         within more comment styles.
47273         Document usage.
47274         Report any file with an external copyright holder or parse failure.
47275
47276 2009-07-29  Jim Meyering  <meyering@redhat.com>
47277
47278         mktime: correct setting of REPLACE_MKTIME
47279         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
47280
47281         update-copyright: new module
47282         * modules/update-copyright: New file.
47283         * build-aux/update-copyright: New file.
47284         * MODULES.html.sh (maint+release support): Add update-copyright.
47285
47286 2009-07-27  Bruno Haible  <bruno@clisp.org>
47287
47288         Fix compilation error when <ctime> is used and mktime is replaced.
47289         * lib/time.in.h (mktime): New declaration.
47290         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
47291         REPLACE_MKTIME instead of defining mktime in config.h.
47292         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
47293         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
47294         Reported by Ross McFarland <rwmcfa1@neces.com>.
47295
47296 2009-07-27  Bruno Haible  <bruno@clisp.org>
47297
47298         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
47299         Reported by Matt Kraai <mkraai@beckman.com>.
47300
47301 2009-07-25  Jim Meyering  <meyering@redhat.com>
47302
47303         maint.mk: avoid warnings about missing files
47304         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
47305         diagnostic when .prev-version does not exist.
47306         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
47307         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
47308         nonexistent cfg.mk.
47309         Suggestions from Simon Josefsson.
47310
47311 2009-07-25  Bruno Haible  <bruno@clisp.org>
47312
47313         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
47314         defined as macros. Needed on QNX 6.4.1.
47315         Reported by Matt Kraai <mkraai@beckman.com>.
47316
47317 2009-07-23  Jim Meyering  <meyering@redhat.com>
47318
47319         maint.mk: invoke "make dist" with a working value of XZ_OPT
47320         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
47321
47322 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
47323
47324         Make fseeko.c compile on QNX.
47325         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
47326
47327 2009-07-22  Peter Simons  <simons@cryp.to>
47328
47329         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
47330         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
47331         * lib/md4.h: Likewise.
47332         * lib/md5.h: Likewise.
47333         * lib/sha1.h: Likewise.
47334         * lib/sha256.h: Likewise.
47335         * lib/sha512.h: Likewise.
47336
47337         tests-sha1: don't assign literal string to 'char *' variable
47338         * tests/test-sha1.c (main): Declare locals with "const" to match
47339         attributes of the right hand side.
47340
47341 2009-07-21  Eric Blake  <ebb9@byu.net>
47342
47343         dup2: fix more mingw problems
47344         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
47345         fd to itself.
47346         * doc/posix-functions/dup2.texi (dup2): Document the bug.
47347         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
47348         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
47349         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
47350         care of mingw bugs.
47351
47352 2009-07-21  Jim Meyering  <meyering@redhat.com>
47353
47354         vc-list-files: avoid failure when /bin/sh is dash
47355         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
47356         On some Debian based systems, /bin/sh is a symlink to dash, and running
47357         this command would omit the "/" following each 'tests' prefix:
47358           dash -x build-aux/vc-list-files -C . tests
47359         That is because bash and dash work differently:
47360           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
47361           bash ok
47362           dash odd
47363
47364 2009-07-21  Eric Blake  <ebb9@byu.net>
47365
47366         dup2-tests: test previous patch
47367         * modules/dup2-tests: New file.
47368         * tests/test-dup2.c: Likewise.
47369         * tests/test-open.c (main): Avoid unspecified behavior.
47370         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
47371         test.
47372
47373         dup2: work around mingw and cygwin 1.5 bug
47374         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
47375         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
47376         * modules/unistd (Makefile.am): Substitute it.
47377         * lib/unistd.in.h (dup2): Declare the replacement.
47378         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
47379         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
47380         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
47381         * modules/execute (Depends-on): Add dup2.
47382         * modules/fseterr (Depends-on): Likewise.
47383         * modules/pipe (Depends-on): Likewise.
47384         * modules/posix_spawn-internal (Depends-on): Likewise.
47385
47386 2009-07-21  Bruno Haible  <bruno@clisp.org>
47387
47388         * modules/.gitattributes: New file.
47389
47390 2009-07-20  Bruno Haible  <bruno@clisp.org>
47391
47392         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
47393         (main): Use it.
47394
47395 2009-07-20  Eric Blake  <ebb9@byu.net>
47396
47397         test-pipe: make a bit more robust.
47398         * tests/test-pipe.c (myerr): Allow error messages regardless of
47399         what we do to stderr.
47400         (test_pipe): Rearrange to avoid deadlock.
47401         (child_main): Try a larger read, to ensure we avoided deadlock.
47402         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
47403         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
47404         if misused.
47405
47406 2009-07-19  Jim Meyering  <meyering@redhat.com>
47407
47408         fts: avoid false-positive cycle-detection
47409         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
47410         for each new command line argument.
47411
47412 2009-07-19  Bruno Haible  <bruno@clisp.org>
47413
47414         Fix build error on mingw with the modules sys_select and unistd.
47415         * modules/acl-tests (Depends-on): Add close.
47416         * modules/binary-io-tests (Depends-on): Likewise.
47417         * modules/closein-tests (Depends-on): Likewise.
47418         * modules/flock-tests (Depends-on): Likewise.
47419         * modules/fsync-tests (Depends-on): Likewise.
47420         * modules/lseek-tests (Depends-on): Likewise.
47421         * modules/pipe-tests (Depends-on): Likewise.
47422         * modules/posix_spawn-tests (Depends-on): Likewise.
47423         * modules/posix_spawnp-tests (Depends-on): Likewise.
47424         * modules/stat-time-tests (Depends-on): Likewise.
47425         * modules/yesno-tests (Depends-on): Likewise.
47426
47427 2009-07-19  Bruno Haible  <bruno@clisp.org>
47428
47429         Unify conditionals.
47430         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
47431         macros, not at the compiler macros.
47432         * lib/pipe.c: Likewise.
47433         * lib/execute.c: Likewise.
47434         * lib/spawni.c: Likewise.
47435
47436 2009-07-19  Bruno Haible  <bruno@clisp.org>
47437
47438         Fix handling of closed stdin/stdout/stderr on mingw.
47439         * lib/w32spawn.h: Include unistd.h.
47440         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
47441         file descriptor with O_NOINHERIT flag.
47442         (fd_safer_noinherit): New function, based on fd-safer.c.
47443         (dup_safer_noinherit): New function, based on dup-safer.c.
47444         (undup_safer_noinherit): New function.
47445         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
47446         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
47447         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
47448         instead of fd_safer.
47449         * tests/test-pipe.c: Include <windows.h>.
47450         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
47451         result.
47452
47453         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
47454         from main.
47455         (test_pipe): Pass an extra argument for disambiguation.
47456         (main): Invoke parent_main or child_main.
47457
47458         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
47459         consistently.
47460
47461 2009-07-18  Eric Blake  <ebb9@byu.net>
47462
47463         test-pipe: fix mingw build
47464         * tests/test-pipe.c (main): Avoid fcntl on mingw.
47465
47466 2009-07-18  Bruno Haible  <bruno@clisp.org>
47467
47468         * modules/pipe-tests (Makefile.am): Fix typo.
47469
47470 2009-07-18  Eric Blake  <ebb9@byu.net>
47471
47472         error: fix mingw build
47473         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
47474         Reported by Bruno Haible.
47475
47476         error: avoid undefined use of stdout
47477         * lib/error.c (error, error_at_line): Check that fd 1 is open
47478         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
47479         is handling faults and the close_stdout module wants to report the
47480         detection of closed stdout as an error.
47481
47482 2009-07-17  Eric Blake  <ebb9@byu.net>
47483
47484         pipe: be robust in face of closed fds
47485         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
47486         should cause child to misbehave.
47487         * modules/pipe-tests: New module.
47488         * tests/test-pipe.c: New file.
47489         * tests/test-pipe.sh: New file.
47490         Reported by Akim Demaille.
47491
47492 2009-07-14  Bruno Haible  <bruno@clisp.org>
47493
47494         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
47495         Reported by anonymous kc.
47496
47497 2009-07-07  Jim Meyering  <meyering@redhat.com>
47498
47499         maint.mk: don't look for translatable strings in *.m4 or *.mk
47500         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
47501         when searching for translatable strings.
47502
47503 2009-07-05  Jim Meyering  <meyering@redhat.com>
47504
47505         remove superfluous parentheses in STREQ definition
47506         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
47507         * lib/getugroups.c (STREQ): Likewise.
47508         * lib/fnmatch.c (STREQ): Likewise.
47509         Spotted by Bruno Haible.
47510
47511 2009-07-04  Jim Meyering  <meyering@redhat.com>
47512
47513         argv-iter: new module
47514         * MODULES.html.sh: Add argv-iter.
47515         * lib/argv-iter.c, lib/argv-iter.h: New files.
47516         * modules/argv-iter: New file.
47517         * modules/argv-iter-tests: New file.
47518         * tests/test-argv-iter.c: Test it.
47519
47520 2009-07-04  Bruno Haible  <bruno@clisp.org>
47521
47522         Fix assertion.
47523         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
47524         contains more exact copies of a given entry than file2, leave the extra
47525         copies unpaired rather than aborting.
47526         Reported by Eric Blake.
47527
47528 2009-07-02  Bruno Haible  <bruno@clisp.org>
47529
47530         Speedup git-merge-changelog for git cherry-pick.
47531         * lib/git-merge-changelog.c (struct entries_mapping): New type.
47532         (entries_mapping_get): New function, extracted from compute_mapping.
47533         (entries_mapping_reverse_get): New function.
47534         (compute_mapping): Add a 'full' argument. Return the result in a
47535         'struct entries_mapping'.
47536         (main): Update. Access the mappings through entries_mapping_get.
47537         Reported by Eric Blake.
47538
47539 2009-07-02  Bruno Haible  <bruno@clisp.org>
47540
47541         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
47542         best_i.
47543
47544 2009-07-02  Bruno Haible  <bruno@clisp.org>
47545
47546         Speed up approximate search for matching ChangeLog entries.
47547         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
47548         argument. Call fstrcmp_bounded instead of fstrcmp.
47549         (compute_mapping, try_split_merged_entry, main): Update callers.
47550
47551 2009-07-02  Bruno Haible  <bruno@clisp.org>
47552
47553         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
47554
47555 2009-06-30  Bruno Haible  <bruno@clisp.org>
47556
47557         Reduce the number of uc_is_cased calls.
47558         * lib/unicase.h (casing_suffix_context_t): Add
47559         'first_char_except_ignorable' field.
47560         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
47561         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
47562         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
47563         Update initializer.
47564         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
47565         case-ignorable characters.
47566         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
47567         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
47568         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
47569         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
47570         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
47571
47572 2009-06-30  Bruno Haible  <bruno@clisp.org>
47573
47574         Tests for module 'unicase/ignorable'.
47575         * modules/unicase/ignorable-tests: New file.
47576         * tests/unicase/test-ignorable.c: New file, generated by
47577         gen-uni-tables.
47578
47579         Tests for module 'unicase/cased'.
47580         * modules/unicase/cased-tests: New file.
47581         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
47582         * tests/unicase/test-predicate-part1.h: New file, derived from
47583         tests/unictype/test-predicate-part1.h.
47584         * tests/unicase/test-predicate-part2.h: New file, same as
47585         tests/unictype/test-predicate-part2.h.
47586
47587         Fix evaluation of "Before C" condition of FINAL_SIGMA.
47588         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
47589         (output_casing_properties): New function.
47590         (main): Call it.
47591         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
47592         * lib/unicase/cased.c: Include unictype/bitmap.h.
47593         (uc_is_cased): Define through a bitmap lookup.
47594         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
47595         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
47596         (uc_is_case_ignorable): Define through a bitmap lookup.
47597         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
47598         lib/unictype/bitmap.h.
47599         (Depends-on): Add inline. Clean up.
47600         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
47601         lib/unictype/bitmap.h.
47602         (Depends-on): Add inline. Clean up.
47603         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
47604         recognition.
47605         * tests/unicase/test-u16-tolower.c (main): Likewise.
47606         * tests/unicase/test-u32-tolower.c (main): Likewise.
47607
47608 2009-06-30  Bruno Haible  <bruno@clisp.org>
47609
47610         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
47611         * lib/unicase/u16-casemap.c: Likewise.
47612         * lib/unicase/u32-casemap.c: Likewise.
47613
47614 2009-06-29  Bruno Haible  <bruno@clisp.org>
47615
47616         Define u32_casefold as a wrapper around u32_ct_casefold.
47617         * lib/unicase/u32-casefold.c: Update.
47618         * modules/unicase/u32-casefold (Depends-on): Add
47619         unicase/u32-ct-casefold, unicase/empty-prefix-context,
47620         unicase/empty-suffix-context. Clean up.
47621
47622         Define u16_casefold as a wrapper around u16_ct_casefold.
47623         * lib/unicase/u16-casefold.c: Update.
47624         * modules/unicase/u16-casefold (Depends-on): Add
47625         unicase/u16-ct-casefold, unicase/empty-prefix-context,
47626         unicase/empty-suffix-context. Clean up.
47627
47628         Define u8_casefold as a wrapper around u8_ct_casefold.
47629         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
47630         * lib/unicase/u8-casefold.c: Update.
47631         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
47632         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
47633
47634         Define u32_totitle as a wrapper around u32_ct_totitle.
47635         * lib/unicase/u32-totitle.c: Update.
47636         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
47637         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
47638
47639         Define u16_totitle as a wrapper around u16_ct_totitle.
47640         * lib/unicase/u16-totitle.c: Update.
47641         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
47642         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
47643
47644         Define u8_totitle as a wrapper around u8_ct_totitle.
47645         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
47646         functions.
47647         (FUNC): Delegate to U_CT_TOTITLE.
47648         * lib/unicase/u8-totitle.c: Update.
47649         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
47650         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
47651
47652         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
47653         invocation.
47654         * modules/unicase/u32-tolower (Depends-on): Add
47655         unicase/empty-prefix-context, unicase/empty-suffix-context.
47656
47657         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
47658         invocation.
47659         * modules/unicase/u16-tolower (Depends-on): Add
47660         unicase/empty-prefix-context, unicase/empty-suffix-context.
47661
47662         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
47663         * modules/unicase/u8-tolower (Depends-on): Add
47664         unicase/empty-prefix-context, unicase/empty-suffix-context.
47665
47666         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
47667         invocation.
47668         * modules/unicase/u32-toupper (Depends-on): Add
47669         unicase/empty-prefix-context, unicase/empty-suffix-context.
47670
47671         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
47672         invocation.
47673         * modules/unicase/u16-toupper (Depends-on): Add
47674         unicase/empty-prefix-context, unicase/empty-suffix-context.
47675
47676         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
47677         * modules/unicase/u8-toupper (Depends-on): Add
47678         unicase/empty-prefix-context, unicase/empty-suffix-context.
47679
47680         New module 'unicase/u32-ct-casefold'.
47681         * lib/unicase/u32-ct-casefold.c: New file.
47682         * modules/unicase/u32-ct-casefold: New file.
47683
47684         New module 'unicase/u16-ct-casefold'.
47685         * lib/unicase/u16-ct-casefold.c: New file.
47686         * modules/unicase/u16-ct-casefold: New file.
47687
47688         New module 'unicase/u8-ct-casefold'.
47689         * lib/unicase/u8-ct-casefold.c: New file.
47690         * lib/unicase/u-ct-casefold.h: New file, derived from
47691         lib/unicase/u-casefold.h.
47692         * modules/unicase/u8-ct-casefold: New file.
47693
47694         New module 'unicase/u32-ct-totitle'.
47695         * lib/unicase/u32-ct-totitle.c: New file.
47696         * modules/unicase/u32-ct-totitle: New file.
47697
47698         New module 'unicase/u16-ct-totitle'.
47699         * lib/unicase/u16-ct-totitle.c: New file.
47700         * modules/unicase/u16-ct-totitle: New file.
47701
47702         New module 'unicase/u8-ct-totitle'.
47703         * lib/unicase/u8-ct-totitle.c: New file.
47704         * lib/unicase/u-ct-totitle.h: New file, derived from
47705         lib/unicase/u-totitle.h.
47706         * modules/unicase/u8-ct-totitle: New file.
47707
47708         New module 'unicase/u32-ct-tolower'.
47709         * lib/unicase/u32-ct-tolower.c: New file.
47710         * modules/unicase/u32-ct-tolower: New file.
47711
47712         New module 'unicase/u16-ct-tolower'.
47713         * lib/unicase/u16-ct-tolower.c: New file.
47714         * modules/unicase/u16-ct-tolower: New file.
47715
47716         New module 'unicase/u8-ct-tolower'.
47717         * lib/unicase/u8-ct-tolower.c: New file.
47718         * modules/unicase/u8-ct-tolower: New file.
47719
47720         New module 'unicase/u32-ct-toupper'.
47721         * lib/unicase/u32-ct-toupper.c: New file.
47722         * modules/unicase/u32-ct-toupper: New file.
47723
47724         New module 'unicase/u16-ct-toupper'.
47725         * lib/unicase/u16-ct-toupper.c: New file.
47726         * modules/unicase/u16-ct-toupper: New file.
47727
47728         New module 'unicase/u8-ct-toupper'.
47729         * lib/unicase/u8-ct-toupper.c: New file.
47730         * modules/unicase/u8-ct-toupper: New file.
47731
47732         Add context arguments to u*_casemap functions.
47733         * lib/unicase/unicasemap.h: Include unicase.h.
47734         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
47735         suffix_context arguments.
47736         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
47737         functions.
47738         (FUNC): Add prefix_context and suffix_context arguments. Use
47739         uc_is_cased and uc_is_case_ignorable.
47740         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
47741         * lib/unicase/u16-casemap.c: Likewise.
47742         * lib/unicase/u32-casemap.c: Likewise.
47743         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
47744         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
47745         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
47746         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
47747         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
47748         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
47749
47750         New module 'unicase/u32-suffix-context'.
47751         * lib/unicase/u32-suffix-context.c: New file.
47752         * modules/unicase/u32-suffix-context: New file.
47753
47754         New module 'unicase/u16-suffix-context'.
47755         * lib/unicase/u16-suffix-context.c: New file.
47756         * modules/unicase/u16-suffix-context: New file.
47757
47758         New module 'unicase/u8-suffix-context'.
47759         * lib/unicase/u8-suffix-context.c: New file.
47760         * lib/unicase/u-suffix-context.h: New file.
47761         * modules/unicase/u8-suffix-context: New file.
47762
47763         New module 'unicase/empty-suffix-context'.
47764         * lib/unicase/empty-suffix-context.c: New file.
47765         * modules/unicase/empty-suffix-context: New file.
47766
47767         New module 'unicase/u32-prefix-context'.
47768         * lib/unicase/u32-prefix-context.c: New file.
47769         * modules/unicase/u32-prefix-context: New file.
47770
47771         New module 'unicase/u16-prefix-context'.
47772         * lib/unicase/u16-prefix-context.c: New file.
47773         * modules/unicase/u16-prefix-context: New file.
47774
47775         New module 'unicase/u8-prefix-context'.
47776         * lib/unicase/u8-prefix-context.c: New file.
47777         * lib/unicase/u-prefix-context.h: New file.
47778         * lib/unicase/context.h: New file.
47779         * modules/unicase/u8-prefix-context: New file.
47780
47781         New module 'unicase/empty-prefix-context'.
47782         * lib/unicase/empty-prefix-context.c: New file.
47783         * modules/unicase/empty-prefix-context: New file.
47784
47785         New module 'unicase/ignorable'.
47786         * lib/unicase/ignorable.c: New file.
47787         * modules/unicase/ignorable: New file.
47788
47789         New module 'unicase/cased'.
47790         * lib/unicase/caseprop.h: New file.
47791         * lib/unicase/cased.c: New file.
47792         * modules/unicase/cased: New file.
47793
47794         New functions for case mapping of substrings.
47795         * lib/unicase.h (casing_prefix_context_t): New type.
47796         (unicase_empty_prefix_context): New variable.
47797         (u8_casing_prefix_context, u16_casing_prefix_context,
47798         u32_casing_prefix_context, u8_casing_prefixes_context,
47799         u16_casing_prefixes_context, u32_casing_prefixes_context): New
47800         declarations.
47801         (casing_suffix_context_t): New type.
47802         (unicase_empty_suffix_context): New variable.
47803         (u8_casing_suffix_context, u16_casing_suffix_context,
47804         u32_casing_suffix_context, u8_casing_suffixes_context,
47805         u16_casing_suffixes_context, u32_casing_suffixes_context,
47806         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
47807         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
47808         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
47809         declarations.
47810
47811 2009-06-28  Jim Meyering  <meyering@redhat.com>
47812
47813         boostrap: indent only with spaces
47814         * build-aux/bootstrap: Indent only with spaces, never TABs.
47815
47816         bootstrap: split long lines
47817         * build-aux/bootstrap: Keep line length < 80.
47818
47819         bootstrap: sync from coreutils
47820         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
47821         just as autoreconf does.  Verify a list of prerequisite
47822         package-name,version-number pairs if defined in bootstrap.conf.
47823         Refer to README-prereq, if prerequisites are not satisfied.
47824
47825 2009-06-27  Eric Blake  <ebb9@byu.net>
47826
47827         tests: add test for bogus NULL definition
47828         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
47829         * tests/test-stdlib.c: Likewise.
47830         * tests/test-string.c: Likewise.
47831         * tests/test-locale.c: Likewise.
47832         * tests/test-unistd.c: Likewise.
47833         * modules/stdio-tests (Depends-on): Add verify.
47834         * modules/stdlib-tests (Depends-on): Likewise.
47835         * modules/string-tests (Depends-on): Likewise.
47836         * modules/locale-tests (Depends-on): Likewise.
47837         * modules/unistd-tests (Depends-on): Likewise.
47838
47839 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
47840
47841         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
47842         self-explaining comment.
47843         * m4/selinux-selinux-h: Update serial.
47844         (gl_LIBSELINUX): New macro, adding a warning for missing development
47845         packages to code extracted from...
47846         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
47847         Add warning for missing development packages here, too.
47848
47849 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
47850
47851         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
47852
47853 2009-06-25  Eric Blake  <ebb9@byu.net>
47854
47855         version-etc: fix regression
47856         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
47857         gcc.
47858         (version_etc): Use it, to catch bugs with trailing NULL.
47859         * lib/version-etc.c (version_etc_arn): Delete unused argument.
47860         (version_etc_va): Fix logic bug.
47861         * modules/version-etc-tests: Add test.
47862         * tests/test-version-etc.c: New file.
47863         * tests/test-version-etc.sh: Likewise.
47864
47865 2009-06-25  Sam Steingold  <sds@gnu.org>
47866
47867         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
47868         mbtowc declaration.
47869
47870 2009-06-25  Eric Blake  <ebb9@byu.net>
47871
47872         fpurge: migrate into <stdio.h>
47873         * lib/fpurge.h: Delete...
47874         * lib/stdio.in.h (fpurge): ...and declare here, instead.
47875         * lib/fpurge.c (fpurge): Change declaring header.
47876         * modules/fpurge (Files): Drop deleted file.
47877         (Depends-on): Add stdio.
47878         (configure.ac): Set witness.
47879         * modules/stdio (Makefile.am): Support fpurge macros.
47880         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
47881         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
47882         * lib/fflush.c: Update client.
47883         * tests/test-fpurge.c: Likewise.
47884         * NEWS: Mention the change.
47885
47886 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
47887
47888         * lib/argp-version-etc.c (program_authors): Add const
47889         qualifier.
47890         * lib/version-etc.c: Fix typos in the comments.
47891         * modules/argp-version-etc: Depends on version-etc.
47892
47893 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
47894
47895         argp-version-etc: new module.
47896
47897         * lib/argp-version-etc.c: New file.
47898         * lib/argp-version-etc.h: New file.
47899         * modules/argp-version-etc: New file.
47900         * modules/argp-version-etc-tests: New file.
47901         * tests/test-argp-version-etc.c: New test.
47902         * tests/test-argp-version-etc-1.sh: New test.
47903
47904 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
47905
47906         Provide additional interfaces and documentation for version-etc
47907         module.
47908
47909         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
47910         interfaces.
47911         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
47912         prototypes.
47913
47914 2009-06-24  Bruno Haible  <bruno@clisp.org>
47915
47916         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
47917         HAVE_LIB${NAME} macro.
47918         Reported by Sam Steingold <sds@gnu.org>.
47919
47920 2009-06-23  Simon Josefsson  <simon@josefsson.org>
47921
47922         * modules/hash-tests (test_hash_LDADD): Link to libintl when
47923         needed.
47924
47925 2009-06-21  Bruno Haible  <bruno@clisp.org>
47926
47927         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
47928         work.
47929         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
47930         together with LIB${NAME}, LTLIB${NAME}.
47931         Reported by Sam Steingold <sds@gnu.org>.
47932
47933 2009-06-20  Jim Meyering  <meyering@redhat.com>
47934
47935         tests: make sc_require_test_exit_idiom more generic
47936         * top/maint.mk (Exit_witness_file): New overridable variable.
47937         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
47938         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
47939
47940 2009-06-19  Jim Meyering  <meyering@redhat.com>
47941
47942         hash: reverse order of src/dst parameters in an internal interface
47943         * lib/hash.c (transfer_entries): Reverse order of parameters to
47944         put DST before SRC.  Adjust callers.
47945
47946         tests: test-hash: avoid wholesale duplication
47947         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
47948         Instead, use a loop and add a single conditional.
47949
47950         tests: test-hash: allow seed selection via a command line argument
47951         * tests/test-hash.c (get_seed): New function.
47952         (main): Use it.
47953
47954 2009-06-19  Eric Blake  <ebb9@byu.net>
47955
47956         hash: avoid memory leak on allocation failure
47957         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
47958         failure.  Factor repeated algorithm...
47959         (transfer_entries): ...into new helper routine.
47960         (hash_delete): React to hash_rehash return value.
47961
47962         hash: reduce memory pressure in hash_rehash no-op case
47963         * lib/hash.c (next_prime): Avoid overflow.
47964         (hash_initialize): Factor bucket size computation...
47965         (compute_bucket_size): ...into new helper function.
47966         (hash_rehash): Use new function and open coding to reduce memory
47967         pressure, and avoid a memory leak in USE_OBSTACK code.
47968         Reported by Jim Meyering.
47969
47970 2009-06-18  Eric Blake  <ebb9@byu.net>
47971
47972         hash: make rotation more obvious
47973         * modules/hash (Depends-on): Add bitrotate and stdint.
47974         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
47975         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
47976         (SIZE_MAX): Rely on headers for definition.
47977         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
47978         (raw_hasher): Use rotr_sz.
47979         Suggested by Jim Meyering.
47980
47981         hash: fix memory leak in last patch
47982         * lib/hash.c (hash_rehash): Avoid memory leak.
47983
47984         hash: avoid no-op rehashing
47985         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
47986
47987         hash: provide default callback functions
47988         * lib/hash.c (raw_hasher, raw_comparator): New functions.
47989         (hash_initialize): Use them as defaults.
47990         * tests/test-hash.c (main): Test this.
47991
47992         hash: minor optimization
47993         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
47994         when possible.
47995         (hash_initialize): Document this promise.
47996         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
47997         * tests/test-hash.c (hash_compare_strings): Test this.
47998
47999 2009-06-18  Bruno Haible  <bruno@clisp.org>
48000
48001         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
48002         going to be replaced anyway.
48003
48004 2009-06-18  Bruno Haible  <bruno@clisp.org>
48005
48006         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
48007         in one place.
48008         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
48009         be replaced anyway.
48010
48011 2009-06-18  Eric Blake  <ebb9@byu.net>
48012
48013         hash: check for resize before insertion
48014         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
48015         threshold before insertion, so that a pathological hash_rehash
48016         that fills every bucket can still trigger another rehash.
48017
48018 2009-06-18  Jim Meyering  <meyering@redhat.com>
48019
48020         hash-tests: add a loop around the small tests
48021         * tests/test-hash.c (main): Repeat small tests with selected
48022         small initial table sizes.
48023
48024 2009-06-17  Eric Blake  <ebb9@byu.net>
48025
48026         hash: minor cleanups
48027         * lib/hash.h (hash_entry): Make opaque, by moving...
48028         * lib/hash.c (hash_entry): ...here.
48029         (hash_insert): Clarify restrictions on what can be inserted.
48030         (hash_get_next): Clarify when it is safe to remove an element
48031         during traversal.
48032         (check_tuning): Skip verification when tuning is known safe.
48033         (hash_initialize): Clarify restrictions on tuning.
48034
48035 2009-06-17  Jim Meyering  <jim@meyering.net>
48036         and Eric Blake  <ebb9@byu.net>
48037
48038         hash-tests: new module
48039         * modules/hash-tests: New file.
48040         * tests/test-hash.c: New file.
48041
48042 2009-06-17  Eric Blake  <ebb9@byu.net>
48043
48044         strstr-simple: document new module
48045         * MODULES.html.sh: Document new module.
48046
48047         strstr, strcasestr: replace on platforms with broken memchr
48048         * modules/strstr: Split into...
48049         * modules/strstr-simple: ...new module that does not care about
48050         performance, but does care about glibc bug.
48051         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
48052         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
48053         if platform memchr is broken, per Debian bug 521737.
48054         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
48055         memchr.
48056         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
48057         * doc/posix-functions/strstr.texi (strstr): Document the fix.
48058         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
48059         * modules/mountlist (Depends-on): Add strstr-simple.
48060         * modules/gen-uni-tables (Depends-on): Likewise.
48061         * modules/argz (Depends-on): Add strstr.
48062
48063 2009-06-17  Bruno Haible  <bruno@clisp.org>
48064
48065         * modules/posix_spawn-internal (Depends-on): Add errno.
48066
48067 2009-06-17  Bruno Haible  <bruno@clisp.org>
48068
48069         Define missing ESTALE on Interix 3.5.
48070         * lib/errno.in.h (ESTALE): Assign a value if missing.
48071         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
48072         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
48073         missing.
48074         * doc/posix-headers/errno.texi: Mention the Interix bug.
48075         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
48076
48077 2009-06-15  Eric Blake  <ebb9@byu.net>
48078
48079         memchr, memchr2: add valgrind exception
48080         * lib/memchr.valgrind: New file.
48081         * lib/memchr2.valgrind: New file.
48082         * modules/memchr (Files): Distribute valgrind file.
48083         * modules/memchr2 (Files): Likewise.
48084
48085         docs: memchr is no longer obsolete
48086         * MODULES.html.sh: Move memchr from obsolete to string.h section.
48087         * lib/string.in.h (memchr): Simplify logic.
48088
48089 2009-06-14  Jim Meyering  <meyering@redhat.com>
48090
48091         link-follow: fix the "checking..." message to not mention trailing slash
48092         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
48093         never considered trailing slashes.
48094
48095 2009-06-14  Bruno Haible  <bruno@clisp.org>
48096
48097         * m4/memchr.m4: Mention also the bug on IA-64.
48098         * doc/posix-functions/memchr.texi: Likewise.
48099
48100 2009-06-12  Eric Blake  <ebb9@byu.net>
48101
48102         memchr: detect broken x86_64 and alpha implementations
48103         * modules/memchr-tests (Depends-on): Move mmap detection...
48104         * modules/memchr (Depends-on): ...here.
48105         (configure.ac): Set indicator.
48106         * lib/string.in.h (memchr): Declare replacement.
48107         * modules/string (Makefile.am): Trigger replacement.
48108         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
48109         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
48110         bugs.
48111         * doc/posix-functions/memchr.texi (memchr): Document the bug.
48112         * modules/getpagesize (License): Relax license.
48113
48114 2009-06-11  Bruno Haible  <bruno@clisp.org>
48115
48116         * lib/idpriv.h: Add more references.
48117
48118 2009-06-08  Bruno Haible  <bruno@clisp.org>
48119
48120         Tests for module 'idpriv-droptemp'.
48121         * modules/idpriv-droptemp-tests: New file.
48122         * tests/test-idpriv-droptemp.sh: New file.
48123         * tests/test-idpriv-droptemp.su.sh: New file.
48124         * tests/test-idpriv-droptemp.c: New file.
48125
48126         New module 'idpriv-droptemp'.
48127         * lib/idpriv-droptemp.c: New file.
48128         * modules/idpriv-droptemp: New file.
48129
48130 2009-06-08  Bruno Haible  <bruno@clisp.org>
48131
48132         Tests for module 'idpriv-drop'.
48133         * modules/idpriv-drop-tests: New file.
48134         * tests/test-idpriv-drop.sh: New file.
48135         * tests/test-idpriv-drop.su.sh: New file.
48136         * tests/test-idpriv-drop.c: New file.
48137
48138         New module 'idpriv-drop'.
48139         * lib/idpriv.h: New file.
48140         * lib-idpriv-drop.c: New file.
48141         * m4/idpriv.m4: New file.
48142         * modules/idpriv-drop: New file.
48143
48144 2009-06-08  Bruno Haible  <bruno@clisp.org>
48145
48146         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
48147         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
48148         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
48149         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
48150         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
48151         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
48152         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
48153
48154 2009-06-08  Eric Blake  <ebb9@byu.net>
48155
48156         test-strstr: use memory fence, when possible
48157         * tests/test-strstr.c (main): Use memory fence, in order to be
48158         more likely to trigger Debian bug 521737.
48159         * modules/strstr-tests (Files): Pull in additional files.
48160
48161         memchr: no longer obsolete, for wider field testing
48162         * modules/memchr (Status, Notice): Delete, this module is no
48163         longer obsolete.
48164         * modules/vasnprintf (Depends-on): Add memchr.
48165
48166 2009-06-07  Jim Meyering  <meyering@redhat.com>
48167
48168         hash: declare some functions with the warn_unused_result attribute
48169         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
48170
48171 2009-06-07  Bruno Haible  <bruno@clisp.org>
48172
48173         * tests/test-alignof.c: Don't test int64_t if it does not exist.
48174         Reported by Eric Blake.
48175
48176 2009-06-06  Eric Blake  <ebb9@byu.net>
48177
48178         test-alignof: fix typo with long double
48179         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
48180         compiler error.
48181
48182 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
48183
48184         Escape non-texinfo { and }s.
48185         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
48186         markup error.
48187
48188 2009-06-04  Jim Meyering  <meyering@redhat.com>
48189
48190         gitlog-to-changelog: don't infloop on an empty commit log
48191         * build-aux/gitlog-to-changelog: Warn about an empty log message.
48192         Reported by Boris Petersen <transacid@centerim.org>.
48193
48194 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
48195
48196         version-etc: extend for packagers
48197         Add three new configure options, intended for packagers:
48198           --with-packager="packager name"
48199           --with-packager-version="packager-specific version"
48200           --with-packager-bug-reports="packager bug reporting"
48201         An example with coreutils:
48202           $ ./configure \
48203             --with-packager=Gentoo \
48204             --with-packager-bug-report=http://bugs.gentoo.org/ \
48205             --with-packager-version="patchset 1.6"
48206           $ ./src/ls --version | head -n2
48207           ls (GNU coreutils) 7.1-dirty
48208           Packaged by Gentoo (patchset 1.6)
48209         Note that the bug reporting info via --help doesn't show up because
48210         coreutils uses its own custom emit_bug_reporting_address() implementation
48211         in src/system.h.  If it didn't, it'd look like:
48212           $ ./src/ls --help | tail -n4
48213           Report bugs to <bug-coreutils@gnu.org>.
48214           Report Gentoo bugs to <http://bugs.gentoo.org/>.
48215           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
48216           General help using GNU software: <http://www.gnu.org/gethelp/>.
48217         * lib/version-etc.c: Print new information, if provided.
48218         * m4/version-etc.m4: New file.
48219         * modules/version-etc (Files): Add m4/version-etc.m4.
48220         (configure.ac): Add gl_VERSION_ETC.
48221
48222 2009-05-31  Bruno Haible  <bruno@clisp.org>
48223
48224         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
48225         and 'int64_t'.
48226         * modules/alignof-tests (Dependencies): Add stdint.
48227         Reported by Eric Blake.
48228
48229 2009-05-31  Bruno Haible  <bruno@clisp.org>
48230
48231         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
48232         restriction due to compiler bugs.
48233         Reported by Eric Blake.
48234
48235 2009-05-31  Simon Josefsson  <simon@josefsson.org>
48236             Bruno Haible  <bruno@clisp.org>
48237
48238         Fix test-alignof failure.
48239         * lib/alignof.h (alignof_slot): New macro.
48240         (alignof_type): New macro, with the same semantics as the previous
48241         'alignof'.
48242         (alignof): Alias to alignof_slot.
48243         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
48244         check that the results are usable as constant expressions.
48245
48246 2009-05-31  Bruno Haible  <bruno@clisp.org>
48247
48248         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
48249         * tests/test-memchr.c (main): Check that memchr does not read past the
48250         first occurrence of the byte.
48251         * tests/test-strstr.c (main): Update comment.
48252         Suggested by Eric Blake.
48253
48254 2009-05-30  Bruno Haible  <bruno@clisp.org>
48255
48256         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
48257         detail how to use dumpbin.
48258         Reported by David Byron <dbyron@dbyron.com>.
48259
48260 2009-06-02  Simon Josefsson  <simon@josefsson.org>
48261
48262         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
48263
48264 2009-06-02  Simon Josefsson  <simon@josefsson.org>
48265
48266         * m4/manywarnings.m4: Add GCC 4.4 warnings.
48267
48268 2009-05-28  Bruno Haible  <bruno@clisp.org>
48269
48270         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
48271         build-aux/ files.
48272
48273 2009-05-28  Simon Josefsson  <simon@josefsson.org>
48274
48275         * gnulib-tool (func_import): Transform license on build-aux/ files too.
48276
48277 2009-05-27  Simon Josefsson  <simon@josefsson.org>
48278
48279         * gnulib-tool (sed_transform_main_lib_file)
48280         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
48281         regexps.
48282
48283 2009-05-26  Simon Josefsson  <simon@josefsson.org>
48284
48285         * tests/test-strstr.c: Add another self-test.
48286         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
48287         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
48288
48289 2009-05-23  Bruno Haible  <bruno@clisp.org>
48290
48291         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
48292         change.
48293
48294 2009-05-21  Bruno Haible  <bruno@clisp.org>
48295
48296         Simplify use of mode_t varargs.
48297         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
48298         uses 'mode_t' or 'int'.
48299         * lib/openat.c (openat): Likewise.
48300         * lib/open-safer.c (open_safer): Likewise.
48301         * m4/mode_t.m4: New file.
48302         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
48303         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
48304         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
48305         * modules/open (Files): Add m4/mode_t.m4.
48306         * modules/openat (Files): Likewise.
48307         * modules/fcntl-safer (Files): Likewise.
48308         Suggested by Eric Blake.
48309
48310 2009-05-21  Pádraig Brady  <P@draigbrady.com>
48311
48312         * doc/glibc-functions/fallocate.texi: New file.
48313         * doc/gnulib.texi: Include it.
48314
48315 2009-05-21  Eric Blake  <ebb9@byu.net>
48316             Bruno Haible  <bruno@clisp.org>
48317
48318         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
48319         invocations.
48320         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
48321
48322 2009-05-21  Eric Blake  <ebb9@byu.net>
48323             Bruno Haible  <bruno@clisp.org>
48324
48325         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
48326         include_next. Fix of 2008-11-20 commit.
48327         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
48328         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
48329         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
48330         NEXT_MATH_H.
48331         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
48332         instead of NEXT_MATH_H.
48333
48334 2009-05-21  Bruno Haible  <bruno@clisp.org>
48335
48336         Avoid redefinition warnings for SIZE_MAX.
48337         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
48338         Reported by Simon Josefsson.
48339
48340 2009-05-21  Bruno Haible  <bruno@clisp.org>
48341
48342         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
48343         AC_CACHE_VAL.
48344
48345 2009-05-20  Bruno Haible  <bruno@clisp.org>
48346
48347         Make zeroptr.h work on mingw.
48348         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
48349         mprotect.
48350         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
48351         * modules/memchr2-tests (configure.ac): Likewise.
48352         * modules/memcmp-tests (configure.ac): Likewise.
48353         * modules/memmem-tests (configure.ac): Likewise.
48354         * modules/memrchr-tests (configure.ac): Likewise.
48355         Reported by Simon Josefsson.
48356
48357 2009-05-20  Simon Josefsson  <simon@josefsson.org>
48358
48359         * tests/test-glob.c: Include string.h for strcmp prototype.
48360
48361 2009-05-20  Simon Josefsson  <simon@josefsson.org>
48362
48363         * modules/getdelim (Depends-on): Add explicit stdint, although it
48364         was implicitly already pulled in via realloc-posix.
48365         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
48366
48367 2009-05-20  Simon Josefsson  <simon@josefsson.org>
48368
48369         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
48370         G. Christensen" <tgc@jupiterrise.com>.
48371         * m4/sys_socket_h.m4: Check for sa_family_t.
48372         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
48373         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
48374         * tests/test-sys_socket.c: Check that sa_family_t works.
48375
48376 2009-05-18  Eric Blake  <ebb9@byu.net>
48377
48378         maint.mk: allow gnulib_dir in VPATH build
48379         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
48380
48381 2009-05-15  Jim Meyering  <meyering@redhat.com>
48382
48383         maint.mk: Give gnulib_dir a default definition.
48384         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
48385         Thus, most packages no longer need to specify this variable in cfg.mk
48386
48387 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
48388
48389         rename.m4: fix typos that would make non-mingw cross-configure fail
48390         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
48391
48392 2009-05-13  Eric Blake  <ebb9@byu.net>
48393
48394         mmap-anon: avoid out-of-order autoconf expansion
48395         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
48396         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
48397         * modules/memchr-tests (Depends-on): Add extensions.
48398         * modules/memchr2-tests (Depends-on): Add extensions.
48399         * modules/memcmp-tests (Depends-on): Add extensions.
48400         * modules/memmem-tests (Depends-on): Add extensions.
48401         * modules/memrchr-tests (Depends-on): Add extensions.
48402
48403 2009-05-13  Bruno Haible  <bruno@clisp.org>
48404
48405         Make some tests ISO C 99 compliant.
48406         * tests/zerosize-ptr.h: New file.
48407         * tests/test-memchr.c: Include zerosize-ptr.h.
48408         (main): Use a zero-size object pointer instead of NULL.
48409         * tests/test-memchr2.c: Include zerosize-ptr.h.
48410         (main): Use a zero-size object pointer instead of NULL.
48411         * tests/test-memcmp.c: Include zerosize-ptr.h.
48412         (main): Use a zero-size object pointer instead of NULL.
48413         * tests/test-memmem.c: Include zerosize-ptr.h.
48414         (main): Use a zero-size object pointer instead of NULL.
48415         * tests/test-memrchr.c: Include zerosize-ptr.h.
48416         (main): Use a zero-size object pointer instead of NULL.
48417         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
48418         m4/mmap-anon.m4.
48419         (Depends-on): Add getpagesize.
48420         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
48421         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
48422         m4/mmap-anon.m4.
48423         (Depends-on): Add getpagesize.
48424         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
48425         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
48426         m4/mmap-anon.m4.
48427         (Depends-on): Add getpagesize.
48428         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
48429         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
48430         m4/mmap-anon.m4.
48431         (Depends-on): Add getpagesize.
48432         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
48433         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
48434         m4/mmap-anon.m4.
48435         (Depends-on): Add getpagesize.
48436         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
48437
48438 2009-05-12  Bruno Haible  <bruno@clisp.org>
48439
48440         Tests for module 'alignof'.
48441         * modules/alignof-tests: New file.
48442         * tests/test-alignof.c: New file.
48443
48444 2009-05-12  Bruno Haible  <bruno@clisp.org>
48445
48446         Fix alignof macro.
48447         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
48448         vendor compilers that are always correct.
48449
48450 2009-05-12  Bruno Haible  <bruno@clisp.org>
48451
48452         Make the MAP_ANONYMOUS detection work on HP-UX 11.
48453         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
48454         not whether its fully works.
48455
48456 2009-05-12  Bruno Haible  <bruno@clisp.org>
48457
48458         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
48459
48460 2009-05-12  Jim Meyering  <meyering@redhat.com>
48461
48462         * top/maint.mk: Adjust backslash alignment.
48463
48464 2009-05-11  Simon Josefsson  <simon@josefsson.org>
48465
48466         * top/maint.mk: Make $(srcdir)/build-aux configurable.
48467
48468 2009-05-11  Eric Blake  <ebb9@byu.net>
48469
48470         argp: avoid undefined behavior
48471         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
48472         macros.
48473
48474 2009-05-08  Simon Josefsson  <simon@josefsson.org>
48475
48476         * tests/test-vc-list-files-git.sh: Do git config of user.email and
48477         user.name to prevent git commit from complaining.
48478
48479 2009-05-10  Bruno Haible  <bruno@clisp.org>
48480
48481         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
48482         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
48483         it rewrites every file name only once.
48484         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
48485
48486 2009-05-08  Bruno Haible  <bruno@clisp.org>
48487
48488         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
48489         instead of 'max'.
48490
48491 2009-05-08  Simon Josefsson  <simon@josefsson.org>
48492
48493         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
48494         sockaddr_storage test.
48495
48496 2009-05-07  Simon Josefsson  <simon@josefsson.org>
48497
48498         * modules/sys_socket (Makefile.am): Substitute
48499         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
48500         * m4/sys_socket_h.m4: Check for sockaddr_storage.
48501         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
48502         * tests/test-sys_socket.c: Check sockaddr_storage.
48503
48504 2009-05-08  Bruno Haible  <bruno@clisp.org>
48505
48506         New module 'alignof'.
48507         * lib/alignof.h: New file.
48508         * modules/alignof: New file.
48509
48510 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
48511             Bruno Haible  <bruno@clisp.org>
48512
48513         Fix test-file-has-acl on FreeBSD.
48514         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
48515         mask is implicitly added.
48516         * tests/test-file-has-acl.c: Include <signal.h>.
48517         (main): Terminate the test after 5 seconds.
48518         * modules/acl-tests (configure.ac): Check for alarm function.
48519
48520 2009-05-04  Bruno Haible  <bruno@clisp.org>
48521
48522         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
48523         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
48524         * modules/errno (configure.ac): Drop AC_REQUIRE.
48525         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
48526         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
48527
48528 2009-05-04  Simon Josefsson  <simon@josefsson.org>
48529
48530         * modules/glob-tests: New module.
48531         * tests/test-glob.c: Add.
48532
48533 2009-05-04  Simon Josefsson  <simon@josefsson.org>
48534
48535         * modules/fnmatch-tests: New module.
48536         * tests/test-fnmatch.c: Add.
48537
48538 2009-05-04  Eric Blake  <ebb9@byu.net>
48539
48540         maint: make the new no-submodule-changes rule VPATH-safe
48541         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
48542
48543 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
48544             Bruno Haible  <bruno@clisp.org>
48545
48546         acl: Fix infinite loop on FreeBSD.
48547         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
48548         of return value from acl_get_entry.
48549         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
48550         Likewise.
48551
48552 2009-05-03  Bruno Haible  <bruno@clisp.org>
48553
48554         * lib/acl-internal.h (acl_entries): Clarify return value.
48555         * lib/acl_entries.c (acl_entries): Likewise.
48556
48557 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
48558
48559         Bug fix in acl module.
48560         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
48561
48562 2009-05-03  Bruno Haible  <bruno@clisp.org>
48563
48564         Create gperf-generated file in the source dir, not in the build dir.
48565         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
48566         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
48567         * modules/unicase/locale-language (unicase/locale-languages.h):
48568         Likewise.
48569         * modules/unicase/special-casing (unicase/special-casing-table.h):
48570         Likewise.
48571         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
48572         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
48573         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
48574         Reported by Ralf Wildenhues.
48575
48576 2009-05-03  Bruno Haible  <bruno@clisp.org>
48577
48578         * modules/fnmatch (Description, configure.ac): Taken from
48579         fnmatch-posix.
48580         * modules/fnmatch-posix: Turn into a symbolic reference to the
48581         'fnmatch' module, and deprecate.
48582         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
48583
48584 2009-05-03  Bruno Haible  <bruno@clisp.org>
48585
48586         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
48587         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
48588         Reported by Ralf Wildenhues.
48589
48590 2009-05-04  Simon Josefsson  <simon@josefsson.org>
48591
48592         * m4/fnmatch.m4: Fix fnmatch re-define.
48593
48594 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
48595
48596         priv-set: new module and tests; adapt write-any-file
48597         * lib/priv-set.c: New file.
48598         * lib/priv-set.h: New file.
48599         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
48600         * lib/write-any-file.c: Simplify by using priv-set module.
48601         * m4/priv-set.m4: New file.
48602         * modules/priv-set: New file.
48603         * modules/unlinkdir: Add dependency on priv-set module.
48604         * modules/write-any-file: Likewise.
48605
48606         Tests for module 'priv-set'.
48607         * modules/priv-set-tests: New file.
48608         * tests/test-priv-set.c: New file.
48609
48610 2009-05-03  Jim Meyering  <meyering@redhat.com>
48611             Bruno Haible  <bruno@clisp.org>
48612
48613         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
48614         use the converted UTF-8 variant of the name instead.
48615
48616 2009-05-03  Jim Meyering  <meyering@redhat.com>
48617
48618         tests: tighten some getdate tests
48619         * tests/test-getdate.c (main): Tighten tests: require equality,
48620         not just greater than.  Set TZ envvar to UTC0.
48621
48622 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
48623
48624         getdate: correctly interpret "next monday" when run on a Monday
48625         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
48626         that e.g., "next tues" (when run on a tuesday) results in a date
48627         that is one week in the future, and not today's date.
48628         I.e., add a week when the wday is the same as the current one.
48629         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
48630         and earlier by Martin Bernreuther and Jan Minář.
48631         * tests/test-getdate.c (main): Check that "next DAY" is always in
48632         the future and that "last DAY" is always in the past.
48633
48634 2009-05-02  Jim Meyering  <meyering@redhat.com>
48635
48636         build: ensure that a release build fails when a submodule is unclean
48637         * top/maint.mk (no-submodule-changes): New rule.
48638         (alpha beta major): Depend on it.
48639
48640 2009-05-02  Bruno Haible  <bruno@clisp.org>
48641
48642         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
48643         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
48644         shell variable gl_fnmatch_required to detect which variant is
48645         requested.
48646         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
48647         gl_FUNC_FNMATCH_POSIX.
48648         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
48649         exclude fnmatch-posix.
48650
48651 2009-05-02  Bruno Haible  <bruno@clisp.org>
48652
48653         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
48654         * modules/mbsrtowcs (License): Change to LGPLv2+.
48655         * modules/strnlen1 (License): Likewise.
48656         Reported by Simon Josefsson.
48657
48658 2009-05-02  Bruno Haible  <bruno@clisp.org>
48659
48660         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
48661         "cross".
48662         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
48663         gnulib-tool was called with option --source-base=lib.
48664
48665 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48666
48667         Use automake *-local hooks without commands, for extensibility.
48668         * modules/localcharset (Makefile.am): Rename install-exec-local
48669         rule to install-exec-localcharset, and make it a prerequisite of
48670         install-exec-local.  Likewise, rename the uninstall-local rule to
48671         uninstall-localcharset, and make it a prerequisite of the former.
48672
48673 2009-05-01  Bruno Haible  <bruno@clisp.org>
48674
48675         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
48676         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
48677         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
48678         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
48679         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
48680         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
48681         m4/locale-zh.m4, m4/codeset.m4.
48682
48683         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
48684         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
48685         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
48686         m4/locale-zh.m4.
48687
48688         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
48689         REPLACE_WCRTOMB if mbstate_t must be replaced.
48690         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
48691         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
48692
48693 2009-05-01  Bruno Haible  <bruno@clisp.org>
48694
48695         Avoid compiler warnings when redefining macros defined by <libintl.h>.
48696         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
48697         dngettext, dcngettext, textdomain, bindtextdomain,
48698         bind_textdomain_codeset): Undefine before redefining.
48699
48700 2009-04-30  Bruno Haible  <bruno@clisp.org>
48701
48702         Fix bug introduced on 2009-04-25.
48703         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
48704         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
48705         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
48706         is defined.
48707         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
48708         is defined.
48709         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
48710         is defined.
48711         Reported by Elbert_Pol <elbert.pol@gmail.com>.
48712
48713 2009-04-28  Bruno Haible  <bruno@clisp.org>
48714
48715         Comment tweaks.
48716         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
48717         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
48718         * lib/unicase.h (u*_casexfrm): Likewise.
48719         Reported by Paolo Bonzini.
48720
48721 2009-04-28  Bruno Haible  <bruno@clisp.org>
48722
48723         Fix a compilation error.
48724         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
48725         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
48726         Reported by Jim Meyering.
48727
48728 2009-04-27  Bruno Haible  <bruno@clisp.org>
48729
48730         New module 'libunistring'.
48731         * modules/libunistring: New file.
48732         * m4/libunistring.m4: New file.
48733         * MODULES.html.sh (Unicode string functions): Add it.
48734
48735 2009-04-27  Eric Blake  <ebb9@byu.net>
48736
48737         maint.mk: allow package-specific header to provide <config.h>
48738         * top/maint.mk (sc_require_config_h): New variable.
48739         (sc_require_config_h, sc_require_config_h_first): Use it.
48740
48741 2009-04-27  Simon Josefsson  <simon@josefsson.org>
48742
48743         * top/maint.mk (sc_avoid_if_before_free): Except
48744         useless-if-before-free script.
48745
48746 2009-04-27  Eric Blake  <ebb9@byu.net>
48747
48748         maintainer-makefile: depend on all required helper scripts
48749         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
48750         useless-if-before-free.
48751         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
48752         version, rather than assuming gnulib checkout is available.
48753         Reported by Simen Josefsson.
48754
48755 2009-04-26  Bruno Haible  <bruno@clisp.org>
48756
48757         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
48758         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
48759         "../" or "..".
48760
48761 2009-04-26  Bruno Haible  <bruno@clisp.org>
48762
48763         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
48764         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
48765         AC_LIB_HAVE_LINKFLAGS.
48766
48767 2009-04-26  Bruno Haible  <bruno@clisp.org>
48768
48769         Simplify calling convention of u*_conv_from_encoding.
48770         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
48771         u32_conv_from_encoding): Expect a resultbuf argument and return the
48772         result directly as a pointer.
48773         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
48774         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
48775         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
48776         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
48777         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
48778         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
48779         Update.
48780         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
48781         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
48782         * lib/vasnprintf.c (VASNPRINTF): Update.
48783         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
48784         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
48785         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
48786         * NEWS: Mention the change.
48787
48788 2009-04-26  Bruno Haible  <bruno@clisp.org>
48789
48790         Simplify calling convention of u*_conv_to_encoding.
48791         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
48792         u32_conv_to_encoding): Expect a resultbuf argument and return the
48793         result directly as a pointer.
48794         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
48795         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
48796         freeing scaled_offsets if mem_iconveha failed.
48797         * lib/unicase/u-casexfrm.h (FUNC): Update.
48798         * lib/uninorm/u-normxfrm.h (FUNC): Update.
48799         * lib/vasnprintf.c (VASNPRINTF): Update.
48800         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
48801         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
48802         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
48803         * NEWS: Mention the change.
48804
48805 2009-04-26  Bruno Haible  <bruno@clisp.org>
48806
48807         Avoid test failures on AIX and OSF/1.
48808         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
48809         malloc(0).
48810         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
48811         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
48812         Likewise.
48813         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
48814         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
48815         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
48816         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
48817         * doc/posix-functions/malloc.texi: Document the portability problem
48818         related to malloc(0).
48819
48820 2009-04-26  Bruno Haible  <bruno@clisp.org>
48821
48822         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
48823         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
48824         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
48825
48826 2009-04-25  Bruno Haible  <bruno@clisp.org>
48827
48828         Avoid link error when creating a namespace clean library.
48829         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
48830         as macro with arguments if already defined as an alias.
48831         * lib/signbitf.c (gl_signbitf): Don't undefine.
48832         * lib/signbitd.c (gl_signbitd): Don't undefine.
48833         * lib/signbitl.c (gl_signbitl): Don't undefine.
48834
48835 2009-04-25  Jim Meyering  <meyering@redhat.com>
48836
48837         vc-list-files: fix another quoting bug
48838         * build-aux/vc-list-files: Avoid sed backslash expansion
48839         of pathological directory names.
48840
48841 2009-04-25  Eric Blake  <ebb9@byu.net>
48842
48843         vc-list-files: fix shell quoting error
48844         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
48845         timestamp.
48846
48847 2009-04-25  Jim Meyering  <meyering@redhat.com>
48848
48849         vc-list-files: restore lost functionality with subdir argument
48850         * build-aux/vc-list-files: When given a non-"." sub-directory
48851         argument, substitute the $dir/ prefix back onto each resulting name.
48852         Otherwise, coreutils' root_tests check would fail.
48853
48854 2009-04-24  Eric Blake  <ebb9@byu.net>
48855
48856         vc-list-files: ignore git symlinks
48857         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
48858         than ls-files, to ignore git symlinks.
48859
48860         maint.mk: import improvements from m4
48861         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
48862         (move_if_change): Delete unused macro.
48863         (news-date-check, vc-diff-check): Support VPATH builds.
48864         (announcement): Likewise.  Split --bootstrap-tools list...
48865         (boostrap-tools): ...into separate list, which can be overridden
48866         in cfg.mk.
48867         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
48868         requiring dependency on useless-if-before-free module.
48869         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
48870         Support VPATH builds.
48871
48872 2009-04-24  Jim Meyering  <meyering@redhat.com>
48873
48874         maint.mk: remove coreutils-specific rules and variables
48875         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
48876         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
48877         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
48878
48879         maint.mk: remove obsolete rule
48880         * top/maint.mk (rel-check): Remove rule.
48881         (WGET, WGETFLAGS): Remove now-unused variables.
48882
48883 2009-04-24  Simon Josefsson  <simon@josefsson.org>
48884
48885         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
48886         consistency.
48887
48888         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
48889         '$(PATH_SEPARATOR)' instead of ':'.
48890
48891 2009-04-24  Simon Josefsson  <simon@josefsson.org>
48892
48893         * lib/getopt1.c (main): Use 'const' for static array.
48894
48895 2009-04-24  Simon Josefsson  <simon@josefsson.org>
48896
48897         * top/maint.mk: Sync with coreutils.
48898         * NEWS: Explain incompatibilities.
48899
48900 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48901             Bruno Haible  <bruno@clisp.org>
48902
48903         Fix cross-compilation results.
48904         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
48905         statement, as third argument of AC_TRY_RUN.
48906         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
48907         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
48908         Likewise.
48909         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
48910         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
48911         Likewise.
48912         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
48913         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
48914         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
48915
48916 2009-04-20  Bruno Haible  <bruno@clisp.org>
48917
48918         Avoid test failure on mingw.
48919         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
48920
48921 2009-04-20  Bruno Haible  <bruno@clisp.org>
48922
48923         Avoid compilation error on mingw.
48924         * modules/localename-tests (Depends-on): Add locale.
48925
48926 2009-04-19  Bruno Haible  <bruno@clisp.org>
48927
48928         Support for building a shared library on Windows platforms.
48929         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
48930         (main): Test the presence of UNINORM_NFC here.
48931         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
48932         (main): Test the presence of UNINORM_NFD here.
48933         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
48934         (main): Test the presence of UNINORM_NFKC here.
48935         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
48936         (main): Test the presence of UNINORM_NFKD here.
48937
48938 2009-04-19  Bruno Haible  <bruno@clisp.org>
48939
48940         Avoid a compiler warning.
48941         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
48942         Change type of variable 'sequence'.
48943
48944 2009-04-19  Bruno Haible  <bruno@clisp.org>
48945
48946         * modules/configmake (Makefile.am): When the contents of configmake.h
48947         does not change, arrange to preserve its modification time.
48948
48949 2009-04-17  Simon Josefsson  <simon@josefsson.org>
48950
48951         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
48952         gettext domain.
48953
48954 2009-04-16  Jim Meyering  <meyering@redhat.com>
48955
48956         useless-if-before-free: improve conversion code
48957         * build-aux/useless-if-before-free: Adjust code-in-comment to match
48958         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
48959
48960 2009-04-14  Bruno Haible  <bruno@clisp.org>
48961
48962         * modules/fcntl (Depends-on): Add extensions.
48963         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
48964
48965 2009-04-12  Ben Pfaff  <blp@gnu.org>
48966
48967         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
48968         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
48969
48970 2009-03-20  Ben Pfaff  <blp@gnu.org>
48971
48972         Make rename replace existing destinations on Windows.
48973         * m4/rename.m4: Add test for Mingw.
48974         * lib/rename.c: Add rename replacement that uses MoveFileEx with
48975         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
48976         * doc/posix-functions/rename.texi: Document.
48977
48978 2009-04-10  Bruno Haible  <bruno@clisp.org>
48979
48980         New include file "iconveh.h".
48981         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
48982         * lib/striconveh.h: Include it.
48983         (enum iconv_ilseq_handler): Remove definition.
48984         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
48985         striconveh.h.
48986         * lib/striconveha.c: Include striconveh.h.
48987         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
48988         * modules/striconveh (Files): Add lib/iconveh.h.
48989         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
48990         lib/striconveh.h.
48991
48992 2009-04-10  Bruno Haible  <bruno@clisp.org>
48993
48994         * lib/uniconv.h: Update comment.
48995
48996 2009-04-10  Bruno Haible  <bruno@clisp.org>
48997
48998         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
48999         always.
49000         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
49001         * lib/unistr/u16-mbtouc-aux.c: Likewise.
49002         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
49003         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
49004         "unistring-notinline.h", so that the function gets defined always.
49005         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
49006         * lib/unistr/u8-uctomb.c: Likewise.
49007         * lib/unistr/u16-mbtouc.c: Likewise.
49008         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
49009         * lib/unistr/u16-uctomb.c: Likewise.
49010         * lib/unistr/u32-mbtouc.c: Likewise.
49011         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
49012         * lib/unistr/u32-uctomb.c: Likewise.
49013
49014 2009-04-10  Bruno Haible  <bruno@clisp.org>
49015
49016         Mark 'utime' obsolete.
49017         * modules/utime (Status, Notice): New sections.
49018         Suggested by Jim Meyering.
49019
49020         Fix cross-compile guess for utime test.
49021         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
49022         autoconf.
49023         * doc/posix-functions/utime.texi: Give more precisions.
49024         Reported by Jan <ipif@ymail.com>.
49025
49026 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
49027
49028         filevercmp: correct today's change
49029         * lib/filevercmp.c: Also handle coreutils' test inputs.
49030         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
49031
49032         Fix regression in 'filevercmp' module. Thanks Sven Joachim
49033         for reporting it.
49034         * lib/filevercmp.c: Special handle for "", "." and "..".
49035         * tests/test-filevercmp.c: Enlarge the set suite.
49036
49037 2009-04-07  Jim Meyering  <meyering@redhat.com>
49038
49039         useless-if-before-free: show how to remove braced useless free, too
49040         * build-aux/useless-if-before-free: still only in a comment, though.
49041
49042 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
49043
49044         maint.mk: import changes to syntax-check macros from coreutils
49045         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
49046         Use them in the relevant macros.
49047
49048 2009-04-06  Bruno Haible  <bruno@clisp.org>
49049
49050         Fix unportable use of bit-fields.
49051         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
49052         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
49053         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
49054
49055 2009-04-06  Bruno Haible  <bruno@clisp.org>
49056
49057         Avoid test failures on AIX and OSF/1.
49058         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
49059         that malloc(0) = NULL.
49060         * tests/unicase/test-u8-tolower.c (check): Likewise.
49061         * tests/unicase/test-u8-totitle.c (check): Likewise.
49062         * tests/unicase/test-u8-toupper.c (check): Likewise.
49063         * tests/unicase/test-u16-casefold.c (check): Likewise.
49064         * tests/unicase/test-u16-tolower.c (check): Likewise.
49065         * tests/unicase/test-u16-totitle.c (check): Likewise.
49066         * tests/unicase/test-u16-toupper.c (check): Likewise.
49067         * tests/unicase/test-u32-casefold.c (check): Likewise.
49068         * tests/unicase/test-u32-tolower.c (check): Likewise.
49069         * tests/unicase/test-u32-totitle.c (check): Likewise.
49070         * tests/unicase/test-u32-toupper.c (check): Likewise.
49071         * tests/uninorm/test-u8-nfc.c (check): Likewise.
49072         * tests/uninorm/test-u8-nfd.c (check): Likewise.
49073         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
49074         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
49075         * tests/uninorm/test-u16-nfc.c (check): Likewise.
49076         * tests/uninorm/test-u16-nfd.c (check): Likewise.
49077         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
49078         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
49079         * tests/uninorm/test-u32-nfc.c (check): Likewise.
49080         * tests/uninorm/test-u32-nfd.c (check): Likewise.
49081         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
49082         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
49083
49084 2009-04-05  Bruno Haible  <bruno@clisp.org>
49085
49086         Work around an autoconf limitation.
49087         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
49088         comment line if it would be longer than 3 KB.
49089
49090 2009-04-05  Bruno Haible  <bruno@clisp.org>
49091
49092         Avoid test failure with libiconv-1.13.
49093         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
49094         of the expected test results.
49095
49096 2009-04-05  Bruno Haible  <bruno@clisp.org>
49097
49098         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
49099         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
49100         that it should be installed.
49101
49102 2009-04-05  Bruno Haible  <bruno@clisp.org>
49103
49104         * gnulib-tool: New option --copy-file.
49105         (func_usage): Document it.
49106         (func_dest_tmpfilename): Moved out of func_import.
49107         (func_add_file, func_update_file): New functions, extracted from
49108         func_import.
49109         (func_import): Update.
49110
49111 2009-04-05  Karl Berry  <karl@gnu.org>
49112
49113         * README: prominently mention gnulib-tool.
49114         Rearrange sections so getting the code is near the top.
49115
49116 2009-04-05  Bruno Haible  <bruno@clisp.org>
49117
49118         * lib/unicase.h: Mention u*_cmp2.
49119         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
49120         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
49121         * lib/unicase/ulc-casecmp.c: Likewise.
49122         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
49123         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
49124         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
49125         unistr/u8-cmp.
49126         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
49127         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
49128         unistr/u16-cmp.
49129         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
49130         unistr/u32-cmp.
49131
49132         * lib/uninorm.h: Mention u*_cmp2.
49133         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
49134         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
49135         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
49136         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
49137         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
49138         unistr/u8-cmp.
49139         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
49140         unistr/u16-cmp.
49141         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
49142         unistr/u32-cmp.
49143
49144         New module 'unistr/u32-cmp2'.
49145         * lib/unistr/u32-cmp2.c: New file.
49146         * modules/unistr/u32-cmp2: New file.
49147
49148         New module 'unistr/u16-cmp2'.
49149         * lib/unistr/u16-cmp2.c: New file.
49150         * modules/unistr/u16-cmp2: New file.
49151
49152         New module 'unistr/u8-cmp2'.
49153         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
49154         * lib/unistr/u8-cmp2.c: New file.
49155         * lib/unistr/u-cmp2.h: New file.
49156         * modules/unistr/u8-cmp2: New file.
49157
49158 2009-04-05  Bruno Haible  <bruno@clisp.org>
49159
49160         * lib/unictype.h (uc_property_is_valid): New macro.
49161         * tests/unictype/test-pr_byname.c (main): Use it.
49162
49163         * lib/unistr.h: Doc fixes.
49164         * lib/uniconv.h: Doc fixes.
49165         * lib/unictype.h: Doc fixes.
49166
49167 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
49168
49169         Port coreutils 7.2 to Solaris 8.
49170
49171         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
49172         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
49173         for Solaris 8.  This is a bit of a hack, as it means it's the
49174         caller's responsibility to add -lnsl if needed, but most likely it
49175         won't be needed since only getaddrinfo uses this and getaddrinfo
49176         isn't needed on Solaris 8.
49177
49178         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
49179         problem to Solaris 8 encountered with coreutils 7.2, which
49180         resulted in a message "fnmatch.c:292: warning: passing argument 4
49181         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
49182         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
49183
49184 2009-04-03  Simon Josefsson  <simon@josefsson.org>
49185
49186         * m4/ld-version-script.m4: Add FIXME comment.
49187
49188 2009-04-02  Simon Josefsson  <simon@josefsson.org>
49189
49190         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
49191         SOVERSION variable.
49192
49193 2009-04-02  Bruno Haible  <bruno@clisp.org>
49194
49195         * Makefile (info, html, dvi, pdf): Combine the rules.
49196         Suggested by Jim Meyering.
49197
49198 2009-04-01  Bruno Haible  <bruno@clisp.org>
49199
49200         * Makefile (info, html, dvi, pdf): New targets.
49201         Reported by Reuben Thomas <rrt@sc3d.org>.
49202
49203 2009-04-01  Bruno Haible  <bruno@clisp.org>
49204
49205         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
49206         can be put into PATH.
49207         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
49208
49209 2009-04-01  Bruno Haible  <bruno@clisp.org>
49210
49211         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
49212
49213 2009-04-01  Bruno Haible  <bruno@clisp.org>
49214
49215         Rename module 'visibility'.
49216         * modules/lib-symbol-visibility: Renamed from modules/visibility.
49217         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
49218         * doc/gnulib.texi: Update.
49219         * MODULES.html.sh (Misc): Update.
49220         * NEWS: Mention the change.
49221
49222 2009-04-01  Simon Josefsson  <simon@josefsson.org>
49223
49224         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
49225         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
49226         Eric Blake <ebb9@byu.net> for review.
49227         * MODULES.html.sh: Add lib-msvc-compat.
49228         * doc/gnulib.texi: Link to new section.
49229         * m4/ld-output-def.m4: New file.
49230         * doc/ld-output-def.texi: New file.
49231
49232 2009-04-01  Simon Josefsson  <simon@josefsson.org>
49233
49234         Rename ld-version-script to lib-symbol-versions.  Suggested by
49235         Bruno Haible <bruno@clisp.org>.
49236         * modules/ld-version-script: Renamed to lib-symbol-versions.
49237         * doc/ld-version-script.texi: Fix module name.
49238         * MODULES.html.sh: Add lib-symbol-versions.
49239
49240 2009-03-31  Simon Josefsson  <simon@josefsson.org>
49241
49242         * modules/u64-tests: New file.
49243         * tests/test-u64.c: New file.
49244
49245 2009-03-04  Simon Josefsson  <simon@josefsson.org>
49246
49247         * MODULES.html.sh: Mention u64.
49248         * modules/u64: New module.
49249         * modules/crypto/sha512: Depend on u64 module instead of providing
49250         u64.h.
49251
49252 2009-03-27  Eric Blake  <ebb9@byu.net>
49253
49254         test-strerror: make debugging EAI_SYSTEM easier
49255         * modules/getaddrinfo-tests (Depends-on): Add strerror.
49256         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
49257         failure was EAI_SYSTEM.
49258
49259 2009-03-25  Bruno Haible  <bruno@clisp.org>
49260
49261         Fix a problem with --enable-relocatable on Solaris 7.
49262         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
49263         since 2008-02-24.
49264
49265 2009-03-25  Eric Blake  <ebb9@byu.net>
49266
49267         test-sockets: avoid gcc warning
49268         * tests/test-sockets.c (main): Silence compiler warning.
49269
49270 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
49271
49272         New modules nproc, pthread, contributed by Glen Lenker.
49273
49274         * MODULES.html.sh: Add pthread, nproc.
49275         * lib/nproc.c: New file.
49276         * lib/nproc.h: New file.
49277         * lib/pthread.in.h: New file.
49278         * m4/pthread.m4: New file.
49279         * modules/nproc: New file.
49280         * modules/pthread: New file.
49281
49282 2009-03-24  Simon Josefsson  <simon@josefsson.org>
49283
49284         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
49285         New variable.
49286
49287 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
49288
49289         filevercmp: handle simple~ and numbered.~3~ backup suffixes
49290         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
49291         * tests/test-filevercmp.c: Add tests for backup suffixes.
49292
49293 2009-03-24  Simon Josefsson  <simon@josefsson.org>
49294
49295         * modules/stdlib (Depends-on): Add stdint, needed when defining
49296         struct random_data on, for example, HP-UX 10.20.  Reported by
49297         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
49298
49299 2009-03-24  Simon Josefsson  <simon@josefsson.org>
49300
49301         * lib/readline.c (readline): Call fflush on stdout after printing
49302         prompt.
49303
49304 2009-03-20  Bruno Haible  <bruno@clisp.org>
49305
49306         Remove dependency from 'close' module to -lws2_32 on native Windows.
49307         * lib/close-hook.h: New file.
49308         * lib/close-hook.c: New file.
49309         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
49310         w32sock.h.
49311         (_gl_close_fd_maybe_socket): Remove function.
49312         (rpl_close): Invoke execute_all_close_hooks instead of
49313         _gl_close_fd_maybe_socket.
49314         * lib/sockets.c: Include close-hook.h, w32sock.h.
49315         (close_fd_maybe_socket): New function, essentially from lib/close.c.
49316         (close_sockets_hook): New variable.
49317         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
49318         (gl_sockets_cleanup): Unregister it.
49319         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
49320         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
49321         * modules/close-hook: New file.
49322         * modules/close (Files): Remove lib/w32sock.h.
49323         (Depends-on): Add close-hook.
49324         (Link): Remove section.
49325         * modules/sockets (Files): Add lib/w32sock.h.
49326         (Depends-on): Add close-hook.
49327         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
49328         invocation.
49329         * NEWS: Mention that LIB_CLOSE is gone.
49330
49331 2009-03-23  Eric Blake  <ebb9@byu.net>
49332
49333         signal-tests: test previous patch
49334         * tests/test-signal.c: New file.
49335         * modules/signal-tests: Likewise.
49336
49337         signal.h: always support 'volatile sig_atomic_t'
49338         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
49339         (gl_SIGNAL_H_DEFAULTS): Add a default.
49340         * modules/signal (Makefile.am): Substitute if needed.
49341         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
49342         users can blindly add volatile.
49343         * doc/posix-headers/signal.texi (signal.h): Document it.
49344         Reported by Matthew Woehlke.
49345
49346 2009-03-23  Jim Meyering  <meyering@redhat.com>
49347
49348         pathmax: PATH_MAX: use pathconf only when available
49349         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
49350         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
49351         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
49352         This avoids a link failure in a PSP cross-compilation environment
49353         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
49354
49355         * lib/vasnprintf.c (divide): Fix typo in comment.
49356
49357 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49358
49359         * gnulib-tool (func_filter_filelist): Fix comment.
49360
49361 2009-03-20  Bruno Haible  <bruno@clisp.org>
49362
49363         Make sockets.h self-contained.
49364         * lib/sockets.c: Include sockets.h first.
49365         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
49366
49367 2009-03-19  Eric Blake  <ebb9@byu.net>
49368
49369         doc: mention more functions added in cygwin 1.7.0
49370         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
49371         addition.
49372         * doc/posix-functions/log2f.texi: Likewise.
49373
49374 2009-03-19  Jim Meyering  <meyering@redhat.com>
49375
49376         fsusage: avoid syntax error due to statement-before-declaration
49377         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
49378         after all declarations.  Reported by Matthew Woehlke in
49379         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
49380
49381 2009-03-18  Eric Blake  <ebb9@byu.net>
49382
49383         build-aux/compile: sync from automake
49384         * build-aux/compile: New file, from automake.
49385         * config/srclist.txt: Mention build-aux/compile.
49386
49387 2009-03-17  Bruno Haible  <bruno@clisp.org>
49388
49389         * lib/git-merge-changelog.c: Fix typo in comment.
49390         Reported by Reuben Thomas <rrt@sc3d.org>.
49391
49392 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
49393
49394         * m4/regex.m4: update and improve help for
49395         --without-included-regex.
49396
49397 2009-03-17  Simon Josefsson  <simon@josefsson.org>
49398
49399         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
49400         failure on missing include files.
49401
49402 2009-03-17  Eric Blake  <ebb9@byu.net>
49403
49404         doc: mention more functions added in cygwin 1.7.0
49405         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
49406         addition.
49407         * doc/posix-functions/fwscanf.texi: Likewise.
49408         * doc/posix-functions/swprintf.texi: Likewise.
49409         * doc/posix-functions/swscanf.texi: Likewise.
49410         * doc/posix-functions/vfwprintf.texi: Likewise.
49411         * doc/posix-functions/vfwscanf.texi: Likewise.
49412         * doc/posix-functions/vswprintf.texi: Likewise.
49413         * doc/posix-functions/vswscanf.texi: Likewise.
49414         * doc/posix-functions/vwprintf.texi: Likewise.
49415         * doc/posix-functions/vwscanf.texi: Likewise.
49416         * doc/posix-functions/wcscasecmp.texi: Likewise.
49417         * doc/posix-functions/wcsdup.texi: Likewise.
49418         * doc/posix-functions/wcsftime.texi: Likewise.
49419         * doc/posix-functions/wcsncasecmp.texi: Likewise.
49420         * doc/posix-functions/wprintf.texi: Likewise.
49421         * doc/posix-functions/wscanf.texi: Likewise.
49422         * doc/glibc-functions/gethostbyname2.texi: Likewise.
49423
49424 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49425
49426         maint.mk: really add $(AM_MAKEFLAGS)
49427         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
49428         was inadvertently omitted in the last commit.
49429         Spotted by Bruno Haible.
49430
49431         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
49432         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
49433         $(AM_MAKEFLAGS)' rather than plain `make'.
49434
49435         gnulib-tool: execute $MAKE not make
49436         * gnulib-tool: Default $MAKE to 'make'.
49437         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
49438         than make.  Initialize $MAKE in the do-autobuild script.
49439
49440         gnulib-tool: use $MAKE not make in generated files
49441         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
49442         make, in generated files.  Initialize $MAKE in the do-autobuild
49443         script.
49444
49445         * top/GNUmakefile (_have-git-version-gen): Fix typo.
49446
49447         GNUmakefile: disable parallelism only for multiple, recursive targets
49448         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
49449         additions in the Makefile.
49450         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
49451         by Automake.
49452         (.NOTPARALLEL): Only disable parallel builds if multiple targets
49453         are listed on the command line and at least one of them is
49454         listed in $(ALL_RECURSIVE_TARGETS).
49455
49456 2009-03-14  Bruno Haible  <bruno@clisp.org>
49457
49458         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
49459         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
49460         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
49461         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
49462         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
49463         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
49464         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
49465         unistr/u8-uctomb.
49466         * modules/unistr/u8-strchr (Depends-on): Likewise.
49467         * modules/unistr/u8-strrchr (Depends-on): Likewise.
49468         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
49469         unistr/u16-uctomb.
49470         * modules/unistr/u16-strchr (Depends-on): Likewise.
49471         * modules/unistr/u16-strrchr (Depends-on): Likewise.
49472
49473 2009-03-12  Bruno Haible  <bruno@clisp.org>
49474
49475         Work around select() bug on Interix 3.5.
49476         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
49477         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
49478         * m4/select.m4: New file.
49479         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
49480         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
49481         * modules/select (Files): Add m4/select.m4.
49482         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
49483         * modules/nanosleep (Depends-on): Add select.
49484         * modules/poll (Depends-on): Likewise.
49485         * doc/posix-functions/select.texi: Mention the Interix bug.
49486         Reported by Markus Duft <mduft@gentoo.org>.
49487
49488         * lib/select.c: Renamed from lib/winsock-select.c.
49489         * modules/select (Files): Add lib/select.c, remove
49490         lib/winsock-select.c.
49491         (configure.ac): Update.
49492
49493 2009-03-12  Jim Meyering  <meyering@redhat.com>
49494
49495         avoid gcc warnings about unused macro definitions
49496         * lib/readtokens.c (STREQ): Remove unused definition.
49497         * lib/xmalloc.c (SIZE_MAX): Likewise.
49498         * lib/openat-die.c (N_): Likewise.
49499         * lib/mountlist.c (SIZE_MAX): Remove definition.
49500         Instead, include <stdint.h>.
49501         * lib/readutmp.c: Likewise.
49502         * modules/readutmp (Depends-on): Add stdint.
49503         * modules/mountlist (Depends-on): Add stdint.
49504         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
49505
49506 2009-03-10  Bruno Haible  <bruno@clisp.org>
49507
49508         Tests for module 'mbmemcasecoll'.
49509         * modules/mbmemcasecoll-tests: New file.
49510         * tests/test-mbmemcasecoll1.sh: New file.
49511         * tests/test-mbmemcasecoll2.sh: New file.
49512         * tests/test-mbmemcasecoll3.sh: New file.
49513         * tests/test-mbmemcasecoll.c: New file.
49514
49515         New module 'mbmemcasecoll'.
49516         * lib/mbmemcasecoll.h: New file.
49517         * lib/mbmemcasecoll.c: New file.
49518         * modules/mbmemcasecoll: New file.
49519
49520         * tests/test-mbmemcasecmp.h: New file, extracted from
49521         tests/test-mbmemcasecmp.c.
49522         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
49523         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
49524         (main): Update.
49525         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
49526
49527 2009-03-09  Bruno Haible  <bruno@clisp.org>
49528
49529         Tests for module 'mbmemcasecmp'.
49530         * modules/mbmemcasecmp-tests: New file.
49531         * tests/test-mbmemcasecmp1.sh: New file.
49532         * tests/test-mbmemcasecmp2.sh: New file.
49533         * tests/test-mbmemcasecmp3.sh: New file.
49534         * tests/test-mbmemcasecmp.c: New file.
49535
49536         New module 'mbmemcasecmp'.
49537         * lib/mbmemcasecmp.h: New file.
49538         * lib/mbmemcasecmp.c: New file.
49539         * modules/mbmemcasecmp: New file.
49540
49541 2009-03-09  Bruno Haible  <bruno@clisp.org>
49542
49543         Tests for module 'unicase/ulc-casecoll'.
49544         * modules/unicase/ulc-casecoll-tests: New file.
49545         * tests/unicase/test-ulc-casecoll1.sh: New file.
49546         * tests/unicase/test-ulc-casecoll2.sh: New file.
49547         * tests/unicase/test-ulc-casecoll.c: New file.
49548
49549         New module 'unicase/ulc-casecoll'.
49550         * lib/unicase.h (ulc_casecoll): New declaration.
49551         * lib/unicase/ulc-casecoll.c: New file.
49552         * modules/unicase/ulc-casecoll: New file.
49553
49554         New module 'unicase/ulc-casexfrm'.
49555         * lib/unicase.h (ulc_casexfrm): New declaration.
49556         * lib/unicase/ulc-casexfrm.c: New file.
49557         * modules/unicase/ulc-casexfrm: New file.
49558
49559 2009-03-09  Bruno Haible  <bruno@clisp.org>
49560
49561         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
49562         invocations.
49563
49564         * m4/mbscasecmp.m4: Remove file.
49565         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
49566         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
49567
49568         * m4/mbscasestr.m4: Remove file.
49569         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
49570         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
49571
49572         * m4/mbschr.m4: Remove file.
49573         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
49574         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
49575
49576         * m4/mbscspn.m4: Remove file.
49577         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
49578         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
49579
49580         * m4/mbslen.m4: Remove file.
49581         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
49582         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
49583
49584         * m4/mbsncasecmp.m4: Remove file.
49585         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
49586         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
49587
49588         * m4/mbsnlen.m4: Remove file.
49589         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
49590         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
49591
49592         * m4/mbspbrk.m4: Remove file.
49593         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
49594         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
49595
49596         * m4/mbspcasecmp.m4: Remove file.
49597         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
49598         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
49599
49600         * m4/mbsrchr.m4: Remove file.
49601         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
49602         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
49603
49604         * m4/mbssep.m4: Remove file.
49605         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
49606         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
49607
49608         * m4/mbsspn.m4: Remove file.
49609         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
49610         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
49611
49612         * m4/mbsstr.m4: Remove file.
49613         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
49614         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
49615
49616         * m4/mbstok_r.m4: Remove file.
49617         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
49618         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
49619
49620         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
49621
49622         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
49623         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
49624
49625         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
49626
49627 2009-03-08  Bruno Haible  <bruno@clisp.org>
49628
49629         Tests for module 'unicase/ulc-casecmp'.
49630         * modules/unicase/ulc-casecmp-tests: New file.
49631         * tests/unicase/test-ulc-casecmp1.sh: New file.
49632         * tests/unicase/test-ulc-casecmp2.sh: New file.
49633         * tests/unicase/test-ulc-casecmp.c: New file.
49634
49635         New module 'unicase/ulc-casecmp'.
49636         * lib/unicase.h (ulc_casecmp): New declaration.
49637         * lib/unicase/ulc-casecmp.c: New file.
49638         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
49639         'const SRC_UNIT *'.
49640         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
49641         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
49642         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
49643         * modules/unicase/ulc-casecmp: New file.
49644
49645         Tests for module 'unicase/u32-is-cased'.
49646         * modules/unicase/u32-is-cased-tests: New file.
49647         * tests/unicase/test-u32-is-cased.c: New file.
49648
49649         Tests for module 'unicase/u16-is-cased'.
49650         * modules/unicase/u16-is-cased-tests: New file.
49651         * tests/unicase/test-u16-is-cased.c: New file.
49652
49653         Tests for module 'unicase/u8-is-cased'.
49654         * modules/unicase/u8-is-cased-tests: New file.
49655         * tests/unicase/test-u8-is-cased.c: New file.
49656         * tests/unicase/test-is-cased.h: New file.
49657
49658         New module 'unicase/u32-is-cased'.
49659         * lib/unicase/u32-is-cased.c: New file.
49660         * modules/unicase/u32-is-cased: New file.
49661
49662         New module 'unicase/u16-is-cased'.
49663         * lib/unicase/u16-is-cased.c: New file.
49664         * modules/unicase/u16-is-cased: New file.
49665
49666         New module 'unicase/u8-is-cased'.
49667         * lib/unicase/u8-is-cased.c: New file.
49668         * lib/unicase/u-is-cased.h: New file.
49669         * modules/unicase/u8-is-cased: New file.
49670
49671         Tests for module 'unicase/u32-is-casefolded'.
49672         * modules/unicase/u32-is-casefolded-tests: New file.
49673         * tests/unicase/test-u32-is-casefolded.c: New file.
49674
49675         Tests for module 'unicase/u16-is-casefolded'.
49676         * modules/unicase/u16-is-casefolded-tests: New file.
49677         * tests/unicase/test-u16-is-casefolded.c: New file.
49678
49679         Tests for module 'unicase/u8-is-casefolded'.
49680         * modules/unicase/u8-is-casefolded-tests: New file.
49681         * tests/unicase/test-u8-is-casefolded.c: New file.
49682         * tests/unicase/test-is-casefolded.h: New file.
49683
49684         New module 'unicase/u32-is-casefolded'.
49685         * lib/unicase/u32-is-casefolded.c: New file.
49686         * modules/unicase/u32-is-casefolded: New file.
49687
49688         New module 'unicase/u16-is-casefolded'.
49689         * lib/unicase/u16-is-casefolded.c: New file.
49690         * modules/unicase/u16-is-casefolded: New file.
49691
49692         New module 'unicase/u8-is-casefolded'.
49693         * lib/unicase/u8-is-casefolded.c: New file.
49694         * modules/unicase/u8-is-casefolded: New file.
49695
49696         Tests for module 'unicase/u32-is-titlecase'.
49697         * modules/unicase/u32-is-titlecase-tests: New file.
49698         * tests/unicase/test-u32-is-titlecase.c: New file.
49699
49700         Tests for module 'unicase/u16-is-titlecase'.
49701         * modules/unicase/u16-is-titlecase-tests: New file.
49702         * tests/unicase/test-u16-is-titlecase.c: New file.
49703
49704         Tests for module 'unicase/u8-is-titlecase'.
49705         * modules/unicase/u8-is-titlecase-tests: New file.
49706         * tests/unicase/test-u8-is-titlecase.c: New file.
49707         * tests/unicase/test-is-titlecase.h: New file.
49708
49709         New module 'unicase/u32-is-titlecase'.
49710         * lib/unicase/u32-is-titlecase.c: New file.
49711         * modules/unicase/u32-is-titlecase: New file.
49712
49713         New module 'unicase/u16-is-titlecase'.
49714         * lib/unicase/u16-is-titlecase.c: New file.
49715         * modules/unicase/u16-is-titlecase: New file.
49716
49717         New module 'unicase/u8-is-titlecase'.
49718         * lib/unicase/u8-is-titlecase.c: New file.
49719         * modules/unicase/u8-is-titlecase: New file.
49720
49721         Tests for module 'unicase/u32-is-lowercase'.
49722         * modules/unicase/u32-is-lowercase-tests: New file.
49723         * tests/unicase/test-u32-is-lowercase.c: New file.
49724
49725         Tests for module 'unicase/u16-is-lowercase'.
49726         * modules/unicase/u16-is-lowercase-tests: New file.
49727         * tests/unicase/test-u16-is-lowercase.c: New file.
49728
49729         Tests for module 'unicase/u8-is-lowercase'.
49730         * modules/unicase/u8-is-lowercase-tests: New file.
49731         * tests/unicase/test-u8-is-lowercase.c: New file.
49732         * tests/unicase/test-is-lowercase.h: New file.
49733
49734         New module 'unicase/u32-is-lowercase'.
49735         * lib/unicase/u32-is-lowercase.c: New file.
49736         * modules/unicase/u32-is-lowercase: New file.
49737
49738         New module 'unicase/u16-is-lowercase'.
49739         * lib/unicase/u16-is-lowercase.c: New file.
49740         * modules/unicase/u16-is-lowercase: New file.
49741
49742         New module 'unicase/u8-is-lowercase'.
49743         * lib/unicase/u8-is-lowercase.c: New file.
49744         * modules/unicase/u8-is-lowercase: New file.
49745
49746         Tests for module 'unicase/u32-is-uppercase'.
49747         * modules/unicase/u32-is-uppercase-tests: New file.
49748         * tests/unicase/test-u32-is-uppercase.c: New file.
49749
49750         Tests for module 'unicase/u16-is-uppercase'.
49751         * modules/unicase/u16-is-uppercase-tests: New file.
49752         * tests/unicase/test-u16-is-uppercase.c: New file.
49753
49754         Tests for module 'unicase/u8-is-uppercase'.
49755         * modules/unicase/u8-is-uppercase-tests: New file.
49756         * tests/unicase/test-u8-is-uppercase.c: New file.
49757         * tests/unicase/test-is-uppercase.h: New file.
49758
49759         New module 'unicase/u32-is-uppercase'.
49760         * lib/unicase/u32-is-uppercase.c: New file.
49761         * modules/unicase/u32-is-uppercase: New file.
49762
49763         New module 'unicase/u16-is-uppercase'.
49764         * lib/unicase/u16-is-uppercase.c: New file.
49765         * modules/unicase/u16-is-uppercase: New file.
49766
49767         New module 'unicase/u8-is-uppercase'.
49768         * lib/unicase/u8-is-uppercase.c: New file.
49769         * modules/unicase/u8-is-uppercase: New file.
49770
49771         New module 'unicase/u32-is-invariant'.
49772         * lib/unicase/u32-is-invariant.c: New file.
49773         * modules/unicase/u32-is-invariant: New file.
49774
49775         New module 'unicase/u16-is-invariant'.
49776         * lib/unicase/u16-is-invariant.c: New file.
49777         * modules/unicase/u16-is-invariant: New file.
49778
49779         New module 'unicase/u8-is-invariant'.
49780         * lib/unicase/u8-is-invariant.c: New file.
49781         * lib/unicase/invariant.h: New file.
49782         * lib/unicase/u-is-invariant.h: New file.
49783         * modules/unicase/u8-is-invariant: New file.
49784
49785         Tests for module 'unicase/u32-casecoll'.
49786         * modules/unicase/u32-casecoll-tests: New file.
49787         * tests/unicase/test-u32-casecoll.c: New file.
49788
49789         Tests for module 'unicase/u16-casecoll'.
49790         * modules/unicase/u16-casecoll-tests: New file.
49791         * tests/unicase/test-u16-casecoll.c: New file.
49792
49793         Tests for module 'unicase/u8-casecoll'.
49794         * modules/unicase/u8-casecoll-tests: New file.
49795         * tests/unicase/test-u8-casecoll.c: New file.
49796
49797         New module 'unicase/u32-casecoll'.
49798         * lib/unicase/u32-casecoll.c: New file.
49799         * modules/unicase/u32-casecoll: New file.
49800
49801         New module 'unicase/u16-casecoll'.
49802         * lib/unicase/u16-casecoll.c: New file.
49803         * modules/unicase/u16-casecoll: New file.
49804
49805         New module 'unicase/u8-casecoll'.
49806         * lib/unicase/u8-casecoll.c: New file.
49807         * lib/unicase/u-casecoll.h: New file.
49808         * modules/unicase/u8-casecoll: New file.
49809
49810         New module 'unicase/u32-casexfrm'.
49811         * lib/unicase/u32-casexfrm.c: New file.
49812         * modules/unicase/u32-casexfrm: New file.
49813
49814         New module 'unicase/u16-casexfrm'.
49815         * lib/unicase/u16-casexfrm.c: New file.
49816         * modules/unicase/u16-casexfrm: New file.
49817
49818         New module 'unicase/u8-casexfrm'.
49819         * lib/unicase/u8-casexfrm.c: New file.
49820         * lib/unicase/u-casexfrm.h: New file.
49821         * modules/unicase/u8-casexfrm: New file.
49822
49823         Tests for module 'unicase/u32-casecmp'.
49824         * modules/unicase/u32-casecmp-tests: New file.
49825         * tests/unicase/test-u32-casecmp.c: New file.
49826
49827         Tests for module 'unicase/u16-casecmp'.
49828         * modules/unicase/u16-casecmp-tests: New file.
49829         * tests/unicase/test-u16-casecmp.c: New file.
49830
49831         Tests for module 'unicase/u8-casecmp'.
49832         * modules/unicase/u8-casecmp-tests: New file.
49833         * tests/unicase/test-u8-casecmp.c: New file.
49834         * tests/unicase/test-casecmp.h: New file.
49835
49836         New module 'unicase/u32-casecmp'.
49837         * lib/unicase/u32-casecmp.c: New file.
49838         * modules/unicase/u32-casecmp: New file.
49839
49840         New module 'unicase/u16-casecmp'.
49841         * lib/unicase/u16-casecmp.c: New file.
49842         * modules/unicase/u16-casecmp: New file.
49843
49844         New module 'unicase/u8-casecmp'.
49845         * lib/unicase/u8-casecmp.c: New file.
49846         * lib/unicase/u-casecmp.h: New file.
49847         * modules/unicase/u8-casecmp: New file.
49848
49849         Tests for module 'unicase/u32-casefold'.
49850         * modules/unicase/u32-casefold-tests: New file.
49851         * tests/unicase/test-u32-casefold.c: New file.
49852
49853         Tests for module 'unicase/u16-casefold'.
49854         * modules/unicase/u16-casefold-tests: New file.
49855         * tests/unicase/test-u16-casefold.c: New file.
49856
49857         Tests for module 'unicase/u8-casefold'.
49858         * modules/unicase/u8-casefold-tests: New file.
49859         * tests/unicase/test-u8-casefold.c: New file.
49860
49861         New module 'unicase/u32-casefold'.
49862         * lib/unicase/u32-casefold.c: New file.
49863         * modules/unicase/u32-casefold: New file.
49864
49865         New module 'unicase/u16-casefold'.
49866         * lib/unicase/u16-casefold.c: New file.
49867         * modules/unicase/u16-casefold: New file.
49868
49869         New module 'unicase/u8-casefold'.
49870         * lib/unicase/u8-casefold.c: New file.
49871         * lib/unicase/u-casefold.h: New file.
49872         * modules/unicase/u8-casefold: New file.
49873
49874         New module 'unicase/tocasefold'.
49875         * lib/unicase/casefold.h: New file.
49876         * lib/unicase/tocasefold.c: New file.
49877         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
49878         * modules/unicase/tocasefold: New file.
49879
49880         Tests for module 'unicase/u32-totitle'.
49881         * modules/unicase/u32-totitle-tests: New file.
49882         * tests/unicase/test-u32-totitle.c: New file.
49883
49884         Tests for module 'unicase/u16-totitle'.
49885         * modules/unicase/u16-totitle-tests: New file.
49886         * tests/unicase/test-u16-totitle.c: New file.
49887
49888         Tests for module 'unicase/u8-totitle'.
49889         * modules/unicase/u8-totitle-tests: New file.
49890         * tests/unicase/test-u8-totitle.c: New file.
49891
49892         New module 'unicase/u32-totitle'.
49893         * lib/unicase/u32-totitle.c: New file.
49894         * modules/unicase/u32-totitle: New file.
49895
49896         New module 'unicase/u16-totitle'.
49897         * lib/unicase/u16-totitle.c: New file.
49898         * modules/unicase/u16-totitle: New file.
49899
49900         New module 'unicase/u8-totitle'.
49901         * lib/unicase/u8-totitle.c: New file.
49902         * lib/unicase/u-totitle.h: New file.
49903         * modules/unicase/u8-totitle: New file.
49904
49905         Tests for module 'unicase/u32-tolower'.
49906         * modules/unicase/u32-tolower-tests: New file.
49907         * tests/unicase/test-u32-tolower.c: New file.
49908
49909         Tests for module 'unicase/u16-tolower'.
49910         * modules/unicase/u16-tolower-tests: New file.
49911         * tests/unicase/test-u16-tolower.c: New file.
49912
49913         Tests for module 'unicase/u8-tolower'.
49914         * modules/unicase/u8-tolower-tests: New file.
49915         * tests/unicase/test-u8-tolower.c: New file.
49916
49917         New module 'unicase/u32-tolower'.
49918         * lib/unicase/u32-tolower.c: New file.
49919         * modules/unicase/u32-tolower: New file.
49920
49921         New module 'unicase/u16-tolower'.
49922         * lib/unicase/u16-tolower.c: New file.
49923         * modules/unicase/u16-tolower: New file.
49924
49925         New module 'unicase/u8-tolower'.
49926         * lib/unicase/u8-tolower.c: New file.
49927         * modules/unicase/u8-tolower: New file.
49928
49929         Tests for module 'unicase/u32-toupper'.
49930         * modules/unicase/u32-toupper-tests: New file.
49931         * tests/unicase/test-u32-toupper.c: New file.
49932
49933         Tests for module 'unicase/u16-toupper'.
49934         * modules/unicase/u16-toupper-tests: New file.
49935         * tests/unicase/test-u16-toupper.c: New file.
49936
49937         Tests for module 'unicase/u8-toupper'.
49938         * modules/unicase/u8-toupper-tests: New file.
49939         * tests/unicase/test-u8-toupper.c: New file.
49940
49941         New module 'unicase/u32-toupper'.
49942         * lib/unicase/u32-toupper.c: New file.
49943         * modules/unicase/u32-toupper: New file.
49944
49945         New module 'unicase/u16-toupper'.
49946         * lib/unicase/u16-toupper.c: New file.
49947         * modules/unicase/u16-toupper: New file.
49948
49949         New module 'unicase/u8-toupper'.
49950         * lib/unicase/u8-toupper.c: New file.
49951         * modules/unicase/u8-toupper: New file.
49952
49953         New module 'unicase/u32-casemap'.
49954         * lib/unicase/u32-casemap.c: New file.
49955         * modules/unicase/u32-casemap: New file.
49956
49957         New module 'unicase/u16-casemap'.
49958         * lib/unicase/u16-casemap.c: New file.
49959         * modules/unicase/u16-casemap: New file.
49960
49961         New module 'unicase/u8-casemap'.
49962         * lib/unicase/unicasemap.h: New file.
49963         * lib/unicase/u8-casemap.c: New file.
49964         * lib/unicase/u-casemap.h: New file.
49965         * modules/unicase/u8-casemap: New file.
49966
49967         New module 'unicase/special-casing'.
49968         * lib/unicase/special-casing.h: New file.
49969         * lib/unicase/special-casing.c: New file.
49970         * lib/unicase/special-casing-table.gperf: New file, generated by
49971         gen-uni-tables.c.
49972         * modules/unicase/special-casing: New file.
49973
49974         Tests for module 'unicase/locale-language'.
49975         * modules/unicase/locale-language-tests: New file.
49976         * tests/unicase/test-locale-language.sh: New file.
49977         * tests/unicase/test-locale-language.c: New file.
49978
49979         New module 'unicase/locale-language'.
49980         * lib/unicase/locale-language.c: New file.
49981         * lib/unicase/locale-languages.gperf: New file.
49982         * modules/unicase/locale-language: New file.
49983
49984         Generate more tables for case conversion and case folding.
49985         * lib/gen-uni-tables.c (SCC_*): New enum items.
49986         (struct special_casing_rule): New type.
49987         (casing_rules, num_casing_rules, allocated_casing_rules): New
49988         variables.
49989         (add_casing_rule, fill_casing_rules): New functions.
49990         (struct casefold_rule): New type.
49991         (casefolding_rules, num_casefolding_rules,
49992         allocated_casefolding_rules): New variables.
49993         (fill_casefolding_rules): New function.
49994         (unicode_casefold): New variable.
49995         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
49996         sort_casing_rules, output_casing_rules): New functions.
49997         (main): Accept to more arguments: SpecialCasing.txt and
49998         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
49999         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
50000         Output mapping for casefolding.
50001
50002         * lib/unicase.h: Include stdbool.h, uninorm.h.
50003         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
50004         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
50005         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
50006         arguments.
50007         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
50008         resultp arguments.
50009         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
50010         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
50011         resultp arguments.
50012         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
50013         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
50014         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
50015         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
50016         declarations.
50017         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
50018
50019 2009-03-08  Bruno Haible  <bruno@clisp.org>
50020
50021         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
50022         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
50023         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
50024         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
50025
50026 2009-03-07  Bruno Haible  <bruno@clisp.org>
50027
50028         Adjust u*_normcmp, u*_normcoll API.
50029         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
50030         u16_normcoll, u32_normcoll): Change failure conventions.
50031         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
50032         errno and return -1.
50033         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
50034
50035 2009-03-07  Bruno Haible  <bruno@clisp.org>
50036
50037         Tests for module 'uninorm/u32-normcoll'.
50038         * modules/uninorm/u32-normcoll-tests: New file.
50039         * tests/uninorm/test-u32-normcoll.c: New file.
50040
50041         Tests for module 'uninorm/u16-normcoll'.
50042         * modules/uninorm/u16-normcoll-tests: New file.
50043         * tests/uninorm/test-u16-normcoll.c: New file.
50044
50045         Tests for module 'uninorm/u8-normcoll'.
50046         * modules/uninorm/u8-normcoll-tests: New file.
50047         * tests/uninorm/test-u8-normcoll.c: New file.
50048
50049 2009-03-07  Bruno Haible  <bruno@clisp.org>
50050
50051         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
50052         tests/uninorm/test-u32-normcmp.c.
50053         * tests/uninorm/test-u32-normcmp.c: Include it.
50054         (test_nonascii): New function, extracted from main. Add some more
50055         tests.
50056         (main): Invoke test_ascii and test_nonascii.
50057         * modules/uninorm/u32-normcmp-tests (Files): Add
50058         tests/uninorm/test-u32-normcmp.h.
50059         (Depends-on): Remove uninorm/u32-normcmp.
50060
50061         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
50062         tests/uninorm/test-u16-normcmp.c.
50063         * tests/uninorm/test-u16-normcmp.c: Include it.
50064         (test_nonascii): New function, extracted from main. Add some more
50065         tests.
50066         (main): Invoke test_ascii and test_nonascii.
50067         * modules/uninorm/u16-normcmp-tests (Files): Add
50068         tests/uninorm/test-u16-normcmp.h.
50069         (Depends-on): Remove uninorm/u16-normcmp.
50070
50071         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
50072         tests/uninorm/test-u8-normcmp.c.
50073         * tests/uninorm/test-u8-normcmp.c: Include it.
50074         (test_nonascii): New function, extracted from main. Add some more
50075         tests.
50076         (main): Invoke test_ascii and test_nonascii.
50077         * modules/uninorm/u8-normcmp-tests (Files): Add
50078         tests/uninorm/test-u8-normcmp.h.
50079         (Depends-on): Remove uninorm/u8-normcmp.
50080
50081 2009-03-07  Bruno Haible  <bruno@clisp.org>
50082
50083         New module 'uninorm/u32-normcoll'.
50084         * lib/uninorm/u32-normcoll.c: New file.
50085         * modules/uninorm/u32-normcoll: New file.
50086
50087         New module 'uninorm/u16-normcoll'.
50088         * lib/uninorm/u16-normcoll.c: New file.
50089         * modules/uninorm/u16-normcoll: New file.
50090
50091         New module 'uninorm/u8-normcoll'.
50092         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
50093         declarations.
50094         * lib/uninorm/u8-normcoll.c: New file.
50095         * lib/uninorm/u-normcoll.h: New file.
50096         * modules/uninorm/u8-normcoll: New file.
50097
50098         New module 'uninorm/u32-normxfrm'.
50099         * lib/uninorm/u32-normxfrm.c: New file.
50100         * modules/uninorm/u32-normxfrm: New file.
50101
50102         New module 'uninorm/u16-normxfrm'.
50103         * lib/uninorm/u16-normxfrm.c: New file.
50104         * modules/uninorm/u16-normxfrm: New file.
50105
50106         New module 'uninorm/u8-normxfrm'.
50107         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
50108         declarations.
50109         * lib/uninorm/u8-normxfrm.c: New file.
50110         * lib/uninorm/u-normxfrm.h: New file.
50111         * modules/uninorm/u8-normxfrm: New file.
50112
50113 2009-03-07  Bruno Haible  <bruno@clisp.org>
50114
50115         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
50116         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
50117         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
50118
50119 2009-03-07  Bruno Haible  <bruno@clisp.org>
50120
50121         New module 'memxfrm'.
50122         * lib/memxfrm.h: New file.
50123         * lib/memxfrm.c: New file.
50124         * modules/memxfrm: New file.
50125
50126 2009-03-07  Bruno Haible  <bruno@clisp.org>
50127
50128         New module 'memcmp2'.
50129         * lib/memcmp2.h: New file.
50130         * lib/memcmp2.c: New file.
50131         * modules/memcmp2: New file.
50132
50133 2009-03-07  Bruno Haible  <bruno@clisp.org>
50134
50135         Tests for module 'uninorm/decomposing-form'.
50136         * modules/uninorm/decomposing-form-tests: New file.
50137         * tests/uninorm/test-decomposing-form.c: New file.
50138
50139         New module 'uninorm/decomposing-form'.
50140         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
50141         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
50142         Add 'decomposing_variant' field.
50143         * lib/uninorm/decomposing-form.c: New file.
50144         * lib/uninorm/nfc.c (uninorm_nfc): Update.
50145         * lib/uninorm/nfd.c (uninorm_nfd): Update.
50146         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
50147         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
50148         * modules/uninorm/decomposing-form: New file.
50149         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
50150         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
50151
50152 2009-03-07  Bruno Haible  <bruno@clisp.org>
50153
50154         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
50155         strings.
50156
50157 2009-03-06  Bruno Haible  <bruno@clisp.org>
50158
50159         Tests for module 'uninorm/u32-normcmp'.
50160         * tests/uninorm/test-u32-normcmp.c: New file.
50161         * modules/uninorm/u32-normcmp-tests: New file.
50162
50163         Tests for module 'uninorm/u16-normcmp'.
50164         * tests/uninorm/test-u16-normcmp.c: New file.
50165         * modules/uninorm/u16-normcmp-tests: New file.
50166
50167         Tests for module 'uninorm/u8-normcmp'.
50168         * tests/uninorm/test-u8-normcmp.c: New file.
50169         * modules/uninorm/u8-normcmp-tests: New file.
50170
50171         New module 'uninorm/u32-normcmp'.
50172         * lib/uninorm/u32-normcmp.c: New file.
50173         * modules/uninorm/u32-normcmp: New file.
50174
50175         New module 'uninorm/u16-normcmp'.
50176         * lib/uninorm/u16-normcmp.c: New file.
50177         * modules/uninorm/u16-normcmp: New file.
50178
50179         New module 'uninorm/u8-normcmp'.
50180         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
50181         declarations.
50182         * lib/uninorm/u8-normcmp.c: New file.
50183         * lib/uninorm/u-normcmp.h: New file.
50184         * modules/uninorm/u8-normcmp: New file.
50185
50186 2009-03-06  Bruno Haible  <bruno@clisp.org>
50187
50188         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
50189         Reported by Eric Blake.
50190
50191 2009-03-06  Eric Blake  <ebb9@byu.net>
50192             Bruno Haible  <bruno@clisp.org>
50193
50194         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
50195         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
50196         condition.
50197         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
50198         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
50199         condition.
50200         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
50201
50202 2009-03-06  Eric Blake  <ebb9@byu.net>
50203
50204         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
50205         to avoid compiler warnings.
50206         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
50207
50208 2009-03-05  Bruno Haible  <bruno@clisp.org>
50209
50210         * tests/test-ftell.c (main): Disable test beyond end of file on
50211         FreeMiNT.
50212         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
50213
50214 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
50215
50216         * lib/filevercmp.c: Move hidden files up in ordering.
50217         * tests/test-filevercmp.c: Add tests for hidden files.
50218
50219 2009-03-04  Bruno Haible  <bruno@clisp.org>
50220
50221         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
50222         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
50223         AM_CFLAGS.
50224         Reported by Simon Josefsson.
50225
50226 2009-03-03  Bruno Haible  <bruno@clisp.org>
50227
50228         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
50229         Reported by Simon Josefsson.
50230
50231         * doc/ld-version-script.texi: Update node reference.
50232
50233 2009-03-03  Bruno Haible  <bruno@clisp.org>
50234
50235         * modules/visibility (License): Change to 'unlimited'.
50236         Suggested by Simon Josefsson.
50237
50238 2009-03-03  Jim Meyering  <meyering@redhat.com>
50239
50240         unlinkdir: cannot_unlink_dir may modify process state
50241         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
50242         it's neither thread-safe nor appropriate for use in a library.
50243
50244 2009-03-03  Eric Blake  <ebb9@byu.net>
50245
50246         test-closein: silence test under Darwin
50247         * tests/test-closein.sh: Ignore stderr from cat, since we don't
50248         care if it dies from EPIPE or EBADF.
50249
50250 2009-03-03  Bruno Haible  <bruno@clisp.org>
50251
50252         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
50253         earlier.
50254         * doc/visibility.texi: Fix @node and @section.
50255
50256 2009-03-03  Simon Josefsson  <simon@josefsson.org>
50257
50258         * doc/gnulib.texi: Link to sections for ld version script and
50259         visibility.
50260         * doc/visibility.texi: Add @node and @section.
50261         * modules/ld-version-script: New module.
50262         * m4/ld-version-script.m4: New file.
50263         * doc/ld-version-script.texi: New file.
50264
50265 2009-03-02  David Lutterkort  <lutter@redhat.com>
50266
50267         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
50268         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
50269
50270 2009-03-02  Bruno Haible  <bruno@clisp.org>
50271
50272         * doc/visibility.texi: Mention libtool's -export-symbols option.
50273
50274 2009-03-02  Jim Meyering  <meyering@redhat.com>
50275
50276         announce-gen: new option: --no-print-checksums
50277         * build-aux/announce-gen (usage): Describe it.
50278         (print_checksums): Print a newline here, not in the [*] footnote.
50279         (main): Honor it.
50280
50281 2009-03-01  Bruno Haible  <bruno@clisp.org>
50282
50283         Use socklen_t in the native Windows replacements prototypes.
50284         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
50285         instead of 'int'.
50286         * lib/getsockopt.c (rpl_getsockopt): Likewise.
50287         * lib/setsockopt.c (rpl_setsockopt): Likewise.
50288         * modules/getsockopt (Depends-on): Add socklen.
50289         * modules/setsockopt (Depends-on): Add socklen.
50290
50291 2009-03-01  Bruno Haible  <bruno@clisp.org>
50292
50293         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
50294         least 4.2.
50295
50296 2009-03-01  Eric Blake  <ebb9@byu.net>
50297             Bruno Haible  <bruno@clisp.org>
50298
50299         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
50300         error messages.
50301         * lib/wait-process.c (wait_subprocess): Omit error message about
50302         deadly signal sent to the child of termsigp != NULL.
50303
50304 2009-03-01  Eric Blake  <ebb9@byu.net>
50305
50306         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
50307
50308 2009-03-01  Bruno Haible  <bruno@clisp.org>
50309
50310         Avoid a gcc warning.
50311         * tests/test-sched.c (b): Make global.
50312         Reported by Eric Blake.
50313
50314 2009-01-19  Martin Lambers  <marlam@marlam.de>
50315
50316         Provide POSIX semantics for socket timeout options on W32.
50317         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
50318         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
50319         * modules/setsockopt: Depend on sys_time module for struct timeval.
50320         * modules/getsockopt: Depend on sys_time module for struct timeval.
50321
50322 2009-03-01  Simon Josefsson  <simon@josefsson.org>
50323
50324         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
50325         __USE_GNU, for consistency with netdb.in.h.
50326         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
50327
50328 2009-03-01  Bruno Haible  <bruno@clisp.org>
50329
50330         More support for FreeMiNT.
50331         * lib/fseeko.c (rpl_fseeko): Complete last commit.
50332         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
50333
50334 2009-03-01  Bruno Haible  <bruno@clisp.org>
50335
50336         More support for FreeMiNT.
50337         * lib/fpurge.c (fpurge): Correct last commit.
50338         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
50339
50340 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50341
50342         Fix unportable awk script in vc-list-files.
50343         * build-aux/vc-list-files: In the replacement awk script, use
50344         substr with a second argument of 1, not zero.
50345         Report by Simon Josefsson.
50346
50347 2009-02-28  Bruno Haible  <bruno@clisp.org>
50348
50349         More support for FreeMiNT.
50350         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
50351         to FreeMiNT today.
50352         * lib/fwriting.c (fwriting): Likewise.
50353         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
50354
50355 2009-02-28  Bruno Haible  <bruno@clisp.org>
50356
50357         * tests/test-freadseek.c (main): Disable test beyond end of file on
50358         FreeMiNT.
50359         * tests/test-ftello.c (main): Likewise.
50360         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
50361
50362 2009-02-28  Bruno Haible  <bruno@clisp.org>
50363
50364         Add tentative support for FreeMiNT.
50365         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
50366         * lib/fpurge.c (fpurge): Likewise.
50367         * lib/freadable.c (freadable): Likewise.
50368         * lib/freading.c (freading): Likewise.
50369         * lib/freadptr.c (freadptr): Likewise.
50370         * lib/freadseek.c (freadptrinc): Likewise.
50371         * lib/fseeko.c (rpl_fseeko): Likewise.
50372         * lib/fseterr.c (fseterr): Likewise.
50373         * lib/fwritable.c (fwritable): Likewise.
50374         * lib/fwriting.c (fwriting): Likewise.
50375         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
50376         Hourihane.
50377         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
50378
50379 2009-02-28  Bruno Haible  <bruno@clisp.org>
50380
50381         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
50382         SIGCHLD.
50383         Reported by Jim Meyering.
50384
50385 2009-02-28  Bruno Haible  <bruno@clisp.org>
50386
50387         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
50388         Mention the results of these tests on various platforms.
50389         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
50390         order.
50391         * doc/posix-functions/printf.texi: Likewise.
50392         * doc/posix-functions/snprintf.texi: Likewise.
50393         * doc/posix-functions/sprintf.texi: Likewise.
50394         * doc/posix-functions/vfprintf.texi: Likewise.
50395         * doc/posix-functions/vprintf.texi: Likewise.
50396         * doc/posix-functions/vsnprintf.texi: Likewise.
50397         * doc/posix-functions/vsprintf.texi: Likewise.
50398         * doc/glibc-functions/obstack_printf.texi: Likewise.
50399         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
50400
50401 2009-02-28  Bruno Haible  <bruno@clisp.org>
50402
50403         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
50404         Reported by Loïc Minier <lool@dooz.org>.
50405
50406 2009-02-27  Bruno Haible  <bruno@clisp.org>
50407
50408         * gnulib-tool (func_import): Make the sed expression used to create the
50409         sed script for updating the .gitignore file POSIX compliant.
50410         Reported by Eric Blake.
50411
50412 2009-02-27  Bruno Haible  <bruno@clisp.org>
50413
50414         * gnulib-tool (sed): Don't alias as "sed --posix".
50415         Reported by Eric Blake.
50416
50417 2009-02-27  Bruno Haible  <bruno@clisp.org>
50418
50419         Avoid test link errors.
50420         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
50421         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
50422         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
50423         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
50424         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
50425
50426 2009-02-27  Bruno Haible  <bruno@clisp.org>
50427
50428         Avoid spurious "(cached)" in configure output.
50429         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
50430         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
50431         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
50432         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
50433         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
50434         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
50435         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
50436         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
50437         Reported by Eric Blake.
50438
50439 2009-02-27  Eric Blake  <ebb9@byu.net>
50440
50441         printf: fix regression in previous patch
50442         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
50443
50444 2009-02-27  Bruno Haible  <bruno@clisp.org>
50445
50446         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
50447         value.
50448         * lib/stdint.in.h: Likewise.
50449         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
50450
50451 2009-02-27  Eric Blake  <ebb9@byu.net>
50452
50453         doc: mention more functions added in cygwin 1.7.0
50454         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
50455         addition.
50456         * doc/posix-functions/open_wmemstream.texi: Likewise.
50457         * doc/posix-functions/wcsnlen.texi: Likewise.
50458         * doc/posix-functions/wcsnrtombs.texi: Likewise.
50459         * doc/posix-functions/wcstod.texi: Likewise.
50460         * doc/posix-functions/wcstof.texi: Likewise.
50461         * doc/posix-functions/wcstoimax.texi: Likewise.
50462         * doc/posix-functions/wcstok.texi: Likewise.
50463         * doc/posix-functions/wcstoumax.texi: Likewise.
50464
50465         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
50466         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
50467         * doc/posix-functions/fprintf.texi: Update.
50468         * doc/posix-functions/printf.texi: Update.
50469         * doc/posix-functions/snprintf.texi: Update.
50470         * doc/posix-functions/sprintf.texi: Update.
50471         * doc/posix-functions/vfprintf.texi: Update.
50472         * doc/posix-functions/vprintf.texi: Update.
50473         * doc/posix-functions/vsnprintf.texi: Update.
50474         * doc/posix-functions/vsprintf.texi: Update.
50475         * doc/glibc-functions/obstack_printf.texi: Update.
50476         * doc/glibc-functions/obstack_vprintf.texi: Update.
50477
50478 2009-02-26  Eric Blake  <ebb9@byu.net>
50479
50480         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
50481         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
50482         compilation bug by using runtime conversion.
50483         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
50484         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
50485         * modules/ceill-tests (Files): Use nan.h.
50486         * modules/floorl-tests (Files): Likewise.
50487         * modules/frexpl-tests (Files): Likewise.
50488         * modules/isnanl-tests (Files): Likewise.
50489         * modules/ldexpl-tests (Files): Likewise.
50490         * modules/roundl-tests (Files): Likewise.
50491         * modules/truncl-tests (Files): Likewise.
50492         * tests/test-ceill.c (main): Use a working NaN.
50493         * tests/test-floorl.c (main): Likewise.
50494         * tests/test-frexpl.c (main): Likewise.
50495         * tests/test-isnan.c (test_long_double): Likewise.
50496         * tests/test-isnanl.h (main): Likewise.
50497         * tests/test-ldexpl.h (main): Likewise.
50498         * tests/test-roundl.h (main): Likewise.
50499         * tests/test-truncl.h (main): Likewise.
50500         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
50501
50502 2009-02-26  Eric Blake  <ebb9@byu.net>
50503             Bruno Haible  <bruno@clisp.org>
50504
50505         Work around a *printf bug with %ls on Solaris.
50506         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
50507         precision is specified, sprintf stops converting the wide string
50508         argument when the number of bytes that have been produced by this
50509         conversion equals or exceeds the precision.
50510         * doc/posix-functions/fprintf.texi: Update.
50511         * doc/posix-functions/printf.texi: Update.
50512         * doc/posix-functions/snprintf.texi: Update.
50513         * doc/posix-functions/sprintf.texi: Update.
50514         * doc/posix-functions/vfprintf.texi: Update.
50515         * doc/posix-functions/vprintf.texi: Update.
50516         * doc/posix-functions/vsnprintf.texi: Update.
50517         * doc/posix-functions/vsprintf.texi: Update.
50518         * doc/glibc-functions/obstack_printf.texi: Update.
50519         * doc/glibc-functions/obstack_vprintf.texi: Update.
50520
50521 2009-02-26  Eric Blake  <ebb9@byu.net>
50522
50523         stdlib: favor compiler check of random.h
50524         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
50525         to avoid an ObjC random.h installed by Swarm.
50526
50527 2009-02-26  Bruno Haible  <bruno@clisp.org>
50528
50529         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
50530         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
50531         Reported by Gary V. Vaughan <gary@gnu.org>.
50532
50533 2009-02-26  Bruno Haible  <bruno@clisp.org>
50534
50535         Fix *printf behaviour regarding the %ls directive.
50536         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
50537         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
50538         NEED_PRINTF_DIRECTIVE_LS.
50539         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
50540         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
50541         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
50542         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
50543         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
50544         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
50545         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
50546         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
50547         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
50548         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
50549         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
50550         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
50551         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
50552         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
50553         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
50554         * doc/posix-functions/fprintf.texi: Update.
50555         * doc/posix-functions/printf.texi: Update.
50556         * doc/posix-functions/snprintf.texi: Update.
50557         * doc/posix-functions/sprintf.texi: Update.
50558         * doc/posix-functions/vfprintf.texi: Update.
50559         * doc/posix-functions/vprintf.texi: Update.
50560         * doc/posix-functions/vsnprintf.texi: Update.
50561         * doc/posix-functions/vsprintf.texi: Update.
50562         * doc/glibc-functions/obstack_printf.texi: Update.
50563         * doc/glibc-functions/obstack_vprintf.texi: Update.
50564         Reported by Eric Blake.
50565
50566 2009-02-25  Bruno Haible  <bruno@clisp.org>
50567
50568         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
50569         with known value.
50570         Reported by Gary V. Vaughan <gary@gnu.org>.
50571
50572 2009-02-25  Bruno Haible  <bruno@clisp.org>
50573
50574         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
50575         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
50576         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
50577         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
50578         Reported by Gary V. Vaughan <gary@gnu.org>.
50579
50580 2009-02-25  Bruno Haible  <bruno@clisp.org>
50581
50582         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
50583         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
50584         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
50585         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
50586         Reported by Gary V. Vaughan <gary@gnu.org>.
50587
50588 2009-02-25  Eric Blake  <ebb9@byu.net>
50589
50590         tests: skip fseek/ftell tests if ungetc is broken
50591         * m4/ungetc.m4: New file.
50592         * modules/fseek-tests: Split test, so ungetc dependency is
50593         separate from rest of test.
50594         * modules/fseeko-tests: Likewise.
50595         * modules/ftell-tests: Likewise.
50596         * modules/ftello-tests: Likewise.
50597         * tests/test-fseek.c (main): Isolate ungetc dependency.
50598         * tests/test-fseeko.c (main): Likewise.
50599         * tests/test-ftell.c (main): Likewise.
50600         * tests/test-ftello.c (main): Likewise.
50601         * tests/test-fseek2.sh: New file.
50602         * tests/test-fseeko2.sh: Likewise.
50603         * tests/test-ftell2.sh: Likewise.
50604         * tests/test-ftello2.sh: Likewise.
50605
50606 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
50607
50608         test-getaddrinfo: fix usage of skip return code 77
50609         * tests/test-gettaddrinfo.c: Return skip code 77 only
50610         for first occurrence of skip (4x77 is not 77)
50611
50612 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
50613
50614         strtod: avoid C99 decl-after-statement
50615         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
50616
50617 2009-02-24  Eric Blake  <ebb9@byu.net>
50618
50619         strtod: detect HP-UX 11.31 bug
50620         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
50621         Reported by Gary V. Vaughan.
50622
50623 2009-02-23  Bruno Haible  <bruno@clisp.org>
50624
50625         Fix invalid read past end of memory block.
50626         * lib/vasnprintf.c (DCHAR_SET): Define.
50627         (local_wcslen): Define only when needed.
50628         (local_strnlen, local_wcsnlen): New functions.
50629         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
50630         directives that involve a conversion ourselves.
50631         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
50632         wcsnlen, mbrtowc, wcrtomb.
50633         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
50634         * tests/test-vasprintf-posix.c (test_function): Likewise.
50635         * tests/test-snprintf-posix.h (test_function): Likewise.
50636         * tests/test-sprintf-posix.h (test_function): Likewise.
50637         Reported by Ben Pfaff <blp@cs.stanford.edu>.
50638
50639 2009-02-22  Bruno Haible  <bruno@clisp.org>
50640
50641         Implement new clarified decomposition of Hangul syllables.
50642         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
50643         of type LTV, return only a pairwise decomposition.
50644         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
50645         Likewise.
50646         * tests/uninorm/test-decomposition.c (main): Updated expected result.
50647         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
50648         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
50649
50650 2009-02-22  Bruno Haible  <bruno@clisp.org>
50651
50652         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
50653         zero-length results and shrink excess allocated memory.
50654         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
50655         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
50656         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
50657         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
50658         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
50659         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
50660         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
50661         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
50662         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
50663         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
50664         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
50665         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
50666
50667 2009-02-21  Bruno Haible  <bruno@clisp.org>
50668
50669         * doc/gnulib.texi: Include safe-alloc.texi earlier.
50670         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
50671         spaces after a period. Put a space between a macro name and its
50672         argument list. Trivial rewordings.
50673         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
50674         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
50675         (main): Return 0 explicitly.
50676
50677 2009-02-21  Bruno Haible  <bruno@clisp.org>
50678
50679         Tests for module 'uninorm/filter'.
50680         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
50681         * modules/uninorm/filter-tests: New file.
50682
50683         New module 'uninorm/filter'.
50684         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
50685         uninorm_filter_flush, uninorm_filter_free): New declarations.
50686         * lib/uninorm/uninorm-filter.c: New file.
50687         * modules/uninorm/filter: New file.
50688
50689 2009-02-21  Bruno Haible  <bruno@clisp.org>
50690
50691         Tests for module 'uninorm/nfkc'.
50692         * tests/uninorm/test-nfkc.c: New file.
50693         * tests/uninorm/test-u8-nfkc.c: New file.
50694         * tests/uninorm/test-u16-nfkc.c: New file.
50695         * tests/uninorm/test-u32-nfkc.c: New file.
50696         * tests/uninorm/test-u32-nfkc-big.sh: New file.
50697         * tests/uninorm/test-u32-nfkc-big.c: New file.
50698         * modules/uninorm/nfkc-tests: New file.
50699
50700         New module 'uninorm/nfkc'.
50701         * lib/uninorm/nfkc.c: New file.
50702         * modules/uninorm/nfkc: New file.
50703
50704         Tests for module 'uninorm/nfkd'.
50705         * tests/uninorm/test-nfkd.c: New file.
50706         * tests/uninorm/test-u8-nfkd.c: New file.
50707         * tests/uninorm/test-u16-nfkd.c: New file.
50708         * tests/uninorm/test-u32-nfkd.c: New file.
50709         * tests/uninorm/test-u32-nfkd-big.sh: New file.
50710         * tests/uninorm/test-u32-nfkd-big.c: New file.
50711         * modules/uninorm/nfkd-tests: New file.
50712
50713         New module 'uninorm/nfkd'.
50714         * lib/uninorm/nfkd.c: New file.
50715         * modules/uninorm/nfkd: New file.
50716
50717         Tests for module 'uninorm/nfc'.
50718         * tests/uninorm/test-nfc.c: New file.
50719         * tests/uninorm/test-u8-nfc.c: New file.
50720         * tests/uninorm/test-u16-nfc.c: New file.
50721         * tests/uninorm/test-u32-nfc.c: New file.
50722         * tests/uninorm/test-u32-nfc-big.sh: New file.
50723         * tests/uninorm/test-u32-nfc-big.c: New file.
50724         * modules/uninorm/nfc-tests: New file.
50725
50726         New module 'uninorm/nfc'.
50727         * lib/uninorm/nfc.c: New file.
50728         * modules/uninorm/nfc: New file.
50729
50730         Tests for module 'uninorm/nfd'.
50731         * tests/uninorm/test-nfd.c: New file.
50732         * tests/uninorm/test-u8-nfd.c: New file.
50733         * tests/uninorm/test-u16-nfd.c: New file.
50734         * tests/uninorm/test-u32-nfd.c: New file.
50735         * tests/uninorm/test-u32-nfd-big.sh: New file.
50736         * tests/uninorm/test-u32-nfd-big.c: New file.
50737         * tests/uninorm/test-u32-normalize-big.h: New file.
50738         * tests/uninorm/test-u32-normalize-big.c: New file.
50739         * tests/uninorm/NormalizationTest.txt: New file, created from
50740         Unicode 5.1.0 NormalizationTest.txt.
50741         * modules/uninorm/nfd-tests: New file.
50742
50743         New module 'uninorm/nfd'.
50744         * lib/uninorm/nfd.c: New file.
50745         * modules/uninorm/nfd: New file.
50746
50747         New module 'uninorm/u32-normalize'.
50748         * lib/uninorm/u32-normalize.c: New file.
50749         * modules/uninorm/u32-normalize: New file.
50750
50751         New module 'uninorm/u16-normalize'.
50752         * lib/uninorm/u16-normalize.c: New file.
50753         * modules/uninorm/u16-normalize: New file.
50754
50755         New module 'uninorm/u8-normalize'.
50756         * lib/uninorm/u8-normalize.c: New file.
50757         * lib/uninorm/normalize-internal.h: New file.
50758         * lib/uninorm/u-normalize-internal.h: New file.
50759         * modules/uninorm/u8-normalize: New file.
50760
50761         New module 'uninorm/decompose-internal'.
50762         * lib/uninorm/decompose-internal.c: New file.
50763         * modules/uninorm/decompose-internal: New file.
50764
50765         Tests for module 'uninorm/composition'.
50766         * tests/uninorm/test-composition.c: New file.
50767         * modules/uninorm/composition-tests: New file.
50768
50769         New module 'uninorm/composition'.
50770         * lib/uninorm/composition.c: New file.
50771         * lib/uninorm/composition-table.gperf: New file, generated by
50772         gen-uni-tables.
50773         * modules/uninorm/composition: New file.
50774
50775         Tests for module 'uninorm/compat-decomposition'.
50776         * tests/uninorm/test-compat-decomposition.c: New file.
50777         * modules/uninorm/compat-decomposition-tests: New file.
50778
50779         New module 'uninorm/compat-decomposition'.
50780         * lib/uninorm/decompose-internal.h: New file.
50781         * lib/uninorm/compat-decomposition.c: New file.
50782         * modules/uninorm/compat-decomposition: New file.
50783
50784         Tests for module 'uninorm/canonical-decomposition'.
50785         * tests/uninorm/test-canonical-decomposition.c: New file.
50786         * modules/uninorm/canonical-decomposition-tests: New file.
50787
50788         New module 'uninorm/canonical-decomposition'.
50789         * lib/uninorm/canonical-decomposition.c: New file.
50790         * modules/uninorm/canonical-decomposition: New file.
50791
50792         Tests for module 'uninorm/decomposition'.
50793         * tests/uninorm/test-decomposition.c: New file.
50794         * modules/uninorm/decomposition-tests: New file.
50795
50796         New module 'uninorm/decomposition'.
50797         * lib/uninorm/decomposition.c: New file.
50798         * modules/uninorm/decomposition: New file.
50799
50800         New module 'uninorm/decomposition-table'.
50801         * lib/uninorm/decomposition-table.h: New file.
50802         * lib/uninorm/decomposition-table.c: New file.
50803         * lib/uninorm/decomposition-table1.h: New file, generated by
50804         gen-uni-tables.
50805         * lib/uninorm/decomposition-table2.h: New file, generated by
50806         gen-uni-tables.
50807         * modules/uninorm/decomposition-table: New file.
50808
50809         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
50810         (UC_DECOMP_*): New enumeration items.
50811         (get_decomposition): New function.
50812         (struct decomp_table): New type.
50813         (output_decomposition, output_decomposition_tables): New functions.
50814         (unicode_composition_exclusions): New variable.
50815         (fill_composition_exclusions, debug_output_composition_tables): New
50816         functions.
50817         (main): Accept one more argument. Invoke fill_composition_exclusions.
50818         Output decomposition and composition tables.
50819
50820         New module 'uninorm/base'.
50821         * lib/uninorm.h: New file.
50822         * lib/unictype.h: Update comment.
50823         * modules/uninorm/base: New file.
50824
50825 2009-02-21  David Lutterkort  <lutter@redhat.com>
50826
50827         Tests for module 'safe-alloc'.
50828         * tests/test-safe-alloc.c: New file.
50829         * modules/safe-alloc-tests: New file.
50830
50831         New module 'safe-alloc'.
50832         * lib/safe-alloc.h: New file.
50833         * lib/safe-alloc.c: New file.
50834         * m4/safe-alloc.m4: New file.
50835         * modules/safe-alloc: New file.
50836         * doc/safe-alloc.texi: New file.
50837         * doc/gnulib.texi: Include it.
50838         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
50839         safe-alloc.
50840
50841 2009-02-18  Bruno Haible  <bruno@clisp.org>
50842
50843         Fix link error on non-glibc systems.
50844         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
50845         variable.
50846         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
50847
50848 2009-02-18  Jim Meyering  <meyering@redhat.com>
50849
50850         fts: avoid used-uninitialized error due to recent change
50851         * lib/fts.c (fts_read): Guard uses of the new member,
50852         parent->fts_n_dirs_remaining, since it's not relevant for
50853         the parent of a directory specified on the command-line.
50854
50855 2009-02-17  James Youngman  <jay@gnu.org>
50856             Bruno Haible  <bruno@clisp.org>
50857
50858         * m4/include_next.m4: Reformulate comment.
50859
50860 2009-02-16  Jim Meyering  <meyering@redhat.com>
50861
50862         fts: add #if guards so that the fts_lgpl module still builds
50863         * lib/fts.c: Guard just-added hash-table-using parts with
50864         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
50865         Reported by Simon Josefsson.
50866
50867 2009-02-15  Bruno Haible  <bruno@clisp.org>
50868
50869         * modules/array-mergesort-tests: New file.
50870         * tests/test-array-mergesort.c: New file.
50871
50872         New module 'array-mergesort'.
50873         * modules/array-mergesort: New file.
50874         * lib/array-mergesort.h: New file.
50875
50876 2009-02-15  Bruno Haible  <bruno@clisp.org>
50877
50878         Fix 2009-02-07 commit.
50879         * lib/gen-uni-tables.c (output_predicate, output_category,
50880         output_combclass, output_bidi_category, output_decimal_digit,
50881         output_digit, output_numeric, output_mirror, output_scripts,
50882         output_ident_category, output_simple_mapping): Fix format directives.
50883         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
50884
50885 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
50886
50887         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
50888         fixes are available from IBM.
50889
50890 2009-02-13  Jim Meyering  <meyering@redhat.com>
50891
50892         fts: arrange not to stat non-directories in more cases
50893         This makes GNU find (when it doesn't need to stat each file)
50894         *much* more efficient at traversing reiserfs file systems.
50895         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
50896         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
50897         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
50898         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
50899         (leaf_optimization_applies): New function.
50900         (LCO_hash, LCO_compare): New helper functions.
50901         (link_count_optimize_ok): New function.
50902         (fts_stat): Initialize new member (if dir).
50903         (fts_read): Decrement parent's fts_n_dirs_remaining count if
50904         we've just stat'ed a directory.  Skip the stat call when possible.
50905         ---
50906         Note this AFS-related exchange:
50907         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
50908         and note find's pioctl call in find/fstype.c.
50909         But that is necessary only if you want to enable the
50910         optimization for AFS, and for now, I don't.
50911
50912         fts: move a function definition "up" (no semantic change)
50913         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
50914         "up" to precede upcoming use of a related function.
50915
50916 2009-02-11  Jim Meyering  <meyering@redhat.com>
50917
50918         fts: correct internal computation of nlinks (optimization-related)
50919         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
50920         whether the current entry is a directory, so don't test it.
50921
50922 2009-02-10  Bruno Haible  <bruno@clisp.org>
50923
50924         Tests for module 'uniwbrk/ulc-wordbreaks'.
50925         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
50926         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
50927         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
50928
50929         Tests for module 'uniwbrk/u32-wordbreaks'.
50930         * modules/uniwbrk/u32-wordbreaks-tests: New file.
50931         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
50932
50933         Tests for module 'uniwbrk/u16-wordbreaks'.
50934         * modules/uniwbrk/u16-wordbreaks-tests: New file.
50935         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
50936
50937         Tests for module 'uniwbrk/u8-wordbreaks'.
50938         * modules/uniwbrk/u8-wordbreaks-tests: New file.
50939         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
50940
50941 2009-02-10  Bruno Haible  <bruno@clisp.org>
50942
50943         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
50944         property.
50945         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
50946         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
50947         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
50948
50949 2009-02-10  Simon Josefsson  <simon@josefsson.org>
50950
50951         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
50952         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
50953
50954 2009-02-10  Bruno Haible  <bruno@clisp.org>
50955
50956         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
50957         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
50958         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
50959         * lib/unilbrk/u8-possible-linebreaks.c: Update.
50960         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
50961         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
50962
50963 2009-02-09  Simon Josefsson  <simon@josefsson.org>
50964
50965         * lib/sockets.h (gl_fd_to_handle): New function.
50966
50967         * tests/test-sockets.c: Call gl_fd_to_handle.
50968
50969 2009-02-09  Bruno Haible  <bruno@clisp.org>
50970
50971         * doc/havelib.texi: Document the conventions on bi-arch systems.
50972
50973 2009-02-08  Bruno Haible  <bruno@clisp.org>
50974
50975         Document the AC_LIB_LINKFLAGS macro.
50976         * doc/havelib.texi: New file, mostly written on 2005-05-24.
50977         * doc/gnulib.texi: Include it.
50978
50979 2009-02-08  Bruno Haible  <bruno@clisp.org>
50980
50981         Fix wrong order of sections, compared to TOC.
50982         * doc/gnulib.texi: Include relocatable-maint.texi after the
50983         "Regular expressions" node, not before.
50984
50985 2009-02-08  Bruno Haible  <bruno@clisp.org>
50986
50987         Tests for module 'unicase/totitle'.
50988         * modules/unicase/totitle-tests: New file.
50989
50990         Tests for module 'unicase/tolower'.
50991         * modules/unicase/tolower-tests: New file.
50992
50993         Tests for module 'unicase/toupper'.
50994         * modules/unicase/toupper-tests: New file.
50995         * tests/unicase/test-mapping-part1.h: New file.
50996         * tests/unicase/test-mapping-part2.h: New file.
50997
50998         New module 'unicase/totitle'.
50999         * modules/unicase/totitle: New file.
51000         * lib/unicase/totitle.c: New file.
51001
51002         New module 'unicase/tolower'.
51003         * modules/unicase/tolower: New file.
51004         * lib/unicase/tolower.c: New file.
51005
51006         New module 'unicase/toupper'.
51007         * modules/unicase/toupper: New file.
51008         * lib/unicase/toupper.c: New file.
51009         * lib/unicase/simple-mapping.h: New file.
51010
51011         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
51012         (mapping_table): New structure.
51013         (output_simple_mapping): New function.
51014         (main): Invoke output_simple_mapping_test and output_simple_mapping.
51015         * modules/gen-uni-tables (Description): Update.
51016         * lib/unicase/toupper.h: New file, automatically generated by
51017         gen-uni-tables.
51018         * lib/unicase/tolower.h: New file, automatically generated by
51019         gen-uni-tables.
51020         * lib/unicase/totitle.h: New file, automatically generated by
51021         gen-uni-tables.
51022         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
51023         gen-uni-tables.
51024         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
51025         gen-uni-tables.
51026         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
51027         gen-uni-tables.
51028
51029         New module 'unicase/base'.
51030         * modules/unicase/base: New file.
51031         * lib/unicase.h: New file.
51032
51033 2009-02-08  Bruno Haible  <bruno@clisp.org>
51034
51035         New module 'uniwbrk/ulc-wordbreaks'.
51036         * modules/uniwbrk/ulc-wordbreaks: New file.
51037         * lib/uniwbrk/ulc-wordbreaks.c: New file.
51038
51039         New module 'uniwbrk/u32-wordbreaks'.
51040         * modules/uniwbrk/u32-wordbreaks: New file.
51041         * lib/uniwbrk/u32-wordbreaks.c: New file.
51042
51043         New module 'uniwbrk/u16-wordbreaks'.
51044         * modules/uniwbrk/u16-wordbreaks: New file.
51045         * lib/uniwbrk/u16-wordbreaks.c: New file.
51046
51047         New module 'uniwbrk/u8-wordbreaks'.
51048         * modules/uniwbrk/u8-wordbreaks: New file.
51049         * lib/uniwbrk/u8-wordbreaks.c: New file.
51050         * lib/uniwbrk/u-wordbreaks.h: New file.
51051
51052         New module 'uniwbrk/table'.
51053         * modules/uniwbrk/table: New file.
51054         * lib/uniwbrk/wbrktable.h: New file.
51055         * lib/uniwbrk/wbrktable.c: New file.
51056
51057         New module 'uniwbrk/wordbreak-property'.
51058         * modules/uniwbrk/wordbreak-property: New file.
51059         * lib/uniwbrk/wordbreak-property.c: New file.
51060
51061         * lib/gen-uni-tables.c (WBP_*): New enum items.
51062         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
51063         (unicode_org_wbp): New variable.
51064         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
51065         New functions.
51066         (wbp_table): New structure.
51067         (output_wbp, output_wbrk_tables): New functions.
51068         (main): Accept additional argument. Invoke fill_org_wbp,
51069         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
51070         output_wbrk_tables.
51071         * modules/gen-uni-tables (Description): Update.
51072         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
51073         gen-uni-tables.
51074
51075         New module 'uniwbrk/base'.
51076         * modules/uniwbrk/base: New file.
51077         * lib/uniwbrk.h: New file.
51078
51079 2009-02-08  Bruno Haible  <bruno@clisp.org>
51080
51081         Update to Unicode 5.1.0.
51082         * lib/gen-uni-tables.c (is_property_alphabetic): Include
51083         U+2185..U+2188.
51084         (is_property_default_ignorable_code_point): Don't include characters
51085         of category Cc or Cs and not-a-characters.
51086         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
51087         U+0D79, U+109E, U+109F, U+A60C.
51088         * lib/unictype/bidi_of.h: Regenerated.
51089         * lib/unictype/blocks.h: Regenerated.
51090         * lib/unictype/categ_C.h: Regenerated.
51091         * lib/unictype/categ_Cf.h: Regenerated.
51092         * lib/unictype/categ_Cn.h: Regenerated.
51093         * lib/unictype/categ_L.h: Regenerated.
51094         * lib/unictype/categ_Ll.h: Regenerated.
51095         * lib/unictype/categ_Lm.h: Regenerated.
51096         * lib/unictype/categ_Lo.h: Regenerated.
51097         * lib/unictype/categ_Lu.h: Regenerated.
51098         * lib/unictype/categ_M.h: Regenerated.
51099         * lib/unictype/categ_Mc.h: Regenerated.
51100         * lib/unictype/categ_Me.h: Regenerated.
51101         * lib/unictype/categ_Mn.h: Regenerated.
51102         * lib/unictype/categ_N.h: Regenerated.
51103         * lib/unictype/categ_Nd.h: Regenerated.
51104         * lib/unictype/categ_Nl.h: Regenerated.
51105         * lib/unictype/categ_No.h: Regenerated.
51106         * lib/unictype/categ_P.h: Regenerated.
51107         * lib/unictype/categ_Pd.h: Regenerated.
51108         * lib/unictype/categ_Pe.h: Regenerated.
51109         * lib/unictype/categ_Pf.h: Regenerated.
51110         * lib/unictype/categ_Pi.h: Regenerated.
51111         * lib/unictype/categ_Po.h: Regenerated.
51112         * lib/unictype/categ_Ps.h: Regenerated.
51113         * lib/unictype/categ_S.h: Regenerated.
51114         * lib/unictype/categ_Sk.h: Regenerated.
51115         * lib/unictype/categ_Sm.h: Regenerated.
51116         * lib/unictype/categ_So.h: Regenerated.
51117         * lib/unictype/categ_of.h: Regenerated.
51118         * lib/unictype/combining.h: Regenerated.
51119         * lib/unictype/ctype_alnum.h: Regenerated.
51120         * lib/unictype/ctype_alpha.h: Regenerated.
51121         * lib/unictype/ctype_graph.h: Regenerated.
51122         * lib/unictype/ctype_lower.h: Regenerated.
51123         * lib/unictype/ctype_print.h: Regenerated.
51124         * lib/unictype/ctype_punct.h: Regenerated.
51125         * lib/unictype/ctype_upper.h: Regenerated.
51126         * lib/unictype/decdigit.h: Regenerated.
51127         * lib/unictype/digit.h: Regenerated.
51128         * lib/unictype/mirror.h: Regenerated.
51129         * lib/unictype/numeric.h: Regenerated.
51130         * lib/unictype/pr_alphabetic.h: Regenerated.
51131         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
51132         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
51133         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
51134         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
51135         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
51136         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
51137         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
51138         * lib/unictype/pr_combining.h: Regenerated.
51139         * lib/unictype/pr_dash.h: Regenerated.
51140         * lib/unictype/pr_decimal_digit.h: Regenerated.
51141         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
51142         * lib/unictype/pr_deprecated.h: Regenerated.
51143         * lib/unictype/pr_diacritic.h: Regenerated.
51144         * lib/unictype/pr_extender.h: Regenerated.
51145         * lib/unictype/pr_format_control.h: Regenerated.
51146         * lib/unictype/pr_grapheme_base.h: Regenerated.
51147         * lib/unictype/pr_grapheme_extend.h: Regenerated.
51148         * lib/unictype/pr_grapheme_link.h: Regenerated.
51149         * lib/unictype/pr_id_continue.h: Regenerated.
51150         * lib/unictype/pr_id_start.h: Regenerated.
51151         * lib/unictype/pr_ideographic.h: Regenerated.
51152         * lib/unictype/pr_ignorable_control.h: Regenerated.
51153         * lib/unictype/pr_lowercase.h: Regenerated.
51154         * lib/unictype/pr_math.h: Regenerated.
51155         * lib/unictype/pr_numeric.h: Regenerated.
51156         * lib/unictype/pr_other_alphabetic.h: Regenerated.
51157         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
51158         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
51159         * lib/unictype/pr_other_id_continue.h: Regenerated.
51160         * lib/unictype/pr_other_lowercase.h: Regenerated.
51161         * lib/unictype/pr_other_math.h: Regenerated.
51162         * lib/unictype/pr_punctuation.h: Regenerated.
51163         * lib/unictype/pr_sentence_terminal.h: Regenerated.
51164         * lib/unictype/pr_soft_dotted.h: Regenerated.
51165         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
51166         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
51167         * lib/unictype/pr_unified_ideograph.h: Regenerated.
51168         * lib/unictype/pr_uppercase.h: Regenerated.
51169         * lib/unictype/pr_xid_continue.h: Regenerated.
51170         * lib/unictype/pr_xid_start.h: Regenerated.
51171         * lib/unictype/pr_zero_width.h: Regenerated.
51172         * lib/unictype/scripts.h: Regenerated.
51173         * lib/unictype/scripts_byname.gperf: Regenerated.
51174         * lib/unictype/sy_java_ident.h: Regenerated.
51175         * lib/unilbrk/lbrkprop1.h: Regenerated.
51176         * lib/unilbrk/lbrkprop2.h: Regenerated.
51177         * tests/unictype/test-categ_C.c: Regenerated.
51178         * tests/unictype/test-categ_Cf.c: Regenerated.
51179         * tests/unictype/test-categ_Cn.c: Regenerated.
51180         * tests/unictype/test-categ_L.c: Regenerated.
51181         * tests/unictype/test-categ_Ll.c: Regenerated.
51182         * tests/unictype/test-categ_Lm.c: Regenerated.
51183         * tests/unictype/test-categ_Lo.c: Regenerated.
51184         * tests/unictype/test-categ_Lu.c: Regenerated.
51185         * tests/unictype/test-categ_M.c: Regenerated.
51186         * tests/unictype/test-categ_Mc.c: Regenerated.
51187         * tests/unictype/test-categ_Me.c: Regenerated.
51188         * tests/unictype/test-categ_Mn.c: Regenerated.
51189         * tests/unictype/test-categ_N.c: Regenerated.
51190         * tests/unictype/test-categ_Nd.c: Regenerated.
51191         * tests/unictype/test-categ_Nl.c: Regenerated.
51192         * tests/unictype/test-categ_No.c: Regenerated.
51193         * tests/unictype/test-categ_P.c: Regenerated.
51194         * tests/unictype/test-categ_Pd.c: Regenerated.
51195         * tests/unictype/test-categ_Pe.c: Regenerated.
51196         * tests/unictype/test-categ_Pf.c: Regenerated.
51197         * tests/unictype/test-categ_Pi.c: Regenerated.
51198         * tests/unictype/test-categ_Po.c: Regenerated.
51199         * tests/unictype/test-categ_Ps.c: Regenerated.
51200         * tests/unictype/test-categ_S.c: Regenerated.
51201         * tests/unictype/test-categ_Sk.c: Regenerated.
51202         * tests/unictype/test-categ_Sm.c: Regenerated.
51203         * tests/unictype/test-categ_So.c: Regenerated.
51204         * tests/unictype/test-ctype_alnum.c: Regenerated.
51205         * tests/unictype/test-ctype_alpha.c: Regenerated.
51206         * tests/unictype/test-ctype_graph.c: Regenerated.
51207         * tests/unictype/test-ctype_lower.c: Regenerated.
51208         * tests/unictype/test-ctype_print.c: Regenerated.
51209         * tests/unictype/test-ctype_punct.c: Regenerated.
51210         * tests/unictype/test-ctype_upper.c: Regenerated.
51211         * tests/unictype/test-decdigit.h: Regenerated.
51212         * tests/unictype/test-digit.h: Regenerated.
51213         * tests/unictype/test-numeric.h: Regenerated.
51214         * tests/unictype/test-pr_alphabetic.c: Regenerated.
51215         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
51216         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
51217         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
51218         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
51219         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
51220         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
51221         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
51222         * tests/unictype/test-pr_combining.c: Regenerated.
51223         * tests/unictype/test-pr_dash.c: Regenerated.
51224         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
51225         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
51226         * tests/unictype/test-pr_deprecated.c: Regenerated.
51227         * tests/unictype/test-pr_diacritic.c: Regenerated.
51228         * tests/unictype/test-pr_extender.c: Regenerated.
51229         * tests/unictype/test-pr_format_control.c: Regenerated.
51230         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
51231         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
51232         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
51233         * tests/unictype/test-pr_id_continue.c: Regenerated.
51234         * tests/unictype/test-pr_id_start.c: Regenerated.
51235         * tests/unictype/test-pr_ideographic.c: Regenerated.
51236         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
51237         * tests/unictype/test-pr_lowercase.c: Regenerated.
51238         * tests/unictype/test-pr_math.c: Regenerated.
51239         * tests/unictype/test-pr_numeric.c: Regenerated.
51240         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
51241         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
51242         Regenerated.
51243         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
51244         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
51245         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
51246         * tests/unictype/test-pr_other_math.c: Regenerated.
51247         * tests/unictype/test-pr_punctuation.c: Regenerated.
51248         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
51249         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
51250         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
51251         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
51252         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
51253         * tests/unictype/test-pr_uppercase.c: Regenerated.
51254         * tests/unictype/test-pr_xid_continue.c: Regenerated.
51255         * tests/unictype/test-pr_xid_start.c: Regenerated.
51256         * tests/unictype/test-pr_zero_width.c: Regenerated.
51257
51258         Update to Unicode 5.1.0.
51259         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
51260         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
51261         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
51262         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
51263         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
51264         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
51265         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
51266         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
51267         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
51268         (nonspacing_table_ind): Update.
51269         * tests/uniwidth/test-uc_width2.sh: Update expected result.
51270
51271         Update to Unicode 5.1.0.
51272         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
51273         code transform.
51274         * lib/uniname/uniname.c (unicode_character_name,
51275         unicode_name_character): Add the range 0x1Fxxx to the code transform.
51276         * lib/uniname/uninames.h: Regenerated.
51277         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
51278
51279 2009-02-07  Bruno Haible  <bruno@clisp.org>
51280
51281         Merge gen-ctype and gen-lbrk into a single program.
51282         * lib/gen-uni-tables.c: New file, incorporating
51283         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
51284         Add directory prefixes to the names of the generated files.
51285         * lib/unictype/gen-ctype.c: Remove file.
51286         * lib/unilbrk/gen-lbrk.c: Remove file.
51287         * modules/gen-uni-tables: New file.
51288         * modules/unictype/gen-ctype: Remove file.
51289         * modules/unilbrk/gen-lbrk: Remove file.
51290
51291 2009-02-07  Bruno Haible  <bruno@clisp.org>
51292
51293         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
51294
51295         New module 'unistr/u32-strcoll'.
51296         * modules/unistr/u32-strcoll: New file.
51297         * lib/unistr/u32-strcoll.c: New file.
51298
51299         New module 'unistr/u16-strcoll'.
51300         * modules/unistr/u16-strcoll: New file.
51301         * lib/unistr/u16-strcoll.c: New file.
51302
51303         New module 'unistr/u8-strcoll'.
51304         * modules/unistr/u8-strcoll: New file.
51305         * lib/unistr/u8-strcoll.c: New file.
51306         * lib/unistr/u-strcoll.h: New file.
51307
51308 2009-02-07  Bruno Haible  <bruno@clisp.org>
51309
51310         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
51311         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
51312         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
51313         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
51314         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
51315         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
51316
51317 2009-02-07  Bruno Haible  <bruno@clisp.org>
51318
51319         Make 64-bit clean.
51320         * lib/unictype/gen-ctype.c (output_predicate, output_category,
51321         output_combclass, output_bidi_category, output_decimal_digit,
51322         output_digit, output_numeric, output_mirror, output_scripts,
51323         output_ident_category): Use proper width specifier in format strings.
51324
51325 2009-02-07  Bruno Haible  <bruno@clisp.org>
51326
51327         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
51328         failure behaviour.
51329
51330 2009-02-07  Jim Meyering  <meyering@redhat.com>
51331
51332         regex: avoid compilation failure with upcoming gcc-4.4
51333         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
51334         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
51335         "... error: integer overflow in preprocessor expression".
51336
51337 2009-02-05  Ben Pfaff  <blp@gnu.org>
51338
51339         Fix link errors on Windows when close module is used.
51340         * modules/close: Add $(LIB_CLOSE) to Link section.
51341         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
51342         $(LIB_CLOSE) on Windows.
51343
51344 2009-02-05  Jim Meyering  <meyering@redhat.com>
51345
51346         still avoid unused-parameter warnings, but do it cleanly
51347         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
51348         (get_fs_usage): Cast to void instead.
51349         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
51350         (dev_from_mount_options, read_file_system_list): Cast to void.
51351         Prompted by Bruno Haible.
51352
51353 2009-02-04  Jim Meyering  <meyering@redhat.com>
51354
51355         fsusage.c: correct copyright year
51356         * lib/fsusage.c: Reflect year in which the change is pushed into
51357
51358         avoid misc. warnings
51359         * lib/fsusage.c (UNUSED_PARAM): Define.
51360         (get_fs_usage): Mark parameter "disk" as unused.
51361         * lib/getugroups.c (getgrent): Use "void" in prototype.
51362         * lib/mountlist.c: Mark unused parameters.
51363         (read_file_system_list): Declare a local with "const".
51364         * lib/nanosleep.c (getnow): Declare static.
51365         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
51366
51367         dirfd: set errno upon failure
51368         * lib/dirfd.c: Include <errno.h>.
51369         Set errno to ENOTSUP when returning -1.
51370         * modules/dirfd (Depends-on): Add errno.
51371         Suggested by John Kodis <kodis@comcast.net>.
51372
51373 2009-02-01  Bruno Haible  <bruno@clisp.org>
51374
51375         Don't assume sizeof (long) >= sizeof (void *).
51376         * lib/memcmp.c: Include stdint.h.
51377         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
51378         srcp2 to 'const byte *'.
51379         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
51380         types to uintptr_t.
51381         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
51382         * modules/memcmp (Depends-on): Add stdint.
51383         Reported by Ozkan Sezer <sezeroz@gmail.com>.
51384
51385 2009-01-30  Eric Blake  <ebb9@byu.net>
51386
51387         fix more require-before-expand issues
51388         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
51389         expand, AC_PROG_AWK.
51390         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
51391
51392 2009-01-28  Eric Blake  <ebb9@byu.net>
51393
51394         version-etc: use consistent URL formatting
51395         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
51396         Improve formatting.  Use fputs for string without %.
51397
51398 2009-01-28  Jim Meyering  <meyering@redhat.com>
51399
51400         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
51401         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
51402         "underquoted definition of NAME" from autoconf-2.59.
51403
51404 2009-01-28  Bruno Haible  <bruno@clisp.org>
51405
51406         * doc/gnulib.texi: Add "Obsolete modules" to index.
51407
51408 2009-01-28  Jim Meyering  <meyering@redhat.com>
51409
51410         useless-if-before-free: recognize more variants
51411         * build-aux/useless-if-before-free: Also recognize e.g.,
51412         if (NULL != p) free (p);
51413
51414 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
51415
51416         test-getaddrinfo: skip (don't fail) this test when there's no network
51417         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
51418         on the presumption that it means you lack network access.
51419
51420 2009-01-26  Jim Meyering  <meyering@redhat.com>
51421
51422         fflush: avoid warnings on modern systems
51423         * lib/fflush.c (rpl_fflush): Move declarations of locals,
51424         pos and result, into scopes where they're used.
51425
51426 2009-01-26  Eric Blake  <ebb9@byu.net>
51427
51428         Silence warning reintroduced by recent extensions patch.
51429         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
51430         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
51431         autoconf.
51432
51433         Backport improved autoconf semantics of AC_DEFUN_ONCE.
51434         * m4/00gnulib.m4: New file.
51435         * gnulib-tool (func_get_filelist): Always use it.
51436         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
51437         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
51438
51439 2009-01-25  Bruno Haible  <bruno@clisp.org>
51440
51441         Make test-quotearg work on MacOS X and AIX.
51442         * tests/test-quotearg.sh: New file.
51443         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
51444         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
51445         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
51446         include <libintl.h>.
51447         (fake_locale): Remove variable.
51448         (gettext, dgettext, dcgettext): Remove functions.
51449         (main): Instead of setting a fake locale, set a real locale. Call
51450         textdomain and bindtextdomain.
51451         * modules/quotearg-tests (Files): Add the new files.
51452         (Depends-on): Add gettext, setenv, unsetenv.
51453         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
51454         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
51455         Augment TESTS_ENVIRONMENT.
51456
51457 2009-01-25  Bruno Haible  <bruno@clisp.org>
51458
51459         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
51460         fr_FR.ISO8859-1 locale on MacOS X.
51461         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
51462         ja_JP.eucJP locale on MacOS X.
51463         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
51464         zh_CN.GB18030 locale on MacOS X.
51465
51466 2009-01-25  Bruno Haible  <bruno@clisp.org>
51467
51468         Avoid link errors on MacOS X 10.3.
51469         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
51470         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
51471
51472 2009-01-25  Bruno Haible  <bruno@clisp.org>
51473
51474         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
51475         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
51476         * modules/pipe (Files): Remove m4/posix_spawn.m4.
51477         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
51478         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
51479         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
51480         posix_spawnattr_init, posix_spawnattr_setsigmask,
51481         posix_spawnattr_setflags, posix_spawnattr_destroy.
51482
51483         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
51484         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
51485         * modules/execute (Files): Remove m4/posix_spawn.m4.
51486         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
51487         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
51488         posix_spawnattr_init, posix_spawnattr_setsigmask,
51489         posix_spawnattr_setflags, posix_spawnattr_destroy.
51490
51491 2009-01-25  Bruno Haible  <bruno@clisp.org>
51492
51493         * lib/glthread/threadlib.c: Include <stdlib.h>.
51494
51495 2009-01-25  Bruno Haible  <bruno@clisp.org>
51496
51497         * lib/glthread/threadlib.c (dummy): New declaration.
51498
51499 2009-01-25  Bruno Haible  <bruno@clisp.org>
51500
51501         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
51502         multibyte characters also for the GB18030 encoding. Don't crash when
51503         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
51504
51505 2009-01-25  Bruno Haible  <bruno@clisp.org>
51506
51507         Avoid redefining 'struct random_data' on OSF/1 5.1.
51508         * lib/stdlib.in.h: Include <random.h> if it exists.
51509         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
51510         HAVE_RANDOM_H. Include <random.h> when testing whether
51511         'struct random_data' exists.
51512         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
51513
51514 2009-01-25  Bruno Haible  <bruno@clisp.org>
51515
51516         Don't install charset.alias on MacOS X >= 10.3.
51517         * lib/localcharset.c (DARWIN7): New macro.
51518         (get_charset_aliases): Hardcode the result for Darwin7.
51519         * modules/localcharset (install-exec-local): Don't install
51520         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
51521
51522 2009-01-25  Bruno Haible  <bruno@clisp.org>
51523
51524         Don't install charset.alias on mingw and Cygwin.
51525         * modules/localcharset (install-exec-local): Don't install
51526         charset.alias on mingw and Cygwin, if the file does not yet exist.
51527         The result for these platforms is hardcoded in localcharset.c.
51528
51529 2009-01-25  Bruno Haible  <bruno@clisp.org>
51530
51531         Make it possible again to use AC_GNU_SOURCE together with gnulib.
51532         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
51533         before requiring AC_USE_SYSTEM_EXTENSIONS.
51534
51535 2009-01-25  Jim Meyering  <meyering@redhat.com>
51536
51537         c-strtod: avoid warnings
51538         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
51539         "assignment discards qualifiers from pointer target type" warnings.
51540
51541 2009-01-24  Bruno Haible  <bruno@clisp.org>
51542
51543         Add support for non-UTF-8 locales on MacOS X.
51544         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
51545         canonical encodings. For Darwin 7 and newer, don't map traditional
51546         encodings to UTF-8.
51547         Reported by Vincent Lefevre <vincent@vinc17.org>
51548         at <http://savannah.gnu.org/bugs/?25235>.
51549
51550 2009-01-24  Bruno Haible  <bruno@clisp.org>
51551
51552         * doc/gnulib.texi (Obsolete modules): New section.
51553         Reported by Mike Frysinger <vapier@gentoo.org>.
51554
51555 2009-01-24  Bruno Haible  <bruno@clisp.org>
51556
51557         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
51558         (%.dvi): New rule.
51559
51560 2009-01-24  Bruno Haible  <bruno@clisp.org>
51561
51562         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
51563         Reported by Eric Blake.
51564
51565 2009-01-24  Bruno Haible  <bruno@clisp.org>
51566
51567         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
51568         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
51569         Reported by Gary V. Vaughan <gary@gnu.org>.
51570
51571 2009-01-24  Bruno Haible  <bruno@clisp.org>
51572
51573         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
51574
51575 2009-01-23  Bruno Haible  <bruno@clisp.org>
51576
51577         Make c-strtod, c-strtold usable in libraries.
51578         * lib/c-strtod.c: Include string.h instead of xalloc.h.
51579         (C_STRTOD): Call strdup instead of xstrdup.
51580         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
51581         * modules/c-strtold (Depends-on): Likewise.
51582         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
51583         * NEWS: Mention the change.
51584         Reported by Michael Gold <mgold@ncf.ca>.
51585
51586 2009-01-23  Jim Meyering  <meyering@redhat.com>
51587
51588         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
51589         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
51590         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
51591
51592 2009-01-23  Simon Josefsson  <simon@josefsson.org>
51593
51594         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
51595         GNU CoreUtils.
51596         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
51597         * modules/version-etc (Description): Update.
51598
51599 2009-01-22  Bruno Haible  <bruno@clisp.org>
51600
51601         Cache the C locale object.
51602         * lib/c-strtod.c (c_locale_cache): New variable.
51603         (c_locale): New function.
51604         (C_STRTOD): Use it, and don't call freelocale.
51605         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
51606         Suggested by Paolo Bonzini.
51607
51608 2009-01-21  Bruno Haible  <bruno@clisp.org>
51609
51610         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
51611         conditions other than overflow.
51612
51613 2009-01-21  Bruno Haible  <bruno@clisp.org>
51614
51615         * lib/c-strtod.c: Include errno.h.
51616         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
51617         value from STRTOD_L and STRTOD.
51618
51619 2009-01-21  Bruno Haible  <bruno@clisp.org>
51620         and Jim Meyering  <meyering@redhat.com>
51621
51622         nanosleep: skip configure test (fail it) for apple universal builds
51623         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
51624         universal builds, assume that nanosleep does not work.
51625         * modules/nanosleep (Depends-on): Add multiarch.
51626
51627         mktime: skip configure test (fail it) for apple universal builds
51628         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
51629         universal builds, assume that mktime does not work.
51630         * modules/mktime (Depends-on): Add multiarch.
51631
51632 2009-01-21  Eric Blake  <ebb9@byu.net>
51633
51634         multiarch: avoid expand-before-require warning
51635         * modules/multiarch (configure.ac): Require, rather than expand,
51636         gl_MULTIARCH.
51637         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
51638         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
51639         enforce that all clients require it.  Partial reversion of
51640         2008-12-29 patch.
51641
51642         error: avoid expand-before-require warning
51643         * modules/errno (configure.ac): Require, rather than expand,
51644         gl_HEADER_ERRNO_H.
51645         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
51646         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
51647         enforce that all clients require it.
51648
51649         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
51650         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
51651         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
51652         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
51653
51654 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
51655
51656         Revert:
51657         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
51658
51659         regex: do not depend on obsolete modules.
51660         * modules/regex: Remove memcmp and memmove.
51661
51662 2009-01-20  Bruno Haible  <bruno@clisp.org>
51663
51664         Make the 'link' module link on Windows NT 4.
51665         * lib/link.c (_WIN32_WINNT): Don't define.
51666         (CreateHardLinkFuncType): New type.
51667         (CreateHardLinkFunc, initialized): New variables.
51668         (initialize): New function.
51669         (link): Invoke CreateHardLink indirectly through the function pointer.
51670
51671 2009-01-20  Bruno Haible  <bruno@clisp.org>
51672
51673         Fix compilation failure on mingw.
51674         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
51675
51676 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
51677
51678         * doc/c-strtod.texi: Mention a couple of restrictions.
51679
51680 2009-01-20  Jim Meyering  <meyering@redhat.com>
51681
51682         gettimeofday: move more declarations out of functions
51683         * lib/gettimeofday.c: Move extern declarations of tzset and
51684         gmtime out of containing functions.  Prompted by Bruno Haible.
51685
51686 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
51687
51688         regex: do not depend on obsolete modules.
51689         * modules/regex: Remove memcmp and memmove.
51690
51691 2009-01-19  Bruno Haible  <bruno@clisp.org>
51692
51693         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
51694         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
51695         gl_BIGENDIAN, not AC_C_BIGENDIAN.
51696         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
51697         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
51698
51699 2009-01-19  Bruno Haible  <bruno@clisp.org>
51700
51701         * tests/test-link.c: Include <errno.h>.
51702         (main): Exit with code 77 when a hard link cannot be created due to
51703         the file system.
51704         * tests/test-link.sh: Skip test when a hard link cannot be created due
51705         to the file system.
51706         Suggested by Eric Blake.
51707
51708 2009-01-19  Martin Lambers  <marlam@marlam.de>
51709
51710         * modules/link-tests: New file.
51711         * tests/test-link.sh: New file.
51712         * tests/test-link.c: New file.
51713
51714 2009-01-19  Eric Blake  <ebb9@byu.net>
51715
51716         doc: mention another function added in cygwin 1.7.0
51717         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
51718         Another new function in cygwin 1.7.
51719
51720 2009-01-19  Bruno Haible  <bruno@clisp.org>
51721
51722         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
51723         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
51724         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
51725         gl_BIGENDIAN, not AC_C_BIGENDIAN.
51726         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
51727         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
51728         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
51729         * m4/md4.m4 (gl_MD4): Likewise.
51730         * m4/md5.m4 (gl_MD5): Likewise.
51731         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
51732         * m4/sha1.m4 (gl_SHA1): Likewise.
51733         * m4/sha256.m4 (gl_SHA256): Likewise.
51734         * m4/sha512.m4 (gl_SHA512): Likewise.
51735
51736 2009-01-19  Bruno Haible  <bruno@clisp.org>
51737
51738         * modules/uniname/uniname-tests (Depends-on): Add progname.
51739         * tests/uniname/test-uninames.c: Include progname.h.
51740         (main): Call set_program_name.
51741
51742         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
51743         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
51744         (main): Call set_program_name.
51745
51746         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
51747         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
51748         (main): Call set_program_name.
51749
51750         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
51751         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
51752         (main): Call set_program_name.
51753
51754         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
51755         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
51756         (main): Call set_program_name.
51757
51758         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
51759         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
51760         (main): Call set_program_name.
51761
51762         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
51763         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
51764         (main): Call set_program_name.
51765
51766         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
51767         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
51768         (main): Call set_program_name.
51769
51770         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
51771         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
51772         (main): Call set_program_name.
51773
51774 2009-01-19  Eric Blake  <ebb9@byu.net>
51775
51776         test-unistd: test previous patch
51777         * tests/test-unistd.c: Test *_FILENO macros.
51778
51779         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
51780         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
51781         Guarantee a definition.
51782         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
51783         * modules/unistd-safer (Depends-on): Add dependency on unistd.
51784         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
51785         * lib/dup-safer.c (STDERR_FILENO): Likewise.
51786         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
51787         Likewise.
51788         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
51789         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
51790         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
51791         Likewise.
51792         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
51793         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
51794         (STDERR_FILENO): Likewise.
51795         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
51796         (STDERR_FILENO): Likewise.
51797         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
51798         (STDERR_FILENO): Likewise.
51799         Reported by Elbert Pol.
51800
51801 2009-01-19  Eric Blake  <ebb9@byu.net>
51802
51803         doc: mention more functions added in cygwin 1.7.0
51804         * doc/posix-functions/abort.texi (abort): Update wording related
51805         to cygwin.
51806         * doc/posix-functions/daylight.texi (daylight): Likewise.
51807         * doc/posix-functions/optarg.texi (optarg): Likewise.
51808         * doc/posix-functions/optarg.texi (opterr): Likewise.
51809         * doc/posix-functions/optarg.texi (optind): Likewise.
51810         * doc/posix-functions/optarg.texi (optopt): Likewise.
51811         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
51812         worked in 1.5.x, and was withdrawn in 1.7.
51813         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
51814         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
51815         cygwin versions.
51816         * doc/posix-functions/perror.texi (perror): Likewise.
51817         * doc/posix-functions/printf.texi (printf): Likewise.
51818         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
51819         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
51820         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
51821         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
51822         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
51823         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
51824         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
51825         Likewise.
51826         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
51827         Likewise.
51828         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
51829         this function.
51830         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
51831         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
51832         Likewise.
51833         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
51834         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
51835         * doc/posix-functions/confstr.texi (confstr): Likewise.
51836         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
51837         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
51838         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
51839         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
51840         * doc/posix-functions/fputws.texi (fputws): Likewise.
51841         * doc/posix-functions/fwide.texi (fwide): Likewise.
51842         * doc/posix-functions/getwc.texi (getwc): Likewise.
51843         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
51844         * doc/posix-functions/putwc.texi (putwc): Likewise.
51845         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
51846         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
51847         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
51848         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
51849         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
51850         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
51851         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
51852         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
51853         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
51854         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
51855         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
51856
51857 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
51858
51859         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
51860         * lib/ioctl.c: Include <sys/ioctl.h>.
51861
51862 2009-01-19  Simon Josefsson  <simon@josefsson.org>
51863
51864         * modules/getdate-tests (Depends-on): Add progname.
51865         * tests/test-getdate.c: Use progname module, to avoid link errors
51866         on non-glibc systems.
51867
51868 2009-01-18  Simon Josefsson  <simon@josefsson.org>
51869
51870         * modules/filenamecat-tests (Depends-on): Add progname.
51871         * modules/fstrcmp-tests (Depends-on): Likewise.
51872
51873         * tests/test-filenamecat.c: Use progname module, to avoid link
51874         errors on non-glibc systems.
51875         * tests/test-fstrcmp.c: Likewise.
51876
51877 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
51878
51879         gettimeofday: avoid warning: nested extern declaration of 'localtime'
51880         * lib/gettimeofday.c: Move extern declaration out of function.
51881
51882 2009-01-18  Bruno Haible  <bruno@clisp.org>
51883
51884         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
51885         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
51886         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
51887
51888 2009-01-18  Bruno Haible  <bruno@clisp.org>
51889
51890         * lib/strftime.c (MEMPCPY): Remove unused macro.
51891         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
51892
51893 2009-01-18  Martin Lambers  <marlam@marlam.de>
51894
51895         New module 'link'.
51896         * lib/unistd.in.h (link): New declaration.
51897         * lib/link.c: New file.
51898         * m4/link.m4: New file.
51899         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
51900         HAVE_LINK.
51901         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
51902         * modules/link: New file.
51903         * doc/posix-functions/link.texi: Mention the new module.
51904
51905 2009-01-18  Bruno Haible  <bruno@clisp.org>
51906
51907         * tests/test-avltree_list.c (main): Call set_program_name.
51908         * tests/test-avltree_oset.c (main): Likewise.
51909         * tests/test-obstack-printf.c: Include progname.h.
51910         (main): Call set_program_name.
51911         * tests/test-quotearg.c: Include progname.h.
51912         (main): Call set_program_name.
51913         * tests/test-xmemdup0.c: Include progname.h.
51914         (main): Call set_program_name.
51915
51916 2009-01-18  Bruno Haible  <bruno@clisp.org>
51917
51918         New module 'alphasort'.
51919         * lib/dirent.in.h (alphasort): New declaration.
51920         * lib/alphasort.c: New file, from glibc with modifications.
51921         * m4/alphasort.m4: New file.
51922         * modules/alphasort: New file.
51923         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
51924         HAVE_ALPHASORT.
51925         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
51926         HAVE_ALPHASORT.
51927         * doc/posix-functions/alphasort.texi: Mention the new module and the
51928         portability problems.
51929
51930 2009-01-18  Bruno Haible  <bruno@clisp.org>
51931
51932         New module 'scandir'.
51933         * lib/dirent.in.h (scandir): New declaration.
51934         * lib/scandir.c: New file, from glibc with modifications.
51935         * m4/scandir.m4: New file.
51936         * modules/scandir: New file.
51937         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
51938         HAVE_SCANDIR.
51939         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
51940         HAVE_SCANDIR.
51941         * doc/posix-functions/scandir.texi: Mention the new module and the
51942         portability problems.
51943
51944 2009-01-17  Bruno Haible  <bruno@clisp.org>
51945
51946         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
51947         Update documentation.
51948         (func_remove_suffix): Escape all dots in the suffix. Update
51949         documentation.
51950         (func_filter_filelist): Update documentation.
51951         Reported by Ralf Wildenhues.
51952
51953 2009-01-17  Bruno Haible  <bruno@clisp.org>
51954
51955         * modules/dprintf-posix-tests: New file.
51956         * tests/test-dprintf-posix.sh: New file.
51957         * tests/test-dprintf-posix.c: New file.
51958
51959         New modules 'dprintf', 'dprintf-posix'.
51960         * lib/stdio.in.h (dprintf): New declaration.
51961         * lib/dprintf.c: New file.
51962         * m4/dprintf.m4: New file.
51963         * m4/dprintf-posix.m4: New file.
51964         * modules/dprintf: New file.
51965         * modules/dprintf-posix: New file.
51966         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
51967         HAVE_DPRINTF, REPLACE_DPRINTF.
51968         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
51969         HAVE_DPRINTF, REPLACE_DPRINTF.
51970         * doc/posix-functions/dprintf.texi: Mention the new modules.
51971
51972 2009-01-17  Bruno Haible  <bruno@clisp.org>
51973
51974         * modules/vdprintf-posix-tests: New file.
51975         * tests/test-vdprintf-posix.sh: New file.
51976         * tests/test-vdprintf-posix.c: New file.
51977
51978         New modules 'vdprintf', 'vdprintf-posix'.
51979         * lib/stdio.in.h (vdprintf): New declaration.
51980         * lib/vdprintf.c: New file.
51981         * m4/vdprintf.m4: New file.
51982         * m4/vdprintf-posix.m4: New file.
51983         * modules/vdprintf: New file.
51984         * modules/vdprintf-posix: New file.
51985         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
51986         HAVE_VDPRINTF, REPLACE_VDPRINTF.
51987         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
51988         HAVE_VDPRINTF, REPLACE_VDPRINTF.
51989         * doc/posix-functions/vdprintf.texi: Mention the new modules.
51990
51991 2009-01-17  Bruno Haible  <bruno@clisp.org>
51992
51993         Fix replacement of fopen on mingw.
51994         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
51995         mingw.
51996
51997 2009-01-17  Bruno Haible  <bruno@clisp.org>
51998
51999         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
52000         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
52001
52002 2009-01-17  Bruno Haible  <bruno@clisp.org>
52003
52004         Avoid test-fflush2.sh failure on mingw.
52005         * tests/test-fflush2.c: Include binary-io.h.
52006         (main): Put standard input into binary mode.
52007         * modules/fflush-tests (Depends-on): Add binary-io.
52008
52009 2009-01-17  Bruno Haible  <bruno@clisp.org>
52010
52011         * lib/wchar.in.h: In another particular situation, include only the
52012         system's <wchar.h> file.
52013         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
52014         Reported by Albert Chin-A-Young <china@thewrittenword.com>
52015         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
52016
52017 2009-01-17  Bruno Haible  <bruno@clisp.org>
52018
52019         Support for stripping executables in --enable-relocatable.
52020         * build-aux/install-reloc: Expect one more argument, or an environment
52021         variable RELOC_STRIP_PROG. If set, strip the destination program and
52022         its wrapper.
52023         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
52024         RELOC_STRIP_PROG.
52025         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
52026         to set RELOCATABLE_STRIP.
52027         * NEWS: Mention the new Makefile requirement.
52028
52029 2009-01-17  Bruno Haible  <bruno@clisp.org>
52030
52031         * build-aux/install-reloc: Remove debugging information left over by
52032         C compiler on MacOS X.
52033
52034 2009-01-17  Bruno Haible  <bruno@clisp.org>
52035
52036         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
52037         * lib/progreloc.c (find_executable): Fix type of pointer passed to
52038         _NSGetExecutablePath.
52039
52040 2009-01-16  Jim Meyering  <meyering@redhat.com>
52041
52042         strerror: avoid warnings about discarding "const"
52043         * lib/strerror.c (rpl_strerror): Instead of returning a const
52044         string from each and every "case", use a variable, and add a single
52045         cast after the switch.
52046
52047 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
52048
52049         * lib/arpa_inet.in.h: Add extern "C" block for C++.
52050
52051 2009-01-16  Bruno Haible  <bruno@clisp.org>
52052
52053         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
52054         array initializer syntax that also works in C++ mode.
52055         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
52056
52057 2009-01-16  Jim Meyering  <meyering@redhat.com>
52058
52059         poll: suppress a warning
52060         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
52061         to ignore "...unsigned expression < 0 is always false" warnings.
52062
52063 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
52064
52065         poll: remove declarations of unused variables
52066         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
52067         sockbuf and optlen.
52068
52069 2009-01-15  Bruno Haible  <bruno@clisp.org>
52070
52071         Make fflush-after-ungetc POSIX compliant on BSD systems.
52072         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
52073         (clear_ungetc_buffer): Implement also for other systems.
52074         (rpl_fflush): On glibc systems, invoke
52075         clear_ungetc_buffer_preserving_position. Otherwise, invoke
52076         clear_ungetc_buffer after fetching the stream's position, not before.
52077
52078 2009-01-15  Bruno Haible  <bruno@clisp.org>
52079
52080         Make fflush-after-ungetc POSIX compliant on glibc systems.
52081         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
52082         after ungetc.
52083         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
52084         (rpl_fflush): On glibc systems, simply call the system's fflush
52085         function after clearing the ungetc buffer.
52086         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
52087         Instead, lseek only to the end of file, then use the system's fseeko
52088         for the rest. On glibc systems, reset the EOF indicator bit.
52089
52090 2009-01-15  Jim Meyering  <meyering@redhat.com>
52091
52092         openmp.m4: revert quote-adding change, for portability to older autoconf
52093         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
52094         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
52095         Simon Josefsson noticed the problem when using autoconf-2.61.
52096
52097 2009-01-15  Bruno Haible  <bruno@clisp.org>
52098
52099         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
52100         * tests/test-fflush2.c (ASSERT): Always fail.
52101         (main): Add two tests for fflush() after ungetc(), taking into account
52102         the Austin Group's clarification.
52103         Suggested by Eric Blake.
52104
52105 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
52106
52107         mktime.m4: remove K&R-style function prototypes
52108         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
52109         for the Sun C++ compiler.
52110
52111 2009-01-14  Bruno Haible  <bruno@clisp.org>
52112
52113         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
52114         while including <wchar.h>.
52115         * lib/wchar.in.h: In two particular situations on HP-UX, include only
52116         the system's <wchar.h> file.
52117         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
52118
52119 2009-01-14  Bruno Haible  <bruno@clisp.org>
52120
52121         * m4/csharp.m4: Don't mention gettext on the serial number line.
52122         * m4/csharpexec.m4: Likewise.
52123         * m4/eaccess.m4: Likewise.
52124         * m4/javaexec.m4: Likewise.
52125         * m4/sig_atomic_t.m4: Likewise.
52126         * m4/tmpdir.m4: Likewise.
52127         * m4/intldir.m4: Bump gettext version.
52128         * m4/lib-ld.m4: Likewise.
52129
52130 2009-01-14  Bruno Haible  <bruno@clisp.org>
52131
52132         * lib/progname.c (set_program_name): Add more comments.
52133         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
52134
52135 2009-01-14  Simon Josefsson  <simon@josefsson.org>
52136
52137         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
52138         were sys/stat.h does not define it.
52139
52140 2009-01-14  Jim Meyering  <meyering@redhat.com>
52141
52142         many *.m4 files: improve m4 quoting
52143         99% of this change was performed by running the following commands:
52144         git ls-files | grep '\.m4$' | xargs perl -pi \
52145           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
52146           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
52147           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
52148           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
52149         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
52150         The remainder were to add Copyright dates, increment serial numbers,
52151         undo some changes in comments, exclude m4/intl.m4, and add quotes
52152         around the "1" in ",1" where the unusual spacing prohibited the
52153         above regexps from doing the job.  For more details, see
52154         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
52155         * m4/acl.m4: Modified.
52156         * m4/afs.m4: Likewise.
52157         * m4/alloca.m4: Likewise.
52158         * m4/argp.m4: Likewise.
52159         * m4/argz.m4: Likewise.
52160         * m4/atexit.m4: Likewise.
52161         * m4/bison-i18n.m4: Likewise.
52162         * m4/bison.m4: Likewise.
52163         * m4/byteswap.m4: Likewise.
52164         * m4/c-stack.m4: Likewise.
52165         * m4/c-strtod.m4: Likewise.
52166         * m4/calloc.m4: Likewise.
52167         * m4/canonicalize-lgpl.m4: Likewise.
52168         * m4/chown.m4: Likewise.
52169         * m4/clock_time.m4: Likewise.
52170         * m4/codeset.m4: Likewise.
52171         * m4/copy-file.m4: Likewise.
52172         * m4/csharp.m4: Likewise.
52173         * m4/csharpcomp.m4: Likewise.
52174         * m4/csharpexec.m4: Likewise.
52175         * m4/d-ino.m4: Likewise.
52176         * m4/d-type.m4: Likewise.
52177         * m4/dirfd.m4: Likewise.
52178         * m4/double-slash-root.m4: Likewise.
52179         * m4/eaccess.m4: Likewise.
52180         * m4/eealloc.m4: Likewise.
52181         * m4/environ.m4: Likewise.
52182         * m4/errno_h.m4: Likewise.
52183         * m4/euidaccess.m4: Likewise.
52184         * m4/execute.m4: Likewise.
52185         * m4/fatal-signal.m4: Likewise.
52186         * m4/fchdir.m4: Likewise.
52187         * m4/fcntl_h.m4: Likewise.
52188         * m4/fileblocks.m4: Likewise.
52189         * m4/filenamecat.m4: Likewise.
52190         * m4/findprog.m4: Likewise.
52191         * m4/flexmember.m4: Likewise.
52192         * m4/fnmatch.m4: Likewise.
52193         * m4/fopen.m4: Likewise.
52194         * m4/fpending.m4: Likewise.
52195         * m4/fprintf-posix.m4: Likewise.
52196         * m4/free.m4: Likewise.
52197         * m4/frexp.m4: Likewise.
52198         * m4/frexpl.m4: Likewise.
52199         * m4/fsusage.m4: Likewise.
52200         * m4/ftruncate.m4: Likewise.
52201         * m4/gc-camellia.m4: Likewise.
52202         * m4/gc-random.m4: Likewise.
52203         * m4/gc.m4: Likewise.
52204         * m4/getaddrinfo.m4: Likewise.
52205         * m4/getcwd-abort-bug.m4: Likewise.
52206         * m4/getcwd-path-max.m4: Likewise.
52207         * m4/getdate.m4: Likewise.
52208         * m4/getdomainname.m4: Likewise.
52209         * m4/getgroups.m4: Likewise.
52210         * m4/gethostname.m4: Likewise.
52211         * m4/gethrxtime.m4: Likewise.
52212         * m4/getline.m4: Likewise.
52213         * m4/getloadavg.m4: Likewise.
52214         * m4/getndelim2.m4: Likewise.
52215         * m4/getpass.m4: Likewise.
52216         * m4/gettext.m4: Likewise.
52217         * m4/gettime.m4: Likewise.
52218         * m4/gettimeofday.m4: Likewise.
52219         * m4/gnulib-common.m4: Likewise.
52220         * m4/group-member.m4: Likewise.
52221         * m4/host-os.m4: Likewise.
52222         * m4/iconv.m4: Likewise.
52223         * m4/iconv_open.m4: Likewise.
52224         * m4/inet_ntop.m4: Likewise.
52225         * m4/inet_pton.m4: Likewise.
52226         * m4/inline.m4: Likewise.
52227         * m4/intldir.m4: Likewise.
52228         * m4/intlmacosx.m4: Likewise.
52229         * m4/intmax.m4: Likewise.
52230         * m4/intmax_t.m4: Likewise.
52231         * m4/inttypes.m4: Likewise.
52232         * m4/inttypes_h.m4: Likewise.
52233         * m4/inttypes-pri.m4: Likewise.
52234         * m4/isapipe.m4: Likewise.
52235         * m4/isnand.m4: Likewise.
52236         * m4/isnanf.m4: Likewise.
52237         * m4/isnanl.m4: Likewise.
52238         * m4/javacomp.m4: Likewise.
52239         * m4/javaexec.m4: Likewise.
52240         * m4/jm-winsz1.m4: Likewise.
52241         * m4/jm-winsz2.m4: Likewise.
52242         * m4/lchown.m4: Likewise.
52243         * m4/lcmessage.m4: Likewise.
52244         * m4/ldexpl.m4: Likewise.
52245         * m4/lib-ld.m4: Likewise.
52246         * m4/lib-link.m4: Likewise.
52247         * m4/libsigsegv.m4: Likewise.
52248         * m4/link-follow.m4: Likewise.
52249         * m4/localcharset.m4: Likewise.
52250         * m4/locale-fr.m4: Likewise.
52251         * m4/locale-ja.m4: Likewise.
52252         * m4/locale-tr.m4: Likewise.
52253         * m4/locale-zh.m4: Likewise.
52254         * m4/lock.m4: Likewise.
52255         * m4/longlong.m4: Likewise.
52256         * m4/ls-mntd-fs.m4: Likewise.
52257         * m4/lstat.m4: Likewise.
52258         * m4/malloc.m4: Likewise.
52259         * m4/mathl.m4: Likewise.
52260         * m4/mbrtowc.m4: Likewise.
52261         * m4/mbstate_t.m4: Likewise.
52262         * m4/mbswidth.m4: Likewise.
52263         * m4/memchr.m4: Likewise.
52264         * m4/memcmp.m4: Likewise.
52265         * m4/memcpy.m4: Likewise.
52266         * m4/memmem.m4: Likewise.
52267         * m4/memmove.m4: Likewise.
52268         * m4/mempcpy.m4: Likewise.
52269         * m4/memrchr.m4: Likewise.
52270         * m4/memset.m4: Likewise.
52271         * m4/minmax.m4: Likewise.
52272         * m4/mkdir-slash.m4: Likewise.
52273         * m4/mkdtemp.m4: Likewise.
52274         * m4/mktime.m4: Likewise.
52275         * m4/mmap-anon.m4: Likewise.
52276         * m4/mountlist.m4: Likewise.
52277         * m4/nanosleep.m4: Likewise.
52278         * m4/nls.m4: Likewise.
52279         * m4/nocrash.m4: Likewise.
52280         * m4/open.m4: Likewise.
52281         * m4/openat.m4: Likewise.
52282         * m4/openmp.m4: Likewise.
52283         * m4/pathmax.m4: Likewise.
52284         * m4/perl.m4: Likewise.
52285         * m4/physmem.m4: Likewise.
52286         * m4/pipe.m4: Likewise.
52287         * m4/po.m4: Likewise.
52288         * m4/poll.m4: Likewise.
52289         * m4/posixtm.m4: Likewise.
52290         * m4/posixver.m4: Likewise.
52291         * m4/printf-frexp.m4: Likewise.
52292         * m4/printf-frexpl.m4: Likewise.
52293         * m4/printf-posix.m4: Likewise.
52294         * m4/printf-posix-rpl.m4: Likewise.
52295         * m4/printf.m4: Likewise.
52296         * m4/progtest.m4: Likewise.
52297         * m4/putenv.m4: Likewise.
52298         * m4/readline.m4: Likewise.
52299         * m4/readlink.m4: Likewise.
52300         * m4/readutmp.m4: Likewise.
52301         * m4/realloc.m4: Likewise.
52302         * m4/regex.m4: Likewise.
52303         * m4/relocatable.m4: Likewise.
52304         * m4/relocatable-lib.m4: Likewise.
52305         * m4/rename-dest-slash.m4: Likewise.
52306         * m4/rename.m4: Likewise.
52307         * m4/rmdir-errno.m4: Likewise.
52308         * m4/rmdir.m4: Likewise.
52309         * m4/roundf.m4: Likewise.
52310         * m4/roundl.m4: Likewise.
52311         * m4/rpmatch.m4: Likewise.
52312         * m4/save-cwd.m4: Likewise.
52313         * m4/selinux-selinux-h.m4: Likewise.
52314         * m4/setenv.m4: Likewise.
52315         * m4/settime.m4: Likewise.
52316         * m4/sig2str.m4: Likewise.
52317         * m4/sig_atomic_t.m4: Likewise.
52318         * m4/signalblocking.m4: Likewise.
52319         * m4/signbit.m4: Likewise.
52320         * m4/sigpipe.m4: Likewise.
52321         * m4/sockets.m4: Likewise.
52322         * m4/sockpfaf.m4: Likewise.
52323         * m4/st_dm_mode.m4: Likewise.
52324         * m4/stat-time.m4: Likewise.
52325         * m4/stdbool.m4: Likewise.
52326         * m4/stdint.m4: Likewise.
52327         * m4/stdint_h.m4: Likewise.
52328         * m4/stpcpy.m4: Likewise.
52329         * m4/stpncpy.m4: Likewise.
52330         * m4/strcase.m4: Likewise.
52331         * m4/strchrnul.m4: Likewise.
52332         * m4/strcspn.m4: Likewise.
52333         * m4/strdup.m4: Likewise.
52334         * m4/strftime.m4: Likewise.
52335         * m4/strndup.m4: Likewise.
52336         * m4/strnlen.m4: Likewise.
52337         * m4/strpbrk.m4: Likewise.
52338         * m4/strptime.m4: Likewise.
52339         * m4/strsep.m4: Likewise.
52340         * m4/strtod.m4: Likewise.
52341         * m4/strtoimax.m4: Likewise.
52342         * m4/strtok_r.m4: Likewise.
52343         * m4/strtol.m4: Likewise.
52344         * m4/strtoll.m4: Likewise.
52345         * m4/strtoul.m4: Likewise.
52346         * m4/strtoull.m4: Likewise.
52347         * m4/strtoumax.m4: Likewise.
52348         * m4/strverscmp.m4: Likewise.
52349         * m4/threadlib.m4: Likewise.
52350         * m4/timegm.m4: Likewise.
52351         * m4/tm_gmtoff.m4: Likewise.
52352         * m4/tmpdir.m4: Likewise.
52353         * m4/tmpfile.m4: Likewise.
52354         * m4/tzset.m4: Likewise.
52355         * m4/uintmax_t.m4: Likewise.
52356         * m4/unlinkdir.m4: Likewise.
52357         * m4/unlocked-io.m4: Likewise.
52358         * m4/uptime.m4: Likewise.
52359         * m4/userspec.m4: Likewise.
52360         * m4/utimbuf.m4: Likewise.
52361         * m4/utime.m4: Likewise.
52362         * m4/utimes-null.m4: Likewise.
52363         * m4/utimes.m4: Likewise.
52364         * m4/vararrays.m4: Likewise.
52365         * m4/vasnprintf.m4: Likewise.
52366         * m4/vfprintf-posix.m4: Likewise.
52367         * m4/vprintf-posix.m4: Likewise.
52368         * m4/wait-process.m4: Likewise.
52369         * m4/wchar_t.m4: Likewise.
52370         * m4/wint_t.m4: Likewise.
52371         * m4/write-any-file.m4: Likewise.
52372         * m4/yield.m4: Likewise.
52373
52374 2009-01-13  Bruno Haible  <bruno@clisp.org>
52375
52376         Avoid test-copy-file.sh failures when ACL support insufficient.
52377         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
52378         TESTS_ENVIRONMENT.
52379         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
52380         Reported by Jim Meyering.
52381
52382 2009-01-13  Bruno Haible  <bruno@clisp.org>
52383
52384         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
52385         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
52386         * modules/unistdio/u8-printf-parse (Files): Likewise.
52387         * modules/unistdio/u32-printf-parse (Files): Likewise.
52388         * modules/unistdio/ulc-printf-parse (Files): Likewise.
52389
52390 2009-01-13  Simon Josefsson  <simon@josefsson.org>
52391
52392         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
52393         and m4/inttypes_h.m4 too.
52394
52395 2009-01-12  Eric Blake  <ebb9@byu.net>
52396
52397         tests: IRIX 6.2 cc can't compile -0.0 into .data
52398         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
52399         rather than at compile-time.
52400         * tests/test-floorl.c (minus_zero): Likewise.
52401         * tests/test-frexpl.c (minus_zero): Likewise.
52402         * tests/test-isnan.c (minus_zerol): Likewise.
52403         * tests/test-isnanl.h (minus_zero): Likewise.
52404         * tests/test-ldexpl.c (minus_zero): Likewise.
52405         * tests/test-roundl.c (minus_zero): Likewise.
52406         * tests/test-signbit.c (minus_zerol): Likewise.
52407         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
52408         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
52409         * tests/test-truncl.c (minus_zero): Likewise.
52410         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
52411         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
52412         Reported by Tom G. Christensen and Nelson H. F. Beebe.
52413
52414 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
52415
52416         regex: fix glibc bug 9697
52417         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
52418         handling.
52419
52420 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
52421
52422         regex: fix glibc bug 697
52423         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
52424         being NULL also if there are no backreferences.
52425
52426 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
52427
52428         regex: merge glibc changes
52429         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
52430         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
52431         re_string_skip_chars, re_string_reconstruct): Likewise.
52432         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
52433
52434 2009-01-07  Jim Meyering  <meyering@redhat.com>
52435
52436         poll: filter through cppi
52437         * lib/poll.c: Indent cpp directives to reflect nesting.
52438
52439 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
52440
52441         poll: don't return uninitialized
52442         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
52443
52444 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
52445
52446         avoid compile failure on AIX 6.1
52447         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
52448         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
52449
52450 2009-01-04  Jim Meyering  <meyering@redhat.com>
52451
52452         remove duplicate inclusion of <stdio.h>
52453         * tests/test-fprintf-posix.c: Likewise.
52454         * tests/test-printf-posix.c: Likewise.
52455         * tests/test-snprintf-posix.c: Likewise.
52456         * tests/test-sprintf-posix.c: Likewise.
52457         * tests/test-vasprintf-posix.c: Likewise.
52458         * tests/test-vfprintf-posix.c: Likewise.
52459         * tests/test-vprintf-posix.c: Likewise.
52460         * tests/test-vsnprintf-posix.c: Likewise.
52461         * tests/test-vsprintf-posix.c: Likewise.
52462
52463 2009-01-03  Jim Meyering  <meyering@redhat.com>
52464
52465         gnulib-tool: fix sed-based filtering
52466         * gnulib-tool (func_filter_filelist): Remove extra backslash
52467         in sed_fff_filter definition.
52468
52469 2009-01-02  Jim Meyering  <meyering@redhat.com>
52470
52471         strftime: avoid compilation failure on Solaris 2.6
52472         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
52473         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
52474         Don't #define mbrlen or mbsinit, since now they're guaranteed to
52475         be available.  Reported by Tom G. Christensen.  Details in
52476         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
52477
52478 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52479             Bruno Haible  <bruno@clisp.org>
52480
52481         Speed up gnulib-tool by doing more string processing through shell
52482         built-ins.
52483         * gnulib-tool (fast_func_append): New variable.
52484         (func_remove_prefix, func_remove_suffix): New functions.
52485         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
52486         (func_filter_filelist): New function.
52487         (func_get_dependencies): Use func_remove_suffix instead of sed.
52488         (func_get_automake_snippet): Use func_filter_filelist instead of a
52489         subshell and sed invocation.
52490
52491 2009-01-01  Bruno Haible  <bruno@clisp.org>
52492
52493         Fix a security bug.
52494         * gnulib-tool (func_import, import, update): Don't allow the characters
52495         '"', '$', '`', '\' in macro arguments that become part of commands that
52496         are evaluated.
52497
52498 2009-01-01  Bruno Haible  <bruno@clisp.org>
52499
52500         * gnulib-tool (func_reset_sigpipe): Add more comments.
52501
52502 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52503
52504         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
52505         func_emit_tests_Makefile_am, func_import): Abort loops early if we
52506         already know the answer.
52507
52508 2009-01-01  Jim Meyering  <meyering@redhat.com>
52509
52510         * lib/version-etc.c (version_etc_va): Update copyright year.
52511
52512 2008-12-30  Bruno Haible  <bruno@clisp.org>
52513
52514         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
52515         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
52516         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
52517
52518 2008-12-29  Eric Blake  <ebb9@byu.net>
52519
52520         multiarch: avoid autoconf AC_REQUIRE bug
52521         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
52522         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
52523         2.63 and older.
52524         Reported by Bruno Haible, and analyzed in
52525         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
52526
52527 2008-12-29  Bruno Haible  <bruno@clisp.org>
52528
52529         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
52530         files in subdirectories correctly.
52531         Reported by Ralf Wildenhues.
52532
52533 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52534
52535         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
52536         rather than 'join FILE -', for Solaris join.
52537
52538 2008-12-29  Bruno Haible  <bruno@clisp.org>
52539
52540         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
52541         quoting.
52542         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
52543         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
52544         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
52545         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
52546         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
52547         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
52548         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
52549         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
52550         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
52551         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
52552         * m4/nls.m4 (AM_NLS): Likewise.
52553         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
52554         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
52555         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
52556         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
52557         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
52558         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
52559         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
52560         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
52561         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
52562         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
52563         * m4/xsize.m4 (gl_XSIZE): Likewise.
52564         Suggested by Jim Meyering.
52565
52566 2008-11-17  Bruce Korb  <bkorb@gnu.org>
52567
52568         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
52569         * lib/parse-duration.c: use a switch instead of cascading if's.
52570
52571 2008-12-29  Eric Blake  <ebb9@byu.net>
52572
52573         wchar.h: supply WEOF on Irix 5.3
52574         * lib/wchar.in.h (wint_t): Also supply WEOF.
52575         * lib/wctype.in.h (wint_t): Likewise.
52576         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
52577         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
52578         Reported by Tom G. Christensen.
52579
52580 2008-12-26  Bruno Haible  <bruno@clisp.org>
52581
52582         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
52583         i486, i586, i686.
52584
52585 2008-12-26  Bruno Haible  <bruno@clisp.org>
52586
52587         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
52588
52589 2008-12-26  Bruno Haible  <bruno@clisp.org>
52590
52591         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
52592         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
52593         not __STDC_CONSTANT_MACROS.
52594         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
52595
52596 2008-12-25  Bruno Haible  <bruno@clisp.org>
52597
52598         Add support for universal builds to vasnprintf.
52599         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
52600         universal builds, guess no.
52601         * modules/vasnprintf-posix (Depends-on): Add multiarch.
52602         * modules/vasprintf-posix (Depends-on): Likewise.
52603         * modules/fprintf-posix (Depends-on): Likewise.
52604         * modules/vfprintf-posix (Depends-on): Likewise.
52605         * modules/snprintf-posix (Depends-on): Likewise.
52606         * modules/vsnprintf-posix (Depends-on): Likewise.
52607         * modules/sprintf-posix (Depends-on): Likewise.
52608         * modules/vsprintf-posix (Depends-on): Likewise.
52609         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
52610         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
52611         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
52612         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
52613         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
52614         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
52615         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
52616
52617         Add support for universal builds to <inttypes.h>.
52618         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
52619         _SCNu64_PREFIX): In Apple
52620         universal builds, define directly, using _LP64.
52621         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
52622         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
52623         * modules/inttypes (Depends-on): Add multiarch.
52624         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
52625
52626         Add support for universal builds to <stdint.h>.
52627         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
52628         universal builds, define directly, using _LP64.
52629         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
52630         Apple universal builds, don't test for the size and suffix of ptrdiff_t
52631         and size_t.
52632         * modules/stdint (Depends-on): Add multiarch.
52633         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
52634
52635         New module 'multiarch'.
52636         * modules/multiarch: New file.
52637         * m4/multiarch.m4: New file.
52638
52639 2008-12-25  Bruno Haible  <bruno@clisp.org>
52640
52641         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
52642
52643 2008-12-25  Bruno Haible  <bruno@clisp.org>
52644
52645         * modules/btowc (License): Relicense under LGPLv2+.
52646         * modules/mbsinit (License): Likewise.
52647         * modules/mbrtowc (License): Likewise.
52648         * modules/wcrtomb (License): Likewise.
52649         * modules/streq (License): Likewise.
52650         Reported by David Lutterkort <lutter@redhat.com>.
52651
52652 2008-12-23  Bruno Haible  <bruno@clisp.org>
52653
52654         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
52655
52656 2008-12-23  Bruno Haible  <bruno@clisp.org>
52657
52658         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
52659         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
52660         GETADDRINFO_LIB, not in LIBS.
52661         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
52662         * modules/canon-host (Link): Likewise.
52663         * NEWS: Mention the change.
52664         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
52665         GETADDRINFO_LIB.
52666
52667 2008-12-22  Bruno Haible  <bruno@clisp.org>
52668
52669         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
52670         * doc/posix-functions/iswalpha_l.texi: Likewise.
52671         * doc/posix-functions/iswblank_l.texi: Likewise.
52672         * doc/posix-functions/iswcntrl_l.texi: Likewise.
52673         * doc/posix-functions/iswctype_l.texi: Likewise.
52674         * doc/posix-functions/iswdigit_l.texi: Likewise.
52675         * doc/posix-functions/iswgraph_l.texi: Likewise.
52676         * doc/posix-functions/iswlower_l.texi: Likewise.
52677         * doc/posix-functions/iswprint_l.texi: Likewise.
52678         * doc/posix-functions/iswpunct_l.texi: Likewise.
52679         * doc/posix-functions/iswspace_l.texi: Likewise.
52680         * doc/posix-functions/iswupper_l.texi: Likewise.
52681         * doc/posix-functions/iswxdigit_l.texi: Likewise.
52682         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
52683         * doc/posix-functions/open_wmemstream.texi: Likewise.
52684         * doc/posix-functions/swscanf.texi: Likewise.
52685         * doc/posix-functions/towctrans_l.texi: Likewise.
52686         * doc/posix-functions/towlower.texi: Likewise.
52687         * doc/posix-functions/towlower_l.texi: Likewise.
52688         * doc/posix-functions/towupper.texi: Likewise.
52689         * doc/posix-functions/towupper_l.texi: Likewise.
52690         * doc/posix-functions/vfwprintf.texi: Likewise.
52691         * doc/posix-functions/vfwscanf.texi: Likewise.
52692         * doc/posix-functions/vswscanf.texi: Likewise.
52693         * doc/posix-functions/vwprintf.texi: Likewise.
52694         * doc/posix-functions/vwscanf.texi: Likewise.
52695         * doc/posix-functions/wcpcpy.texi: Likewise.
52696         * doc/posix-functions/wcpncpy.texi: Likewise.
52697         * doc/posix-functions/wcscasecmp.texi: Likewise.
52698         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
52699         * doc/posix-functions/wcscoll_l.texi: Likewise.
52700         * doc/posix-functions/wcsdup.texi: Likewise.
52701         * doc/posix-functions/wcsncasecmp.texi: Likewise.
52702         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
52703         * doc/posix-functions/wcsnlen.texi: Likewise.
52704         * doc/posix-functions/wcsnrtombs.texi: Likewise.
52705         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
52706         * doc/posix-functions/wctrans_l.texi: Likewise.
52707         * doc/posix-functions/wctype_l.texi: Likewise.
52708         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
52709         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
52710         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
52711         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
52712         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
52713         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
52714         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
52715         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
52716         * doc/glibc-functions/wcschrnul.texi: Likewise.
52717         * doc/glibc-functions/wcsftime_l.texi: Likewise.
52718         * doc/glibc-functions/wcstod_l.texi: Likewise.
52719         * doc/glibc-functions/wcstof_l.texi: Likewise.
52720         * doc/glibc-functions/wcstol_l.texi: Likewise.
52721         * doc/glibc-functions/wcstold_l.texi: Likewise.
52722         * doc/glibc-functions/wcstoll_l.texi: Likewise.
52723         * doc/glibc-functions/wcstoq.texi: Likewise.
52724         * doc/glibc-functions/wcstoul_l.texi: Likewise.
52725         * doc/glibc-functions/wcstoull_l.texi: Likewise.
52726         * doc/glibc-functions/wcstouq.texi: Likewise.
52727         * doc/glibc-functions/wmempcpy.texi: Likewise.
52728
52729 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
52730             Eric Blake  <ebb9@byu.net>
52731             Paolo Bonzini  <bonzini@gnu.org>
52732             Bruno Haible  <bruno@clisp.org>
52733
52734         Make c-stack work on Haiku.
52735         * lib/c-stack.c (SA_ONSTACK): Define fallback.
52736         (c_stack_action): Use SA_ONSTACK flag.
52737
52738 2008-12-22  Bruno Haible  <bruno@clisp.org>
52739
52740         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
52741
52742 2008-12-22  Bruno Haible  <bruno@clisp.org>
52743
52744         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
52745         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
52746         being overridden.
52747         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
52748         New macros.
52749         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
52750         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
52751         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
52752         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
52753
52754 2008-12-22  Bruno Haible  <bruno@clisp.org>
52755
52756         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
52757         from test code.
52758
52759 2008-12-22  Eric Blake  <ebb9@byu.net>
52760
52761         Avoid gcc warnings on cygwin.
52762         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
52763         Avoid unused variable.
52764         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
52765         Likewise.
52766
52767 2008-12-22  Bruno Haible  <bruno@clisp.org>
52768
52769         Remove HAVE_MBRTOWC conditionals.
52770         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
52771         (mbscasecmp): Assume mbrtowc function.
52772         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
52773         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
52774         * lib/mbschr.c: Include mbuiter.h unconditionally.
52775         (mbschr): Assume mbrtowc function.
52776         * lib/mbscspn.c: Include mbuiter.h unconditionally.
52777         (mbscspn): Assume mbrtowc function.
52778         * lib/mbslen.c: Include mbuiter.h unconditionally.
52779         (mbslen): Assume mbrtowc function.
52780         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
52781         (mbsncasecmp): Assume mbrtowc function.
52782         * lib/mbsnlen.c: Include mbiter.h unconditionally.
52783         (mbsnlen): Assume mbrtowc function.
52784         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
52785         (mbspbrk): Assume mbrtowc function.
52786         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
52787         (mbspcasecmp): Assume mbrtowc function.
52788         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
52789         (mbsrchr): Assume mbrtowc function.
52790         * lib/mbssep.c: Include mbuiter.h unconditionally.
52791         (mbssep): Assume mbrtowc function.
52792         * lib/mbsspn.c: Include mbuiter.h unconditionally.
52793         (mbsspn): Assume mbrtowc function.
52794         * lib/mbsstr.c: Include mbuiter.h unconditionally.
52795         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
52796         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
52797         (mbstok_r): Assume mbrtowc function.
52798         * lib/propername.c: Include mbuiter.h unconditionally.
52799         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
52800         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
52801         (trim2): Assume mbrtowc function.
52802         * lib/mbswidth.c (mbsinit): Remove fallback definition.
52803         (mbsnwidth): Assume mbrtowc function.
52804         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
52805         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
52806         fallback definitions.
52807         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
52808
52809 2008-12-22  Bruno Haible  <bruno@clisp.org>
52810
52811         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
52812
52813 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
52814
52815         * modules/regex: Request emulations for the mb*/wc* functions we need.
52816         * m4/regex.m4: Don't look for those functions here.
52817         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
52818
52819 2008-12-22  Bruno Haible  <bruno@clisp.org>
52820
52821         * modules/fnmatch (Depends-on): Remove duplicated dependency.
52822
52823 2008-12-21  Bruno Haible  <bruno@clisp.org>
52824
52825         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
52826         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
52827         (Include): Remove conditionalization.
52828         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
52829         (Include): Remove conditionalization.
52830         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
52831         (Include): Remove conditionalization.
52832         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
52833         * m4/mbfile.m4 (gl_MBFILE): Likewise.
52834         * NEWS: Mention the change.
52835         Reported by Alan Hourihane <alanh@fairlite.co.uk>
52836         via Sergey Poznyakoff <gray@gnu.org.ua>.
52837
52838 2008-12-21  Bruno Haible  <bruno@clisp.org>
52839
52840         * MODULES.html.sh (Extended multibyte and wide character utilities
52841         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
52842         wcrtomb, wcsrtombs.
52843         (Support for systems lacking POSIX:2008): Add accept, bind, close,
52844         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
52845         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
52846         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
52847
52848 2008-12-21  Bruno Haible  <bruno@clisp.org>
52849
52850         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
52851
52852 2008-12-21  Bruno Haible  <bruno@clisp.org>
52853
52854         * modules/wcsnrtombs-tests: New file.
52855         * tests/test-wcsnrtombs1.sh: New file.
52856         * tests/test-wcsnrtombs2.sh: New file.
52857         * tests/test-wcsnrtombs3.sh: New file.
52858         * tests/test-wcsnrtombs4.sh: New file.
52859         * tests/test-wcsnrtombs.c: New file.
52860
52861         New module 'wcsnrtombs'.
52862         * lib/wchar.in.h (wcsnrtombs): New declaration.
52863         * lib/wcsnrtombs.c: New file.
52864         * lib/wcsrtombs-state.c: New file.
52865         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
52866         (internal_state): Remove variable.
52867         * m4/wcsnrtombs.m4: New file.
52868         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
52869         compilation units.
52870         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
52871         HAVE_WCSNRTOMBS.
52872         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
52873         HAVE_WCSNRTOMBS.
52874         * modules/wcsnrtombs: New file.
52875         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
52876         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
52877
52878 2008-12-21  Bruno Haible  <bruno@clisp.org>
52879
52880         * modules/wcsrtombs-tests: New file.
52881         * tests/test-wcsrtombs1.sh: New file.
52882         * tests/test-wcsrtombs2.sh: New file.
52883         * tests/test-wcsrtombs3.sh: New file.
52884         * tests/test-wcsrtombs4.sh: New file.
52885         * tests/test-wcsrtombs.c: New file.
52886
52887         New module 'wcsrtombs'.
52888         * lib/wchar.in.h (wcsrtombs): New declaration.
52889         * lib/wcsrtombs.c: New file.
52890         * m4/wcsrtombs.m4: New file.
52891         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
52892         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
52893         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
52894         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
52895         * modules/wcsrtombs: New file.
52896         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
52897         bugs.
52898
52899 2008-12-21  Bruno Haible  <bruno@clisp.org>
52900
52901         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
52902         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
52903         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
52904         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
52905         if not correct.
52906         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
52907         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
52908         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
52909         m4/locale-zh.m4, m4/codeset.m4.
52910         * doc/posix-functions/wcrtomb.texi: Document the bug.
52911
52912 2008-12-21  Bruno Haible  <bruno@clisp.org>
52913
52914         Work around a btowc() bug on IRIX 6.5.
52915         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
52916         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
52917         REPLACE_WTOBC if not.
52918         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
52919         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
52920         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
52921
52922 2008-12-21  Bruno Haible  <bruno@clisp.org>
52923
52924         * modules/wcrtomb-tests: New file.
52925         * tests/test-wcrtomb.sh: New file.
52926         * tests/test-wcrtomb.c: New file.
52927
52928         New module 'wcrtomb'.
52929         * lib/wchar.in.h (wcrtomb): New declaration.
52930         * lib/wcrtomb.c: New file.
52931         * m4/wcrtomb.m4: New file.
52932         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
52933         HAVE_WCRTOMB.
52934         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
52935         HAVE_WCRTOMB.
52936         * modules/wcrtomb: New file.
52937         * doc/posix-functions/wcrtomb.texi: Mention the new module.
52938
52939 2008-12-21  Bruno Haible  <bruno@clisp.org>
52940
52941         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
52942         * modules/mbsrtowcs (Files): Likewise.
52943         * modules/wctob (Files): Likewise.
52944         * modules/c-strcase-tests (Files): Likewise.
52945         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
52946         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
52947         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
52948         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
52949         * modules/vasnprintf-posix-tests (Files): Likewise.
52950
52951 2008-12-21  William Pursell  <bill.pursell@gmail.com>
52952
52953         gitlog-to-changelog: pass all command-line arguments to git-log
52954         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
52955         it is sometimes convenient to filter the commits in various ways.
52956         gitlog-to-changelog only allows --since to specify a start date,
52957         but git-log itself supports many other filtering mechanisms.
52958         At the moment, I want to filter by branch name.  Rather than
52959         adding a --branch option to gitlog-to-changelog, it seems more
52960         flexible to simply pass all options directly to git-log and let
52961         git do the work.  Notice that this effectively makes --since a
52962         redundant option for gitlog-to-changelog, but removing it would
52963         require current usage to change since calls would then require
52964         an additional '--'.
52965
52966 2008-12-21  Bruno Haible  <bruno@clisp.org>
52967
52968         * modules/mbsnrtowcs-tests: New file.
52969         * tests/test-mbsnrtowcs1.sh: New file.
52970         * tests/test-mbsnrtowcs2.sh: New file.
52971         * tests/test-mbsnrtowcs3.sh: New file.
52972         * tests/test-mbsnrtowcs4.sh: New file.
52973         * tests/test-mbsnrtowcs.c: New file.
52974
52975         New module 'mbsnrtowcs'.
52976         * lib/wchar.in.h (mbsnrtowcs): New declaration.
52977         * lib/mbsnrtowcs.c: New file.
52978         * lib/mbsrtowcs-state.c: New file.
52979         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
52980         (internal_state): Remove variable.
52981         * m4/mbsnrtowcs.m4: New file.
52982         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
52983         compilation units.
52984         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
52985         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
52986         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
52987         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
52988         * modules/mbsnrtowcs: New file.
52989         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
52990         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
52991         portability problem.
52992
52993 2008-12-21  Bruno Haible  <bruno@clisp.org>
52994
52995         Work around mbsrtowcs bug.
52996         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
52997         (gl_FUNC_MBSRTOWCS): Invoke it.
52998         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
52999         m4/locale-zh.m4.
53000         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
53001
53002 2008-12-21  Bruno Haible  <bruno@clisp.org>
53003
53004         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
53005
53006 2008-12-21  Bruno Haible  <bruno@clisp.org>
53007
53008         Update doc for AIX.
53009         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
53010         16-bit wchar_t type.
53011         * doc/posix-functions/btowc.texi: Likewise.
53012         * doc/posix-functions/fgetwc.texi: Likewise.
53013         * doc/posix-functions/fgetws.texi: Likewise.
53014         * doc/posix-functions/fputwc.texi: Likewise.
53015         * doc/posix-functions/fputws.texi: Likewise.
53016         * doc/posix-functions/fwide.texi: Likewise.
53017         * doc/posix-functions/fwprintf.texi: Likewise.
53018         * doc/posix-functions/fwscanf.texi: Likewise.
53019         * doc/posix-functions/getwchar.texi: Likewise.
53020         * doc/posix-functions/getwc.texi: Likewise.
53021         * doc/posix-functions/iswalnum.texi: Likewise.
53022         * doc/posix-functions/iswalpha.texi: Likewise.
53023         * doc/posix-functions/iswblank.texi: Likewise.
53024         * doc/posix-functions/iswcntrl.texi: Likewise.
53025         * doc/posix-functions/iswctype.texi: Likewise.
53026         * doc/posix-functions/iswdigit.texi: Likewise.
53027         * doc/posix-functions/iswgraph.texi: Likewise.
53028         * doc/posix-functions/iswlower.texi: Likewise.
53029         * doc/posix-functions/iswprint.texi: Likewise.
53030         * doc/posix-functions/iswpunct.texi: Likewise.
53031         * doc/posix-functions/iswspace.texi: Likewise.
53032         * doc/posix-functions/iswupper.texi: Likewise.
53033         * doc/posix-functions/iswxdigit.texi: Likewise.
53034         * doc/posix-functions/mbrtowc.texi: Likewise.
53035         * doc/posix-functions/mbsrtowcs.texi: Likewise.
53036         * doc/posix-functions/mbstowcs.texi: Likewise.
53037         * doc/posix-functions/mbtowc.texi: Likewise.
53038         * doc/posix-functions/putwchar.texi: Likewise.
53039         * doc/posix-functions/putwc.texi: Likewise.
53040         * doc/posix-functions/swprintf.texi: Likewise.
53041         * doc/posix-functions/tolower.texi: Likewise.
53042         * doc/posix-functions/toupper.texi: Likewise.
53043         * doc/posix-functions/towctrans.texi: Likewise.
53044         * doc/posix-functions/ungetwc.texi: Likewise.
53045         * doc/posix-functions/vswprintf.texi: Likewise.
53046         * doc/posix-functions/wcrtomb.texi: Likewise.
53047         * doc/posix-functions/wcscat.texi: Likewise.
53048         * doc/posix-functions/wcschr.texi: Likewise.
53049         * doc/posix-functions/wcscmp.texi: Likewise.
53050         * doc/posix-functions/wcscoll.texi: Likewise.
53051         * doc/posix-functions/wcscpy.texi: Likewise.
53052         * doc/posix-functions/wcscspn.texi: Likewise.
53053         * doc/posix-functions/wcsftime.texi: Likewise.
53054         * doc/posix-functions/wcslen.texi: Likewise.
53055         * doc/posix-functions/wcsncat.texi: Likewise.
53056         * doc/posix-functions/wcsncmp.texi: Likewise.
53057         * doc/posix-functions/wcsncpy.texi: Likewise.
53058         * doc/posix-functions/wcspbrk.texi: Likewise.
53059         * doc/posix-functions/wcsrchr.texi: Likewise.
53060         * doc/posix-functions/wcsrtombs.texi: Likewise.
53061         * doc/posix-functions/wcsspn.texi: Likewise.
53062         * doc/posix-functions/wcsstr.texi: Likewise.
53063         * doc/posix-functions/wcstod.texi: Likewise.
53064         * doc/posix-functions/wcstof.texi: Likewise.
53065         * doc/posix-functions/wcstoimax.texi: Likewise.
53066         * doc/posix-functions/wcstok.texi: Likewise.
53067         * doc/posix-functions/wcstold.texi: Likewise.
53068         * doc/posix-functions/wcstoll.texi: Likewise.
53069         * doc/posix-functions/wcstol.texi: Likewise.
53070         * doc/posix-functions/wcstombs.texi: Likewise.
53071         * doc/posix-functions/wcstoull.texi: Likewise.
53072         * doc/posix-functions/wcstoul.texi: Likewise.
53073         * doc/posix-functions/wcstoumax.texi: Likewise.
53074         * doc/posix-functions/wcswidth.texi: Likewise.
53075         * doc/posix-functions/wcsxfrm.texi: Likewise.
53076         * doc/posix-functions/wctob.texi: Likewise.
53077         * doc/posix-functions/wctomb.texi: Likewise.
53078         * doc/posix-functions/wctrans.texi: Likewise.
53079         * doc/posix-functions/wctype.texi: Likewise.
53080         * doc/posix-functions/wcwidth.texi: Likewise.
53081         * doc/posix-functions/wmemchr.texi: Likewise.
53082         * doc/posix-functions/wmemcmp.texi: Likewise.
53083         * doc/posix-functions/wmemcpy.texi: Likewise.
53084         * doc/posix-functions/wmemmove.texi: Likewise.
53085         * doc/posix-functions/wmemset.texi: Likewise.
53086         * doc/posix-functions/wprintf.texi: Likewise.
53087         * doc/posix-functions/wscanf.texi: Likewise.
53088
53089 2008-12-21  Bruno Haible  <bruno@clisp.org>
53090
53091         Update doc for HP-UX 11.11.
53092         * doc/posix-functions/btowc.texi: Clarify that the function is missing
53093         in HP-UX version 11.00, not in all versions of HP-UX 11.
53094         * doc/posix-functions/fwide.texi: Likewise.
53095         * doc/posix-functions/fwprintf.texi: Likewise.
53096         * doc/posix-functions/fwscanf.texi: Likewise.
53097         * doc/posix-functions/inet_ntop.texi: Likewise.
53098         * doc/posix-functions/inet_pton.texi: Likewise.
53099         * doc/posix-functions/mbrlen.texi: Likewise.
53100         * doc/posix-functions/mbrtowc.texi: Likewise.
53101         * doc/posix-functions/mbsinit.texi: Likewise.
53102         * doc/posix-functions/mbsrtowcs.texi: Likewise.
53103         * doc/posix-functions/swprintf.texi: Likewise.
53104         * doc/posix-functions/swscanf.texi: Likewise.
53105         * doc/posix-functions/towctrans.texi: Likewise.
53106         * doc/posix-functions/vfwprintf.texi: Likewise.
53107         * doc/posix-functions/vswprintf.texi: Likewise.
53108         * doc/posix-functions/vwprintf.texi: Likewise.
53109         * doc/posix-functions/wcrtomb.texi: Likewise.
53110         * doc/posix-functions/wcsrtombs.texi: Likewise.
53111         * doc/posix-functions/wcsstr.texi: Likewise.
53112         * doc/posix-functions/wctob.texi: Likewise.
53113         * doc/posix-functions/wctrans.texi: Likewise.
53114         * doc/posix-functions/wmemchr.texi: Likewise.
53115         * doc/posix-functions/wmemcmp.texi: Likewise.
53116         * doc/posix-functions/wmemcpy.texi: Likewise.
53117         * doc/posix-functions/wmemmove.texi: Likewise.
53118         * doc/posix-functions/wmemset.texi: Likewise.
53119         * doc/posix-functions/wprintf.texi: Likewise.
53120         * doc/posix-functions/wscanf.texi: Likewise.
53121
53122 2008-12-21  Bruno Haible  <bruno@clisp.org>
53123
53124         Work around a portability problem.
53125         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
53126         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
53127
53128 2008-12-20  Bruno Haible  <bruno@clisp.org>
53129
53130         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
53131         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
53132         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
53133         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
53134         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
53135
53136         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
53137         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
53138         set.
53139         (GNULIB_defined_mbstate_t): New macro.
53140         (mbsinit): Redefine if REPLACE_MBSINIT is set.
53141         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
53142         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
53143         reuses the system's mbrtowc function but works around the bugs.
53144         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
53145         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
53146         macros.
53147         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
53148         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
53149         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
53150         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
53151         REPLACE_MBSINIT if mbsinit needs to be overridden.
53152         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
53153         REPLACE_MBSINIT, REPLACE_MBRTOWC.
53154         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
53155         REPLACE_MBSINIT, REPLACE_MBRTOWC.
53156         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
53157         m4/locale-zh.m4.
53158         (Depends): Add mbsinit.
53159         * modules/mbsinit (Depends): Add mbrtowc.
53160         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
53161
53162 2008-12-20  Bruno Haible  <bruno@clisp.org>
53163
53164         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
53165         so that there are no conversion errors on AIX.
53166         * tests/test-mbsrtowcs.c (main): LIkewise.
53167
53168 2008-12-20  Bruno Haible  <bruno@clisp.org>
53169
53170         Work around wctob bug on Solaris <= 9.
53171         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
53172         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
53173         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
53174         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
53175         * modules/wctob (Files): Add m4/locale-fr.m4.
53176         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
53177
53178 2008-12-20  Bruno Haible  <bruno@clisp.org>
53179
53180         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
53181         /dev/null.
53182         * tests/test-select-in.sh: Likewise.
53183         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
53184
53185 2008-12-20  Bruno Haible  <bruno@clisp.org>
53186
53187         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
53188         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
53189         Cygwin 1.5.x.
53190
53191 2008-12-20  Bruno Haible  <bruno@clisp.org>
53192
53193         Ensure mbstate_t is defined on HP-UX 11.11.
53194         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
53195         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
53196         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
53197         AC_USE_SYSTEM_EXTENSIONS.
53198         * modules/fnmatch (Depends-on): Add extensions.
53199         * modules/mbrlen (Depends-on): Likewise.
53200         * modules/mbrtowc (Depends-on): Likewise.
53201         * modules/mbsinit (Depends-on): Likewise.
53202         * modules/mbsrtowcs (Depends-on): Likewise.
53203         * modules/mbswidth (Depends-on): Likewise.
53204         * modules/quotearg (Depends-on): Likewise.
53205         * modules/strftime (Depends-on): Likewise.
53206
53207 2008-12-20  Bruno Haible  <bruno@clisp.org>
53208
53209         Ensure wctob is declared on IRIX 6.5.
53210         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
53211         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
53212         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
53213         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
53214         of HAVE_WCTOB.
53215         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
53216         HAVE_WCTOB.
53217         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
53218
53219 2008-12-19  Bruno Haible  <bruno@clisp.org>
53220
53221         * modules/mbsrtowcs-tests: New file.
53222         * tests/test-mbsrtowcs1.sh: New file.
53223         * tests/test-mbsrtowcs2.sh: New file.
53224         * tests/test-mbsrtowcs3.sh: New file.
53225         * tests/test-mbsrtowcs4.sh: New file.
53226         * tests/test-mbsrtowcs.c: New file.
53227
53228         New module 'mbsrtowcs'.
53229         * lib/wchar.in.h (mbsrtowcs): New declaration.
53230         * lib/mbsrtowcs.c: New file.
53231         * m4/mbsrtowcs.m4: New file.
53232         * modules/mbsrtowcs: New file.
53233         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
53234         HAVE_MBSRTOWCS.
53235         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
53236         HAVE_MBSRTOWCS.
53237         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
53238
53239 2008-12-19  Bruno Haible  <bruno@clisp.org>
53240
53241         New module 'mbrlen'.
53242         * lib/wchar.in.h (mbrlen): New declaration.
53243         * lib/mbrlen.c: New file.
53244         * m4/mbrlen.m4: New file.
53245         * modules/mbrlen: New file.
53246         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
53247         HAVE_MBRLEN.
53248         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
53249         HAVE_MBRLEN.
53250         * doc/posix-functions/mbrlen.texi: Document the new module.
53251
53252 2008-12-19  Bruno Haible  <bruno@clisp.org>
53253
53254         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
53255         * modules/mbrtowc (Depends-on): Add verify.
53256         Suggested by Paul Eggert.
53257
53258 2008-12-18  Bruno Haible  <bruno@clisp.org>
53259
53260         * modules/mbsinit-tests: New file.
53261         * tests/test-mbsinit.sh: New file.
53262         * tests/test-mbsinit.c: New file.
53263
53264 2008-12-18  Bruno Haible  <bruno@clisp.org>
53265
53266         * modules/mbrtowc-tests: New file.
53267         * tests/test-mbrtowc1.sh: New file.
53268         * tests/test-mbrtowc2.sh: New file.
53269         * tests/test-mbrtowc3.sh: New file.
53270         * tests/test-mbrtowc4.sh: New file.
53271         * tests/test-mbrtowc.c: New file.
53272
53273         New module 'mbrtowc'.
53274         * lib/wchar.in.h (mbstate_t): Override when the system does not have
53275         mbsinit and mbrtowc.
53276         (mbrtowc): New declaration.
53277         * lib/mbrtowc.c: New file.
53278         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
53279         * modules/mbrtowc: New file.
53280         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
53281         HAVE_MBRTOWC.
53282         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
53283         HAVE_MBRTOWC.
53284         * doc/posix-functions/mbrtowc.texi: Document the new module.
53285
53286 2008-12-18  Bruno Haible  <bruno@clisp.org>
53287
53288         New module 'wctob'.
53289         * lib/wchar.in.h (wctob): New declaration.
53290         * lib/wctob.c: New file.
53291         * m4/wctob.m4: New file.
53292         * modules/wctob: New file.
53293         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
53294         HAVE_WCTOB.
53295         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
53296         * doc/posix-functions/wctob.texi: Document the new module.
53297
53298 2008-12-18  Bruno Haible  <bruno@clisp.org>
53299
53300         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
53301         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
53302
53303 2008-12-18  Simon Josefsson  <simon@josefsson.org>
53304
53305         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
53306         G. Christensen" <tgc@jupiterrise.com>.
53307
53308         * lib/flock.c: Need to include errno.h.  Reported by "Tom
53309         G. Christensen" <tgc@jupiterrise.com>.
53310
53311         * lib/flock.c: Need to include string.h.  Reported by "Tom
53312         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
53313         <ebb9@byu.net>.
53314
53315 2008-12-18  Bruno Haible  <bruno@clisp.org>
53316
53317         * m4/locale-ja.m4: New file, from GNU gettext.
53318
53319 2008-12-17  Bruno Haible  <bruno@clisp.org>
53320
53321         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
53322         Suggested by Eric Blake.
53323
53324 2008-12-17  Bruno Haible  <bruno@clisp.org>
53325
53326         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
53327
53328 2008-12-17  Bruno Haible  <bruno@clisp.org>
53329
53330         * lib/mbsinit.c: Include verify.h. Verify an assumption.
53331         * modules/mbsinit (Depends-on): Add verify.
53332         Suggested by Paul Eggert.
53333
53334 2008-12-17  Bruno Haible  <bruno@clisp.org>
53335
53336         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
53337         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
53338         gl_FUNC_MBRTOWC.
53339         * m4/mbiter.m4 (gl_MBITER): LIkewise.
53340         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
53341         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
53342         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
53343         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
53344         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
53345         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
53346         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
53347         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
53348         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
53349         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
53350         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
53351         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
53352         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
53353         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
53354         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
53355         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
53356         * modules/trim (configure.ac): Likewise.
53357
53358 2008-12-17  Bruno Haible  <bruno@clisp.org>
53359
53360         * modules/btowc-tests: New file.
53361         * tests/test-btowc1.sh: New file.
53362         * tests/test-btowc2.sh: New file.
53363         * tests/test-btowc.c: New file.
53364
53365         New module 'btowc'.
53366         * lib/wchar.in.h (btowc): New declaration.
53367         * lib/btowc.c: New file.
53368         * m4/btowc.m4: New file.
53369         * modules/btowc: New file.
53370         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
53371         HAVE_BTOWC.
53372         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
53373         * doc/posix-functions/btowc.texi: Document the new module.
53374
53375 2008-12-17  Bruno Haible  <bruno@clisp.org>
53376
53377         New module 'mbsinit'.
53378         * lib/wchar.in.h (mbsinit): New declaration.
53379         * lib/mbsinit.c: New file.
53380         * m4/mbsinit.m4: New file.
53381         * modules/mbsinit: New file.
53382         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
53383         HAVE_MBSINIT.
53384         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
53385         HAVE_MBSINIT.
53386         * doc/posix-functions/mbsinit.texi: Document the new module.
53387
53388 2008-12-16  Bruno Haible  <bruno@clisp.org>
53389
53390         * lib/unistd.in.h: Add comment.
53391         * tests/test-environ.c: Don't include <stdlib.h>.
53392
53393 2008-12-16  Bruno Haible  <bruno@clisp.org>
53394
53395         * lib/parse-duration.h (parse_duration): Document return value
53396         convention.
53397         * lib/parse-duration.c: Include specification header first. Add
53398         comments.
53399         (_): Remove macro.
53400         (parse_year_month_day, parse_hour_minute_second): Move side effects
53401         outside of strchr call.
53402         (parse_non_iso8601): Move side effects outside of isspace call.
53403         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
53404         call.
53405
53406 2008-12-16  Bruno Haible  <bruno@clisp.org>
53407
53408         * tests/test-parse-duration.sh: Produce no output when the test
53409         succeeds.
53410
53411 2008-12-16  Bruno Haible  <bruno@clisp.org>
53412
53413         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
53414         expressions.
53415
53416 2008-12-15  Bruno Haible  <bruno@clisp.org>
53417
53418         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
53419         * doc/glibc-functions/flistxattr.texi: Likewise.
53420         * doc/glibc-functions/fopencookie.texi: Likewise.
53421         * doc/glibc-functions/fremovexattr.texi: Likewise.
53422         * doc/glibc-functions/fsetxattr.texi: Likewise.
53423         * doc/glibc-functions/getxattr.texi: Likewise.
53424         * doc/glibc-functions/lgetxattr.texi: Likewise.
53425         * doc/glibc-functions/listxattr.texi: Likewise.
53426         * doc/glibc-functions/llistxattr.texi: Likewise.
53427         * doc/glibc-functions/lremovexattr.texi: Likewise.
53428         * doc/glibc-functions/lsetxattr.texi: Likewise.
53429         * doc/glibc-functions/removexattr.texi: Likewise.
53430         * doc/glibc-functions/setxattr.texi: Likewise.
53431         * doc/posix-functions/open_memstream.texi: Likewise.
53432
53433 2008-12-15  Eric Blake  <ebb9@byu.net>
53434
53435         Update doc for cygwin 1.7.
53436         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
53437         functions.
53438         * doc/posix-functions/fchmodat.texi: Likewise.
53439         * doc/posix-functions/fchownat.texi: Likewise.
53440         * doc/posix-functions/fdopendir.texi: Likewise.
53441         * doc/posix-functions/fmemopen.texi: Likewise.
53442         * doc/posix-functions/freeaddrinfo.texi: Likewise.
53443         * doc/posix-functions/fstatat.texi: Likewise.
53444         * doc/posix-functions/futimens.texi: Likewise.
53445         * doc/posix-functions/gai_strerror.texi: Likewise.
53446         * doc/posix-functions/getaddrinfo.texi: Likewise.
53447         * doc/posix-functions/getnameinfo.texi: Likewise.
53448         * doc/posix-functions/if_freenameindex.texi: Likewise.
53449         * doc/posix-functions/if_indextoname.texi: Likewise.
53450         * doc/posix-functions/if_nameindex.texi: Likewise.
53451         * doc/posix-functions/if_nametoindex.texi: Likewise.
53452         * doc/posix-functions/insque.texi: Likewise.
53453         * doc/posix-functions/linkat.texi: Likewise.
53454         * doc/posix-functions/llrint.texi: Likewise.
53455         * doc/posix-functions/llrintf.texi: Likewise.
53456         * doc/posix-functions/llrintl.texi: Likewise.
53457         * doc/posix-functions/lockf.texi: Likewise.
53458         * doc/posix-functions/lrintl.texi: Likewise.
53459         * doc/posix-functions/mkdirat.texi: Likewise.
53460         * doc/posix-functions/mkfifoat.texi: Likewise.
53461         * doc/posix-functions/mknodat.texi: Likewise.
53462         * doc/posix-functions/mq_close.texi: Likewise.
53463         * doc/posix-functions/mq_getattr.texi: Likewise.
53464         * doc/posix-functions/mq_notify.texi: Likewise.
53465         * doc/posix-functions/mq_open.texi: Likewise.
53466         * doc/posix-functions/mq_receive.texi: Likewise.
53467         * doc/posix-functions/mq_send.texi: Likewise.
53468         * doc/posix-functions/mq_setattr.texi: Likewise.
53469         * doc/posix-functions/mq_timedreceive.texi: Likewise.
53470         * doc/posix-functions/mq_timedsend.texi: Likewise.
53471         * doc/posix-functions/mq_unlink.texi: Likewise.
53472         * doc/posix-functions/open_memstream.texi: Likewise.
53473         * doc/posix-functions/openat.texi: Likewise.
53474         * doc/posix-functions/posix_fadvise.texi: Likewise.
53475         * doc/posix-functions/posix_fallocate.texi: Likewise.
53476         * doc/posix-functions/posix_madvise.texi: Likewise.
53477         * doc/posix-functions/posix_memalign.texi: Likewise.
53478         * doc/posix-functions/posix_openpt.texi: Likewise.
53479         * doc/posix-functions/readlinkat.texi: Likewise.
53480         * doc/posix-functions/remque.texi: Likewise.
53481         * doc/posix-functions/renameat.texi: Likewise.
53482         * doc/posix-functions/rintl.texi: Likewise.
53483         * doc/posix-functions/sem_unlink.texi: Likewise.
53484         * doc/posix-functions/shm_open.texi: Likewise.
53485         * doc/posix-functions/shm_unlink.texi: Likewise.
53486         * doc/posix-functions/signgam.texi: Likewise.
53487         * doc/posix-functions/sigset.texi: Likewise.
53488         * doc/posix-functions/stpcpy.texi: Likewise.
53489         * doc/posix-functions/stpncpy.texi: Likewise.
53490         * doc/posix-functions/strerror.texi: Likewise.
53491         * doc/posix-functions/strtod.texi: Likewise.
53492         * doc/posix-functions/symlinkat.texi: Likewise.
53493         * doc/posix-functions/unlinkat.texi: Likewise.
53494         * doc/posix-functions/utimensat.texi: Likewise.
53495         * doc/glibc-functions/bindresvport.texi: Likewise.
53496         * doc/glibc-functions/dn_expand.texi: Likewise.
53497         * doc/glibc-functions/exp10.texi: Likewise.
53498         * doc/glibc-functions/exp10f.texi: Likewise.
53499         * doc/glibc-functions/fgetxattr.texi: Likewise.
53500         * doc/glibc-functions/flistxattr.texi: Likewise.
53501         * doc/glibc-functions/fopencookie.texi: Likewise.
53502         * doc/glibc-functions/freeifaddrs.texi: Likewise.
53503         * doc/glibc-functions/fremovexattr.texi: Likewise.
53504         * doc/glibc-functions/fsetxattr.texi: Likewise.
53505         * doc/glibc-functions/getifaddrs.texi: Likewise.
53506         * doc/glibc-functions/getxattr.texi: Likewise.
53507         * doc/glibc-functions/lgetxattr.texi: Likewise.
53508         * doc/glibc-functions/listxattr.texi: Likewise.
53509         * doc/glibc-functions/llistxattr.texi: Likewise.
53510         * doc/glibc-functions/lremovexattr.texi: Likewise.
53511         * doc/glibc-functions/lsetxattr.texi: Likewise.
53512         * doc/glibc-functions/pow10.texi: Likewise.
53513         * doc/glibc-functions/pow10f.texi: Likewise.
53514         * doc/glibc-functions/rcmd_af.texi: Likewise.
53515         * doc/glibc-functions/removexattr.texi: Likewise.
53516         * doc/glibc-functions/res_init.texi: Likewise.
53517         * doc/glibc-functions/res_mkquery.texi: Likewise.
53518         * doc/glibc-functions/res_query.texi: Likewise.
53519         * doc/glibc-functions/res_querydomain.texi: Likewise.
53520         * doc/glibc-functions/res_send.texi: Likewise.
53521         * doc/glibc-functions/rresvport_af.texi: Likewise.
53522         * doc/glibc-functions/setxattr.texi: Likewise.
53523         * doc/glibc-functions/strcasestr.texi: Likewise.
53524
53525 2008-12-15  Bruno Haible  <bruno@clisp.org>
53526
53527         Fix compilation error on OSF/1 4.0.
53528         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
53529         <sys/time.h>, simply delegate to the system header.
53530         Reported by Daniel Richard G. <oss@teragram.com>.
53531
53532 2008-12-15  Bruno Haible  <bruno@clisp.org>
53533
53534         * doc/posix-functions/openat.texi: Mention the 'openat' module.
53535         * doc/posix-functions/fchmodat.texi: Likewise.
53536         * doc/posix-functions/fchownat.texi: Likewise.
53537         * doc/posix-functions/fdopendir.texi: Likewise.
53538         * doc/posix-functions/fstatat.texi: Likewise.
53539         * doc/posix-functions/mkdirat.texi: Likewise.
53540         * doc/posix-functions/unlinkat.texi: Likewise.
53541
53542 2008-12-14  Bruno Haible  <bruno@clisp.org>
53543
53544         Update doc for POSIX:2008.
53545         * doc/posix-functions/faccessat.texi: New file.
53546         * doc/posix-functions/fchmodat.texi: New file.
53547         * doc/posix-functions/fchownat.texi: New file.
53548         * doc/posix-functions/fdopendir.texi: New file.
53549         * doc/posix-functions/fstatat.texi: New file.
53550         * doc/posix-functions/futimens.texi: New file.
53551         * doc/posix-functions/linkat.texi: New file.
53552         * doc/posix-functions/mkdirat.texi: New file.
53553         * doc/posix-functions/mkfifoat.texi: New file.
53554         * doc/posix-functions/mknodat.texi: New file.
53555         * doc/posix-functions/open_wmemstream.texi: New file.
53556         * doc/posix-functions/openat.texi: New file.
53557         * doc/posix-functions/psiginfo.texi: New file.
53558         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
53559         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
53560         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
53561         * doc/posix-functions/readlinkat.texi: New file.
53562         * doc/posix-functions/renameat.texi: New file.
53563         * doc/posix-functions/strerror_l.texi: New file.
53564         * doc/posix-functions/symlinkat.texi: New file.
53565         * doc/posix-functions/unlinkat.texi: New file.
53566         * doc/posix-functions/utimensat.texi: New file.
53567         * doc/gnulib.texi (Function Substitutes): Add these subsections.
53568
53569 2008-12-14  Bruno Haible  <bruno@clisp.org>
53570
53571         Update doc for POSIX:2008.
53572         * doc/posix-functions/alphasort.texi: Renamed from
53573         doc/glibc-functions/alphasort.texi.
53574         * doc/posix-functions/dirfd.texi: Renamed from
53575         doc/glibc-functions/dirfd.texi.
53576         * doc/posix-functions/dprintf.texi: Renamed from
53577         doc/glibc-functions/dprintf.texi.
53578         * doc/posix-functions/duplocale.texi: Renamed from
53579         doc/glibc-functions/duplocale.texi.
53580         * doc/posix-functions/fexecve.texi: Renamed from
53581         doc/glibc-functions/fexecve.texi.
53582         * doc/posix-functions/fmemopen.texi: Renamed from
53583         doc/glibc-functions/fmemopen.texi.
53584         * doc/posix-functions/freelocale.texi: Renamed from
53585         doc/glibc-functions/freelocale.texi.
53586         * doc/posix-functions/getdate_err.texi: Renamed from
53587         doc/glibc-functions/getdate_err.texi.
53588         * doc/posix-functions/isalnum_l.texi: Renamed from
53589         doc/glibc-functions/isalnum_l.texi.
53590         * doc/posix-functions/isalpha_l.texi: Renamed from
53591         doc/glibc-functions/isalpha_l.texi.
53592         * doc/posix-functions/isblank_l.texi: Renamed from
53593         doc/glibc-functions/isblank_l.texi.
53594         * doc/posix-functions/iscntrl_l.texi: Renamed from
53595         doc/glibc-functions/iscntrl_l.texi.
53596         * doc/posix-functions/isdigit_l.texi: Renamed from
53597         doc/glibc-functions/isdigit_l.texi.
53598         * doc/posix-functions/isgraph_l.texi: Renamed from
53599         doc/glibc-functions/isgraph_l.texi.
53600         * doc/posix-functions/islower_l.texi: Renamed from
53601         doc/glibc-functions/islower_l.texi.
53602         * doc/posix-functions/isprint_l.texi: Renamed from
53603         doc/glibc-functions/isprint_l.texi.
53604         * doc/posix-functions/ispunct_l.texi: Renamed from
53605         doc/glibc-functions/ispunct_l.texi.
53606         * doc/posix-functions/isspace_l.texi: Renamed from
53607         doc/glibc-functions/isspace_l.texi.
53608         * doc/posix-functions/isupper_l.texi: Renamed from
53609         doc/glibc-functions/isupper_l.texi.
53610         * doc/posix-functions/iswalnum_l.texi: Renamed from
53611         doc/glibc-functions/iswalnum_l.texi.
53612         * doc/posix-functions/iswalpha_l.texi: Renamed from
53613         doc/glibc-functions/iswalpha_l.texi.
53614         * doc/posix-functions/iswblank_l.texi: Renamed from
53615         doc/glibc-functions/iswblank_l.texi.
53616         * doc/posix-functions/iswcntrl_l.texi: Renamed from
53617         doc/glibc-functions/iswcntrl_l.texi.
53618         * doc/posix-functions/iswctype_l.texi: Renamed from
53619         doc/glibc-functions/iswctype_l.texi.
53620         * doc/posix-functions/iswdigit_l.texi: Renamed from
53621         doc/glibc-functions/iswdigit_l.texi.
53622         * doc/posix-functions/iswgraph_l.texi: Renamed from
53623         doc/glibc-functions/iswgraph_l.texi.
53624         * doc/posix-functions/iswlower_l.texi: Renamed from
53625         doc/glibc-functions/iswlower_l.texi.
53626         * doc/posix-functions/iswprint_l.texi: Renamed from
53627         doc/glibc-functions/iswprint_l.texi.
53628         * doc/posix-functions/iswpunct_l.texi: Renamed from
53629         doc/glibc-functions/iswpunct_l.texi.
53630         * doc/posix-functions/iswspace_l.texi: Renamed from
53631         doc/glibc-functions/iswspace_l.texi.
53632         * doc/posix-functions/iswupper_l.texi: Renamed from
53633         doc/glibc-functions/iswupper_l.texi.
53634         * doc/posix-functions/iswxdigit_l.texi: Renamed from
53635         doc/glibc-functions/iswxdigit_l.texi.
53636         * doc/posix-functions/isxdigit_l.texi: Renamed from
53637         doc/glibc-functions/isxdigit_l.texi.
53638         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
53639         doc/glibc-functions/mbsnrtowcs.texi.
53640         * doc/posix-functions/mkdtemp.texi: Renamed from
53641         doc/glibc-functions/mkdtemp.texi.
53642         * doc/posix-functions/newlocale.texi: Renamed from
53643         doc/glibc-functions/newlocale.texi.
53644         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
53645         doc/glibc-functions/nl_langinfo_l.texi.
53646         * doc/posix-functions/open_memstream.texi: Renamed from
53647         doc/glibc-functions/open_memstream.texi.
53648         * doc/posix-functions/opterr.texi: Renamed from
53649         doc/glibc-functions/opterr.texi.
53650         * doc/posix-functions/optind.texi: Renamed from
53651         doc/glibc-functions/optind.texi.
53652         * doc/posix-functions/optopt.texi: Renamed from
53653         doc/glibc-functions/optopt.texi.
53654         * doc/posix-functions/psignal.texi: Renamed from
53655         doc/glibc-functions/psignal.texi.
53656         * doc/posix-functions/scandir.texi: Renamed from
53657         doc/glibc-functions/scandir.texi.
53658         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
53659         doc/glibc-functions/sched_get_priority_min.texi.
53660         * doc/posix-functions/signgam.texi: Renamed from
53661         doc/glibc-functions/signgam.texi.
53662         * doc/posix-functions/stpcpy.texi: Renamed from
53663         doc/glibc-functions/stpcpy.texi.
53664         * doc/posix-functions/stpncpy.texi: Renamed from
53665         doc/glibc-functions/stpncpy.texi.
53666         * doc/posix-functions/strcasecmp_l.texi: Renamed from
53667         doc/glibc-functions/strcasecmp_l.texi.
53668         * doc/posix-functions/strcoll_l.texi: Renamed from
53669         doc/glibc-functions/strcoll_l.texi.
53670         * doc/posix-functions/strfmon_l.texi: Renamed from
53671         doc/glibc-functions/strfmon_l.texi.
53672         * doc/posix-functions/strftime_l.texi: Renamed from
53673         doc/glibc-functions/strftime_l.texi.
53674         * doc/posix-functions/strncasecmp_l.texi: Renamed from
53675         doc/glibc-functions/strncasecmp_l.texi.
53676         * doc/posix-functions/strndup.texi: Renamed from
53677         doc/glibc-functions/strndup.texi.
53678         * doc/posix-functions/strnlen.texi: Renamed from
53679         doc/glibc-functions/strnlen.texi.
53680         * doc/posix-functions/strsignal.texi: Renamed from
53681         doc/glibc-functions/strsignal.texi.
53682         * doc/posix-functions/strxfrm_l.texi: Renamed from
53683         doc/glibc-functions/strxfrm_l.texi.
53684         * doc/posix-functions/timer_gettime.texi: Renamed from
53685         doc/glibc-functions/timer_gettime.texi.
53686         * doc/posix-functions/tolower_l.texi: Renamed from
53687         doc/glibc-functions/tolower_l.texi.
53688         * doc/posix-functions/toupper_l.texi: Renamed from
53689         doc/glibc-functions/toupper_l.texi.
53690         * doc/posix-functions/towctrans_l.texi: Renamed from
53691         doc/glibc-functions/towctrans_l.texi.
53692         * doc/posix-functions/towlower_l.texi: Renamed from
53693         doc/glibc-functions/towlower_l.texi.
53694         * doc/posix-functions/towupper_l.texi: Renamed from
53695         doc/glibc-functions/towupper_l.texi.
53696         * doc/posix-functions/uselocale.texi: Renamed from
53697         doc/glibc-functions/uselocale.texi.
53698         * doc/posix-functions/vdprintf.texi: Renamed from
53699         doc/glibc-functions/vdprintf.texi.
53700         * doc/posix-functions/wcpcpy.texi:
53701         Renamed from doc/glibc-functions/wcpcpy.texi.
53702         * doc/posix-functions/wcpncpy.texi: Renamed from
53703         doc/glibc-functions/wcpncpy.texi.
53704         * doc/posix-functions/wcscasecmp.texi: Renamed from
53705         doc/glibc-functions/wcscasecmp.texi.
53706         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
53707         doc/glibc-functions/wcscasecmp_l.texi.
53708         * doc/posix-functions/wcscoll_l.texi: Renamed from
53709         doc/glibc-functions/wcscoll_l.texi.
53710         * doc/posix-functions/wcsdup.texi: Renamed from
53711         doc/glibc-functions/wcsdup.texi.
53712         * doc/posix-functions/wcsncasecmp.texi: Renamed from
53713         doc/glibc-functions/wcsncasecmp.texi.
53714         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
53715         doc/glibc-functions/wcsncasecmp_l.texi.
53716         * doc/posix-functions/wcsnlen.texi: Renamed from
53717         doc/glibc-functions/wcsnlen.texi.
53718         * doc/posix-functions/wcsnrtombs.texi: Renamed from
53719         doc/glibc-functions/wcsnrtombs.texi.
53720         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
53721         doc/glibc-functions/wcsxfrm_l.texi.
53722         * doc/posix-functions/wctrans_l.texi: Renamed from
53723         doc/glibc-functions/wctrans_l.texi.
53724         * doc/posix-functions/wctype_l.texi: Renamed from
53725         doc/glibc-functions/wctype_l.texi.
53726         * doc/gnulib.texi (Function Substitutes): Add these subsections.
53727         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
53728         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
53729         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
53730         these subsections.
53731         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
53732         Remove sections.
53733
53734 2008-12-14  Bruno Haible  <bruno@clisp.org>
53735
53736         Update doc for POSIX:2008.
53737         * doc/posix-functions/*.texi: Update URL of POSIX specification.
53738
53739 2008-12-14  Bruno Haible  <bruno@clisp.org>
53740
53741         Update doc for POSIX:2008.
53742         * doc/pastposix-functions/bcmp.texi: Renamed from
53743         doc/posix-functions/bcmp.texi.
53744         * doc/pastposix-functions/bcopy.texi: Renamed from
53745         doc/posix-functions/bcopy.texi.
53746         * doc/pastposix-functions/bsd_signal.texi: Renamed from
53747         doc/posix-functions/bsd_signal.texi.
53748         * doc/pastposix-functions/bzero.texi: Renamed from
53749         doc/posix-functions/bzero.texi.
53750         * doc/pastposix-functions/ecvt.texi: Renamed from
53751         doc/posix-functions/ecvt.texi.
53752         * doc/pastposix-functions/fcvt.texi: Renamed from
53753         doc/posix-functions/fcvt.texi.
53754         * doc/pastposix-functions/ftime.texi: Renamed from
53755         doc/posix-functions/ftime.texi.
53756         * doc/pastposix-functions/gcvt.texi: Renamed from
53757         doc/posix-functions/gcvt.texi.
53758         * doc/pastposix-functions/getcontext.texi: Renamed from
53759         doc/posix-functions/getcontext.texi.
53760         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
53761         doc/posix-functions/gethostbyaddr.texi.
53762         * doc/pastposix-functions/gethostbyname.texi: Renamed from
53763         doc/posix-functions/gethostbyname.texi.
53764         * doc/pastposix-functions/getwd.texi: Renamed from
53765         doc/posix-functions/getwd.texi.
53766         * doc/pastposix-functions/h_errno.texi: Renamed from
53767         doc/posix-functions/h_errno.texi.
53768         * doc/pastposix-functions/index.texi: Renamed from
53769         doc/posix-functions/index.texi.
53770         * doc/pastposix-functions/makecontext.texi: Renamed from
53771         doc/posix-functions/makecontext.texi.
53772         * doc/pastposix-functions/mktemp.texi: Renamed from
53773         doc/posix-functions/mktemp.texi.
53774         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
53775         doc/posix-functions/pthread_attr_getstackaddr.texi.
53776         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
53777         doc/posix-functions/pthread_attr_setstackaddr.texi.
53778         * doc/pastposix-functions/rindex.texi: Renamed from
53779         doc/posix-functions/rindex.texi.
53780         * doc/pastposix-functions/scalb.texi: Renamed from
53781         doc/posix-functions/scalb.texi.
53782         * doc/pastposix-functions/setcontext.texi: Renamed from
53783         doc/posix-functions/setcontext.texi.
53784         * doc/pastposix-functions/swapcontext.texi: Renamed from
53785         doc/posix-functions/swapcontext.texi.
53786         * doc/pastposix-functions/ualarm.texi: Renamed from
53787         doc/posix-functions/ualarm.texi.
53788         * doc/pastposix-functions/usleep.texi: Renamed from
53789         doc/posix-functions/usleep.texi.
53790         * doc/pastposix-functions/vfork.texi: Renamed from
53791         doc/posix-functions/vfork.texi.
53792         * doc/pastposix-functions/wcswcs.texi: Renamed from
53793         doc/posix-functions/wcswcs.texi.
53794         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
53795         (Function Substitutes): Update.
53796
53797 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53798
53799         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
53800         m4/strerror.m4.
53801
53802 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53803             Bruno Haible  <bruno@clisp.org>
53804
53805         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
53806
53807 2008-12-13  Bruno Haible  <bruno@clisp.org>
53808
53809         * modules/strtoull (Depends-on): Remove unistd.
53810
53811 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53812
53813         * modules/strtoull (Depends-on): Add stdlib.
53814
53815 2008-12-11  Simon Josefsson  <simon@josefsson.org>
53816
53817         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
53818
53819 2008-12-10  Jim Meyering  <meyering@redhat.com>
53820
53821         gl_ASSERT: don't say assertions are disabled when they're not
53822         * m4/assert.m4 (gl_ASSERT): Do not make configure report
53823         "checking whether to enable assertions... no", when they are in
53824         fact enabled.  This is solely a bug in the output of configure.
53825         In spite of saying "no", NDEBUG was not defined in that case.
53826         Also, as noted by Eric Blake, leave assertions enabled upon
53827         --enable-assert=INVALID.
53828
53829 2008-12-10  Bruno Haible  <bruno@clisp.org>
53830
53831         Change MODULES.html to refer to POSIX:2008 where possible.
53832         * MODULES.html.sh (POSIX2008_URL): New variable.
53833         (posix_headers): Remove sys/timeb, ucontext.
53834         (posix2001_headers): New variable.
53835         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
53836         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
53837         index, makecontext, mktemp, pthread_attr_getstackaddr,
53838         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
53839         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
53840         (posix2001_functions): New variable.
53841         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
53842         otherwise.
53843
53844 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53845
53846         add missing include to parse-duration.c
53847         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
53848         * modules/parse-duration (Depends-on): Add xalloc.
53849
53850         fix sed script reading maint.mk
53851         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
53852         (syntax-check-rules): Use it.
53853
53854 2008-12-09  Bruno Haible  <bruno@clisp.org>
53855
53856         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
53857         MacOS X 10.4/PowerPC.
53858         Reported by Simon Josefsson.
53859
53860 2008-12-08  Jim Meyering  <meyering@redhat.com>
53861
53862         work around mingw's lack of some S_IF definitions
53863         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
53864         Reported by Simon Josefsson.
53865
53866 2008-12-08  Bruno Haible  <bruno@clisp.org>
53867
53868         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
53869         applied to variables. Needed on MacOS X 10.4/PowerPC.
53870         Reported by Simon Josefsson.
53871
53872 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
53873         and Eric Blake  <ebb9@byu.net>
53874
53875         assert: honor --enable-assert
53876         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
53877         order to honor --enable-assert, rather than treating it as a
53878         synonym for --disable-assert.
53879
53880 2008-12-08  Jim Meyering  <meyering@redhat.com>
53881
53882         * lib/posixtm.c: Remove now-useless declaration of mktime.
53883
53884         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
53885
53886 2008-12-07  Bruno Haible  <bruno@clisp.org>
53887
53888         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
53889         test_once): Mark functions as static.
53890         * tests/test-tls.c (test_tls): Likewise.
53891
53892 2008-12-07  Bruno Haible  <bruno@clisp.org>
53893
53894         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
53895         iconv_register_autodetect.
53896
53897 2008-12-07  Jim Meyering  <meyering@redhat.com>
53898
53899         posixtm.c: avoid a warning
53900         * lib/posixtm.c (posixtime): Don't initialize tm0.
53901         It's no longer needed to placate gcc4's -Wuninitialized,
53902         and the attempt to placate would elicit a new warning.
53903
53904         unicodeio.c: mark unused parameters
53905         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
53906         (fallback_failure_callback): Likewise.
53907
53908 2008-12-07  Bruno Haible  <bruno@clisp.org>
53909
53910         * gnulib-tool (func_create_testdir): When building the tests
53911         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
53912         Reported by Simon Josefsson.
53913
53914 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53915
53916         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
53917
53918 2008-12-06  Bruno Haible  <bruno@clisp.org>
53919
53920         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
53921         Suggested by Eric Blake.
53922
53923 2008-12-06  Bruno Haible  <bruno@clisp.org>
53924
53925         Fix a c-stack test failure on MacOS X.
53926         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
53927         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
53928         handler for SIGBUS as well.
53929         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
53930         install a signal handler for SIGBUS as well.
53931         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
53932
53933 2008-12-06  Bruno Haible  <bruno@clisp.org>
53934
53935         Advocacy documentation.
53936         * doc/gnulib-intro.texi (Benefits): New section.
53937         * doc/gnulib.texi: Update.
53938
53939 2008-12-06  Bruno Haible  <bruno@clisp.org>
53940
53941         Document the 'manywarnings' module.
53942         * doc/manywarnings.texi: New file.
53943         * doc/gnulib.texi: Include it.
53944
53945 2008-12-05  Eric Blake  <ebb9@byu.net>
53946
53947         tests: silence some gcc warnings
53948         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
53949         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
53950         type mismatches.
53951
53952 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53953             Bruno Haible  <bruno@clisp.org>
53954
53955         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
53956
53957 2008-11-29  Jim Meyering  <meyering@redhat.com>
53958
53959         unicodeio.c: mark unused parameters
53960         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
53961         (fallback_failure_callback): Likewise.
53962
53963         fts: fix a thinko
53964         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
53965         (set_stat_type): Return S_IF*-valued "type" directly.
53966         Prompted by James Youngman's spotting a related bug.
53967         Confirmed by further testing through find.
53968
53969         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
53970         * lib/fts.c (D_TYPE): Define.
53971         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
53972         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
53973         (s_ifmt_shift_bits): New function.
53974         (set_stat_type): New function.
53975         (fts_build): When not calling fts_stat, call set_stat_type
53976         to propagate dirent.d_type info to fts_read caller.
53977         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
53978         fts_statp->st_mode type information may be valid.
53979
53980 2008-11-28  Simon Josefsson  <simon@josefsson.org>
53981
53982         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
53983         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
53984         <sds@gnu.org>.
53985
53986 2008-11-20  Bruno Haible  <bruno@clisp.org>
53987
53988         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
53989         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
53990         INCLUDE_NEXT.
53991         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
53992         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
53993         * modules/math (Makefile.am): Substitute
53994         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
53995         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
53996
53997 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
53998             Bruno Haible  <bruno@clisp.org>
53999
54000         * lib/stdint.in.h: Define all type macros so that their expansion is
54001         a single typedef'ed token. Fixes a compilation failure in Boost which
54002         does "using ::int8_t;".
54003
54004 2008-11-18  Simon Josefsson  <simon@josefsson.org>
54005
54006         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
54007         gl_MANYWARN_ALL_GCC.
54008         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
54009         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
54010         * modules/manywarnings: New file.
54011         * MODULES.html.sh: Mention manywarnings module.
54012
54013 2008-11-18  Bruno Haible  <bruno@clisp.org>
54014
54015         * doc/gnulib-tool.texi (Unit tests): New section.
54016
54017 2008-11-18  Simon Josefsson  <simon@josefsson.org>
54018
54019         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
54020         paths like 'lib/po/foo.po'.
54021
54022 2008-11-17  Simon Josefsson  <simon@josefsson.org>
54023
54024         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
54025         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
54026
54027 2008-11-17  Simon Josefsson  <simon@josefsson.org>
54028
54029         * m4/warnings.m4: Use CPPFLAGS to really check whether the
54030         parameter works.
54031
54032 2008-11-17  Simon Josefsson  <simon@josefsson.org>
54033
54034         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
54035
54036 2008-11-17  Bruce Korb  <bkorb@gnu.org>
54037
54038         * modules/parse-duration-tests: New file.
54039         * tests/test-parse-duration.sh: New file.
54040         * tests/test-parse-duration.c: New file.
54041
54042         New module 'parse-duration'.
54043         * lib/parse-duration.h: New file.
54044         * lib/parse-duration.c: New file.
54045         * modules/parse-duration: New file.
54046
54047 2008-11-17  Bruno Haible  <bruno@clisp.org>
54048
54049         * tests/test-select-out.sh: Comment out the first pipe test.
54050         Reported by Simon Josefsson.
54051
54052 2008-11-17  Bruno Haible  <bruno@clisp.org>
54053
54054         * modules/getaddrinfo (Depends-on): Add servent, hostent.
54055         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
54056         gl_HOSTENT.
54057
54058 2008-11-17  Bruno Haible  <bruno@clisp.org>
54059
54060         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
54061         -lnetwork and -lnet. Needed for Haiku and BeOS.
54062
54063 2008-11-16  Bruno Haible  <bruno@clisp.org>
54064
54065         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
54066
54067 2008-11-16  Bruno Haible  <bruno@clisp.org>
54068
54069         Avoid test failure on Haiku.
54070         * tests/test-fsync.c: Include <errno.h>.
54071         (main): Don't require that fsync (0) fails.
54072
54073 2008-11-15  Bruno Haible  <bruno@clisp.org>
54074
54075         New module 'hostent'.
54076         * modules/hostent: New file.
54077         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
54078
54079 2008-11-15  Bruno Haible  <bruno@clisp.org>
54080
54081         New module 'servent'.
54082         * modules/servent: New file.
54083         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
54084
54085 2008-11-15  Bruno Haible  <bruno@clisp.org>
54086
54087         Avoid generating same test program with two different rules.
54088         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
54089         test-frexp to test-frexp-nolibm.
54090         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
54091         test-frexpl to test-frexpl-nolibm.
54092
54093 2008-11-15  Bruno Haible  <bruno@clisp.org>
54094
54095         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
54096         $(FREXPL_LIBM).
54097
54098 2008-11-15  Bruno Haible  <bruno@clisp.org>
54099
54100         * lib/netdb.in.h: Activate the definitions also when the system's
54101         <netdb.h> has 'struct addrinfo'.
54102         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
54103         EAI_OVERFLOW or AI_NUMERICSERV.
54104         * doc/posix-headers/netdb.texi: Document the problem.
54105
54106 2008-11-15  Bruno Haible  <bruno@clisp.org>
54107
54108         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
54109
54110         Make the 'sched' module work on platforms where <sched.h> exists but
54111         is incomplete (such as Haiku).
54112         * lib/sched.in.h; Include the system's <sched.h> if it exists.
54113         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
54114         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
54115         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
54116         HAVE_STRUCT_SCHED_PARAM.
54117         * modules/sched (Depends-on): Add include_next.
54118         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
54119         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
54120         * doc/posix-headers/sched.texi: Document the issue.
54121
54122 2008-11-13  Jim Meyering  <meyering@redhat.com>
54123
54124         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
54125         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
54126         test would fail due to the difference in the Report bugs to ...
54127         line.  The expected address is empty, "<>", while the actual
54128         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
54129
54130 2008-11-12  Bruno Haible  <bruno@clisp.org>
54131
54132         lstat: don't compile lstat.c on systems lacking lstat
54133         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
54134         which don't have lstat; this is handled by lib/sys_stat.in.h already.
54135         Reported by Daniel P. Berrange via Jim Meyering.
54136
54137 2008-11-12  Jim Meyering  <meyering@redhat.com>
54138
54139         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
54140
54141 2008-11-12  Simon Josefsson  <simon@josefsson.org>
54142
54143         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
54144         instead.
54145
54146 2008-11-12  Bruno Haible  <bruno@clisp.org>
54147
54148         * lib/unicodeio.c: Include unistr.h.
54149         (utf8_wctomb): Remove function.
54150         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
54151
54152 2008-11-12  Simon Josefsson  <simon@josefsson.org>
54153
54154         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
54155         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
54156         <bruno@clisp.org>.
54157         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
54158
54159 2008-11-12  Simon Josefsson  <simon@josefsson.org>
54160
54161         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
54162         * doc/gnulib.texi: Add section for warnings.
54163
54164 2008-11-11  Bruno Haible  <bruno@clisp.org>
54165
54166         * lib/sockets.h: Add a comment.
54167
54168 2008-11-11  Karl Berry  <karl@gnu.org>
54169
54170         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
54171
54172 2008-11-11  Eric Blake  <ebb9@byu.net>
54173
54174         fdl.texi: avoid git symlinks
54175         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
54176
54177 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
54178
54179         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
54180
54181 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
54182
54183         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
54184         (gl_WARN_ADD): Substitute $2 if literal.
54185
54186 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
54187
54188         * m4/warning.m4: Remove.
54189
54190 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
54191
54192         * m4/warnings.m4: Almost complete rewrite. :-)
54193
54194 2008-11-10  Simon Josefsson  <simon@josefsson.org>
54195
54196         * modules/warnings: New module.
54197         * m4/warnings.m4: New file.
54198         * MODULES.html.sh: Mention warnings module.
54199         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
54200         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
54201
54202 2008-11-10  Eric Blake  <ebb9@byu.net>
54203
54204         fdl.texi: make a symlink to the latest version
54205         * doc/standards.texi: Revert today's earlier change.
54206         * doc/fdl-1.2.texi: Rename from old fdl.texi...
54207         * doc/fdl.texi: ...and replace this with a symlink to the newer
54208         fdl-1.3.texi.
54209
54210 2008-11-10  Bruno Haible  <bruno@clisp.org>
54211
54212         * tests/test-select-fd.c (main): Accept the result file name as fourth
54213         argument.
54214         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
54215         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
54216
54217 2008-11-10  Bruno Haible  <bruno@clisp.org>
54218
54219         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
54220         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
54221         as autoconf-substituted macros.
54222         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
54223         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
54224         gl_NETDB_H_DEFAULTS. Set these variables.
54225         * modules/netdb (Makefile.am): Substitute these variables.
54226
54227 2008-11-10  Eric Blake  <ebb9@byu.net>
54228
54229         standards.texi: include correct file for FDL 1.3
54230         * doc/standards.texi (GNU Free Documentation License): Change
54231         include file to pull in FDL 1.3, not 1.2.
54232
54233         fdl.texi: revert accidental change to license
54234         * doc/fdl.texi: This is FDL 1.2, not 1.3.
54235
54236 2008-11-10  Bruno Haible  <bruno@clisp.org>
54237
54238         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
54239         cross-compiling guesses also when the native compile gives no result.
54240
54241 2008-11-10  Bruno Haible  <bruno@clisp.org>
54242
54243         * lib/spawni.c (__spawni): Force variable into the stack.
54244
54245 2008-11-10  Bruno Haible  <bruno@clisp.org>
54246
54247         Add support for Haiku.
54248         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
54249         glibc and BeOS, but also on Haiku.
54250         * lib/fpurge.c (fpurge): Likewise.
54251         * lib/freadable.c (freadable): Likewise.
54252         * lib/freadahead.c (freadahead): Likewise.
54253         * lib/freading.c (freading): Likewise.
54254         * lib/freadptr.c (freadptr): Likewise.
54255         * lib/freadseek.c (freadptrinc): Likewise.
54256         * lib/fseeko.c (rpl_fseeko): Likewise.
54257         * lib/fseterr.c (fseterr): Likewise.
54258         * lib/fwritable.c (fwritable): Likewise.
54259         * lib/fwriting.c (fwriting): Likewise.
54260         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
54261
54262 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
54263
54264         * lib/config.charset: Treat Haiku like BeOS.
54265
54266 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
54267
54268         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
54269         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
54270
54271 2008-11-08  Bruno Haible  <bruno@clisp.org>
54272
54273         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
54274         AC_CACHE_CHECK.
54275
54276 2008-11-08  Bruno Haible  <bruno@clisp.org>
54277
54278         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
54279
54280 2008-11-08  Bruno Haible  <bruno@clisp.org>
54281
54282         * tests/test-select-fd.c: New file.
54283         * tests/test-select-in.sh: New file.
54284         * tests/test-select-out.sh: New file.
54285         * tests/test-select-stdin.c: New file.
54286         * modules/select-tests (Files): Add the new files.
54287         (Depends-on): Add gettimeofday.
54288         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
54289         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
54290         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
54291
54292 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
54293             Bruno Haible  <bruno@clisp.org>
54294
54295         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
54296
54297 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
54298
54299         * build-aux/pmccabe2html: Added support for C++ source files.
54300
54301 2008-11-05  Ben Pfaff  <blp@gnu.org>
54302
54303         Fix lib/close.c build on Windows.
54304         * modules/close (Files): Add lib/w32sock.h.
54305
54306 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
54307
54308         Accept Bison's NEWS format.
54309         * build-aux/announce-gen (print_news_deltas): Tweak
54310         $re_prefix.
54311
54312 2008-11-04  Bruno Haible  <bruno@clisp.org>
54313
54314         * modules/random_r (Maintainer): Add glibc.
54315
54316 2008-11-04  Simon Josefsson  <simon@josefsson.org>
54317
54318         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
54319         by karl@freefriends.org (Karl Berry).
54320         * doc/alloca.texi: Likewise.
54321         * doc/c-ctype.texi: Likewise.
54322         * doc/c-strcase.texi: Likewise.
54323         * doc/c-strcaseeq.texi: Likewise.
54324         * doc/c-strcasestr.texi: Likewise.
54325         * doc/c-strstr.texi: Likewise.
54326         * doc/c-strtod.texi: Likewise.
54327         * doc/c-strtold.texi: Likewise.
54328         * doc/ctime.texi: Likewise.
54329         * doc/error.texi: Likewise.
54330         * doc/fdl.texi: Likewise.
54331         * doc/gcd.texi: Likewise.
54332         * doc/getdate.texi: Likewise.
54333         * doc/gnulib-intro.texi: Likewise.
54334         * doc/gnulib-tool.texi: Likewise.
54335         * doc/gnulib.texi: Likewise.
54336         * doc/inet_ntoa.texi: Likewise.
54337         * doc/maintain.texi: Likewise.
54338         * doc/make-stds.texi: Likewise.
54339         * doc/quote.texi: Likewise.
54340         * doc/regexprops-generic.texi: Likewise.
54341         * doc/standards.texi: Likewise.
54342         * doc/verify.texi: Likewise.
54343         * doc/visibility.texi: Likewise.
54344         * doc/gnulib.texi (GNU Free Documentation License): Include
54345         fdl-1.3.texi instead of fdl.texi.
54346
54347 2008-11-04  Simon Josefsson  <simon@josefsson.org>
54348
54349         * doc/fdl-1.3.texi: New file, from
54350         <http://www.gnu.org/licenses/fdl-1.3.texi>.
54351         * modules/fdl-1.3: Add.
54352         * MODULES.html.sh: Add fdl-1.3.
54353
54354 2008-11-03  Bruno Haible  <bruno@clisp.org>
54355
54356         Make determination of absolute name of header file work with AIX xlc.
54357         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
54358         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
54359         preprocessing.
54360         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
54361         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
54362
54363 2008-11-03  Simon Josefsson  <simon@josefsson.org>
54364
54365         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
54366         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
54367         <ludo@gnu.org>.
54368
54369 2008-11-02  Bruno Haible  <bruno@clisp.org>
54370
54371         Mark 'strpbrk' obsolete.
54372         * modules/strpbrk (Status, Notice): New sections.
54373         * modules/strtok_r (Depends-on): Add strpbrk.
54374
54375 2008-11-02  Bruno Haible  <bruno@clisp.org>
54376
54377         Mark 'strdup' obsolete.
54378         * modules/strdup (Status, Notice): New sections.
54379         * modules/findprog (Depends-on): Add strdup.
54380         * modules/getaddrinfo (Depends-on): Likewise.
54381         * modules/localename (Depends-on): Likewise.
54382         * modules/relocatable-lib (Depends-on): Likewise.
54383         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
54384         * modules/relocatable-prog (Depends-on): Likewise.
54385         * modules/trim (Depends-on): Likewise.
54386         * modules/unictype/gen-ctype (Depends-on): Likewise.
54387         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
54388
54389 2008-11-02  Bruno Haible  <bruno@clisp.org>
54390
54391         Mark 'strcspn' obsolete.
54392         * modules/strcspn (Status, Notice): New sections.
54393
54394 2008-11-02  Bruno Haible  <bruno@clisp.org>
54395
54396         Mark 'rmdir' obsolete.
54397         * modules/rmdir (Status, Notice): New sections.
54398         * modules/clean-temp (Depends-on): Add rmdir.
54399         * modules/openat (Depends-on): Likewise.
54400
54401 2008-11-02  Bruno Haible  <bruno@clisp.org>
54402
54403         Mark 'raise' obsolete.
54404         * modules/raise (Status, Notice): New sections.
54405         (Include): Specify <signal.h>.
54406         * modules/stdio (Depends-on): Add raise.
54407         * modules/write (Depends-on): Likewise.
54408
54409 2008-11-02  Bruno Haible  <bruno@clisp.org>
54410
54411         Mark 'memset' obsolete.
54412         * modules/memset (Status, Notice): New sections.
54413
54414 2008-11-02  Bruno Haible  <bruno@clisp.org>
54415
54416         Mark 'memmove' obsolete.
54417         * modules/memmove (Status, Notice): New sections.
54418         * modules/argp (Depends-on): Add memmove.
54419         * modules/argz (Depends-on): Likewise.
54420         * modules/canonicalize (Depends-on): Likewise.
54421         * modules/canonicalize-lgpl (Depends-on): Likewise.
54422         * modules/fts (Depends-on): Likewise.
54423         * modules/getcwd (Depends-on): Likewise.
54424         * modules/human (Depends-on): Likewise.
54425         * modules/regex (Depends-on): Likewise.
54426         * modules/striconveh (Depends-on): Likewise.
54427         * modules/trim (Depends-on): Likewise.
54428         * modules/unistr/u8-move (Depends-on): Likewise.
54429         * modules/unistr/u16-move (Depends-on): Likewise.
54430         * modules/unistr/u32-move (Depends-on): Likewise.
54431
54432 2008-11-02  Bruno Haible  <bruno@clisp.org>
54433
54434         Mark 'memcpy' obsolete.
54435         * modules/memcpy (Status, Notice): New sections.
54436
54437 2008-11-02  Bruno Haible  <bruno@clisp.org>
54438
54439         Mark 'memcmp' obsolete.
54440         * modules/memcmp (Status, Notice): New sections.
54441         * modules/argmatch (Depends-on): Add memchr.
54442         * modules/backupfile (Depends-on): Likewise.
54443         * modules/c-strcasestr (Depends-on): Likewise.
54444         * modules/crypto/des (Depends-on): Likewise.
54445         * modules/csharpcomp (Depends-on): Likewise.
54446         * modules/fnmatch (Depends-on): Likewise.
54447         * modules/git-merge-changelog (Depends-on): Likewise.
54448         * modules/isnand (Depends-on): Likewise.
54449         * modules/isnand-nolibm (Depends-on): Likewise.
54450         * modules/isnanf (Depends-on): Likewise.
54451         * modules/isnanf-nolibm (Depends-on): Likewise.
54452         * modules/isnanl (Depends-on): Likewise.
54453         * modules/isnanl-nolibm (Depends-on): Likewise.
54454         * modules/mbchar (Depends-on): Likewise.
54455         * modules/memcoll (Depends-on): Likewise.
54456         * modules/quotearg (Depends-on): Likewise.
54457         * modules/regex (Depends-on): Likewise.
54458         * modules/relocatable-prog (Depends-on): Likewise.
54459         * modules/same (Depends-on): Likewise.
54460         * modules/signbit (Depends-on): Likewise.
54461         * modules/strcasestr-simple (Depends-on): Likewise.
54462         * modules/unictype/gen-ctype (Depends-on): Likewise.
54463         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
54464         * modules/uniname/uniname (Depends-on): Likewise.
54465         * modules/unistr/u8-cmp (Depends-on): Likewise.
54466
54467 2008-11-02  Bruno Haible  <bruno@clisp.org>
54468
54469         Mark 'memchr' obsolete.
54470         * modules/memchr (Status, Notice): New sections.
54471         * modules/argp (Depends-on): Add memchr.
54472         * modules/base64 (Depends-on): Likewise.
54473         * modules/c-strcasestr (Depends-on): Likewise.
54474         * modules/chdir-long (Depends-on): Likewise.
54475         * modules/fnmatch (Depends-on): Likewise.
54476         * modules/getsubopt (Depends-on): Likewise.
54477         * modules/git-merge-changelog (Depends-on): Likewise.
54478         * modules/glob (Depends-on): Likewise.
54479         * modules/strcasestr-simple (Depends-on): Likewise.
54480         * modules/strnlen (Depends-on): Likewise.
54481
54482 2008-11-02  Bruno Haible  <bruno@clisp.org>
54483
54484         Mark 'atexit' obsolete.
54485         * modules/atexit (Status, Notice): New sections.
54486         * modules/chdir-long (Depends-on): Add atexit.
54487         * modules/wait-process (Depends-on): Likewise.
54488
54489 2008-11-02  Bruno Haible  <bruno@clisp.org>
54490
54491         * gnulib-tool: New option --with-obsolete.
54492         (func_usage): Document it.
54493         (func_modules_transitive_closure): Drop obsolete dependencies if
54494         incobsolete is not true.
54495         (func_import): Read and save the incobsolete variable to the cache.
54496
54497 2008-11-02  Bruno Haible  <bruno@clisp.org>
54498
54499         * modules/TEMPLATE-EXTENDED: New field 'Status'.
54500         * gnulib-tool: New option --extract-status.
54501         (func_usage): Document it.
54502         (sed_extract_prog): Recognize it.
54503         (func_get_status): New function.
54504
54505 2008-10-30  Simon Josefsson  <simon@josefsson.org>
54506
54507         * modules/sockets (License): Change from LGPL to LGPLv2+.
54508
54509 2008-10-28  Simon Josefsson  <simon@josefsson.org>
54510
54511         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
54512
54513 2008-10-28  Simon Josefsson  <simon@josefsson.org>
54514
54515         * MODULES.html.sh (Support for systems lacking POSIX:2001):
54516         Mention times and sys_times.
54517         * modules/sys_times, modules/sys_times-tests: New modules.
54518         * modules/times, modules/times-tests: Likewise
54519         * m4/sys_times_h.m4: New file.
54520         * lib/sys_times.in.h: Likewise
54521         * lib/times.c: Likewise.
54522         * tests/test-sys_times.c: Likewise.
54523         * tests/test-times.c: Likewise.
54524         * doc/posix-headers/sys_times.texi: Update.
54525         * doc/posix-functions/times.texi: Update.
54526
54527 2008-10-28  Jim Meyering  <meyering@redhat.com>
54528
54529         * modules/tempname (Depends-on): Add lstat.
54530
54531         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
54532
54533 2008-10-28  Simon Josefsson  <simon@josefsson.org>
54534
54535         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
54536         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
54537         using idiom used elsewhere in gnulib.
54538
54539 2008-10-27  Jim Meyering  <meyering@redhat.com>
54540
54541         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
54542
54543 2008-10-27  Simon Josefsson  <simon@josefsson.org>
54544
54545         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
54546         TESTS_ENVIRONMENT, for shell scripts that needs to call built
54547         programs.
54548         * tests/test-argp-2.sh: Use $EXEEXT when needed.
54549
54550 2008-10-27  Simon Josefsson  <simon@josefsson.org>
54551
54552         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
54553
54554 2008-10-27  Bruno Haible  <bruno@clisp.org>
54555
54556         * tests/test-lstat.c: Include <stdio.h>.
54557
54558 2008-10-27  Simon Josefsson  <simon@josefsson.org>
54559
54560         * modules/lstat-tests: New module.
54561         * tests/test-lstat.c: New file.
54562
54563 2008-10-26  Jim Meyering  <meyering@redhat.com>
54564
54565         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
54566
54567 2008-10-26  Simon Josefsson  <simon@josefsson.org>
54568             Bruno Haible  <bruno@clisp.org>
54569
54570         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
54571         * modules/configmake (Include): Add a note that the include must come
54572         after all system headers.
54573         * lib/javaversion.c: Include configmake.h after all other includes.
54574
54575 2008-10-26  Bruno Haible  <bruno@clisp.org>
54576
54577         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
54578         HAVE_STRUCT_RANDOM_DATA to 1.
54579         (gl_STDLIB_H): Simplify.
54580
54581 2008-10-26  Simon Josefsson  <simon@josefsson.org>
54582
54583         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
54584         substitute HAVE_STRUCT_RANDOM_DATA.
54585         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
54586         random_data.
54587         * modules/stdlib (Makefile.am): Substitute
54588         HAVE_STRUCT_RANDOM_DATA.
54589
54590 2008-10-26  Simon Josefsson  <simon@josefsson.org>
54591
54592         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
54593         * doc/gnulib-intro.texi (Copyright): Likewise.
54594
54595 2008-10-26  Simon Josefsson  <simon@josefsson.org>
54596
54597         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
54598         findings.
54599
54600 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
54601             Bruno Haible  <bruno@clisp.org>
54602
54603         * lib/unistd.in.h: Include <winsock2.h>.
54604         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
54605         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
54606         Provide dummy declarations.
54607         (gethostname): Override.
54608         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
54609         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
54610         gl_PREREQ_SYS_H_WINSOCK2.
54611         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
54612         * doc/posix-functions/gethostname.texi: More details.
54613
54614 2008-10-25  Bruno Haible  <bruno@clisp.org>
54615
54616         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
54617         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
54618         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
54619
54620         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
54621         here ...
54622         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
54623         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
54624         gl_UNISTD_H_DEFAULTS.
54625
54626 2008-10-25  Eric Blake  <ebb9@byu.net>
54627
54628         signbit: avoid spurious compiler failure
54629         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
54630         declarations inside function.
54631
54632 2008-10-24  Simon Josefsson  <simon@josefsson.org>
54633             Bruno Haible  <bruno@clisp.org>
54634
54635         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
54636         * modules/random_r (Depends-on): Add stdint.
54637
54638 2008-10-24  Bruno Haible  <bruno@clisp.org>
54639
54640         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
54641         Eggert.
54642         * modules/strerror (License): Likewise.
54643
54644 2008-10-24  Jim Meyering  <meyering@redhat.com>
54645
54646         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
54647         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
54648
54649 2008-10-24  Eric Blake  <ebb9@byu.net>
54650
54651         getgroups: fix compilation when getgroups is available
54652         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
54653         but with <config.h> override of getgroups disabled.
54654
54655 2008-10-24  Simon Josefsson  <simon@josefsson.org>
54656
54657         * doc/gnulib.texi (Header files): Add note about C++ problems.
54658         Explained by Bruno Haible <bruno@clisp.org>.
54659
54660 2008-10-23  Bruno Haible  <bruno@clisp.org>
54661
54662         Define a dummy SA_NODEFER macro on Interix.
54663         * lib/signal.in.h (SA_NODEFER): Define fallback.
54664         Reported by Aleksey Cheusov <cheusov@tut.by> via
54665         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
54666
54667 2008-10-23  Bruno Haible  <bruno@clisp.org>
54668
54669         * modules/freadahead (License): Change to LGPLv2+.
54670         Suggested by Simon Josefsson.
54671
54672 2008-10-23  Jim Meyering  <meyering@redhat.com>
54673
54674         random_r: new module
54675         * modules/random_r: New file.
54676         * m4/random_r.m4: New file.
54677         * lib/random_r.c: New file, from glibc.
54678         * modules/random_r-tests: New file.
54679         * tests/test-random_r.c: New file.
54680         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
54681          Declare.
54682         (RAND_MAX): Define.
54683         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
54684         * modules/stdlib: Substitute them, too.
54685         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
54686         * doc/glibc-functions/initstate_r.texi: Mention the new module.
54687         * doc/glibc-functions/random_r.texi: Likewise.
54688         * doc/glibc-functions/setstate_r.texi: Likewise.
54689         * doc/glibc-functions/srandom_r.texi: Likewise.
54690         * config/srclist.txt: Mention it.
54691
54692 2008-10-23  David Lutterkort  <lutter@redhat.com>
54693
54694         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
54695         link requirement
54696
54697 2008-10-23  Jim Meyering  <meyering@redhat.com>
54698
54699         selinux-h: mark parameters of stub functions as intentionally unused
54700         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
54701         * lib/se-context.in.h: Likewise.
54702
54703 2008-10-22  Simon Josefsson  <simon@josefsson.org>
54704
54705         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
54706
54707 2008-10-22  Simon Josefsson  <simon@josefsson.org>
54708
54709         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
54710
54711 2008-10-22  Eric Blake  <ebb9@byu.net>
54712
54713         glthread/thread: avoid compiler warning
54714         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
54715         Add unreachable abort to silence compiler.
54716
54717 2008-10-22  Eric Blake  <ebb9@byu.net>
54718
54719         netdb: also supply struct addrinfo for cygwin 1.5.x
54720         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
54721         older cygwin.
54722         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
54723         cygwin.
54724         * doc/posix-headers/netdb.texi (netdb.h): Document this.
54725
54726 2008-10-22  Bruno Haible  <bruno@clisp.org>
54727
54728         * users.txt: Update entry about pspp.
54729
54730 2008-10-21  Bruno Haible  <bruno@clisp.org>
54731
54732         Simplification.
54733         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
54734         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
54735
54736         Simplification.
54737         * lib/ioctl.c (ioctl): Don't undefine.
54738         * lib/socket.c (socket): Don't undefine.
54739
54740         Remove unused module indicator macros.
54741         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
54742         GNULIB_$1 as a C macro.
54743
54744         * doc/posix-functions/close.texi: Undo last change.
54745         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
54746         Windows platforms.
54747
54748 2008-10-21  Bruno Haible  <bruno@clisp.org>
54749
54750         Add gethostname() declaration to <unistd.h>.
54751         * lib/unistd.in.h (gethostname): New declaration.
54752         * lib/gethostname.c: Include <unistd.h>.
54753         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
54754         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
54755         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
54756         and HAVE_GETHOSTNAME.
54757         * modules/gethostname (Depends-on): Add unistd.
54758         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
54759         (Include): Specify <unistd.h>.
54760         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
54761         HAVE_GETHOSTNAME.
54762         * tests/test-gethostname.c: Include <unistd.h> first.
54763
54764 2008-10-21  Bruno Haible  <bruno@clisp.org>
54765
54766         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
54767         * modules/select-tests (Depends-on): Likewise.
54768         Reported by Simon Josefsson.
54769
54770 2008-10-21  Simon Josefsson  <simon@josefsson.org>
54771
54772         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
54773         * lib/accept.c: New file, based on winsock.c.
54774         * lib/bind.c: New file, based on winsock.c.
54775         * lib/connect.c: New file, based on winsock.c.
54776         * lib/getpeername.c: New file, based on winsock.c.
54777         * lib/getsockname.c: New file, based on winsock.c.
54778         * lib/getsockopt.c: New file, based on winsock.c.
54779         * lib/ioctl.c: New file, based on winsock.c.
54780         * lib/listen.c: New file, based on winsock.c.
54781         * lib/recv.c: New file, based on winsock.c.
54782         * lib/recvfrom.c: New file, based on winsock.c.
54783         * lib/send.c: New file, based on winsock.c.
54784         * lib/sendto.c: New file, based on winsock.c.
54785         * lib/setsockopt.c: New file, based on winsock.c.
54786         * lib/shutdown.c: New file, based on winsock.c.
54787         * lib/socket.c: New file, based on winsock.c.
54788         * lib/w32sock.h: New file, based on winsock.c.
54789         * lib/winsock.c: Remove file.
54790         * modules/accept: Likewise.
54791         * modules/bind: Likewise.
54792         * modules/connect: Likewise.
54793         * modules/getpeername: Likewise.
54794         * modules/getsockname: Likewise.
54795         * modules/getsockopt: Likewise.
54796         * modules/ioctl: Likewise.
54797         * modules/listen: Likewise.
54798         * modules/recv: Likewise.
54799         * modules/recvfrom: Likewise.
54800         * modules/send: Likewise.
54801         * modules/sendto: Likewise.
54802         * modules/setsockopt: Likewise.
54803         * modules/shutdown: Likewise.
54804         * modules/socket: Use socket.c instead of winsock.c.
54805         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
54806         * doc/posix-functions/accept.texi: Doc fix.
54807         * doc/posix-functions/bind.texi: Doc fix.
54808         * doc/posix-functions/close.texi: Doc fix.
54809         * doc/posix-functions/connect.texi: Doc fix.
54810         * doc/posix-functions/getpeername.texi: Doc fix.
54811         * doc/posix-functions/getsockname.texi: Doc fix.
54812         * doc/posix-functions/getsockopt.texi: Doc fix.
54813         * doc/posix-functions/ioctl.texi: Doc fix.
54814         * doc/posix-functions/listen.texi: Doc fix.
54815         * doc/posix-functions/recv.texi: Doc fix.
54816         * doc/posix-functions/recvfrom.texi: Doc fix.
54817         * doc/posix-functions/send.texi: Doc fix.
54818         * doc/posix-functions/sendto.texi: Doc fix.
54819         * doc/posix-functions/setsockopt.texi: Doc fix.
54820         * doc/posix-functions/shutdown.texi: Doc fix.
54821         * doc/posix-functions/socket.texi: Doc fix.
54822
54823 2008-10-20  Bruno Haible  <bruno@clisp.org>
54824
54825         Take into account the role of SIGABRT_COMPAT on Windows 2008.
54826         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
54827         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
54828         as an alias for SIGABRT.
54829         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
54830         (sigaction): Map it to SIGABRT.
54831         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
54832
54833 2008-10-20  Bruno Haible  <bruno@clisp.org>
54834
54835         * lib/fts.c: Don't include lstat.h.
54836         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
54837
54838         Move the lstat() declaration to <sys/stat.h>.
54839         * lib/lstat.h: Remove file.
54840         * lib/sys_stat.in.h: Add special invocation convention.
54841         (lstat): New declaration.
54842         * lib/lstat.c (orig_lstat): New function.
54843         (rpl_lstat): Use orig_lstat instead of lstat.
54844         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
54845         AC_C_INLINE. Set REPLACE_LSTAT.
54846         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
54847         and REPLACE_LSTAT.
54848         * modules/lstat (Files): Remove lib/lstat.h.
54849         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
54850         (Include): Specify <sys/stat.h> instead of lstat.h.
54851         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
54852         REPLACE_LSTAT.
54853         * NEWS: Mention the change.
54854
54855 2008-10-20  Bruno Haible  <bruno@clisp.org>
54856
54857         * modules/posix_spawn-tests: New file.
54858         * tests/test-posix_spawn3.c: New file.
54859
54860 2008-10-20  Bruno Haible  <bruno@clisp.org>
54861
54862         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
54863         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
54864         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
54865         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
54866         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
54867
54868 2008-10-20  Bruno Haible  <bruno@clisp.org>
54869
54870         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
54871         of posix_spawn on AIX 5.3.
54872
54873 2008-10-20  Bruno Haible  <bruno@clisp.org>
54874
54875         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
54876
54877 2008-10-20  Bruno Haible  <bruno@clisp.org>
54878
54879         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
54880         of AC_LANG_PROGRAM.
54881
54882 2008-10-20  Simon Josefsson  <simon@josefsson.org>
54883
54884         * lib/netdb.in.h: Don't define GNU specific constants until they
54885         are supported or needed.  Reported by Bruno Haible
54886         <bruno@clisp.org>.
54887
54888 2008-10-20  Simon Josefsson  <simon@josefsson.org>
54889
54890         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
54891
54892 2008-10-20  Simon Josefsson  <simon@josefsson.org>
54893
54894         * lib/getaddrinfo.h: Remove file.
54895         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
54896         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
54897         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
54898         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
54899         * modules/netdb: Substitute GNULIB_GETADDRINFO.
54900         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
54901         * tests/test-getaddrinfo.c: Likewise.
54902         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
54903         * NEWS: Mention change.
54904
54905 2008-10-19  Bruno Haible  <bruno@clisp.org>
54906
54907         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
54908
54909 2008-10-19  Bruno Haible  <bruno@clisp.org>
54910
54911         * lib/wait-process.c: Include simply <sys/wait.h>.
54912         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
54913         WIFSTOPPED): Remove fallback definitions.
54914         * modules/wait-process (Depends-on): Add sys_wait.
54915
54916         New module 'sys_wait'.
54917         * modules/sys_wait: New file.
54918         * lib/sys_wait.in.h: New file, partially copied from
54919         lib/wait-process.c.
54920         * m4/sys_wait_h.m4: New file.
54921         * doc/posix-headers/sys_wait.texi: Mention the new module.
54922
54923 2008-10-19  Bruno Haible  <bruno@clisp.org>
54924
54925         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
54926
54927 2008-10-19  Bruno Haible  <bruno@clisp.org>
54928
54929         Assume that waitpid() fills an 'int' status, not a 'union wait'.
54930         * lib/wait-process.c (WAIT_T): Remove type.
54931         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
54932         (wait_subprocess): Update.
54933
54934 2008-10-19  Bruno Haible  <bruno@clisp.org>
54935
54936         New module 'atoll'.
54937         * modules/atoll: New file.
54938         * lib/stdlib.in.h (atoll): New declaration.
54939         * lib/atoll.c: New file, from glibc with modifications.
54940         * m4/atoll.m4: New file.
54941         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
54942         HAVE_ATOLL.
54943         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
54944         * doc/posix-functions/atoll.texi: Mention the new module.
54945
54946 2008-10-19  Bruno Haible  <bruno@clisp.org>
54947
54948         Add strtoull() declaration to <stdlib.h>.
54949         * lib/stdlib.in.h (strtoull): New declaration.
54950         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
54951         Set HAVE_STRTOULL.
54952         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
54953         HAVE_STRTOULL.
54954         * modules/strtoull (Depends-on): Add stdlib.
54955         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
54956         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
54957         HAVE_STRTOULL.
54958
54959 2008-10-19  Bruno Haible  <bruno@clisp.org>
54960
54961         Add strtoll() declaration to <stdlib.h>.
54962         * lib/stdlib.in.h (strtoll): New declaration.
54963         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
54964         Set HAVE_STRTOLL.
54965         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
54966         HAVE_STRTOLL.
54967         * modules/strtoll (Depends-on): Add stdlib.
54968         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
54969         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
54970
54971 2008-10-19  Bruno Haible  <bruno@clisp.org>
54972
54973         * modules/bcopy (Depends-on): Add strings.
54974         (Include): Specify <strings.h>.
54975
54976 2008-10-19  Bruno Haible  <bruno@clisp.org>
54977
54978         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
54979
54980 2008-10-19  Bruno Haible  <bruno@clisp.org>
54981
54982         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
54983         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
54984         mingw.
54985
54986 2008-10-19  Bruno Haible  <bruno@clisp.org>
54987
54988         * lib/atanl.c: Don't include isnanl.h.
54989         * lib/cosl.c: Likewise.
54990         * lib/ldexpl.c: Likewise.
54991         * lib/logl.c: Likewise.
54992         * lib/sinl.c: Likewise.
54993         * lib/sqrtl.c: Likewise.
54994         * lib/tanl.c: Likewise.
54995
54996         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
54997         * lib/isnanf.h: Remove file.
54998         * lib/isnand.h: Remove file.
54999         * lib/isnanl.h: Remove file.
55000         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
55001         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
55002         macros.
55003         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
55004         HAVE_ISNANF, don't define it as a C macro.
55005         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
55006         HAVE_ISNAND, don't define it as a C macro.
55007         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
55008         HAVE_ISNANL, don't define it as a C macro.
55009         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
55010         HAVE_ISNAN[FDL].
55011         * modules/isnanf (Files): Remove lib/isnanf.h.
55012         (Depends-on): Add math.
55013         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
55014         (Include): Specify <math.h> instead of isnanf.h.
55015         * modules/isnand (Files): Remove lib/isnand.h.
55016         (Depends-on): Add math.
55017         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
55018         (Include): Specify <math.h> instead of isnand.h.
55019         * modules/isnanl (Files): Remove lib/isnanl.h.
55020         (Depends-on): Add math.
55021         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
55022         (Include): Specify <math.h> instead of isnanl.h.
55023         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
55024         HAVE_ISNAN[FDL].
55025         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
55026         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
55027         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
55028         * NEWS: Mention the change.
55029
55030 2008-10-18  Bruno Haible  <bruno@clisp.org>
55031
55032         Add getusershell(), setusershell(), endusershell() declarations to
55033         <unistd.h>.
55034         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
55035         declarations.
55036         * lib/getusershell.c: Include unistd.h.
55037         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
55038         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
55039         HAVE_GETUSERSHELL.
55040         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
55041         and HAVE_GETUSERSHELL.
55042         * modules/getusershell (Depends-on): Add unistd, extensions.
55043         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
55044         (Include): Specify <unistd.h>.
55045         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
55046         HAVE_GETUSERSHELL.
55047
55048 2008-10-18  Bruno Haible  <bruno@clisp.org>
55049
55050         Add a getloadavg() declaration to <stdlib.h>.
55051         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
55052         getloadavg declaration.
55053         (getloadavg): New declaration.
55054         * lib/getloadavg.c: Include <stdlib.h> first.
55055         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
55056         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
55057         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
55058         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
55059         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
55060         * modules/getloadavg (Depends-on): Add stdlib, extensions.
55061         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
55062         (Include): Specify <stdlib.h>.
55063         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
55064         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
55065
55066 2008-10-18  Bruno Haible  <bruno@clisp.org>
55067
55068         * lib/dirchownmod.c: Don't include lchmod.h.
55069
55070         Move the lchmod() declaration to <sys/stat.h>.
55071         * lib/lchmod.h: Remove file.
55072         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
55073         (lchmod): New declaration, moved here from lib/lchown.h.
55074         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
55075         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
55076         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
55077         and HAVE_LCHMOD.
55078         * modules/lchmod (Files): Remove lib/lchmod.h.
55079         (Depends-on): Add sys_stat, extensions.
55080         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
55081         (Include): Specify <sys/stat.h> instead of lchmod.h.
55082         * modules/sys_stat (Depends-on): Add link-warning.
55083         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
55084         definition of GL_LINK_WARNING.
55085         * NEWS: Mention the change.
55086
55087 2008-10-18  Bruno Haible  <bruno@clisp.org>
55088
55089         * lib/fchdir.c: Don't include dirfd.h.
55090         * lib/fts.c: Likewise.
55091         * lib/getcwd.c: Likewise.
55092         * lib/glob.c: Likewise.
55093
55094         Move the dirfd() declaration to <dirent.h>.
55095         * lib/dirfd.h: Remove file.
55096         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
55097         (dirfd): New declaration.
55098         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
55099         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
55100         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
55101         HAVE_DECL_DIRFD.
55102         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
55103         HAVE_DECL_DIRFD.
55104         * modules/dirfd (Files): Remove lib/dirfd.h.
55105         (Depends-on): Add dirent, extensions.
55106         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
55107         (Include): Specify <dirent.h> instead of dirfd.h.
55108         * modules/dirent (Depends-on): Add link-warning.
55109         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
55110         definition of GL_LINK_WARNING.
55111         * NEWS: Mention the change.
55112
55113 2008-10-18  Bruno Haible  <bruno@clisp.org>
55114
55115         Move the euidaccess() declaration to <unistd.h>.
55116         * lib/euidaccess.h: Remove file.
55117         * lib/unistd.in.h (euidaccess): New declaration.
55118         * lib/euidaccess.c: Don't include euidaccess.h.
55119         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
55120         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
55121         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
55122         and HAVE_EUIDACCESS.
55123         * modules/euidaccess (Files): Remove lib/euidaccess.h.
55124         (Depends-on): Add unistd.
55125         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
55126         (Include): Specify <unistd.h> instead of euidaccess.h.
55127         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
55128         HAVE_EUIDACCESS.
55129         * NEWS: Mention the change.
55130
55131 2008-10-18  Bruno Haible  <bruno@clisp.org>
55132
55133         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
55134
55135         Move the getdomainname() declaration to <unistd.h>.
55136         * lib/getdomainname.h: Remove file.
55137         * lib/unistd.in.h (getdomainname): New declaration.
55138         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
55139         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
55140         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
55141         HAVE_GETDOMAINNAME.
55142         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
55143         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
55144         * modules/getdomainname (Files): Remove lib/getdomainname.h.
55145         (Depends-on): Add unistd, extensions.
55146         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
55147         (Includes): Specify <unistd.h> instead of getdomainname.h.
55148         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
55149         HAVE_GETDOMAINNAME.
55150         * NEWS: Mention the change.
55151
55152 2008-10-18  Bruno Haible  <bruno@clisp.org>
55153
55154         * modules/dirent: New file.
55155         * m4/dirent_h.m4: New file.
55156         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
55157         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
55158         * modules/fchdir (Files): Remove lib/dirent.in.h.
55159         (Depends-on): Add dirent.
55160         (Makefile.am): Move rules to modules/dirent.
55161         * doc/posix-headers/dirent.texi: Mention the new module.
55162
55163 2008-10-18  Bruno Haible  <bruno@clisp.org>
55164
55165         Avoid -Wunused-parameter warnings in public gnulib header files.
55166         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
55167         macro.
55168         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
55169
55170 2008-10-18  Bruno Haible  <bruno@clisp.org>
55171
55172         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
55173         * doc/glibc-functions/error.texi: Mention the module 'error'.
55174         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
55175         * doc/glibc-functions/getdomainname.texi: Mention the module
55176         'getdomainname'.
55177         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
55178         * doc/glibc-functions/getpagesize.texi: Mention the module
55179         'getpagesize'.
55180         * doc/glibc-functions/getusershell.texi: Mention the module
55181         'getusershell'.
55182         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
55183         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
55184         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
55185         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
55186         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
55187         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
55188         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
55189         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
55190         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
55191         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
55192         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
55193         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
55194         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
55195         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
55196
55197 2008-10-17  Bruno Haible  <bruno@clisp.org>
55198
55199         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
55200         HP-UX and IRIX, use -0.0L.
55201         * tests/test-ceill.c (minus_zero): Likewise.
55202         * tests/test-floorl.c (minus_zero): Likewise.
55203         * tests/test-frexpl.c (minus_zero): Likewise.
55204         * tests/test-isnan.c (minus_zerol): Likewise.
55205         * tests/test-isnanl.h (minus_zero): Likewise.
55206         * tests/test-ldexpl.c (minus_zero): Likewise.
55207         * tests/test-roundl.c (minus_zero): Likewise.
55208         * tests/test-signbit.c (minus_zerol): Likewise.
55209         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
55210         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
55211         * tests/test-truncl.c (minus_zero): Likewise.
55212         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
55213         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
55214         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
55215         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
55216
55217 2008-10-17  Bruno Haible  <bruno@clisp.org>
55218
55219         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
55220         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
55221         that it gets activated only for gcc >= 3.0.
55222         * lib/dirent.in.h: Likewise.
55223         * lib/errno.in.h: Likewise.
55224         * lib/fcntl.in.h: Likewise.
55225         * lib/float.in.h: Likewise.
55226         * lib/iconv.in.h: Likewise.
55227         * lib/inttypes.in.h: Likewise.
55228         * lib/locale.in.h: Likewise.
55229         * lib/math.in.h: Likewise.
55230         * lib/netdb.in.h: Likewise.
55231         * lib/netinet_in.in.h: Likewise.
55232         * lib/search.in.h: Likewise.
55233         * lib/signal.in.h: Likewise.
55234         * lib/spawn.in.h: Likewise.
55235         * lib/stdarg.in.h: Likewise.
55236         * lib/stdint.in.h: Likewise.
55237         * lib/stdio.in.h: Likewise.
55238         * lib/stdlib.in.h: Likewise.
55239         * lib/string.in.h: Likewise.
55240         * lib/strings.in.h: Likewise.
55241         * lib/sys_file.in.h: Likewise.
55242         * lib/sys_ioctl.in.h: Likewise.
55243         * lib/sys_select.in.h: Likewise.
55244         * lib/sys_socket.in.h: Likewise.
55245         * lib/sys_stat.in.h: Likewise.
55246         * lib/sys_time.in.h: Likewise.
55247         * lib/sysexits.in.h: Likewise.
55248         * lib/time.in.h: Likewise.
55249         * lib/unistd.in.h: Likewise.
55250         * lib/wchar.in.h: Likewise.
55251         * lib/wctype.in.h: Likewise.
55252         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
55253
55254 2008-10-17  Jim Meyering  <meyering@redhat.com>
55255
55256         ignore-value: don't depend on inline module
55257         * modules/ignore-value (Depends-on): Remove 'inline'.
55258         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
55259         Suggestion from Bruno Haible.
55260
55261 2008-10-17  Bruno Haible  <bruno@clisp.org>
55262
55263         New implementation of condition variables for Win32.
55264         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
55265         (gl_linked_waitqueue_t): New type.
55266         (gl_cond_t): Use it.
55267         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
55268         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
55269         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
55270         (glthread_cond_init_func, glthread_cond_wait_func,
55271         glthread_cond_timedwait_func, glthread_cond_signal_func,
55272         glthread_cond_broadcast_func, glthread_cond_destroy_func):
55273         Reimplemented on the basis of gl_linked_waitqueue_t.
55274         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
55275         gl_waitqueue_t.
55276         (gl_rwlock_t): Update.
55277         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
55278
55279 2008-10-17  Simon Josefsson  <simon@josefsson.org>
55280
55281         * modules/recvfrom (Depends-on): Add dependency on getpeername.
55282         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
55283
55284 2008-10-17  Jim Meyering  <meyering@redhat.com>
55285
55286         ignore-value: new module
55287         * modules/ignore-value: New file.
55288         * lib/ignore-value.h: New file.
55289         * MODULES.html.sh (Compiler warning management): New section,
55290         just for this module.  More to come.
55291
55292 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
55293
55294         open-safer.c: avoid 'signed and unsigned in conditional...' warning
55295         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
55296         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
55297
55298 2008-10-16  Jim Meyering  <meyering@redhat.com>
55299
55300         openat-die.c: avoid 'no previous prototype' warning
55301         * lib/openat-die.c: Include "openat.h".
55302         Reported by Reuben Thomas <rrt@sc3d.org>.
55303
55304 2008-10-16  Simon Josefsson  <simon@josefsson.org>
55305
55306         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
55307         * lib/netdb.in.h: Fix typo.
55308         Reported by Bruno Haible  <bruno@clisp.org>
55309
55310         * lib/netdb.in.h: Include sys/socket.h for platforms without
55311         netdb.h, to get structures like hostent on MinGW.
55312         * modules/netdb (Depends-on): Add sys_socket.
55313
55314 2008-10-15  Simon Josefsson  <simon@josefsson.org>
55315
55316         * modules/netdb, modules/netdb-tests: New file.
55317         * m4/netdb_h.m4: New file.
55318         * lib/netdb.in.h: Add, currently just an empty file pending
55319         definitions.
55320         * tests/test-netdb.c: New file.
55321         * doc/posix-headers/netdb.texi: Mention that we replace it if
55322         needed.
55323         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
55324         netdb.
55325
55326 2008-10-15  Simon Josefsson  <simon@josefsson.org>
55327
55328         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
55329         with code.
55330
55331 2008-10-13  Bruno Haible  <bruno@clisp.org>
55332
55333         * lib/glthread/cond.c (glthread_cond_wait_func,
55334         glthread_cond_timedwait_func): Add a comment.
55335
55336 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
55337
55338         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
55339         * tests/test-select.c: Likewise,
55340
55341 2008-10-13  Bruno Haible  <bruno@clisp.org>
55342
55343         * lib/glthread/cond.c (glthread_cond_wait_func,
55344         glthread_cond_timedwait_func): Fix variable name.
55345         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
55346
55347 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
55348
55349         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
55350         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
55351         struct sockaddr.sa_len.
55352         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
55353
55354 2008-10-13  Simon Josefsson  <simon@josefsson.org>
55355
55356         * build-aux/pmccabe2html: Add css and css_url parameters.
55357
55358 2008-10-12  Bruno Haible  <bruno@clisp.org>
55359
55360         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
55361         calling aclx_get.
55362         Reported by Rainer Tammer <tammer@tammer.net>.
55363
55364 2008-10-12  Bruno Haible  <bruno@clisp.org>
55365
55366         Use msvcrt aware primitives for creation/termination of Win32 threads.
55367         * lib/glthread/thread.c: Include <process.h>.
55368         (glthread_create_func): Use _beginthreadex instead of CreateThread.
55369         (wrapper_func): Update signature.
55370         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
55371
55372 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
55373             Bruno Haible  <bruno@clisp.org>
55374
55375         Provide a Win32 implementation of the 'cond' module.
55376         * lib/glthread/cond.h [USE_WIN32]: New implementation.
55377         * lib/glthread/cond.c (glthread_cond_init_func,
55378         glthread_cond_wait_func, glthread_cond_timedwait_func,
55379         glthread_cond_signal_func, glthread_cond_broadcast_func,
55380         glthread_cond_destroy_func) [USE_WIN32]: New functions.
55381         * modules/cond (Dependencies): Add gettimeofday.
55382
55383 2008-10-11  Bruno Haible  <bruno@clisp.org>
55384
55385         Make sleep work on older versions of mingw.
55386         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
55387         only whether it exists.
55388         * doc/posix-functions/sleep.texi: Mention the problem with older
55389         versions of mingw.
55390
55391 2008-10-11  Bruno Haible  <bruno@clisp.org>
55392
55393         New module 'shutdown'.
55394         * modules/shutdown: New file.
55395         * lib/sys_socket.in.h (shutdown): New declaration.
55396         * lib/winsock.c (shutdown): New function.
55397         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
55398         GNULIB_SHUTDOWN.
55399         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
55400         * doc/posix-functions/shutdown.texi: Document the new module.
55401
55402 2008-10-11  Jim Meyering  <meyering@redhat.com>
55403
55404         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
55405
55406 2008-10-11  Bruno Haible  <bruno@clisp.org>
55407
55408         New module 'fclose'.
55409         * modules/fclose: New file.
55410         * lib/stdio.in.h (fclose): New declaration.
55411         * lib/fclose.c: New file.
55412         * m4/fclose.m4: New file.
55413         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
55414         REPLACE_FCLOSE.
55415         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
55416         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
55417         REPLACE_FCLOSE.
55418         * modules/close (Depends-on): fclose.
55419         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
55420
55421 2008-10-11  Bruno Haible  <bruno@clisp.org>
55422
55423         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
55424         set errno and don't call _close.
55425
55426 2008-10-10  Bruno Haible  <bruno@clisp.org>
55427
55428         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
55429         ACL, not afterwards. Fixes test failure on Cygwin.
55430
55431 2008-10-09  Ben Pfaff  <blp@gnu.org>
55432
55433         * build-aux/announce-gen: Fix gnulib version related part of usage
55434         message.  Die with a useful error message if no tarballs are
55435         found.
55436
55437 2008-10-10  Jim Meyering  <meyering@redhat.com>
55438
55439         bootstrap: use git's --depth=N option only if it's supported
55440         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
55441         recognize the --depth option.  Reported by Pádraig Brady.
55442
55443 2008-10-09  Bruno Haible  <bruno@clisp.org>
55444
55445         New module 'ioctl'.
55446         * modules/ioctl: New file.
55447         * lib/sys_socket.in.h (ioctl): Remove declaration.
55448         * lib/winsock.c: Include <sys/ioctl.h>.
55449         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
55450         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
55451         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
55452         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
55453         * doc/posix-functions/ioctl.texi: Mention the new module.
55454
55455 2008-10-09  Bruno Haible  <bruno@clisp.org>
55456
55457         New module 'sys_ioctl'.
55458         * lib/sys_ioctl.in.h: New file.
55459         * m4/sys_ioctl_h.m4: New file.
55460         * modules/sys_ioctl: New file.
55461         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
55462
55463 2008-10-09  Bruno Haible  <bruno@clisp.org>
55464
55465         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
55466         * lib/winsock.c: Include <stdarg.h>.
55467         (rpl_ioctl): Change to second argument 'int' and then varargs.
55468
55469 2008-10-09  Bruno Haible  <bruno@clisp.org>
55470
55471         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
55472         when the sys_socket module is present and the system has <winsock2.h>.
55473
55474 2008-10-09  Bruno Haible  <bruno@clisp.org>
55475
55476         * doc/posix-functions/close.texi: Mention module 'close' instead of
55477         module 'sys_socket'.
55478
55479 2008-10-09  Bruno Haible  <bruno@clisp.org>
55480
55481         * doc/glibc-headers/sys_ioctl.texi: New file.
55482         * doc/gnulib.texi: Include it.
55483
55484 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
55485             Bruno Haible  <bruno@clisp.org>
55486
55487         Combine the two replacements of 'close'.
55488         * lib/sys_socket.in.h (close): Define to a reminder to include
55489         <unistd.h>.
55490         (_gl_close_fd_maybe_socket): New declaration.
55491         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
55492         * lib/winsock.c (close): Remove undefinition.
55493         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
55494         needed for the gnulib module 'close'.
55495         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
55496         define to an error symbol or to a warning, if suitable.
55497         * lib/close.c: Include <sys/socket.h>.
55498         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
55499         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
55500         UNISTD_H_HAVE_WINSOCK2_H.
55501         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
55502         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
55503         UNISTD_H_HAVE_WINSOCK2_H.
55504         * modules/sys_socket (Files): Add m4/unistd_h.m4.
55505         (configure.ac): Set a module indicator.
55506         (Makefile.am): Substitute GNULIB_CLOSE.
55507         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
55508         * modules/poll-tests (Depends-on): Add close.
55509         * modules/select-tests (Depends-on): Likewise.
55510
55511 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
55512             Bruno Haible  <bruno@clisp.org>
55513
55514         New module 'close'.
55515         * modules/close: New file.
55516         * lib/unistd.in.h (close): Move declaration out of the
55517         FCHDIR_REPLACEMENT scope.
55518         (_gl_unregister_fd): New declaration.
55519         * lib/close.c: New file.
55520         * lib/fchdir.c (rpl_close): Remove function.
55521         * m4/close.m4: New file.
55522         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
55523         close.
55524         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
55525         REPLACE_CLOSE.
55526         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
55527         REPLACE_CLOSE.
55528         * modules/fchdir (Depends-on): Add close.
55529
55530 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
55531             Bruno Haible  <bruno@clisp.org>
55532
55533         * lib/fcntl.in.h (open): Simplify conditionals.
55534         (_gl_register_fd): New declaration.
55535         * lib/fchdir.c (rpl_open): Remove function.
55536         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
55537         also.
55538         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
55539         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
55540         open.
55541
55542 2008-10-09  Jim Meyering  <meyering@redhat.com>
55543
55544         GNUmakefile: use the more name-space-friendly "_version"
55545         * top/GNUmakefile (_dummy): Update.
55546         (_version): Rename from "version".
55547
55548 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
55549             Bruno Haible  <bruno@clisp.org>
55550
55551         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
55552         rpl_close.
55553         (_gl_register_fd): New function, extracted from rpl_open.
55554         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
55555         (rpl_open, rpl_opendir): Use _gl_register_fd.
55556
55557 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
55558
55559         Fix organization of 'open' replacement.
55560         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
55561         (gl_FUNC_OPEN): Use it.
55562         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
55563
55564 2008-10-08  Bruno Haible  <bruno@clisp.org>
55565
55566         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
55567
55568 2008-10-08  Simon Josefsson  <simon@josefsson.org>
55569
55570         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
55571         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
55572         listen).
55573
55574 2008-10-08  Eric Blake  <ebb9@byu.net>
55575
55576         GNUmakefile: add 'make version' target
55577         * top/GNUmakefile (_curr-ver): Split version update rules...
55578         (version): ...into a target.
55579
55580 2008-10-07  Bruno Haible  <bruno@clisp.org>
55581
55582         Use a more portable replacement expression for -0.0L.
55583         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
55584         instead of -0.0L. Fix m4 quotation.
55585
55586         * tests/test-signbit.c: Include <float.h>.
55587         (minus_zero): New variable.
55588         (test_signbitl): Use minus_zero instead of -zero.
55589         * modules/signbit-tests (Depends-on): Add float.
55590
55591         * tests/test-ceill.c: Include <float.h>.
55592         (zero): Remove variable.
55593         (minus_zero): New variable.
55594         (main): Use minus_zero instead of -zero.
55595         * modules/ceill-tests (Depends-on): Add float.
55596
55597         * tests/test-floorl.c: Include <float.h>.
55598         (zero): Remove variable.
55599         (minus_zero): New variable.
55600         (main): Use minus_zero instead of -zero.
55601         * modules/floorl-tests (Depends-on): Add float.
55602
55603         * tests/test-roundl.c: Include <float.h>.
55604         (zero): Remove variable.
55605         (minus_zero): New variable.
55606         (main): Use minus_zero instead of -zero.
55607         * modules/roundl-tests (Depends-on): Add float.
55608
55609         * tests/test-truncl.c: Include <float.h>.
55610         (zero): Remove variable.
55611         (minus_zero): New variable.
55612         (main): Use minus_zero instead of -zero.
55613         * modules/truncl-tests (Depends-on): Add float.
55614
55615         * tests/test-frexpl.c (zero): Remove variable.
55616         (minus_zero): New variable.
55617         (main): Use minus_zero instead of -zero.
55618         * modules/frexpl-tests (Depends-on): Add float.
55619
55620         * tests/test-isnan.c (zerol): Remove variable.
55621         (minus_zerol): New variable.
55622         (test_long_double): Use minus_zerol instead of -zerol.
55623         * modules/isnan-tests (Depends-on): Add float.
55624
55625         * tests/test-isnanl.h (zero): Remove variable.
55626         (minus_zero): New variable.
55627         (main): Use minus_zero instead of -zero.
55628         * modules/isnanl-nolibm-tests (Depends-on): Add float.
55629         * modules/isnanl-tests (Depends-on): Add float.
55630
55631         * tests/test-ldexpl.c (zero): Remove variable.
55632         (minus_zero): New variable.
55633         (main): Use minus_zero instead of -zero.
55634         * modules/ldexpl-tests (Depends-on): Add float.
55635
55636         * tests/test-snprintf-posix.h (zerol): Remove variable.
55637         (minus_zerol): New variable.
55638         (test_function): Use minus_zerol instead of -zerol.
55639         * modules/snprintf-posix-tests (Depends-on): Add float.
55640         * modules/vsnprintf-posix-tests (Depends-on): Add float.
55641
55642         * tests/test-sprintf-posix.h (zerol): Remove variable.
55643         (minus_zerol): New variable.
55644         (test_function): Use minus_zerol instead of -zerol.
55645         * modules/sprintf-posix-tests (Depends-on): Add float.
55646         * modules/vsprintf-posix-tests (Depends-on): Add float.
55647
55648         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
55649         (minus_zerol): New variable.
55650         (test_function): Use minus_zerol instead of -zerol.
55651         * modules/vasnprintf-posix-tests (Depends-on): Add float.
55652
55653         * tests/test-vasprintf-posix.c (zerol): Remove variable.
55654         (minus_zerol): New variable.
55655         (test_function): Use minus_zerol instead of -zerol.
55656         * modules/vasprintf-posix-tests (Depends-on): Add float.
55657
55658 2008-10-07  Simon Josefsson  <simon@josefsson.org>
55659
55660         * MODULES.html.sh (Support for building documentation): Mention
55661         pmccabe2html.  Sort entries.
55662
55663         Add pmccabe2html module, from gnupdf.
55664         * build-aux/pmccabe.css: New file.
55665         * build-aux/pmccabe2html: New file.
55666         * m4/pmccabe2html.m4: New file.
55667         * modules/pmccabe2html: New file.
55668
55669 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
55670
55671         flock: new module
55672         * MODULES.html.sh: Add to list of modules.
55673         * lib/flock.c: flock implementation for Windows and Unix systems
55674         which have fcntl.
55675         * doc/glibc-functions/flock.texi: Update documentation.
55676         * lib/sys_file.in.h: <sys/file.h> header file.
55677         * m4/flock.m4: M4 macros.
55678         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
55679         * modules/flock: flock module.
55680         * modules/flock-tests: flock tests module.
55681         * modules/sys_file: sys/file.h module.
55682         * tests/test-flock.c: test suite for flock.
55683
55684 2008-10-06  Jim Meyering  <meyering@redhat.com>
55685
55686         bootstrap: check for LT_INIT more portably still ;-)
55687         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
55688         Spotted by Bruno Haible.
55689
55690 2008-10-06  Eric Blake  <ebb9@byu.net>
55691
55692         test-signbit: avoid tripping Irix cc bug on -0.0L
55693         * tests/test-signbit.c (minus_zerol): Delete, and replace with
55694         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
55695         entire testsuite consistent and avoids an Irix 6.2 bug.
55696
55697 2008-10-05  Bruno Haible  <bruno@clisp.org>
55698             Jim Meyering  <jim@meyering.net>
55699
55700         Add an option for ignoring EPIPE during close_stdout.
55701         * lib/closeout.h: Include <stdbool.h>.
55702         (close_stdout_set_ignore_EPIPE): New declaration.
55703         * lib/closeout.c: Include <stdbool.h>.
55704         (ignore_EPIPE): New variable.
55705         (close_stdout_set_ignore_EPIPE): New function.
55706         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
55707         * lib/close-stream.c (close_stream): Mention the possible EPIPE
55708         failure.
55709         * modules/closeout (Depends-on): Add stdbool.
55710
55711 2008-10-05  Bruno Haible  <bruno@clisp.org>
55712
55713         * modules/accept: New file.
55714         * modules/bind: New file.
55715         * modules/connect: New file.
55716         * modules/getpeername: New file.
55717         * modules/getsockname: New file.
55718         * modules/getsockopt: New file.
55719         * modules/listen: New file.
55720         * modules/recv: New file.
55721         * modules/recvfrom: New file.
55722         * modules/send: New file.
55723         * modules/sendto: New file.
55724         * modules/setsockopt: New file.
55725         * modules/socket: New file.
55726         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
55727         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
55728         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
55729         the particular module is requested. Add a link warning when the
55730         particular module is not requested.
55731         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
55732         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
55733         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
55734         the particular module is requested.
55735         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
55736         gl_SYS_SOCKET_H_DEFAULTS): New macros.
55737         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
55738         * modules/sys_socket (Depends-on): Add link-warning.
55739         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
55740         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
55741         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
55742         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
55743         GL_LINK_WARNING.
55744         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
55745         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
55746         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
55747         * doc/posix-functions/getpeername.texi: Mention the new module
55748         'getpeername'.
55749         * doc/posix-functions/getsockname.texi: Mention the new module
55750         'getsockname'.
55751         * doc/posix-functions/getsockopt.texi: Mention the new module
55752         'getsockopt'.
55753         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
55754         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
55755         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
55756         * doc/posix-functions/send.texi: Mention the new module 'send'.
55757         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
55758         * doc/posix-functions/setsockopt.texi: Mention the new module
55759         'setsockopt'.
55760         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
55761         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
55762         listen, connect, accept.
55763         * modules/select-tests (Depends-on): Likewise.
55764
55765 2008-10-05  Bruno Haible  <bruno@clisp.org>
55766
55767         * lib/winsock.c (strerror): Remove unused #undef.
55768         (rpl_close): Remove unused local variable.
55769
55770         * modules/sys_socket (Depends-on); Add errno.
55771
55772 2008-10-05  Bruno Haible  <bruno@clisp.org>
55773
55774         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
55775         (select): Add a link warning when the 'select' module is not used.
55776         * modules/sys_select (Depends-on): Add link-warning.
55777         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
55778         Suggested by Paolo Bonzini.
55779
55780 2008-10-05  Jim Meyering  <meyering@redhat.com>
55781
55782         bootstrap: check for LT_INIT more portably
55783         * build-aux/bootstrap: Avoid using grep -E, since it's not
55784         portable enough.  Suggestion from Bruno Haible.
55785
55786 2008-10-05  Bruno Haible  <bruno@clisp.org>
55787
55788         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
55789         as being fixed by gnulib.
55790
55791 2008-10-05  Bruno Haible  <bruno@clisp.org>
55792
55793         * modules/select-tests: New file, mostly copied from
55794         modules/sys_select-tests.
55795         * tests/test-select.c: New file, mostly copied from
55796         tests/test-sys_select.c.
55797         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
55798         * modules/sys_select-tests (Depends-on): Remove all dependencies.
55799         (Makefile.am): Remove test_sys_select_LDADD.
55800
55801         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
55802         to an undefined symbol, for an error message.
55803         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
55804         (gl_SYS_SELECT_H_DEFAULTS): New macro.
55805         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
55806         winsock-select.c here.
55807         * modules/sys_select (Files): Remove lib/winsock-select.c.
55808         (Depends-on): Remove alloca.
55809         (Makefile.am): Substitute GNULIB_SELECT.
55810         * modules/select: New file.
55811         * doc/posix-functions/select.texi: Update.
55812
55813 2008-10-05  Bruno Haible  <bruno@clisp.org>
55814
55815         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
55816         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
55817         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
55818         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
55819         getdtablesize.
55820         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
55821         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
55822
55823 2008-10-05  Bruno Haible  <bruno@clisp.org>
55824
55825         * modules/getdtablesize-tests: New file.
55826         * tests/test-getdtablesize.c: New file.
55827
55828         New module 'getdtablesize'.
55829         * lib/unistd.in.h (getdtablesize): New declaration.
55830         * lib/getdtablesize.c: New file.
55831         * m4/getdtablesize.m4: New file.
55832         * modules/getdtablesize: New file.
55833         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
55834         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
55835         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
55836         HAVE_GETDTABLESIZE.
55837         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
55838
55839 2008-10-05  Bruno Haible  <bruno@clisp.org>
55840
55841         * modules/sched (Makefile.am): Fix typo.
55842         Reported by Simon Josefsson.
55843
55844 2008-10-05  Jim Meyering  <meyering@redhat.com>
55845
55846         bootstrap: check for LT_INIT, too
55847         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
55848         are deprecated.  Suggestion from Ralf Wildenhues.
55849
55850 2008-10-05  Bruno Haible  <bruno@clisp.org>
55851
55852         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
55853         overriding them by ours.
55854         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
55855
55856 2008-10-05  Jim Meyering  <meyering@redhat.com>
55857
55858         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
55859         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
55860         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
55861
55862 2008-10-04  Bruno Haible  <bruno@clisp.org>
55863
55864         * modules/dup2 (License): Change to LGPLv2+.
55865         * modules/sleep (License): Likewise.
55866         * modules/perror (License): Likewise.
55867         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
55868         Blake.
55869         * modules/signal (License): Likewise.
55870         * modules/sigprocmask (License): Likewise.
55871         * modules/raise (License): Change to LGPLv2+, with approval by Jim
55872         Meyering.
55873
55874 2008-10-04  Bruno Haible  <bruno@clisp.org>
55875
55876         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
55877         Reported by Rainer Tammer <tammer@tammer.net>.
55878
55879 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
55880             Bruno Haible  <bruno@clisp.org>
55881
55882         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
55883         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
55884         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
55885
55886 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
55887
55888         filevercmp: new module
55889         * lib/filevercmp.h: New function filevercmp comparing version strings.
55890         * lib/filevercmp.c: Implementation of filevercmp function.
55891         * modules/filevercmp: Module metadata.
55892         * tests/test-filevercmp.c: Unit test for new module.
55893         * modules/filevercmp-tests: Unit test metadata.
55894         * MODULES.html.sh: Add filevercmp module.
55895
55896 2008-10-03  Bruno Haible  <bruno@clisp.org>
55897
55898         * lib/c-ctype.h: Add comment.
55899         Reported by Jim Meyering.
55900
55901 2008-10-02  Bruno Haible  <bruno@clisp.org>
55902
55903         * modules/posix_spawn-internal (Depends-on): Add 'open'.
55904
55905 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
55906
55907         * build-aux/bootstrap: Allow renaming bootstrap, and change the
55908         name of bootstrap.conf accordingly.
55909
55910 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
55911
55912         * build-aux/bootstrap: Install git-merge-changelog configuration
55913         items into .gitconfig if needed.
55914
55915 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
55916
55917         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
55918         git repository, and initialize/update it accordingly.
55919
55920 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
55921
55922         * modules/fsync-tests: New file.
55923         * tests/test-fsync.c: New file.
55924
55925         New module 'fsync'.
55926         * lib/fsync.c: New file.
55927         * m4/fsync.m4: New file.
55928         * modules/fsync: New file.
55929         * lib/unistd.in.h (fsync): New declaration.
55930         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
55931         GNULIB_FSYNC and HAVE_FSYNC.
55932         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
55933         * MODULES.html.sh (posix_functions): Add fsync.
55934         * doc/posix-functions/fsync.texi: Mention the new module.
55935
55936 2008-10-02  Jim Meyering  <meyering@redhat.com>
55937
55938         fts.c: sync with similar code from coreutils' remove.c
55939         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
55940         Guard also with "#if defined __linux__", since for now at least,
55941         this code is Linux-kernel-specific.
55942
55943 2008-10-02  Jim Meyering  <meyering@redhat.com>
55944
55945         fts: bug fixes
55946         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
55947         Include <sys/vfs.h>, not <sys/statfs.h>.
55948
55949         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
55950         Include <sys/vfs.h>, not <sys/statfs.h>.
55951
55952 2008-10-01  Bruno Haible  <bruno@clisp.org>
55953
55954         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
55955         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
55956         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
55957         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
55958         * doc/posix-functions/posix_spawnp.texi: Likewise.
55959         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
55960         whether posix_spawn actually works.
55961         * m4/pipe.m4 (gl_PIPE): Likewise.
55962         * modules/execute (Files): Add m4/posix_spawn.m4.
55963         * modules/pipe (Files): Add m4/posix_spawn.m4.
55964         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
55965
55966 2008-10-01  Jim Meyering  <meyering@redhat.com>
55967
55968         remove trailing spaces
55969         * NEWS: Likewise.
55970         * lib/poll.c (poll): Likewise.
55971         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
55972         * lib/winsock.c (rpl_close): Likewise.
55973         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
55974         * modules/yield: Likewise.
55975         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
55976         * tests/test-sys_select.c (connect_to_socket): Likewise.
55977
55978         fts.c: adjust a new interface to be more generally useful
55979         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
55980         (fts_build): Adjust caller.
55981
55982 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55983
55984         * modules/cond-tests: New file.
55985         * tests/test-cond.c: New file.
55986
55987 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55988             Bruno Haible  <bruno@clisp.org>
55989
55990         * modules/cond (Dependencies): Add errno, time.
55991         * lib/glthread/cond.h: Include <time.h>.
55992         (gl_cond_define, gl_cond_define_initialized): Use the same definition
55993         across platforms.
55994
55995 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55996             Bruno Haible  <bruno@clisp.org>
55997
55998         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
55999
56000 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56001             Bruno Haible  <bruno@clisp.org>
56002
56003         * modules/tls-tests (Depends-on): Add thread, yield.
56004         (configure.ac): Remove all checks.
56005         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
56006         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
56007         gl_thread_self): Remove definitions. Include glthread/thread.h and
56008         glthread/yield.h instead.
56009         (test_tls): Pass an additional NULL argument to gl_thread_join.
56010
56011 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56012             Bruno Haible  <bruno@clisp.org>
56013
56014         * modules/lock-tests (Depends-on): Add thread, yield.
56015         (configure.ac): Remove all checks.
56016         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
56017         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
56018         gl_thread_self): Remove definitions. Include glthread/thread.h and
56019         glthread/yield.h instead.
56020         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
56021         additional NULL argument to gl_thread_join.
56022
56023 2008-09-30  Bruno Haible  <bruno@clisp.org>
56024
56025         Fix the Win32 implementation of the 'thread' module.
56026         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
56027         pointer type.
56028         (gl_thread_self): Invoke gl_thread_self_func.
56029         (gl_thread_self_func): New declaration.
56030         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
56031         (do_init_self_key, init_self_key): New functions.
56032         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
56033         Remove some fields.
56034         (running_threads, running_lock): Remove variables.
56035         (get_current_thread_handle): New function.
56036         (gl_thread_self_func, wrapper_func, glthread_create_func,
56037         glthread_join_func, gl_thread_exit_func): Largely rewritten and
56038         simplified.
56039
56040 2008-09-30  Bruno Haible  <bruno@clisp.org>
56041
56042         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
56043         files.
56044
56045 2008-09-30  Jim Meyering  <meyering@redhat.com>
56046
56047         fts.m4: correct the test for statfs.f_type
56048         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
56049         when checking for statfs.f_type.
56050
56051 2008-09-15  Simon Josefsson  <simon@josefsson.org>
56052
56053         tests: avoid some compiler warnings
56054         * tests/test-memchr.c (main): Pass NULL indirectly.
56055         * tests/test-getdate.c (main): Remove unused variable 'ret'.
56056
56057 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
56058
56059         getdate.y: disallow countable dayshifts like "4 yesterday ago"
56060         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
56061         exactly specified dayshifts.
56062         (dayshift): New rule.
56063         (rel): Add dayshift.
56064         (relative_time_table) [tomorrow, yesterday, today, now]:
56065         Use tDAY_SHIFT in place of tDAY_UNIT.
56066         * tests/test-getdate.c: Add tests for now-disallowed countable
56067         dayshifts, e.g., "4 yesterday ago".
56068
56069 2008-09-29  Bruno Haible  <bruno@clisp.org>
56070
56071         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
56072         * tests/test-posix_spawn1.in.sh: Renamed from
56073         tests/test-posix_spawn.in.sh.
56074         * tests/test-posix_spawn2.c: New file.
56075         * tests/test-posix_spawn2.in.sh: New file.
56076         * modules/posix_spawnp-tests (Files): Update.
56077         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
56078
56079 2008-09-29  Bruno Haible  <bruno@clisp.org>
56080
56081         Propagate effects of putenv/setenv/unsetenv to child processes.
56082         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
56083         * lib/pipe.c (create_pipe): Likewise.
56084
56085 2008-09-29  Bruno Haible  <bruno@clisp.org>
56086
56087         Enable use of shell scripts as executables in mingw.
56088         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
56089         run the program as a shell script.
56090         * lib/pipe.c (create_pipe): Likewise.
56091         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
56092         resulting array.
56093
56094 2008-09-29  Eric Blake  <ebb9@byu.net>
56095
56096         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
56097
56098 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
56099
56100         * doc/posix-functions/accept.texi: Update mingw problems.
56101         * doc/posix-functions/bind.texi: Update mingw problems.
56102         * doc/posix-functions/close.texi: Update mingw problems.
56103         * doc/posix-functions/connect.texi: Update mingw problems.
56104         * doc/posix-functions/getpeername.texi: Update mingw problems.
56105         * doc/posix-functions/getsockname.texi: Update mingw problems.
56106         * doc/posix-functions/getsockopt.texi: Update mingw problems.
56107         * doc/posix-functions/ioctl.texi: Update mingw problems.
56108         * doc/posix-functions/listen.texi: Update mingw problems.
56109         * doc/posix-functions/recv.texi: Update mingw problems.
56110         * doc/posix-functions/recvfrom.texi: Update mingw problems.
56111         * doc/posix-functions/select.texi: Update mingw problems.
56112         * doc/posix-functions/send.texi: Update mingw problems.
56113         * doc/posix-functions/sendto.texi: Update mingw problems.
56114         * doc/posix-functions/setsockopt.texi: Update mingw problems.
56115         * doc/posix-functions/socket.texi: Update mingw problems.
56116
56117 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
56118             Bruno Haible  <bruno@clisp.org>
56119
56120         * lib/sys_select.in.h: Include sys/time.h.
56121         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
56122         * modules/sys_select: Depend on sys_time.
56123         * tests/test-sys_select.c: Test that sys/select.h defines struct
56124         timeval fully.
56125
56126 2008-09-29  Bruno Haible  <bruno@clisp.org>
56127
56128         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
56129         * lib/sys_select.in.h: Likewise.
56130
56131 2008-09-29  Bruno Haible  <bruno@clisp.org>
56132
56133         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
56134
56135 2008-09-29  Bruno Haible  <bruno@clisp.org>
56136
56137         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
56138         Set LIBSOCKET instead of augmenting LIBS.
56139         * modules/sockets (Link): New section.
56140         * modules/sockets-tests (test_sockets_LDADD): New variable.
56141         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
56142         * modules/poll-tests (test_poll_LDADD): New variable.
56143         * NEWS: Document the change.
56144
56145 2008-09-29  Bruno Haible  <bruno@clisp.org>
56146
56147         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
56148         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
56149         ARPA_INET_H directly.
56150         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
56151
56152 2008-09-28  Bruno Haible  <bruno@clisp.org>
56153
56154         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
56155         from gl_HEADER_SYS_SOCKET.
56156         (gl_HEADER_SYS_SOCKET): Invoke it.
56157         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
56158
56159 2008-09-28  Bruno Haible  <bruno@clisp.org>
56160
56161         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
56162         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
56163         Needed on OSF/1 4.0.
56164
56165 2008-09-28  Bruno Haible  <bruno@clisp.org>
56166
56167         Override open more carefully.
56168         * lib/open.c (orig_open): New function.
56169         (rpl_open): Use orig_open instead of open.
56170         * lib/fcntl.in.h: Add special invocation convention.
56171         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
56172         (gl_FUNC_OPEN): Invoke it.
56173
56174         Override freopen more carefully.
56175         * lib/freopen.c (orig_freopen): New function.
56176         (rpl_freopen): Use orig_freopen instead of freopen.
56177         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
56178         (gl_FUNC_FREOPEN): Invoke it.
56179
56180         Override fopen more carefully.
56181         * lib/fopen.c (orig_fopen): New function.
56182         (rpl_fopen): Use orig_fopen instead of fopen.
56183         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
56184         (gl_FUNC_FOPEN): Invoke it.
56185         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
56186
56187 2008-09-28  Bruno Haible  <bruno@clisp.org>
56188
56189         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
56190         SIGPIPE.
56191
56192 2008-09-28  Bruno Haible  <bruno@clisp.org>
56193
56194         * tests/test-sigaction.c (handler, main): Disable the check whether
56195         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
56196         glibc systems with LinuxThreads.
56197
56198 2008-09-28  Bruno Haible  <bruno@clisp.org>
56199
56200         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
56201
56202         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
56203         with AIX xlc.
56204         * lib/fcntl.in.h (open): Likewise.
56205         Reported by Rainer Tammer <tammer@tammer.net>.
56206
56207 2008-09-28  Bruno Haible  <bruno@clisp.org>
56208
56209         * modules/posix_spawnp-tests: New file.
56210         * tests/test-posix_spawn.c: New file.
56211         * tests/test-posix_spawn.in.sh: New file.
56212
56213         New module 'posix_spawnp'.
56214         * modules/posix_spawnp: New file.
56215         * lib/spawnp.c: New file, from GNU libc with modifications.
56216         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
56217
56218         New module 'posix_spawn'.
56219         * modules/posix_spawn: New file.
56220         * lib/spawn.c: New file, from GNU libc with modifications.
56221         * doc/posix-functions/posix_spawn.texi: Mention the new module.
56222
56223         New module 'posix_spawnattr_destroy'.
56224         * modules/posix_spawnattr_destroy: New file.
56225         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
56226         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
56227         module.
56228
56229         New module 'posix_spawnattr_setsigmask'.
56230         * modules/posix_spawnattr_setsigmask: New file.
56231         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
56232         modifications.
56233         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
56234         new module.
56235
56236         New module 'posix_spawnattr_getsigmask'.
56237         * modules/posix_spawnattr_getsigmask: New file.
56238         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
56239         modifications.
56240         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
56241         new module.
56242
56243         New module 'posix_spawnattr_setsigdefault'.
56244         * modules/posix_spawnattr_setsigdefault: New file.
56245         * lib/spawnattr_setdefault.c: New file, from GNU libc with
56246         modifications.
56247         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
56248         new module.
56249
56250         New module 'posix_spawnattr_getsigdefault'.
56251         * modules/posix_spawnattr_getsigdefault: New file.
56252         * lib/spawnattr_getdefault.c: New file, from GNU libc with
56253         modifications.
56254         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
56255         new module.
56256
56257         New module 'posix_spawnattr_setschedpolicy'.
56258         * modules/posix_spawnattr_setschedpolicy: New file.
56259         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
56260         modifications.
56261         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
56262         new module.
56263
56264         New module 'posix_spawnattr_getschedpolicy'.
56265         * modules/posix_spawnattr_getschedpolicy: New file.
56266         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
56267         modifications.
56268         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
56269         new module.
56270
56271         New module 'posix_spawnattr_setschedparam'.
56272         * modules/posix_spawnattr_setschedparam: New file.
56273         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
56274         modifications.
56275         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
56276         new module.
56277
56278         New module 'posix_spawnattr_getschedparam'.
56279         * modules/posix_spawnattr_getschedparam: New file.
56280         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
56281         modifications.
56282         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
56283         new module.
56284
56285         New module 'posix_spawnattr_setpgroup'.
56286         * modules/posix_spawnattr_setpgroup: New file.
56287         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
56288         modifications.
56289         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
56290         module.
56291
56292         New module 'posix_spawnattr_getpgroup'.
56293         * modules/posix_spawnattr_getpgroup: New file.
56294         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
56295         modifications.
56296         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
56297         module.
56298
56299         New module 'posix_spawnattr_setflags'.
56300         * modules/posix_spawnattr_setflags: New file.
56301         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
56302         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
56303         module.
56304
56305         New module 'posix_spawnattr_getflags'.
56306         * modules/posix_spawnattr_getflags: New file.
56307         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
56308         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
56309         module.
56310
56311         New module 'posix_spawnattr_init'.
56312         * modules/posix_spawnattr_init: New file.
56313         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
56314         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
56315         module.
56316
56317         New module 'posix_spawn_file_actions_destroy'.
56318         * modules/posix_spawn_file_actions_destroy: New file.
56319         * lib/spawn_faction_destroy.c: New file, from GNU libc with
56320         modifications.
56321         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
56322         the new module.
56323
56324         New module 'posix_spawn_file_actions_addopen'.
56325         * modules/posix_spawn_file_actions_addopen: New file.
56326         * lib/spawn_faction_addopen.c: New file, from GNU libc with
56327         modifications.
56328         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
56329         the new module.
56330
56331         New module 'posix_spawn_file_actions_adddup2'.
56332         * modules/posix_spawn_file_actions_adddup2: New file.
56333         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
56334         modifications.
56335         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
56336         the new module.
56337
56338         New module 'posix_spawn_file_actions_addclose'.
56339         * modules/posix_spawn_file_actions_addclose: New file.
56340         * lib/spawn_faction_addclose.c: New file, from GNU libc with
56341         modifications.
56342         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
56343         the new module.
56344
56345         New module 'posix_spawn_file_actions_init'.
56346         * modules/posix_spawn_file_actions_init: New file.
56347         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
56348         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
56349         new module.
56350
56351         New module 'posix_spawn-internal'.
56352         * modules/posix_spawn-internal: New file.
56353         * lib/spawn_int.h: New file, from GNU libc with modifications.
56354         * lib/spawni.c: New file, from GNU libc with modifications.
56355         * m4/posix_spawn.m4: New file.
56356
56357         New module 'spawn'.
56358         * modules/spawn: New file.
56359         * lib/spawn.in.h: New file, from GNU libc with modifications.
56360         * m4/spawn_h.m4: New file.
56361         * doc/posix-headers/spawn.texi: Mention the new module.
56362
56363 2008-09-28  Bruno Haible  <bruno@clisp.org>
56364
56365         * modules/sched-tests: New file.
56366         * tests/test-sched.c: New file.
56367
56368         New module 'sched'.
56369         * modules/sched: New file.
56370         * lib/sched.in.h: New file.
56371         * m4/sched_h.m4: New file.
56372         * doc/posix-headers/sched.texi: Mention the new module.
56373
56374 2008-09-27  Eric Blake  <ebb9@byu.net>
56375
56376         Fix previous patch, and tweak references to $0.
56377         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
56378         (func_version, func_gnulib_dir): Don't call this program
56379         gnulib-tool.
56380         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
56381         with using $0 in function.
56382         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
56383         (func_fatal_error): Reuse the name the user invoked us with.
56384
56385 2008-09-27  Bruno Haible  <bruno@clisp.org>
56386
56387         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
56388         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
56389         (gl_ICONV_H): Not here.
56390         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
56391         instead of assigning ICONV_H directly.
56392
56393         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
56394         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
56395         WCHAR_H directly.
56396
56397 2008-09-27  Bruno Haible  <bruno@clisp.org>
56398
56399         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
56400         * modules/arpa_inet (Depends-on): Add link-warning.
56401         (Makefile.am): Insert the definition of GL_LINK-WARNING.
56402         * modules/unistd (Makefile.am): Likewise.
56403
56404 2008-09-26  Bruno Haible  <bruno@clisp.org>
56405
56406         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
56407         variables.
56408         (func_version): Essentially copied from gnulib-tool.
56409         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
56410         func_readlink): Copied from gnulib-tool.
56411
56412 2008-09-26  Bruno Haible  <bruno@clisp.org>
56413
56414         * gnulib-tool (func_version): Change directory to $gnulib_dir before
56415         invoking git-version-gen.
56416
56417 2008-09-26  Bruno Haible  <bruno@clisp.org>
56418
56419         * posix-modules: Update to directory names changed on 2008-01-19.
56420         Remove commas in output before splitting into words. No more need to
56421         avoid 'ftruncate' since 2007-02-19.
56422
56423 2008-09-26  Bruno Haible  <bruno@clisp.org>
56424
56425         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
56426
56427 2008-09-26  Bruno Haible  <bruno@clisp.org>
56428
56429         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
56430         * modules/fwriteerror (Depends-on): Add errno.
56431
56432 2008-09-26  Bruno Haible  <bruno@clisp.org>
56433
56434         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
56435         * tests/test-vc-list-files-cvs.sh: Likewise.
56436
56437 2008-09-26  Bruno Haible  <bruno@clisp.org>
56438
56439         * doc/posix-headers/sys_resource.texi: Reorder items.
56440
56441 2008-09-26  Jim Meyering  <meyering@redhat.com>
56442
56443         fts: tweak inode comparison function
56444         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
56445         inode numbers, as documented.
56446
56447         fts: sort dirent entries on inode number before traversing
56448         This avoids a quadratic, seek-related performance penalty when
56449         operating on a directory containing many entries (measurable at 10k;
56450         3.5 hours at 2 million entries with a cold cache) on certain types
56451         of file systems, including ext3 and ext4, but not tmpfs.
56452         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
56453         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
56454         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
56455         (fs_handles_readdir_ordered_dirents_efficiently): New function.
56456         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
56457         (fts_build): Set the stat.st_ino member from D_INO.
56458         If it is likely to be useful, sort dirent entries on inode number.
56459
56460         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
56461         and the struct statfs.f_type member.
56462         * modules/fts (Depends-on): Add d-ino.
56463
56464 2008-09-26  Bruno Haible  <bruno@clisp.org>
56465
56466         * modules/sigpipe-die (Depends-on): Add sigpipe.
56467
56468         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
56469         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
56470         and GNULIB_STDIO_H_SIGPIPE are set.
56471         * lib/stdio-write.c: New file.
56472         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
56473         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
56474         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
56475         REPLACE_STDIO_WRITE_FUNCS.
56476         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
56477         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
56478         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
56479         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
56480         * modules/stdio (Files): Add lib/stdio-write.c.
56481         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
56482         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
56483         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
56484         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
56485         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
56486         REPLACE_FPRINTF_POSIX.
56487         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
56488         REPLACE_PRINTF_POSIX.
56489         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
56490         REPLACE_VFPRINTF_POSIX.
56491         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
56492         REPLACE_VPRINTF_POSIX.
56493         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
56494         SIGPIPE issue.
56495         * doc/posix-functions/fputc.texi: Likewise.
56496         * doc/posix-functions/fputs.texi: Likewise.
56497         * doc/posix-functions/fwrite.texi: Likewise.
56498         * doc/posix-functions/printf.texi: Likewise.
56499         * doc/posix-functions/putc.texi: Likewise.
56500         * doc/posix-functions/putchar.texi: Likewise.
56501         * doc/posix-functions/puts.texi: Likewise.
56502         * doc/posix-functions/vfprintf.texi: Likewise.
56503         * doc/posix-functions/vprintf.texi: Likewise.
56504
56505         * modules/safe-write (Depends-on): Add write.
56506
56507         * modules/sigpipe-tests: New file.
56508         * tests/test-sigpipe.c: New file.
56509         * tests/test-sigpipe.sh: New file.
56510
56511         * modules/write: New file.
56512         * lib/unistd.in.h: Include <sys/types.h>.
56513         (write): New declaration.
56514         * lib/write.c: New file.
56515         * m4/write.m4: New file.
56516         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
56517         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
56518         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
56519         GNULIB_WRITE, REPLACE_WRITE.
56520         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
56521         and the SIGPIPE issue.
56522
56523         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
56524         (raise): New declaration.
56525         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
56526         (ext_signal): New function.
56527         (rpl_raise): New function.
56528         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
56529         GNULIB_SIGNAL_H_SIGPIPE.
56530         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
56531         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
56532
56533         * modules/sigpipe: New file.
56534         * m4/sigpipe.m4: New file.
56535
56536 2008-09-25  Derek Price  <derek@ximbiot.com>
56537             Bruno Haible  <bruno@clisp.org>
56538
56539         * gnulib-tool (func_import): Report all license incompatibilities, not
56540         just the first one.
56541
56542 2008-09-25  Bruno Haible  <bruno@clisp.org>
56543
56544         * gnulib-tool (func_import): When computing the edits, consider not
56545         only the Makefile.ams that exist but also those that will be generated.
56546
56547 2008-09-25  Simon Josefsson  <simon@josefsson.org>
56548
56549         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
56550         fixes gnulib-tool --test warning about duplicate dependency.
56551
56552 2008-09-25  Bruno Haible  <bruno@clisp.org>
56553
56554         * gnulib-tool: Don't ask the user to perform edits in the generated
56555         Makefile.ams.
56556         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
56557         apply to the Makefile.am being generated.
56558         (func_emit_tests_Makefile_am): Execute edits that apply to the
56559         Makefile.am being generated.
56560         (func_import): Setup list of Makefile.am edits before emitting the
56561         Makefile.ams, not at the end.
56562         (func_create_testdir): Update.
56563         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
56564
56565 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56566
56567         * gnulib-tool (func_import): Store the --tests-base option in the
56568         comment in gnulib-cache.m4.
56569
56570 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
56571
56572         * NEWS: Document increased portability that sys_select now provides.
56573
56574         * lib/sys_select.in.h: Install select wrapper.
56575         * lib/sys_socket.in.h: Use more descriptive name when there is no
56576         select wrapper.
56577         * lib/winsock-select.c: New.
56578         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
56579         Require gl_HEADER_SYS_SOCKET.
56580         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
56581         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
56582         * tests/test-sys_select.c: Add functional tests.
56583
56584 2008-09-24  Eric Blake  <ebb9@byu.net>
56585
56586         open, fopen: close fd leak in last patch
56587         * lib/open.c (rpl_open): Close fd before returning error.
56588         * lib/fopen.c (rpl_fopen): Close fd before returning error.
56589         * doc/posix-functions/open.texi (open): Document that Irix also
56590         has the bug.
56591         * doc/posix-functions/fopen.texi (fopen): Likewise.
56592         Reported by Paolo Bonzini.
56593
56594 2008-09-24  Bruno Haible  <bruno@clisp.org>
56595
56596         Ensure that a filename ending in a slash cannot be used to access a
56597         non-directory.
56598         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
56599         to check whether it's really a directory.
56600         * lib/fopen.c: Include fcntl.h, unistd.h.
56601         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
56602         and fdopen().
56603         * modules/fopen (Depends-on): Add unistd.
56604         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
56605         * tests/test-fopen.c (main): Likewise.
56606         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
56607         * doc/posix-functions/fopen.texi: Likewise.
56608         Reported by Eric Blake.
56609
56610 2008-09-23  Eric Blake  <ebb9@byu.net>
56611
56612         c-stack: avoid compiler optimizations when provoking overflow
56613         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
56614         recursion harder to optimize, to ensure a stack overflow occurs.
56615         * tests/test-c-stack.c (recurse): Likewise.
56616         Borrowed from libsigsegv.
56617
56618         c-stack: work around Irix sigaltstack bug
56619         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
56620         whether sigaltstack uses wrong end of stack_t (copied in part from
56621         libsigsegv).
56622         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
56623         Irix bug, without requiring an over-allocation.
56624         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
56625         bug.
56626
56627         fopen: document mingw bug on directories
56628         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
56629         not allowing a stream visiting a directory, even though reading
56630         from such a stream is not portable.
56631
56632 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
56633
56634         * lib/poll.c: Rewrite.
56635         * modules/poll: Depend on alloca.
56636
56637 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
56638
56639         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
56640         instead define prototypes for a full set of wrappers.  Ensure
56641         that Cygwin does not use the compatibility code, which is only
56642         for MinGW.
56643         * lib/winsock.c: New.
56644         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
56645         * modules/sys_socket: Add lib/winsock.c.
56646
56647         * modules/poll-tests: Add errno and perror.
56648         * tests/test-poll.c: Use ioctl, not ioctlsocket.
56649
56650 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
56651
56652         * tests/test-poll.c: Downgrade minimum needed Winsock version.
56653
56654 2008-09-23  Bruno Haible  <bruno@clisp.org>
56655
56656         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
56657         * doc/glibc-functions/*: Likewise.
56658
56659 2008-09-23  Simon Josefsson  <simon@josefsson.org>
56660
56661         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
56662         success.
56663
56664 2008-09-22  Eric Blake  <ebb9@byu.net>
56665             Bruno Haible  <bruno@clisp.org>
56666
56667         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
56668         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
56669         supply %A but mishandle pseudo-NaN.
56670         Reported by Simon Josefsson.
56671
56672 2008-09-21  Bruno Haible  <bruno@clisp.org>
56673
56674         * tests/test-lock.c (main): Tweak skip message.
56675         * tests/test-tls.c (main): Likewise.
56676
56677 2008-09-21  Bruno Haible  <bruno@clisp.org>
56678
56679         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
56680         whether 'struct sigaction' has sa_sigaction here...
56681         (gl_PREREQ_SIG_HANDLER_H): ... not here.
56682         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
56683
56684 2008-09-21  Bruno Haible  <bruno@clisp.org>
56685
56686         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
56687         section.
56688         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
56689         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
56690         the new section.
56691         (Support for obsolete systems lacking POSIX:2001): New section.
56692         (String handling <string.h>): Move strdup to the new section.
56693         Suggested by Simon Josefsson and Paolo Bonzini.
56694
56695 2008-09-21  Bruno Haible  <bruno@clisp.org>
56696
56697         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
56698         exponents in %e and %g results on 'long double'. Needed for mingw's
56699         improved *printf functions.
56700         * tests/test-vasprintf-posix.c (test_function): Likewise.
56701         * tests/test-snprintf-posix.h (test_function): Likewise.
56702         * tests/test-sprintf-posix.h (test_function): Likewise.
56703         Reported by Eric Blake.
56704
56705 2008-09-21  Bruno Haible  <bruno@clisp.org>
56706
56707         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
56708         * tests/test-sprintf-posix.h (test_function): Likewise.
56709
56710 2008-09-21  Bruno Haible  <bruno@clisp.org>
56711
56712         * modules/getpass (Depends-on): Add strdup-posix.
56713
56714         New module 'strdup-posix'.
56715         * modules/strdup-posix: New file.
56716         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
56717         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
56718         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
56719         REPLACE_STRDUP.
56720         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
56721         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
56722         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
56723         strdup-posix.
56724
56725         * modules/strdup (Depends-on): Remove malloc-posix.
56726
56727 2008-09-20  Bruno Haible  <bruno@clisp.org>
56728
56729         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
56730         Wildenhues.
56731
56732 2008-09-20  Bruno Haible  <bruno@clisp.org>
56733
56734         Ensure that wint_t gets defined on IRIX 5.3.
56735         * lib/wchar.in.h (wint_t): Define if not defined by the system.
56736         * lib/wctype.in.h (wint_t): Likewise.
56737         (__wctype_wint_t): Remove type.
56738         (isw*): Use wint_t instead of __wctype_wint_t.
56739         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
56740         * modules/wchar (Files): Add m4/wint_t.m4.
56741         (Makefile.am): Substitute HAVE_WINT_T.
56742         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
56743         * tests/test-wctype.c: Check that wint_t is defined.
56744         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
56745         * doc/posix-headers/wctype.texi: Likewise.
56746         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
56747
56748 2008-09-18  Bruno Haible  <bruno@clisp.org>
56749
56750         * gnulib-tool (func_exit): Update comment.
56751
56752 2008-09-18  Simon Josefsson  <simon@josefsson.org>
56753
56754         * modules/getaddrinfo (Depends-on): Remove strdup, this module
56755         assumes strdup exists and does not depend on strdup to return
56756         ENOMEM on out of memory conditions.
56757
56758 2008-09-18  Bruno Haible  <bruno@clisp.org>
56759
56760         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
56761         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
56762         digits for the exponent.
56763
56764 2008-09-18  Jim Meyering  <meyering@redhat.com>
56765             Bruno Haible  <bruno@clisp.org>
56766
56767         * lib/vasnprintf.c (decimal_point_char): Define also if
56768         NEED_PRINTF_INFINITE_LONG_DOUBLE.
56769
56770 2008-09-16  Bruno Haible  <bruno@clisp.org>
56771         and Eric Blake  <ebb9@byu.net>
56772
56773         vasnprintf: support Irix 5.3
56774         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
56775         that mishandle long double infinity.
56776         Reported by Tom G. Christensen.
56777
56778 2008-09-16  Bruno Haible  <bruno@clisp.org>
56779
56780         * doc/glibc-functions/scandir.texi: Mention the function is missing on
56781         Solaris 9.
56782         * doc/glibc-functions/alphasort.texi: Likewise.
56783         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
56784
56785 2008-09-16  Jim Meyering  <meyering@redhat.com>
56786
56787         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
56788         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
56789         a umask modification leak out of a subshell.  Otherwise, the
56790         opensolaris /bin/sh would be accepted and thus cause unwarranted
56791         failures in the coreutils test suite.
56792
56793 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
56794
56795         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
56796         to succeed.
56797
56798 2008-09-16  Jim Meyering  <meyering@redhat.com>
56799
56800         avoid spurious test failure when library is built without ACL support
56801         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
56802         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
56803         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
56804         * tests/test-copy-acl.sh: Likewise.
56805
56806 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56807
56808         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
56809         based on character occurrence counts.
56810
56811 2008-09-15  Eric Blake  <ebb9@byu.net>
56812
56813         tests: avoid some compiler warnings
56814         * tests/test-memchr.c (main): Pass NULL indirectly.
56815         * tests/test-closein.c (main): Avoid unused variable.
56816
56817 2008-09-15  Bruno Haible  <bruno@clisp.org>
56818
56819         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
56820         are missing on OpenBSD 4.0 individually.
56821         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
56822
56823 2008-09-15  Bruno Haible  <bruno@clisp.org>
56824
56825         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
56826         * doc/posix-functions/strerror.texi: Mention also Cygwin.
56827         * doc/posix-functions/perror.texi: Likewise.
56828         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
56829         is missing.
56830         Reported by Eric Blake.
56831
56832         * lib/errno.in.h: Use replacement values >= 2000.
56833         Reported by Eric Blake.
56834
56835 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56836
56837         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
56838         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
56839         limit.
56840         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
56841         compareseq was aborted.
56842
56843 2008-09-14  Bruno Haible  <bruno@clisp.org>
56844
56845         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
56846         yvec_edit_count.
56847         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
56848         (fstrcmp_bounded): Simplify result computation accordingly.
56849
56850 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56851
56852         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
56853         (fstrcmp): Define in terms of fstrcmp_bounded.
56854         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
56855         lower_bound argument.
56856         Return quickly if the result is certainly < lower_bound.
56857         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
56858
56859 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56860
56861         * lib/diffseq.h (EARLY_ABORT): New macro.
56862         (compareseq): Change return type to bool. Return true when EARLY_ABORT
56863         evaluates to true.
56864
56865 2008-09-14  Bruno Haible  <bruno@clisp.org>
56866
56867         * modules/perror-tests: New file.
56868         * tests/test-perror.sh: New file.
56869         * tests/test-perror.c: New file.
56870
56871         New module 'perror'.
56872         * lib/stdio.in.h (perror): New declaration.
56873         * lib/perror.c: New file.
56874         * m4/perror.m4: New file.
56875         * modules/perror: New file.
56876         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
56877         * doc/posix-functions/perror.texi: Mention the perror module.
56878         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
56879         REPLACE_PERROR.
56880         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
56881         REPLACE_PERROR.
56882
56883 2008-09-14  Bruno Haible  <bruno@clisp.org>
56884
56885         * modules/stdio (Makefile.am): Reorder to match the order in
56886         lib/stdio.in.h.
56887         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
56888
56889 2008-09-13  Bruno Haible  <bruno@clisp.org>
56890
56891         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
56892
56893 2008-09-13  Bruno Haible  <bruno@clisp.org>
56894
56895         Extend strerror to cover the added errno values.
56896         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
56897         (rpl_strerror): Provide error messages for the added errno values and
56898         for the WSA* values.
56899         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
56900         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
56901         strerror.
56902         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
56903         * modules/strerror (Depends-on): Add errno.
56904         * doc/posix-functions/strerror.texi: Document the change.
56905         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
56906         and EOVERFLOW.
56907
56908 2008-09-13  Bruno Haible  <bruno@clisp.org>
56909
56910         * modules/EOVERFLOW: Remove file.
56911         * m4/eoverflow.m4: Remove file.
56912         * modules/EOVERFLOW-tests: Remove file.
56913         * tests/test-EOVERFLOW.c: Remove file.
56914         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
56915         * modules/ftell (Depends-on): Likewise.
56916         * modules/getdelim (Depends-on): Likewise.
56917         * modules/getugroups (Depends-on): Likewise.
56918         * modules/poll (Depends-on): Likewise.
56919         * modules/snprintf (Depends-on): Likewise.
56920         * modules/sprintf-posix (Depends-on): Likewise.
56921         * modules/vasnprintf (Depends-on): Likewise.
56922         * modules/vasprintf (Depends-on): Likewise.
56923         * modules/vfprintf-posix (Depends-on): Likewise.
56924         * modules/vsnprintf (Depends-on): Likewise.
56925         * modules/vsprintf-posix (Depends-on): Likewise.
56926         * modules/xvasprintf (Depends-on): Likewise.
56927         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
56928         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
56929         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
56930         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
56931         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
56932         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
56933         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
56934         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
56935         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
56936         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
56937         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
56938         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
56939         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
56940         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
56941         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
56942         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
56943         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
56944         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
56945         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
56946         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
56947         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
56948         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
56949         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
56950         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
56951         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
56952         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
56953         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
56954         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
56955         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
56956         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
56957         * MODULES.html.sh: Remove EOVERFLOW.
56958         * NEWS: Mention the change.
56959
56960 2008-09-13  Bruno Haible  <bruno@clisp.org>
56961
56962         * modules/errno-tests: New file.
56963         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
56964
56965         * lib/errno.in.h: New file.
56966         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
56967         * modules/errno: New file.
56968         * doc/posix-headers/errno.texi: Update documentation.
56969         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
56970
56971 2008-09-13  Bruno Haible  <bruno@clisp.org>
56972
56973         * tests/test-poll.c: Use #if for native Windows, rather than testing
56974         __MSVCRT__.
56975
56976 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56977             Bruno Haible  <bruno@clisp.org>
56978
56979         * lib/glob.c: Don't include <pwd.h> on native Windows.
56980         (WINDOWS32): New macro.
56981         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
56982
56983 2008-09-13  Bruno Haible  <bruno@clisp.org>
56984
56985         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
56986         (ETIMEDOUT): Remove macro.
56987         (glthread_cond_timedwait_multithreaded): New declaration.
56988         (glthread_cond_timedwait): Use it.
56989         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
56990         (glthread_cond_timedwait_multithreaded): New function.
56991
56992 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
56993
56994         * modules/poll-tests: Do not check for io.h.
56995         * tests/test-poll.c: Check for __MSVCRT__ instead.
56996
56997 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
56998
56999         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
57000         * modules/poll-tests: Add inet_pton, stdbool, sockets.
57001         * tests/test-poll.c: Use them.  Use _pipe on Windows.
57002
57003 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
57004
57005         * modules/poll-tests: New.
57006         * tests/test-poll.c: New.
57007
57008 2008-09-12  Eric Blake  <ebb9@byu.net>
57009
57010         frexp: test for NetBSD failure on -0.0
57011         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
57012         not all, bugs from NetBSD 3.0 have been fixed.
57013         * doc/posix-functions/frexp.texi (frexp): Document bug.
57014         Reported by Thomas Klausner.
57015
57016         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
57017         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
57018         literal -0.0.
57019         Reported by Jonathan C. Patschke <jp@centtech.com>.
57020
57021 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57022
57023         * lib/glthread/cond.h: Use dummy implementation also if
57024         USE_WIN32_THREADS.
57025
57026 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57027
57028         * modules/fnmatch-posix (License): Change to LGPLv2+.
57029         * modules/fnmatch-gnu (License): Likewise.
57030
57031 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57032
57033         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
57034
57035 2008-09-11  Jim Meyering  <meyering@redhat.com>
57036
57037         * users.txt: Add gtk-vnc.
57038
57039 2008-09-08  Simon Josefsson  <simon@josefsson.org>
57040
57041         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
57042         rotate amounts.
57043
57044         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
57045         required for 16-bit and 8-bit rotates.
57046         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
57047         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
57048         UINT8_MAX instead of hard-coded constants.
57049         Suggested by Paul Eggert.
57050
57051 2008-09-07  Bruno Haible  <bruno@clisp.org>
57052
57053         * tests/test-striconveh.c (main): Check behaviour when converting from
57054         UTF-7.
57055
57056         Make striconveh work better with stateful encodings.
57057         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
57058         that iconv does not increment the inptr when returning -1/EINVAL.
57059
57060 2008-09-07  Bruno Haible  <bruno@clisp.org>
57061
57062         * build-aux/config.rpath: Update according to libtool-2.2.6.
57063         * build-aux/config.libpath: Likewise.
57064
57065 2008-09-06  Bruno Haible  <bruno@clisp.org>
57066
57067         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
57068         * lib/freadptr.c (freadptr): Likewise.
57069         * lib/freadseek.c (freadptrinc): Likewise.
57070         Reported by Simon Josefsson.
57071
57072 2008-09-06  Bruno Haible  <bruno@clisp.org>
57073
57074         * modules/freadptr (License): Change to LGPLv2+.
57075         * modules/freadseek (License): Likewise.
57076         Suggested by Eric Blake.
57077
57078         * modules/memchr2 (License): Change to LGPLv2+.
57079         Approved by Eric Blake.
57080
57081 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57082             Bruno Haible  <bruno@clisp.org>
57083
57084         Make gnulib-tool work with native 'sed' on AIX.
57085         * gnulib-tool (sed_noop): New variable.
57086         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
57087         func_add_or_update, func_create_testdir): Use it to initialize sed
57088         script variables.
57089         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
57090
57091 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
57092             Bruno Haible  <bruno@clisp.org>
57093
57094         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
57095         also works after #include directives.
57096
57097 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
57098
57099         getdate.y: reject an out-of-range timezone value
57100         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
57101         the range [-24...+24].  When specified with only one or two digits,
57102         * tests/test-getdate.c: Tests for the fix.
57103         * doc/getdate.texi: Document this change.
57104
57105 2008-09-03  Bruno Haible  <bruno@clisp.org>
57106
57107         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
57108
57109 2008-09-02  Simon Josefsson  <simon@josefsson.org>
57110
57111         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
57112         <bruce.korb@gmail.com> with ideas from Ben Pfaff
57113         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
57114         Blake <ebb9@byu.net>.
57115
57116         * tests/test-bitrotate.c: Add more test vectors.
57117
57118 2008-09-02  Eric Blake  <ebb9@byu.net>
57119
57120         vasnprintf-posix: handle large precision via %.*d
57121         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
57122         when handling it ourselves.
57123         * tests/test-vasnprintf-posix.c (test_function): Add test.
57124         * tests/test-snprintf-posix.h (test_function): Likewise.
57125         * tests/test-sprintf-posix.h (test_function): Likewise.
57126         * tests/test-vasprintf-posix.c (test_function): Likewise.
57127         Reported by Alain Guibert.
57128
57129 2008-09-01  Eric Blake  <ebb9@byu.net>
57130
57131         c-stack: make configure-time check more robust
57132         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
57133         successful sigaction call.
57134         Reported by Tom G. Christensen.
57135
57136 2008-09-01  Bruno Haible  <bruno@clisp.org>
57137
57138         New module 'findprog-lgpl'.
57139         * modules/findprog-lgpl: New file.
57140         * lib/findprog-lgpl.c: New file.
57141         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
57142         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
57143         to decide whether to use strdup or xstrdup, concatenated_filename or
57144         xconcatenated_filename.
57145
57146 2008-09-01  Bruno Haible  <bruno@clisp.org>
57147
57148         Split module 'concat-filename' into 'concat-filename' (LGPL) and
57149         'xconcat-filename' (GPL).
57150         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
57151         (License): Change to LGPLv2+.
57152         * modules/xconcat-filename: New file.
57153         * lib/concat-filename.h (concatenated_filename): Change specification.
57154         (xconcatenated_filename): New declaration.
57155         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
57156         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
57157         memory situations.
57158         * lib/xconcat-filename.c: New file.
57159         * NEWS: Mention the change.
57160         * lib/findprog.c: Include concat-filename.h, not filename.h.
57161         (find_in_path): Use xconcatenated_filename instead of
57162         concatenated_filename.
57163         * lib/javacomp.c: Include concat-filename.h, not filename.h.
57164         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
57165         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
57166         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
57167         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
57168         instead of concatenated_filename.
57169         * lib/javaexec.c: Include concat-filename.h, not filename.h.
57170         (execute_java_class): Use xconcatenated_filename instead of
57171         concatenated_filename.
57172         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
57173         * modules/javacomp (Depends-on): Likewise.
57174         * modules/javaexec (Depends-on): Likewise.
57175
57176 2008-09-01  Bruno Haible  <bruno@clisp.org>
57177
57178         Split module 'filename' into 'filename' and 'concat-filename'.
57179         * modules/filename: Keep only lib/filename.h.
57180         (License): Change to LGPLv2+.
57181         * modules/concat-filename: New file, extracted from modules/filename.
57182         * lib/filename.h (concatenated_filename): Remove declaration.
57183         * lib/concat-filename.h: New file, extracted from lib/filename.h.
57184         * lib/concat-filename.c: Include concat-filename.h.
57185         * NEWS: Mention the change.
57186
57187 2008-09-01  Simon Josefsson  <simon@josefsson.org>
57188
57189         * lib/bitrotate.h (rotl8, rotr8): Add.
57190
57191         * modules/bitrotate (configure.ac): Need
57192         AC_REQUIRE([AC_C_INLINE]).
57193         (Description): Mention stdint.h.  Reported by Bruno Haible
57194         <bruno@clisp.org>.
57195
57196         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
57197         Paolo Bonzini <bonzini@gnu.org>.
57198
57199 2008-08-31  Bruno Haible  <bruno@clisp.org>
57200
57201         Assume Solaris specific bi-arch conventions on Solaris systems.
57202         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
57203         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
57204         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
57205         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
57206         like acl_libdirstem.
57207         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
57208         acl_libdirstem.
57209         * NEWS: Mention the change.
57210         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
57211
57212 2008-08-31  Jim Meyering  <meyering@redhat.com>
57213
57214         * lib/strftime.h: Add comments describing the two added arguments.
57215
57216         remove duplicate #include directives
57217         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
57218         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
57219
57220 2008-08-31  Bruno Haible  <bruno@clisp.org>
57221
57222         New module 'sigpipe-die'.
57223         * modules/sigpipe-die: New file.
57224         * lib/sigpipe-die.h: New file.
57225         * lib/sigpipe-die.c: New file.
57226         * MODULES.html.sh (Signal handling): Add sigpipe-die.
57227
57228 2008-08-31  Bruno Haible  <bruno@clisp.org>
57229
57230         Don't override previously installed signal handlers.
57231         * lib/fatal-signal.c (saved_sigactions): New variable.
57232         (uninstall_handlers): Reset the signal to the saved handler, not
57233         to SIG_DFL (except when ignored).
57234         (install_handlers): Save the previous handlers.
57235
57236 2008-08-30  Bruno Haible  <bruno@clisp.org>
57237
57238         * gnulib-tool (func_reset_sigpipe): New function.
57239         (func_get_automake_snippet, func_modules_transitive_closure,
57240         func_import): Invoke it before a join command that reads from stdin,
57241         to avoid "echo: write error: Broken pipe" error messages on stderr.
57242         Reported by Sam Steingold <sds@gnu.org>.
57243
57244 2008-08-30  Bruno Haible  <bruno@clisp.org>
57245
57246         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
57247         Code copied from m4/open.m4.
57248         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
57249         access and the filename ends in a slash. Code copied from lib/open.c.
57250         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
57251         * tests/test-fopen.c (main): Check against bug with trailing slash.
57252
57253 2008-08-29  Bruno Haible  <bruno@clisp.org>
57254
57255         Avoid some "gcc -pedantic" warnings.
57256         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
57257         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
57258         * lib/dirent.in.h: Likewise.
57259         * lib/fcntl.in.h: Likewise.
57260         * lib/float.in.h: Likewise.
57261         * lib/iconv.in.h: Likewise.
57262         * lib/inttypes.in.h: Likewise.
57263         * lib/locale.in.h: Likewise.
57264         * lib/math.in.h: Likewise.
57265         * lib/netinet_in.in.h: Likewise.
57266         * lib/search.in.h: Likewise.
57267         * lib/signal.in.h: Likewise.
57268         * lib/stdarg.in.h: Likewise.
57269         * lib/stdint.in.h: Likewise.
57270         * lib/stdio.in.h: Likewise.
57271         * lib/stdlib.in.h: Likewise.
57272         * lib/string.in.h: Likewise.
57273         * lib/strings.in.h: Likewise.
57274         * lib/sys_select.in.h: Likewise.
57275         * lib/sys_socket.in.h: Likewise.
57276         * lib/sys_stat.in.h: Likewise.
57277         * lib/sys_time.in.h: Likewise.
57278         * lib/sysexits.in.h: Likewise.
57279         * lib/time.in.h: Likewise.
57280         * lib/unistd.in.h: Likewise.
57281         * lib/wchar.in.h: Likewise.
57282         * lib/wctype.in.h: Likewise.
57283         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
57284         * modules/fchdir (Makefile.am): Likewise.
57285         * modules/fcntl (Makefile.am): Likewise.
57286         * modules/float (Makefile.am): Likewise.
57287         * modules/iconv_open (Makefile.am): Likewise.
57288         * modules/inttypes (Makefile.am): Likewise.
57289         * modules/locale (Makefile.am): Likewise.
57290         * modules/math (Makefile.am): Likewise.
57291         * modules/netinet_in (Makefile.am): Likewise.
57292         * modules/search (Makefile.am): Likewise.
57293         * modules/signal (Makefile.am): Likewise.
57294         * modules/stdarg (Makefile.am): Likewise.
57295         * modules/stdint (Makefile.am): Likewise.
57296         * modules/stdio (Makefile.am): Likewise.
57297         * modules/stdlib (Makefile.am): Likewise.
57298         * modules/string (Makefile.am): Likewise.
57299         * modules/strings (Makefile.am): Likewise.
57300         * modules/sys_select (Makefile.am): Likewise.
57301         * modules/sys_socket (Makefile.am): Likewise.
57302         * modules/sys_stat (Makefile.am): Likewise.
57303         * modules/sys_time (Makefile.am): Likewise.
57304         * modules/sysexits (Makefile.am): Likewise.
57305         * modules/time (Makefile.am): Likewise.
57306         * modules/unistd (Makefile.am): Likewise.
57307         * modules/wchar (Makefile.am): Likewise.
57308         * modules/wctype (Makefile.am): Likewise.
57309         Reported by Reuben Thomas <rrt@sc3d.org>.
57310
57311 2008-08-29  Bruno Haible  <bruno@clisp.org>
57312
57313         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
57314         any more.
57315
57316 2008-08-29  Simon Josefsson  <simon@josefsson.org>
57317
57318         * MODULES.html.sh (Misc): Add bitrotate.
57319
57320         * modules/bitrotate: New file.
57321
57322         * lib/bitrotate.h: New file.
57323
57324         * modules/bitrotate-tests: New file.
57325
57326         * tests/test-bitrotate.c: New file.
57327
57328         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
57329         on the bitrotate module.
57330
57331         * lib/arctwo.c: Use new bitrotate module.
57332
57333 2008-08-29  Jim Meyering  <meyering@redhat.com>
57334
57335         bootstrap: merge changes from coreutils
57336         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
57337         of copied files.  Remove a kludge, now that this is fixed.
57338         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
57339         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
57340         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
57341
57342 2008-08-29  Bruno Haible  <bruno@clisp.org>
57343
57344         * MODULES.html.sh: Remove --cvs-urls option.
57345
57346 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
57347
57348         maint.mk: adjust to file name change
57349         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
57350
57351 2008-08-28  Jim Meyering  <meyering@redhat.com>
57352
57353         * modules/getndelim2 (License): Relicense to LGPLv2+.
57354         Approved by Richard Stallman for the version of 1995, and by
57355         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
57356
57357 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
57358
57359         * lib/getdelim.c (flockfile, funlockfile): Make all of them
57360         dummy if one is not available.  Do not touch them if
57361         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
57362         (getc_maybe_unlocked): New.
57363         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
57364
57365 2008-08-26  Eric Blake  <ebb9@byu.net>
57366
57367         doc/INSTALL: resync from autoconf
57368         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
57369         (INSTALL_PRELUDE): Delete; this is done more efficiently by
57370         moving...
57371         * install.texi [!autoconf]: ...here.  Resync from autoconf.
57372         * INSTALL: Regenerate.
57373         * INSTALL.ISO: New file.
57374         * INSTALL.UTF-8: Likewise.
57375
57376 2008-08-26  Jim Meyering  <meyering@redhat.com>
57377
57378         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
57379         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
57380         these definitions conditional, so that they may be overridden, too.
57381
57382 2008-08-26  Bruno Haible  <bruno@clisp.org>
57383
57384         Generate INSTALL file variants with prettier quotes.
57385         * doc/Makefile (INSTALL_PRELUDE): New macro.
57386         (INSTALL): Use it.
57387         (INSTALL.ISO, INSTALL.UTF-8): New rules.
57388
57389 2008-08-26  Bruno Haible  <bruno@clisp.org>
57390
57391         Run makeinfo in an English locale.
57392         * doc/Makefile (MAKEINFO): New variable.
57393
57394 2008-08-26  Bruno Haible  <bruno@clisp.org>
57395
57396         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
57397         Suggested by Eric Blake.
57398
57399 2008-08-25  Bruno Haible  <bruno@clisp.org>
57400
57401         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
57402
57403 2008-08-25  Eric Blake  <ebb9@byu.net>
57404
57405         c-stack: test that stack overflow can be caught
57406         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
57407         that platform allows handling stack overflow; at least OS/2 EMX
57408         has sigaltstack, but crashes before transferring control to
57409         handler on stack overflow.
57410         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
57411         check for HAVE_STACK_OVERFLOW_HANDLING.
57412         Reported by Elbert Pol.
57413
57414 2008-08-25  Bruno Haible  <bruno@clisp.org>
57415
57416         * doc/posix-functions/strftime.texi: Fix description of strftime
57417         module.
57418
57419 2008-08-24  Bruno Haible  <bruno@clisp.org>
57420
57421         * tests/uniwidth/test-uc_width2.c: New file.
57422         * tests/uniwidth/test-uc_width2.sh: New file.
57423         * modules/uniwidth/width-tests (Files): Add the new files.
57424         (TESTS): Add uniwidth/test-uc_width2.sh.
57425         (TESTS_ENVIRONMENT): New variable.
57426         (check_PROGRAMS): Add test-uc_width2.
57427         (test_uc_width2_SOURCES): New variable.
57428
57429         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
57430         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
57431         not 0x00AB.
57432         Reported by Alexander V. Lukyanov <lav@netis.ru>.
57433
57434 2008-08-22  Eric Blake  <ebb9@byu.net>
57435
57436         test-lock, test-tls: mention why a test is skipped
57437         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
57438         skipped.
57439         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
57440
57441         count-one-bits: relax license
57442         * modules/count-one-bits (License): Relicense to LGPLv2+.
57443         Suggested by Ludovic Courtès, approved by Ben Pfaff.
57444
57445 2008-08-22  Andreas Schwab  <schwab@suse.de>
57446
57447         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
57448         Remove spurious space in assignment.
57449
57450 2008-08-21  Simon Josefsson  <simon@josefsson.org>
57451
57452         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
57453         Paul Eggert <eggert@CS.UCLA.EDU>.
57454
57455 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
57456
57457         * modules/gettext: Add m4/threadlib.m4.
57458
57459 2008-08-19  Eric Blake  <ebb9@byu.net>
57460
57461         test-c-stack: fix compilation failure on FreeBSD 5.0
57462         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
57463         headers before <sys/resource.h>.
57464         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
57465         the bug.
57466         Reported by Nelson H. F. Beebe.
57467
57468         strverscmp: migrate from "strverscmp.h" to <string.h>
57469         * modules/string (Makefile.am): Add new hooks.
57470         * modules/strverscmp (Files): Remove strverscmp.h.
57471         (Depends-on): Add string.
57472         (configure.ac): Add indicator.
57473         (Include): Mention new header.
57474         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
57475         defaults.
57476         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
57477         results.
57478         * lib/strverscmp.h: Delete.
57479         * lib/string.in.h (strverscmp): Provide declaration, when needed.
57480         * tests/test-strverscmp.c (includes): Adjust client.
57481         * lib/check-version.c (includes): Likewise.
57482         * NEWS: Document the change.
57483
57484         strverscmp: add unit test
57485         * modules/strverscmp-tests: New file.
57486         * tests/test-strverscmp.c: Likewise.
57487
57488 2008-08-19  Simon Josefsson  <simon@josefsson.org>
57489
57490         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
57491         regarding Windows crypto stuff, from Mono.
57492
57493 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
57494
57495         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
57496         if present, for intel RND.  Return error on failures.
57497
57498 2008-08-18  Ben Pfaff  <blp@gnu.org>
57499
57500         gitlog-to-changelog: give better diagnostic for failed pipe-open
57501         * build-aux/gitlog-to-changelog: Improve error message: suggest
57502         that the version of Git may be too old.
57503
57504 2008-08-18  Simon Josefsson  <simon@josefsson.org>
57505
57506         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
57507         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
57508
57509 2008-08-18  Bruno Haible  <bruno@clisp.org>
57510
57511         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
57512         pthread_in_use().
57513
57514 2008-08-18  Bruno Haible  <bruno@clisp.org>
57515
57516         * lib/glthread/threadlib.c: Include <pthread.h>.
57517
57518 2008-08-18  Bruno Haible  <bruno@clisp.org>
57519
57520         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
57521         glthread_recursive_lock_* macros.
57522         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
57523         Fix syntax error.
57524
57525 2008-08-18  Bruno Haible  <bruno@clisp.org>
57526
57527         * lib/glthread/thread.c: Avoid forcing a context switch right after
57528         thread creation.
57529
57530 2008-08-17  Bruno Haible  <bruno@clisp.org>
57531
57532         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
57533         * lib/glthread/thread.h: Provide Win32 specific implementation.
57534         * modules/thread (Files): Add lib/glthread/thread.c.
57535         (Depends-on): Add lock.
57536         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
57537
57538 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57539
57540         New module 'yield'.
57541         * modules/yield: New file.
57542         * lib/glthread/yield.h: New file.
57543         * m4/yield.m4: New file.
57544         * MODULES.html.sh (Multithreading): Add yield.
57545
57546 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57547
57548         New module 'thread'.
57549         * modules/thread: New file.
57550         * lib/glthread/thread.h: New file.
57551         * m4/thread.m4: New file.
57552         * MODULES.html.sh (Multithreading): Add thread.
57553
57554 2008-08-17  Bruno Haible  <bruno@clisp.org>
57555
57556         * lib/glthread/lock.h: Include <stdlib.h> always.
57557         * lib/glthread/tls.h: Likewise.
57558         * lib/glthread/cond.h: Likewise.
57559
57560 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57561
57562         New module 'cond'.
57563         * modules/cond: New file.
57564         * lib/glthread/cond.h: New file.
57565         * lib/glthread/cond.c: New file.
57566         * m4/cond.m4: New file.
57567         * MODULES.html.sh (Multithreading): Add cond.
57568
57569 2008-08-16  Eric Blake  <ebb9@byu.net>
57570
57571         c-stack: fix regression on Irix 5.3 from 2008-06-21
57572         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
57573         sa_sigaction...
57574         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
57575         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
57576         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
57577         * modules/signal (Makefile.am): Use the value.
57578         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
57579         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
57580         * doc/posix-headers/signal.texi (signal.h): Document this
57581         portability issue.
57582         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
57583         Reported by Tom G. Christensen.
57584
57585 2008-08-17  Bruno Haible  <bruno@clisp.org>
57586
57587         New module 'threadlib'.
57588         * modules/threadlib: New file.
57589         * lib/glthread/threadlib.c: New file, extracted from
57590         lib/glthread/lock.c.
57591         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
57592         functions.
57593         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
57594         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
57595         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
57596         macros.
57597         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
57598         (gl_DISABLE_THREADS): Remove macro.
57599         * modules/lock (Files): Remove build-aux/config.rpath.
57600         (Depends-on): Remove havelib. Add threadlib.
57601         (configure.ac-early): Remove section.
57602         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
57603         * modules/tls (Depends-on): Remove lock. Add threadlib.
57604         (Link): New section, copied from threadlib.
57605         * MODULES.html.sh (Multithreading): Add threadlib.
57606
57607 2008-08-14  Bruno Haible  <bruno@clisp.org>
57608
57609         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
57610         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
57611         glthread_rwlock_unlock, glthread_rwlock_destroy,
57612         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
57613         glthread_recursive_lock_destroy): Define as macros always.
57614         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
57615         glthread_lock_lock.
57616         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
57617         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
57618         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
57619         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
57620         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
57621         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
57622         (glthread_recursive_lock_lock_func): Renamed from
57623         glthread_recursive_lock_lock.
57624         (glthread_recursive_lock_unlock_func): Renamed from
57625         glthread_recursive_lock_unlock.
57626         (glthread_recursive_lock_destroy_func): Renamed from
57627         glthread_recursive_lock_destroy.
57628
57629 2008-08-14  Bruno Haible  <bruno@clisp.org>
57630
57631         * lib/glthread/lock.h: Renamed from lib/lock.h.
57632         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
57633         * lib/glthread/tls.h: Renamed from lib/tls.h.
57634         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
57635         * lib/fstrcmp.c: Update includes.
57636         * lib/strsignal.c: Update includes.
57637         * modules/lock (Files, Makefile.am): Update.
57638         (Include): Change to "glthread/lock.h".
57639         * modules/tls (Files, Makefile.am): Update.
57640         (Include): Change to "glthread/tls.h".
57641         * tests/test-lock.c: Update includes.
57642         * tests/test-tls.c: Update includes.
57643         * NEWS: Mention the renamed header files.
57644
57645 2008-08-11  Jim Meyering  <meyering@redhat.com>
57646
57647         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
57648
57649 2008-08-11  Eric Blake  <ebb9@byu.net>
57650
57651         test-c-stack: avoid C99-ism
57652         * tests/test-c-stack.c (main): Fix whitespace, move declaration
57653         before statement.
57654         Reported by Alain Guibert.
57655
57656 2008-08-10  Jim Meyering  <meyering@redhat.com>
57657
57658         ensure that return value of uinttostr et al are not ignored
57659         * lib/inttostr.h (__GNUC_PREREQ): Define.
57660         (__attribute_warn_unused_result__): Define.
57661         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
57662
57663 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
57664
57665         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
57666         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
57667
57668 2008-08-07  Jim Meyering  <meyering@redhat.com>
57669
57670         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
57671
57672         * modules/mkstemp (License): Relicense under LGPLv2+.
57673         * modules/tempname (License): Likewise.
57674
57675 2008-08-06  Bruno Haible  <bruno@clisp.org>
57676
57677         * lib/poll.c (poll): Further micro-optimization.
57678
57679 2008-08-06  Jim Meyering  <meyering@redhat.com>
57680
57681         inet_pton.c: use locale-independent tolower
57682         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
57683         (inet_pton6): Use c_tolower rather than tolower.
57684         * modules/inet_pton (Depends-on): Add c-ctype.
57685
57686 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
57687
57688         * lib/poll.c (poll): Avoid division when timeout is 0, cache
57689         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
57690
57691 2008-08-06  Jim Meyering  <meyering@redhat.com>
57692
57693         * modules/inet_pton (License): Relicense under LGPLv2+.
57694
57695 2008-08-03  Bruno Haible  <bruno@clisp.org>
57696
57697         Additional non-aborting API for lock and tls.
57698         * lib/lock.h: Include <errno.h>.
57699         (glthread_lock_init): New macro/function.
57700         (gl_lock_init): Define as wrapper around glthread_lock_init.
57701         (glthread_lock_lock): New macro/function.
57702         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
57703         (glthread_lock_unlock): New macro/function.
57704         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
57705         (glthread_lock_destroy): New macro/function.
57706         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
57707         (glthread_rwlock_init): New macro/function.
57708         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
57709         (glthread_rwlock_rdlock): New macro/function.
57710         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
57711         (glthread_rwlock_wrlock): New macro/function.
57712         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
57713         (glthread_rwlock_unlock): New macro/function.
57714         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
57715         (glthread_rwlock_destroy): New macro/function.
57716         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
57717         (glthread_recursive_lock_init): New macro/function.
57718         (gl_recursive_lock_init): Define as wrapper around
57719         glthread_recursive_lock_init.
57720         (glthread_recursive_lock_lock): New macro/function.
57721         (gl_recursive_lock_lock): Define as wrapper around
57722         glthread_recursive_lock_lock.
57723         (glthread_recursive_lock_unlock): New macro/function.
57724         (gl_recursive_lock_unlock): Define as wrapper around
57725         glthread_recursive_lock_unlock.
57726         (glthread_recursive_lock_destroy): New macro/function.
57727         (gl_recursive_lock_destroy): Define as wrapper around
57728         glthread_recursive_lock_destroy.
57729         (glthread_once): New macro/function.
57730         (gl_once): Define as wrapper around glthread_once.
57731         Update function declarations.
57732         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
57733         glthread_rwlock_init. Return error code.
57734         (glthread_rwlock_rdlock_multithreaded): Renamed from
57735         glthread_rwlock_rdlock. Return error code.
57736         (glthread_rwlock_wrlock_multithreaded): Renamed from
57737         glthread_rwlock_wrlock. Return error code.
57738         (glthread_rwlock_unlock_multithreaded): Renamed from
57739         glthread_rwlock_unlock. Return error code.
57740         (glthread_rwlock_destroy_multithreaded): Renamed from
57741         glthread_rwlock_destroy. Return error code.
57742         (glthread_recursive_lock_init_multithreaded): Renamed from
57743         glthread_recursive_lock_init. Return error code.
57744         (glthread_recursive_lock_lock_multithreaded): Renamed from
57745         glthread_recursive_lock_lock. Return error code.
57746         (glthread_recursive_lock_unlock_multithreaded): Renamed from
57747         glthread_recursive_lock_unlock. Return error code.
57748         (glthread_recursive_lock_destroy_multithreaded): Renamed from
57749         glthread_recursive_lock_destroy. Return error code.
57750         (glthread_once_call): Make static.
57751         (glthread_once_multithreaded): Renamed from glthread_once.
57752         * lib/tls.h: Include <errno.h>.
57753         (glthread_tls_key_init): New macro/function.
57754         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
57755         (glthread_tls_set): New macro/function.
57756         (gl_tls_set): Define as wrapper around glthread_tls_set.
57757         (glthread_tls_key_destroy): New macro/function.
57758         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
57759         Update function declarations.
57760         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
57761         glthread_tls_get.
57762         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
57763
57764 2008-08-04  Eric Blake  <ebb9@byu.net>
57765
57766         gnumakefile: use space, not TAB, outside of targets
57767         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
57768
57769 2008-08-02  Jim Meyering  <meyering@redhat.com>
57770
57771         getdate.y: avoid locale-dependent date parsing failure
57772         In Turkish locales, getdate would fail to recognize keywords
57773         containing a lowercase "i".  The solution is not to rely on
57774         locale-sensitive case-conversion.
57775         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
57776         (lookup_word): Use c_toupper in place of toupper.
57777         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
57778         Reported by Vefa Bicakci <bicave@superonline.com> in
57779         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
57780         * modules/getdate (Depends-on): Add c-ctype.
57781
57782 2008-08-02  Bruno Haible  <bruno@clisp.org>
57783
57784         * gnulib-tool (func_import): When updating or creating a .gitignore
57785         file, prepend each added line with a slash, and ignore leading slashes
57786         from the existing lines.
57787         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
57788
57789 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57790
57791         Portability fix for GNU make 3.79.1.
57792         * top/GNUmakefile: Avoid 'else COND', which older GNU make
57793         versions do not understand.
57794
57795 2008-08-01  Bruno Haible  <bruno@clisp.org>
57796
57797         Work around bug of HP-UX 10.20 cc with -0.0 literal.
57798         * tests/test-isnanf.h (zero): New variable.
57799         (main): Avoid literal -0.0f.
57800         * tests/test-isnand.h (zero): New variable.
57801         (main): Avoid literal -0.0.
57802         * tests/test-isnanl.h (zero): New variable.
57803         (main): Avoid literal -0.0L.
57804         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
57805         (test_float, test_double, test_long_double): Avoid literals -0.0f,
57806         -0.0, -0.0L.
57807         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
57808         (test_signbitd): Avoid literal -0.0.
57809         (test_signbitl): Avoid literal -0.0L.
57810         * tests/test-ceilf1.c (zero): New variable.
57811         (main): Avoid literal -0.0f.
57812         * tests/test-ceill.c (zero): New variable.
57813         (main): Avoid literal -0.0L.
57814         * tests/test-floorf1.c (zero): New variable.
57815         (main): Avoid literal -0.0f.
57816         * tests/test-floorl.c (zero): New variable.
57817         (main): Avoid literal -0.0L.
57818         * tests/test-roundf1.c (zero): New variable.
57819         (main): Avoid literal -0.0f.
57820         * tests/test-round1.c (zero): New variable.
57821         (main): Avoid literal -0.0.
57822         * tests/test-roundl.c (zero): New variable.
57823         (main): Avoid literal -0.0L.
57824         * tests/test-truncf1.c (zero): New variable.
57825         (main): Avoid literal -0.0f.
57826         * tests/test-trunc1.c (zero): New variable.
57827         (main): Avoid literal -0.0.
57828         * tests/test-truncl.c (zero): New variable.
57829         (main): Avoid literal -0.0L.
57830         * tests/test-frexp.c (zero): New variable.
57831         (main): Avoid literal -0.0.
57832         * tests/test-frexpl.c (zero): New variable.
57833         (main): Avoid literal -0.0L.
57834         * tests/test-ldexpl.c (zero): New variable.
57835         (main): Avoid literal -0.0L.
57836         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
57837         (zerod, zerol): New variables.
57838         (test_function): Avoid literals -0.0, -0.0L.
57839         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
57840         (zerod, zerol): New variables.
57841         (test_function): Avoid literals -0.0, -0.0L.
57842         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
57843         (zerod, zerol): New variables.
57844         (test_function): Avoid literals -0.0, -0.0L.
57845         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
57846         (zerod, zerol): New variables.
57847         (test_function): Avoid literals -0.0, -0.0L.
57848         * tests/test-strtod.c (zero): New variable.
57849         (main): Avoid literal -0.0.
57850         Reported by Jonathan C. Patschke <jp@centtech.com>.
57851
57852 2008-07-31  Jim Meyering  <meyering@redhat.com>
57853
57854         sha256.h: correct definition of SHA224_DIGEST_SIZE
57855         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
57856         Reported by Paulie Pena IV <paulie4@gmail.com>.
57857         Define as 224 / 8, rather than as a literal.
57858         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
57859         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
57860         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
57861
57862 2008-07-31  Bruno Haible  <bruno@clisp.org>
57863
57864         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
57865         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
57866         Reported by Jonathan Patschke <jp@centtech.com>.
57867
57868 2008-07-31  Bruno Haible  <bruno@clisp.org>
57869
57870         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
57871         Reported by Paolo Bonzini <bonzini@gnu.org>.
57872
57873 2008-07-30  Eric Blake  <ebb9@byu.net>
57874
57875         test-strtod: allow compilation without -lm
57876         * tests/test-strtod.c (main): Avoid link dependence on fabs.
57877         Reported by Dennis Clarke <blastwave@gmail.com>.
57878
57879 2008-07-28  Jim Meyering  <meyering@redhat.com>
57880
57881         bootstrap: work also when there are no .po files in po/
57882         * build-aux/bootstrap (update_po_files): Complete the change
57883         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
57884
57885 2008-07-27  Jim Meyering  <meyering@redhat.com>
57886
57887         * users.txt: Add zile.
57888
57889 2008-07-26  Ben Pfaff  <blp@gnu.org>
57890
57891         Add missing dependencies on new m4/exponent[fdl].m4 files.
57892         * modules/isnanf-nolibm: Add m4/exponentf.m4.
57893         * modules/isnand-nolibm: Add m4/exponentd.m4.
57894         * modules/isnanl-nolibm: Add m4/exponentl.m4.
57895         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
57896         m4/isnan[fdl].m4, because the macros actually used moved.
57897         Reported by Jim Meyering.
57898
57899 2008-07-14  Ben Pfaff  <blp@gnu.org>
57900
57901         Add isinf module.
57902         * lib/isinf.c: New file.
57903         * lib/math.in.h: Define isinf macro if we have decided to replace
57904         it.
57905         * m4/isinf.m4: New file.
57906         * m4/math_h.m4: Initialize and substitute variables for isinf
57907         module.
57908         * modules/isinf: New file.
57909         * modules/isinf-tests: New file.
57910         * modules/math: Add substitutions for new module.
57911         * tests/test-isinf.c: New file.
57912         * doc/posix-functions/isinf.texi: Mention new module.
57913         * MODULES.html.sh: Mention new module.
57914
57915 2008-07-14  Ben Pfaff  <blp@gnu.org>
57916
57917         Factor out some macros for use by additional modules.
57918         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
57919         exponentf.m4.
57920         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
57921         exponentd.m4.
57922         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
57923         file exponentl.m4.
57924         * m4/exponentf.m4: New file.
57925         * m4/exponentd.m4: New file.
57926         * m4/exponentl.m4: New file.
57927         * modules/isnanf: Use new file m4/exponentf.m4.
57928         * modules/isnand: Use new file m4/exponentd.m4.
57929         * modules/isnanl: Use new file m4/exponentl.m4.
57930
57931 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
57932
57933         mktime.c: normalize tp->tm_isdst value to -1/0/1.
57934         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
57935         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
57936         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
57937
57938         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
57939         readlink on platforms without PATH_MAX.
57940
57941 2008-07-21  Eric Blake  <ebb9@byu.net>
57942
57943         Warn, not fail, on stale version.
57944         * top/GNUmakefile (_curr-ver): Tone down previous patch.
57945
57946         Don't allow installation with stale devel version number.
57947         * top/GNUmakefile (_is-install-target): New macro.
57948         (_curr-ver): Forbid installation with stale version number.
57949
57950 2008-07-20  Bruno Haible  <bruno@clisp.org>
57951
57952         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
57953         TESTS_ENVIRONMENT.
57954         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
57955
57956 2008-07-20  Bruno Haible  <bruno@clisp.org>
57957
57958         * lib/c-stack.h (c_stack_action): Add documentation.
57959         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
57960
57961 2008-07-20  Bruno Haible  <bruno@clisp.org>
57962
57963         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
57964         * modules/readlink (License): Likewise.
57965
57966 2008-07-17  Eric Blake  <ebb9@byu.net>
57967
57968         * modules/c-stack (Link): Fix typo.
57969
57970         Make c-stack use libsigsegv, when available.
57971         * modules/c-stack (Depends-on): Add libsigsegv.
57972         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
57973         needed.
57974         * lib/c-stack.c (SIGSTKSZ): Define fallback.
57975         (segv_handler, overflow_handler, c_stack_action)
57976         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
57977         implementation when libsigsegv is available, but only when using
57978         the library is necessary.
57979         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
57980         comment, explaining why XSI check fails on Linux.
57981         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
57982         * tests/test-c-stack2.sh: Tweak skip message.
57983         * NEWS: Document new link-time requirements.
57984
57985 2008-07-16  Eric Blake  <ebb9@byu.net>
57986
57987         c-stack: Expose false positives when not using libsigsegv.
57988         * modules/c-stack-tests (Files): Expand test.
57989         * tests/test-c-stack.c (main): Add means to conditionally trigger
57990         non-overflow SIGSEGV.
57991         * tests/test-c-stack2.sh: New file.
57992
57993 2008-07-14  Bruno Haible  <bruno@clisp.org>
57994
57995         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
57996         Reported by Eric Blake.
57997
57998 2008-07-14  Sam Steingold  <sds@gnu.org>
57999             Bruno Haible  <bruno@clisp.org>
58000
58001         New module libsigsegv.
58002         * modules/libsigsegv: New file.
58003         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
58004         modifications.
58005         * MODULES.html.sh (Signal handling): New section.
58006
58007 2008-07-14  Bruno Haible  <bruno@clisp.org>
58008
58009         * modules/unictype/ctype-* (Description): Add the word "function".
58010         Improves the resulting doc in MODULES.html.
58011
58012 2008-07-12  Ben Pfaff  <blp@gnu.org>
58013
58014         Add longlong module.
58015         * modules/longlong: New file.
58016
58017 2008-07-12  Bruno Haible  <bruno@clisp.org>
58018
58019         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
58020         to empty.
58021
58022 2008-07-10  Ben Pfaff  <blp@gnu.org>
58023
58024         Add isnan module.
58025         * doc/posix-functions/isnan.texi: Mention new module.
58026         * lib/math.in.h: Define isnan macro if we have decided to replace
58027         it.
58028         * m4/isnan.m4: New file.
58029         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
58030         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
58031         also.
58032         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
58033         redundancy.
58034         * m4/math_h.m4: Initialize and substitute variables for isnan
58035         module.
58036         * modules/isnan: New file.
58037         * modules/isnan-tests: New file.
58038         * modules/math: Add substitutions for new module.
58039         * tests/test-isnan.c: New file.
58040         * MODULES.html.sh: Mention new module.
58041
58042 2008-07-10  Ben Pfaff  <blp@gnu.org>
58043
58044         Add isnanf module.
58045         * lib/isnanf.m4: New file.
58046         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
58047         (gl_HAVE_ISNANF_IN_LIBM): New macro.
58048         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
58049         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
58050         * modules/isnanf: New file.
58051         * modules/isnanf-tests: New file.
58052         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
58053         files.
58054         * tests/test-isnanf-nolibm.c: factored most of its contents into
58055         new file tests/test-isnanf.h.
58056         * tests/test-isnanf.h: New file.
58057         * tests/test-isnanf.c: New file.
58058         * MODULES.html.sh: Mention new module.
58059         * doc/glibc-functions/isnanf.texi: Mention new module.
58060
58061 2008-07-10  Ben Pfaff  <blp@gnu.org>
58062
58063         Add isnand module.
58064         * lib/isnand.h: New file.
58065         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
58066         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
58067         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
58068         functionality also.
58069         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
58070         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
58071         (gl_HAVE_ISNAND_IN_LIBM): New macro.
58072         * modules/isnand: New file.
58073         * modules/isnand-tests: New file.
58074         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
58075         files.
58076         * tests/test-isnand-nolibm.c: factored most of its contents into
58077         new file tests/test-isnand.h.
58078         * tests/test-isnand.h: New file.
58079         * tests/test-isnand.c: New file.
58080         * MODULES.html.sh: Mention new module.
58081
58082 2008-07-10  Ben Pfaff  <blp@gnu.org>
58083
58084         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
58085         * lib/isnand.h: Rename lib/isnand-nolibm.h.
58086         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
58087         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
58088         * modules/isnanf-nolibm: Update references to renamed files.
58089         * modules/isnand-nolibm: Likewise.
58090         * modules/isnanf-nolibm-tests: Likewise.
58091         * modules/isnand-nolibm-tests: Likewise.
58092         * lib/frexp.c: Likewise.
58093         * lib/isfinite.c: Likewise.
58094         * lib/signbitd.c: Likewise.
58095         * lib/signbitf.c: Likewise.
58096         * lib/vasnprintf.c: Likewise.
58097         * tests/test-ceilf1.c: Likewise.
58098         * tests/test-ceilf2.c: Likewise.
58099         * tests/test-floorf1.c: Likewise.
58100         * tests/test-floorf2.c: Likewise.
58101         * tests/test-frexp.c: Likewise.
58102         * tests/test-round1.c: Likewise.
58103         * tests/test-round2.c: Likewise.
58104         * tests/test-roundf1.c: Likewise.
58105         * tests/test-strtod.c: Likewise.
58106         * tests/test-trunc1.c: Likewise.
58107         * tests/test-trunc2.c: Likewise.
58108         * tests/test-truncf1.c: Likewise.
58109         * tests/test-truncf2.c: Likewise.
58110         * NEWS: Mention the renamed header files.
58111
58112 2008-07-11  Jim Meyering  <meyering@redhat.com>
58113
58114         vc-list-files: make the last-resort awk code more portable
58115         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
58116         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
58117         does not support it.
58118
58119 2008-07-10  Eric Blake  <ebb9@byu.net>
58120
58121         Work with tar's bootstrap.
58122         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
58123         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
58124         an m4 comment.
58125
58126 2008-07-09  Jim Meyering  <meyering@redhat.com>
58127
58128         posix-shell.m4: fix typo that made this test malfunction
58129         * m4/posix-shell.m4: Remove capitalization in variable name.
58130
58131 2008-07-08  Bruno Haible  <bruno@clisp.org>
58132
58133         * m4/onceonly.m4: Update comments.
58134         Reported by Ben Pfaff <blp@cs.stanford.edu>.
58135
58136 2008-07-04  Jim Meyering  <meyering@redhat.com>
58137
58138         * users.txt: Add vc-dwim.
58139         (bison, coreutils): Use the gitweb URL.
58140
58141 2008-07-03  Jim Meyering  <meyering@redhat.com>
58142
58143         * users.txt: Add libffcall.  From Sam Steingold.
58144
58145 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
58146
58147         getdate.y: do not ignore TZ with relative day, month or year offset
58148         * lib/getdate.y (get_date): Move the tz-handling block to follow the
58149         relative-date-handling, since otherwise, the latter would clobber the
58150         sole output (an updated Start value) of the tz-handling block.
58151         * tests/test-getdate.c: Tests for the fix
58152
58153 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58154
58155         Recognize 'foo_LIBRARIES += libgnu.a'.
58156         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
58157         makefile snippet has already specified an installation location,
58158         also using '+='.
58159
58160 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
58161
58162         getdate.y: factor out common actions
58163         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
58164         Use them in place of open-coded actions.
58165
58166 2008-07-01  Simon Josefsson  <simon@josefsson.org>
58167
58168         Add self-test for getdate module.
58169         * modules/getdate-tests: New file.
58170         * tests/test-getdate.c: New file.
58171
58172 2008-06-29  Bruno Haible  <bruno@clisp.org>
58173
58174         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
58175         .gitignore.
58176         Reported by Sylvain Beucler <beuc@beuc.net>.
58177
58178 2008-06-29  Bruno Haible  <bruno@clisp.org>
58179
58180         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
58181         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
58182
58183 2008-06-29  Bruno Haible  <bruno@clisp.org>
58184
58185         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
58186         EXTRA_DIST.
58187         Reported by Sylvain Beucler <beuc@beuc.net>.
58188
58189 2008-06-26  Jim Meyering  <meyering@redhat.com>
58190
58191         make several modules depend on the "open" module
58192         This provides slightly increased consistency when opening-for-write
58193         the name of a non-directory spelled with a trailing slash.
58194         * modules/chdir-safer: Likewise.
58195         * modules/chown: Likewise.
58196         * modules/clean-temp: Likewise.
58197         * modules/copy-file: Likewise.
58198         * modules/fchdir: Likewise.
58199         * modules/fcntl-safer: Likewise.
58200         * modules/pipe: Likewise.
58201         * modules/utime: Likewise.
58202         Prompted by Eric Blake and Bruno Haible.
58203
58204 2008-06-24  Andreas Schwab  <schwab@suse.de>
58205
58206         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
58207         literals can be used as initializers for global variables.
58208
58209 2008-06-23  Eric Blake  <ebb9@byu.net>
58210
58211         Make gnulib-cache.m4 easier to diff.
58212         * gnulib-tool (func_import): Allow newlines when reading cached
58213         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
58214
58215 2008-06-23  Bruno Haible  <bruno@clisp.org>
58216
58217         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
58218         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
58219         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
58220         m4/signalblocking.m4.
58221         (gl_PREREQ_SIGACTION): Don't invoke it.
58222         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
58223         gl_PREREQ_SIG_HANDLER_H.
58224         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
58225         Don't check for sigaction here.
58226
58227 2008-06-23  Bruno Haible  <bruno@clisp.org>
58228
58229         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
58230         (install_handlers): Don't set the SA_RESETHAND flag.
58231
58232 2008-06-23  Bruno Haible  <bruno@clisp.org>
58233
58234         * m4/sigaction.m4: Comment fixes.
58235         * lib/signal.in.h: Likewise.
58236
58237 2008-06-23  Eric Blake  <ebb9@byu.net>
58238
58239         Fix typo.
58240         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
58241
58242         Avoid SA_ namespace.
58243         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
58244         Reported by Ralf Wildenhues.
58245
58246         Avoid test failure due to SA_RESTORER.
58247         * tests/test-sigaction.c (SA_MASK): New macro.
58248         (main): Avoid failing due to extension flags being set.
58249         Reported by Jim Meyering.
58250
58251         Revert use of sig-handler.h in sigprocmask.c.
58252         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
58253         it requires the existence of struct sigaction.
58254         * lib/sigprocmask.c (handler_t): Restore typedef.
58255         (rpl_signal, old_handlers): Use local type.
58256
58257 2008-06-22  Bruno Haible  <bruno@clisp.org>
58258
58259         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
58260         conditionally.
58261         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
58262
58263 2008-06-22  Bruno Haible  <bruno@clisp.org>
58264
58265         * doc/posix-functions/siginterrupt.texi: Move note.
58266
58267         * lib/signal.in.h (SA_RESTART): New macro.
58268         * lib/sigaction.c: Update comment.
58269
58270         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
58271
58272         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
58273         (gl_PREREQ_SIGPROCMASK): Invoke it.
58274         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
58275
58276         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
58277
58278         * lib/sigprocmask.c: Update a comment.
58279
58280 2008-06-21  Eric Blake  <ebb9@byu.net>
58281
58282         Use sigaction module rather than signal().
58283         * modules/c-stack (Depends-on): Add sigaction.
58284         * modules/fatal-signal (Depends-on): Likewise.
58285         * modules/nanosleep (Depends-on): Likewise.
58286         * modules/sigprocmask (Files): Add sig-handler.h.
58287         * modules/sigaction (Files): Likewise.
58288         * lib/sig-handler.h (get_handler): New file, suggested by Paul
58289         Eggert.
58290         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
58291         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
58292         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
58293         (init_fatal_signals): Likewise.
58294         * lib/nanosleep.c (rpl_nanosleep): Likewise.
58295         (siginterrupt): Delete fallback.
58296         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
58297         instead.
58298         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
58299         siginterrupt.
58300
58301         New module sigaction, for mingw.
58302         * modules/sigaction: New module...
58303         * modules/sigaction-tests: ...and its test.
58304         * m4/sigaction.m4: New file.
58305         * lib/sigaction.c: Likewise.
58306         * tests/test-sigaction.c: Likewise.
58307         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
58308         * modules/signal (Makefile.am): Likewise.
58309         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
58310         needed.
58311         * doc/posix-headers/signal.texi (signal.h): Mention provided
58312         types.
58313         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
58314         that sigaction is preferable.
58315         * doc/posix-functions/sigaction.texi (sigaction): Mention new
58316         module.
58317         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
58318         sigaction.
58319
58320         Improve robustness of sigprocmask by overriding signal.
58321         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
58322         is in use.
58323         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
58324         (SIGKILL, SIGSTOP): Provide fallbacks.
58325         (rpl_signal): Implement.
58326         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
58327         signal can be called inside handlers.
58328
58329         Fix nanosleep module on mingw.
58330         * modules/nanosleep (Depends-on): Add sys_select.
58331         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
58332
58333         Fix licensing of sigprocmask.
58334         * modules/raise (License): Relicense as LGPL.
58335
58336 2008-06-21  Bruno Haible  <bruno@clisp.org>
58337
58338         * lib/propername.c (proper_name_utf8): Don't use the transliterated
58339         result if it contains question marks.
58340         Reported by Michael Geng <linux@michaelgeng.de>.
58341
58342 2008-06-19  Bruno Haible  <bruno@clisp.org>
58343
58344         Fix CVS-ism.
58345         * doc/gnulib.texi: Include updated-stamp.texi.
58346         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
58347         (updated-stamp.texi): New rule.
58348         (gnulib.info): Depend on it.
58349         * doc/.gitignore: Add updated-stamp.texi.
58350         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
58351
58352 2008-06-19  Bruno Haible  <bruno@clisp.org>
58353
58354         * doc/Makefile (gnulib.info): Update and simplify dependencies.
58355         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
58356
58357 2008-06-19  Eric Blake  <ebb9@byu.net>
58358
58359         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
58360         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
58361         Reported by Stepan Kasal.
58362
58363 2008-06-18  Bruno Haible  <bruno@clisp.org>
58364
58365         * lib/fatal-signal.c (init_fatal_signals): Add comment.
58366         Reported by Eric Blake.
58367
58368 2008-06-18  Eric Blake  <ebb9@byu.net>
58369
58370         Work around cygwin 1.5.25 strsignal bug.
58371         * tests/test-strsignal.c: Allow for const char *.
58372         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
58373
58374 2008-06-18  Simon Josefsson  <simon@josefsson.org>
58375
58376         * users.txt: Update URL to article and add author/date
58377         information.
58378
58379 2008-06-17  Bruno Haible  <bruno@clisp.org>
58380
58381         New macro gl_DISABLE_THREADS.
58382         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
58383         if the user did not pass --enable-threads or --disable-threads option.
58384         (gl_DISABLE_THREADS): New macro.
58385         Reported by Eric Blake <ebb9@byu.net>.
58386
58387 2008-06-17  Bruno Haible  <bruno@clisp.org>
58388
58389         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
58390         when the macro ignores it.
58391         Based on a patch by Eric Blake <ebb9@byu.net>.
58392
58393 2008-06-17  Bruno Haible  <bruno@clisp.org>
58394
58395         * modules/tls (License): Change to LGPLv2+.
58396         Reported by Eric Blake.
58397
58398 2008-06-17  Eric Blake  <ebb9@byu.net>
58399
58400         Simplify c-stack prerequisites.
58401         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
58402         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
58403         no longer requires <ucontext.h> to exist.  Optimize setrlimit
58404         check.
58405         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
58406         <sys/resource.h>.
58407
58408         Move c-stack test into testsuite.
58409         * modules/c-stack-tests: New file.
58410         * lib/c-stack.c [DEBUG]: Move test program...
58411         * tests/test-c-stack.c: ...into this new file.  Skip rather than
58412         fail test if sigaltstack is lacking.
58413         * tests/test-c-stack.sh: New driver file.
58414
58415 2008-06-16  Eric Blake  <ebb9@byu.net>
58416
58417         Use raise module consistently.
58418         * modules/fatal-signal (Depends-on): Add raise.
58419         * modules/sigprocmask (Depends-on): Likewise.
58420         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
58421         * lib/sigprocmask.c (sigprocmask): Likewise.
58422         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
58423         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
58424
58425         Fix compliance bug in sigpending.
58426         * lib/sigprocmask.c (sigpending): Return pending array via
58427         parameter, not return value.
58428
58429 2008-06-14  Eric Blake  <ebb9@byu.net>
58430
58431         Improve obstack-printf test code.
58432         * tests/test-obstack-printf.c (test_function): Fix comment, and
58433         simplify usage of obstack_* in macros.  Add a test for coverage.
58434         Reported by Bruno Haible.
58435
58436 2008-06-14  Bruno Haible  <bruno@clisp.org>
58437
58438         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
58439         array size as a constant, not as a const variable.
58440         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
58441         AC_USE_SYSTEM_EXTENSIONS.
58442         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
58443         Test whether the obstack_printf function actually exists.
58444         * modules/obstack-printf (Depends-on): Add extensions.
58445         (Include): Remove obstack.h.
58446         * modules/obstack-printf-posix (Depends-on): Add extensions.
58447         (Include): Remove obstack.h.
58448
58449 2008-06-13  Eric Blake  <ebb9@byu.net>
58450
58451         Add obstack-printf and obstack-printf-posix modules.
58452         * modules/obstack-printf: New file.
58453         * modules/obstack-printf-posix: Likewise.
58454         * MODULES.html.sh (Misc): Mention them.
58455         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
58456         Likewise.
58457         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
58458         Likewise.
58459         * modules/stdio (Makefile.am): Accomodate new modules.
58460         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
58461         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
58462         Declare.
58463         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
58464         functions.
58465         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
58466         (gl_REPLACE_OBSTACK_PRINTF): New macros
58467         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
58468         * tests/test-obstack-printf.c: New file.
58469         * modules/obstack-printf-tests: Likewise.
58470         * modules/obstack-printf-posix-tests: Likewise.
58471
58472 2008-06-11  Bruno Haible  <bruno@clisp.org>
58473
58474         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
58475         * lib/open.c: Include errno.h.
58476         (open): Fail when attempting to write to a file that has a trailing
58477         slash.
58478         * tests/test-open.c (main): Test against trailing slash bug.
58479         * doc/posix-functions/open.texi: Mention the trailing slash bug.
58480
58481 2008-06-10  Bruno Haible  <bruno@clisp.org>
58482
58483         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
58484         for $? to work inside the trap command, with various /bin/sh-s.
58485         * tests/test-vc-list-files-cvs.sh: Likewise.
58486
58487 2008-06-10  Bruno Haible  <bruno@clisp.org>
58488
58489         * lib/acl-internal.h: Don't include gettext.h here.
58490         * lib/set-mode-acl.c: Include gettext.h here.
58491         * lib/copy-acl.c: Likewise.
58492
58493 2008-06-10  Bruno Haible  <bruno@clisp.org>
58494
58495         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
58496         * lib/wait-process.c (wait_subprocess): Likewise.
58497         * lib/execute.h (execute): Add termsigp argument.
58498         * lib/execute.c (execute): Likewise.
58499         * lib/csharpcomp.c (compile_csharp_using_pnet,
58500         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
58501         * lib/csharpexec.c (execute_csharp_using_pnet,
58502         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
58503         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
58504         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
58505         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
58506         is_jikes_present): Update.
58507         * lib/javaexec.c (execute_java_class): Update.
58508         * lib/javaversion.c (execute_and_read_line): Update.
58509         * NEWS: Document the changes.
58510         Reported by Eric Blake.
58511
58512 2008-06-10  Eric Blake  <ebb9@byu.net>
58513
58514         Add missing include.
58515         * tests/test-strstr.c (includes): Add <signal.h>.
58516         * tests/test-strcasestr.c (includes): Likewise.
58517         * tests/test-memmem.c (includes): Likewise.
58518
58519 2008-06-10  Bruno Haible  <bruno@clisp.org>
58520
58521         * lib/wait-process.c (wait_subprocess): Add an assertion.
58522
58523 2008-06-10  Bruno Haible  <bruno@clisp.org>
58524
58525         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
58526
58527 2008-06-10  Bruno Haible  <bruno@clisp.org>
58528
58529         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
58530         using alarm().
58531         * tests/test-strcasestr.c (main): Likewise.
58532         * tests/test-strstr.c (main): Likewise.
58533
58534 2008-06-09  Bruno Haible  <bruno@clisp.org>
58535
58536         Work around the Solaris 10 ACE ACLs ABI change.
58537         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
58538         declare if ACL_NO_TRIVIAL is present.
58539         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
58540         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
58541         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
58542         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
58543         define if ACL_NO_TRIVIAL is present.
58544         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
58545         and use the current ABI.
58546         (file_has_acl): Use same #if condition as elsewhere.
58547         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
58548         in use, and use the current ABI.
58549         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
58550         Reported by Jim Meyering.
58551
58552 2008-06-09  Eric Blake  <ebb9@byu.net>
58553
58554         Work around environments that (stupidly) ignore SIGALRM.
58555         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
58556         before using alarm().
58557         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
58558         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
58559         Reported by Ian Beckwith <ianb@erislabs.net>.
58560
58561         Produce autobuild blurb earlier in log.
58562         * modules/autobuild (configure.ac-early): Move AB_INIT here.
58563
58564 2008-06-09  Jim Meyering  <meyering@redhat.com>
58565         and OndÅ™ej Vašík  <ovasik@redhat.com>
58566
58567         utimens.c: correct kernel bug work-around
58568         OndÅ™ej Vašík found that the invalid return value of 280 indicates
58569         failure, not success, and the kernel bug we're trying to work
58570         around affects not just the utimensat call, but also the fallback
58571         futimens call.
58572         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
58573         not success.
58574         [HAVE_FUTIMENS]: Use the same work-around, here.
58575
58576 2008-06-09  Jim Meyering  <meyering@redhat.com>
58577
58578         add more guards around definition of ACE_-related code
58579         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
58580         ALLOW and ACE_OWNER are also defined.
58581
58582 2008-06-08  Bruno Haible  <bruno@clisp.org>
58583
58584         * lib/acl-internal.h: Add me as co-author.
58585         * lib/file-has-acl.c: Likewise.
58586         * lib/set-mode-acl.c: Likewise.
58587         * lib/copy-acl.c: Likewise.
58588
58589 2008-06-08  Bruno Haible  <bruno@clisp.org>
58590
58591         Add support for AIX ACLs.
58592         * lib/acl-internal.h (acl_nontrivial): New declaration.
58593         * lib/file-has-acl.c (acl_nontrivial): New function.
58594         (file_has_acl): Add implementation using AIX 4 ACL API.
58595         * lib/set-mode-acl.c (qset_acl): Likewise.
58596         * lib/copy-acl.c (qcopy_acl): Likewise.
58597
58598 2008-06-08  Bruno Haible  <bruno@clisp.org>
58599
58600         Add support for HP-UX ACLs.
58601         * lib/acl-internal.h (acl_nontrivial): New declaration.
58602         * lib/file-has-acl.c (acl_nontrivial): New function.
58603         (file_has_acl): Add implementation using HP-UX 11 ACL API.
58604         * lib/set-mode-acl.c (qset_acl): Likewise.
58605         * lib/copy-acl.c (qcopy_acl): Likewise.
58606
58607 2008-06-08  Bruno Haible  <bruno@clisp.org>
58608
58609         Add support for Cygwin ACLs.
58610         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
58611         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
58612         the chmod_or_fchmod call.
58613         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
58614
58615 2008-06-08  Bruno Haible  <bruno@clisp.org>
58616
58617         Fix bug with setuid modes in Solaris 10+ code.
58618         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
58619         succeeded, when the mode contains some special bits.
58620
58621 2008-06-08  Bruno Haible  <bruno@clisp.org>
58622
58623         Add support for Solaris 7..10 ACLs.
58624         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
58625         declarations.
58626         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
58627         functions.
58628         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
58629         * lib/set-mode-acl.c (qset_acl): Likewise.
58630         * lib/copy-acl.c (qcopy_acl): Likewise.
58631
58632 2008-06-08  Bruno Haible  <bruno@clisp.org>
58633
58634         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
58635         declaration.
58636         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
58637         (acl_access_nontrivial): Remove MacOS X case.
58638         (file_has_acl): Use acl_extended_nontrivial.
58639         * lib/copy-acl.c (qcopy_acl): Likewise.
58640
58641 2008-06-08  Bruno Haible  <bruno@clisp.org>
58642
58643         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
58644
58645 2008-06-08  Jim Meyering  <meyering@redhat.com>
58646
58647         * modules/acl (Maintainer): Add Bruno Haible.
58648
58649 2008-06-07  Bruno Haible  <bruno@clisp.org>
58650
58651         Improve support for Tru64 ACLs.
58652         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
58653         ACL on OSF/1.
58654
58655 2008-06-07  Bruno Haible  <bruno@clisp.org>
58656
58657         Add support for MacOS X ACLs.
58658         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
58659         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
58660         * lib/set-mode-acl.c (qset_acl): Likewise.
58661         * lib/copy-acl.c (qcopy_acl): Likewise.
58662
58663 2008-06-07  Bruno Haible  <bruno@clisp.org>
58664
58665         Fix memory leak introduced on 2008-05-22.
58666         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
58667         use.
58668
58669 2008-06-07  Bruno Haible  <bruno@clisp.org>
58670
58671         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
58672         to construct an empty ACL.
58673
58674 2008-06-07  Bruno Haible  <bruno@clisp.org>
58675
58676         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
58677         precisely.
58678         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
58679
58680 2008-06-07  Bruno Haible  <bruno@clisp.org>
58681
58682         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
58683         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
58684
58685 2008-06-07  Bruno Haible  <bruno@clisp.org>
58686
58687         * doc/posix-functions/_setjmp.texi: Explain the use of this function
58688         regardless of POSIX.
58689         * doc/posix-functions/_longjmp.texi: Likewise.
58690         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
58691         SystemV platform in this case.
58692
58693 2008-06-06  Eric Blake  <ebb9@byu.net>
58694
58695         Document abort() bugs.
58696         * doc/posix-functions/abort.texi (abort): Mention anomalies.
58697
58698         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
58699         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
58700         sigsetjmp.
58701         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
58702         siglongjmp, but only as a macro.
58703         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
58704         is obsolete.
58705         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
58706
58707         Tweak documentation to cover cygwin argz bugs.
58708         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
58709         argz bug fix; no code change needed since no cygwin releases
58710         occurred between the last fix and the bug being tested.
58711         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
58712         module and recently fixed cygwin bugs.
58713         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
58714         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
58715         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
58716         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
58717         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
58718         Likewise.
58719         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
58720         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
58721         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
58722         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
58723         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
58724         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
58725         Likewise.
58726
58727         Avoid gcc warning on cygwin.
58728         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
58729         !ACL_NO_TRIVIAL]: Avoid unused variable.
58730
58731 2008-06-05  Eric Blake  <ebb9@byu.net>
58732
58733         Be tolerant of UNKNOWN version in gnulib-tool test dir.
58734         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
58735         git-version-gen fails to come up with a version.
58736         Reported by Simon Josefsson.
58737
58738 2008-06-05  Jim Meyering  <meyering@redhat.com>
58739             Paul Eggert  <eggert@cs.ucla.edu>
58740
58741         utimens.c: work around a probable Linux kernel bug
58742         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
58743         appears to be a kernel bug that causes utimensat to return 280
58744         instead of 0, indicating success.
58745
58746 2008-06-04  Bruno Haible  <bruno@clisp.org>
58747
58748         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
58749         2008-06-01 commit.
58750
58751 2008-06-04  Bruno Haible  <bruno@clisp.org>
58752
58753         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
58754         * lib/file-has-acl.c (acl_access_nontrivial): New function.
58755         (file_has_acl): Use it. Save errno afterwards.
58756         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
58757
58758 2008-06-03  Bruno Haible  <bruno@clisp.org>
58759
58760         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
58761         draft code. Simplify #ifs.
58762         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
58763         Put Solaris code after POSIX-draft code. Fix comments regarding
58764         Solaris 10, HP-UX. Mention Cygwin.
58765         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
58766
58767 2008-06-03  Eric Blake  <ebb9@byu.net>
58768
58769         Provide fallback for older kernels.
58770         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
58771         Provide runtime fallback if kernel lacks support.
58772         Reported by Mike Frysinger.
58773
58774 2008-06-02  Bruno Haible  <bruno@clisp.org>
58775
58776         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
58777         it exists.
58778
58779 2008-06-02  Bruno Haible  <bruno@clisp.org>
58780
58781         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
58782         * lib/copy-acl.c (qcopy_acl): Update comment.
58783
58784 2008-06-02  Bruno Haible  <bruno@clisp.org>
58785
58786         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
58787         like ACL APIs.
58788
58789 2008-06-02  Bruno Haible  <bruno@clisp.org>
58790
58791         * tests/test-file-has-acl.sh: Use different code for Cygwin.
58792         * tests/test-set-mode-acl.sh: Likewise.
58793         * tests/test-copy-acl.sh: Likewise.
58794         * tests/test-copy-file.sh: Likewise.
58795
58796 2008-06-02  Bruno Haible  <bruno@clisp.org>
58797
58798         * tests/test-file-has-acl.sh: Remove unused code.
58799
58800 2008-06-01  Bruno Haible  <bruno@clisp.org>
58801
58802         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
58803         (copy_acl): Just a wrapper around qcopy_acl that emits the error
58804         messages.
58805         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
58806
58807 2008-06-01  Bruno Haible  <bruno@clisp.org>
58808
58809         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
58810         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
58811         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
58812         APIs.
58813         * modules/acl-tests (configure.ac): Remove tests now contained in
58814         m4/acl.m4.
58815
58816 2008-06-02  Jim Meyering  <meyering@redhat.com>
58817
58818         announce-gen: use a better key-server host name
58819         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
58820         it may be more consistently reliable.  Suggested by Werner Koch
58821         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
58822
58823 2008-06-01  Bruno Haible  <bruno@clisp.org>
58824
58825         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
58826         Reported by Voroskoi Andras <voroskoi@gmail.com>.
58827
58828 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
58829
58830         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
58831
58832 2008-06-01  Bruno Haible  <bruno@clisp.org>
58833
58834         New ACL tests.
58835         * tests/test-file-has-acl.sh: New file.
58836         * tests/test-file-has-acl.c: New file.
58837         * tests/test-set-mode-acl.sh: New file.
58838         * tests/test-set-mode-acl.c: New file.
58839         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
58840         * tests/test-copy-acl.c: New file.
58841         * modules/acl-tests: New file, based on modules/copy-file-tests.
58842         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
58843         (Depends-on): Add acl-tests.
58844         (configure.ac): Remove checks.
58845         (Makefile.am): Don't create test-sameacls program here any more.
58846
58847 2008-06-01  Bruno Haible  <bruno@clisp.org>
58848
58849         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
58850         * tests/test-sameacls.c: Include progname.h.
58851         (main): Invoke set_program_name. Portability fixes for MacOS X,
58852         Solaris, HP-UX.
58853
58854 2008-06-01  Bruno Haible  <bruno@clisp.org>
58855
58856         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
58857         function.
58858         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
58859
58860 2008-06-01  Bruno Haible  <bruno@clisp.org>
58861
58862         * modules/rpmatch (Depends-on): Add strdup.
58863
58864 2008-06-01  Bruno Haible  <bruno@clisp.org>
58865
58866         * lib/pipe.c: Include unistd-safer.h.
58867         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
58868         * modules/pipe (Depends-on): Add unistd-safer.
58869
58870 2008-05-30  Simon Josefsson  <simon@josefsson.org>
58871
58872         * modules/autobuild (configure.ac): Call AB_INIT.
58873
58874 2008-05-30  Simon Josefsson  <simon@josefsson.org>
58875
58876         * tests/test-getaddrinfo.c: Don't print debug messages by default.
58877         Suggested by Bruno Haible <bruno@clisp.org>.
58878
58879 2008-05-30  Simon Josefsson  <simon@josefsson.org>
58880
58881         * tests/test-base64.c: Cast size_t to unsigned long when invoking
58882         printf.  Use %lu instead of %d.  Reported by Bruno Haible
58883         <bruno@clisp.org>.
58884
58885 2008-05-29  Eric Blake  <ebb9@byu.net>
58886
58887         Prefer new POSIX 200x interfaces over futimesat.
58888         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
58889         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
58890         when available.
58891         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
58892
58893 2008-05-28  Bruno Haible  <bruno@clisp.org>
58894
58895         * modules/stpcpy (License): Change to LGPLv2+.
58896         Requested by David Lutterkort <dlutter@redhat.com>.
58897
58898 2008-05-27  Bruno Haible  <bruno@clisp.org>
58899
58900         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
58901         current mingw.
58902         Reported by Jose E. Marchesi <jemarch@gnu.org>.
58903
58904 2008-05-27  Bruno Haible  <bruno@clisp.org>
58905
58906         * modules/iconv_open (Link): New section, from module 'iconv'.
58907         * modules/striconv (Link): Likewise.
58908         * modules/striconveh (Link): Likewise.
58909         * modules/xstriconv (Link): Likewise.
58910         * modules/unicodeio (Link): Likewise.
58911         * modules/propername (Link): Likewise.
58912         Reported by Jim Meyering.
58913
58914 2008-05-26  Jim Meyering  <meyering@redhat.com>
58915
58916         sha256: do not artificially restrict buffer length to be < 2^32
58917         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
58918         uint32_t to size_t.
58919         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
58920         to match.
58921
58922         avoid unaligned access errors, e.g., on sparc
58923         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
58924         direct access through a possibly-unaligned uint64* pointer.
58925         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
58926         direct access through a possibly-unaligned uint32* pointer.
58927         Prompted by this patch from Tom "spot" Callaway:
58928         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
58929
58930         sha512.c: fix typo in comment
58931         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
58932
58933 2008-05-25  Bruno Haible  <bruno@clisp.org>
58934
58935         * lib/set-mode-acl.c: Renamed from lib/acl.c.
58936         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
58937         (Makefile.am): Update lib_SOURCES.
58938
58939 2008-05-25  Bruno Haible  <bruno@clisp.org>
58940
58941         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
58942
58943 2008-05-25  Jim Meyering  <meyering@redhat.com>
58944
58945         useless-if-before-free: freed expr may have white-space differences
58946         * build-aux/useless-if-before-free: Recognize cases in which the
58947         freed expression differs from the tested one in embedded white
58948         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
58949         $1 was used, so we can't make any regexp shy.  Improved tests now
58950         detect this.
58951
58952         useless-if-before-free: accept white space in the expression.
58953         * build-aux/useless-if-before-free: For now, any white space
58954         in the expression must be identical in the free argument.
58955
58956         useless-if-before-free: efficiency tweak
58957         * build-aux/useless-if-before-free: Make the expression-matching
58958         regexp "shy".
58959         Make the *outer* regexp shy, not the expr-matching one.
58960
58961         update code-in-comment to accept cast of free arg
58962         * build-aux/useless-if-before-free: Update regexp.
58963
58964 2008-05-25  Bruno Haible  <bruno@clisp.org>
58965
58966         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
58967         * modules/copy-file-tests (Files, Makefile.am): Update.
58968         * tests/test-copy-file.c (func_test_copy): Update.
58969
58970 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
58971
58972         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
58973
58974 2008-05-23  Bruno Haible  <bruno@clisp.org>
58975
58976         Improve support for ACLs on OSF/1.
58977         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
58978         Remove fallback for unknown flavors of ACLs.
58979
58980 2008-05-22  Bruno Haible  <bruno@clisp.org>
58981
58982         Add support for ACLs on OSF/1.
58983         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
58984         replacements.
58985         (acl_free_text): New macro fallback.
58986         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
58987         acl_free.
58988         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
58989         acl_free_text function. Require AC_C_INLINE.
58990
58991 2008-05-22  Bruno Haible  <bruno@clisp.org>
58992
58993         Make copy_acl work on MacOS X 10.5.
58994         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
58995         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
58996         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
58997         If MODE_INSIDE_ACL, don't assume that every system has the same text
58998         representation for ACLs as FreeBSD.
58999         * lib/copy-acl.c (copy_acl): Add support for platforms with
59000         !MODE_INSIDE_ACL.
59001         * lib/file-has-acl.c (file_has_acl): Likewise.
59002         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
59003         FreeBSD, MacOS X, or IRIX, respectively.
59004
59005 2008-05-22  Bruno Haible  <bruno@clisp.org>
59006
59007         * lib/acl.h: Don't include <sys/acl.h>.
59008         (GETACLCNT): Move fallback to lib/acl-internal.h.
59009         * lib/acl-internal.h: Include <sys/acl.h> here.
59010         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
59011
59012 2008-05-22  Bruno Haible  <bruno@clisp.org>
59013
59014         Split off copy_acl function to separate file.
59015         * lib/copy-acl.c: New file, extracted from lib/acl.c.
59016         * lib/acl.c (copy_acl): Moved function to separate file.
59017         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
59018         * modules/acl (Files): Add lib/copy-acl.c.
59019         (Makefiles.am): Augment lib_SOURCES.
59020
59021 2008-05-22  Bruno Haible  <bruno@clisp.org>
59022
59023         * modules/copy-file-tests: New file.
59024         * tests/test-copy-file.sh: New file.
59025         * tests/test-copy-file.c: New file.
59026         * tests/test-copy-file-sameacls.c: New file.
59027
59028 2008-05-22  Eric Blake  <ebb9@byu.net>
59029
59030         Avoid gcc warning.
59031         * tests/test-memcmp.c (main): Pass NULL indirectly.
59032
59033 2008-05-21  Bruno Haible  <bruno@clisp.org>
59034
59035         Add reference doc about ACLs.
59036         * doc/acl-resources.txt: New file.
59037         * doc/acl-cygwin.txt: New file.
59038
59039 2008-05-21  Bruno Haible  <bruno@clisp.org>
59040
59041         Avoid one more warning from gcc.
59042         * lib/vasnprintf.c (IF_LINT): Update comments.
59043         (VASNPRINTF): Use it also for the 'prefix' array initializer.
59044
59045 2008-05-21  Jim Meyering  <meyering@redhat.com>
59046
59047         avoid a warning from gcc
59048         * lib/vasnprintf.c (IF_LINT): Define.
59049         (scale10_round_decimal_long_double):
59050         Use it to avoid a "may be used uninitialized" warning.
59051         (scale10_round_decimal_double): Likewise.
59052
59053 2008-05-21  Simon Josefsson  <simon@josefsson.org>
59054
59055         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
59056         declared.
59057
59058 2008-05-20  Bruno Haible  <bruno@clisp.org>
59059
59060         * tests/test-memcmp.c (main): Test also the sign of the result. Test
59061         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
59062
59063 2008-05-20  Simon Josefsson  <simon@josefsson.org>
59064
59065         * modules/memcmp-tests: New file.
59066         * tests/test-memcmp.c: New file.
59067
59068 2008-05-19  Bruno Haible  <bruno@clisp.org>
59069
59070         * modules/propername (Notice, configure.ac): Put quoted "..." into
59071         --keyword option.
59072         * lib/propername.h: Update comments accordingly.
59073         Reported by Eric Blake.
59074
59075 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
59076
59077         * modules/getpass-gnu (Depends-on): Add fseeko.
59078
59079 2008-05-19  Simon Josefsson  <simon@josefsson.org>
59080
59081         * modules/base64-tests: New file.
59082
59083 2008-05-19  Bo Borgerson <gigabo@gmail.com>
59084
59085         * lib/base64.c (base64_decode_ctx): If a decode context structure
59086         was passed in use it to ignore newlines.  If a context structure
59087         was _not_ passed in, continue to treat newlines as garbage (this
59088         is the historical behavior).  Formerly base64_decode.
59089         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
59090         takes a decode context structure.
59091         * lib/base64.h (base64_decode): Macro for four-argument calls.
59092         (base64_decode_alloc): Likewise.
59093         * lib/base64.c (base64_decode_ctx): If a decode context structure
59094         was passed in use it to ignore newlines.  If a context structure
59095         was _not_ passed in, continue to treat newlines as garbage (this
59096         is the historical behavior).  Formerly base64_decode.
59097         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
59098         takes a decode context structure.
59099         * lib/base64.h (base64_decode): Macro for four-argument calls.
59100         (base64_decode_alloc): Likewise.
59101
59102 2008-05-19  Jim Meyering  <meyering@redhat.com>
59103
59104         avoid a warning from gcc
59105         * lib/trim.c (IF_LINT): Define.
59106         (trim2): Use it to avoid a "may be used uninitialized" warning.
59107
59108         Fix doc typo.
59109         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
59110
59111 2008-05-19  Bruno Haible  <bruno@clisp.org>
59112
59113         * doc/glibc-functions/getpass.texi: Document limits of other
59114         implementations.
59115
59116 2008-05-19  Simon Josefsson  <simon@josefsson.org>
59117             Bruno Haible <bruno@clisp.org>
59118
59119         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
59120
59121 2008-05-18  Bruno Haible  <bruno@clisp.org>
59122
59123         * modules/propername: New file, from GNU gettext.
59124         * lib/propername.h: New file, from GNU gettext.
59125         * lib/propername.c: New file, from GNU gettext.
59126         * MODULES.html.sh (Internationalization functions): Add propername.
59127
59128 2008-05-16  Jim Meyering  <meyering@redhat.com>
59129             Bruno Haible  <bruno@clisp.org>
59130
59131         Avoid some warnings from "gcc -Wshadow".
59132         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
59133
59134 2008-05-15  Eric Blake  <ebb9@byu.net>
59135
59136         Extend previous patch to cygwin 1.7.0.
59137         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
59138         fast implementation in cygwin >= 1.7.0.
59139         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
59140         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
59141
59142 2008-05-15  Bruno Haible  <bruno@clisp.org>
59143
59144         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
59145         implementation in glibc >= 2.9.
59146         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
59147         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
59148
59149 2008-05-15  Bruno Haible  <bruno@clisp.org>
59150
59151         * MODULES.html.sh (Internationalization functions): Remove linebreak.
59152         (Unicode string functions): Add unilbrk/*.
59153         Reported by Karl Berry.
59154
59155 2008-05-15  Eric Blake  <ebb9@byu.net>
59156
59157         Fix violation of <stdbool.h> replacement in regex.
59158         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
59159         * lib/regexec.c (re_search_internal): Likewise.
59160         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
59161
59162 2008-05-15  Jim Meyering  <meyering@redhat.com>
59163
59164         avoid distracting test output when git or cvs is not found
59165         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
59166         * tests/test-vc-list-files-git.sh: Likewise.
59167
59168 2008-05-15  Eric Blake  <ebb9@byu.net>
59169
59170         Glibc finally accepted the memmem speedup code, bugzilla #5514.
59171         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
59172         glibc version.
59173         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
59174         * doc/posix-functions/strstr.texi (strstr): Likewise.
59175         * lib/str-two-way.h (MAX): Sychronize with glibc.
59176
59177 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
59178
59179         * lib/regcomp.c (optimize_utf8): Add a note on why we test
59180         opr.ctx_type.
59181         (calc_first): Initialize constraint field.
59182         (duplicate_node_closure): Use it instead of special casing ANCHORS.
59183         Fix grammar.
59184         (duplicate_node): Merge constraint field for all node types.
59185         (calc_eclosure_iter): Look at constraint field for all node types.
59186         * lib/regex_internal.c (create_cd_newstate): Don't look at
59187         opr.ctx_type.
59188
59189 2008-05-14  Bruno Haible  <bruno@clisp.org>
59190
59191         Help GCC to do better code generation.
59192         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
59193         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
59194         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
59195         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
59196         Declare with attribute 'malloc' if supported.
59197
59198 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
59199
59200         use "echo STR|wc -c" rather than unportable "expr length STR"
59201         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
59202         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
59203
59204 2008-05-14  Jim Meyering  <meyering@redhat.com>
59205
59206         use dd ibs=$n count=1 ... rather than less-portable head -c$n
59207         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
59208         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
59209         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
59210         via Collin Lasse.
59211
59212 2008-05-14  Eric Blake  <ebb9@byu.net>
59213
59214         Avoid quadratic growth in gl_LIBSOURCES.
59215         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
59216         Suggested by Bruno Haible.
59217
59218         Test xmemdup0.
59219         * modules/xmemdup0-tests: New file.
59220         * tests/test-xmemdup0.c: Likewise.
59221
59222 2008-05-13  Eric Blake  <ebb9@byu.net>
59223
59224         Split xmemdup0 into its own module.
59225         * modules/xmemdup0: New file.
59226         * lib/xmemdup0.h: Likewise.
59227         * lib/xmemdup0.c: Likewise.
59228         * MODULES.html.sh (Memory management functions): Add xmemdup0.
59229         * lib/xalloc.h (xmemdup0): Remove.
59230         * lib/xmalloc.c (xmemdup0): Likewise.
59231
59232 2008-05-13  Eric Blake  <ebb9@byu.net>
59233             Bruno Haible  <bruno@clisp.org>
59234
59235         Reduce number of forks required during autoconf.
59236         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
59237         and gl_LIBSOURCES_DIR.
59238         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
59239         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
59240         m4_syscmd per file.
59241         <m4_foreach_w>: Move...
59242         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
59243
59244 2008-05-13  Eric Blake  <ebb9@byu.net>
59245
59246         * gnulib-tool: Fix various comment typos.
59247
59248 2008-05-12  Bruno Haible  <bruno@clisp.org>
59249
59250         Tailor the linebreaking algorithm.
59251         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
59252
59253 2008-05-12  Bruno Haible  <bruno@clisp.org>
59254
59255         Update to Unicode 5.0.0.
59256         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
59257         LBP_JV, LBP_JT. Redistribute values.
59258         (unilbrk_table): Change size.
59259         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
59260         Unicode TR#14 rev. 22.
59261         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
59262         LBP_JV, LBP_JT. Redistribute values.
59263         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
59264         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
59265         Update.
59266         * lib/unilbrk/lbrkprop1.h: Regenerated.
59267         * lib/unilbrk/lbrkprop2.h: Regenerated.
59268         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
59269         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
59270         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
59271         Likewise.
59272         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
59273         Likewise.
59274         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
59275         result.
59276         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
59277         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
59278         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
59279         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
59280         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
59281         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
59282
59283 2008-05-11  Bruno Haible  <bruno@clisp.org>
59284
59285         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
59286
59287 2008-05-11  Bruno Haible  <bruno@clisp.org>
59288
59289         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
59290         * modules/unilbrk/gen-lbrk: New file.
59291
59292 2008-05-11  Bruno Haible  <bruno@clisp.org>
59293
59294         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
59295         * m4/sha512.m4 (gl_SHA512): Likewise.
59296
59297 2008-05-11  Jim Meyering  <meyering@redhat.com>
59298
59299         New modules: crypto/sha256, crypto/sha512 (from coreutils)
59300         * modules/crypto/sha256: New file.
59301         * modules/crypto/sha512: Likewise.
59302         * lib/sha256.c: Likewise.
59303         * lib/sha256.h: Likewise.
59304         * lib/sha512.c: Likewise.
59305         * lib/sha512.h: Likewise.
59306         * lib/u64.h: Likewise.
59307         * m4/sha256.m4: Likewise.
59308         * m4/sha512.m4: Likewise.
59309         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
59310
59311 2008-05-10  Bruno Haible  <bruno@clisp.org>
59312
59313         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
59314         (Input/Output <stdio.h>): Add xprintf.
59315         (Signal handling <signal.h>): Add strsignal.
59316         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
59317         (Core language properties): Add func.
59318         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
59319         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
59320         strings.
59321         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
59322         (Input/output): New section.
59323         (File system functions): Add openat-die, stat-macros.
59324         (Networking functions): Add sockets.
59325         (Unicode string functions): Add unictype/*.
59326         (Support for building libraries and executables): Add gperf.
59327         (Support for building documentation): Add agpl-3.0.
59328         (Misc): Add nocrash.
59329
59330 2008-05-10  Bruno Haible  <bruno@clisp.org>
59331
59332         * modules/unictype/gen-ctype: New file.
59333
59334 2008-05-10  Jim Meyering  <meyering@redhat.com>
59335
59336         Make chdir-safer.c more efficient on a system with no symlinks.
59337         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
59338         also if ELOOP is zero.  Suggested by Bruno Haible.
59339
59340         Make chdir-safer.c slightly safer.
59341         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
59342         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
59343
59344         Avoid compile failure on systems without ELOOP (like mingw).
59345         * lib/chdir-safer.c (ELOOP): Define if not already defined.
59346         Reported by Bruno Haible.
59347
59348 2008-05-10  Bruno Haible  <bruno@clisp.org>
59349
59350         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
59351         (is_utf8_encoding): Use a case-insensitive comparison.
59352         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
59353         streq.
59354
59355 2008-05-10  Bruno Haible  <bruno@clisp.org>
59356
59357         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
59358         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
59359         * lib/unilbrk/ulc-common.h (iconv_string_length,
59360         iconv_string_keeping_offsets): Remove declarations.
59361         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
59362         Don't include <iconv.h>, streq.h, xsize.h.
59363         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
59364         conversion.
59365         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
59366         <iconv.h>, streq.h, xsize.h.
59367         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
59368         conversion.
59369         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
59370         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
59371         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
59372         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
59373
59374 2008-05-10  Bruno Haible  <bruno@clisp.org>
59375
59376         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
59377         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
59378
59379         * modules/unilbrk/u32-width-linebreaks-tests: New file.
59380         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
59381
59382         * modules/unilbrk/u16-width-linebreaks-tests: New file.
59383         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
59384
59385         * modules/unilbrk/u8-width-linebreaks-tests: New file.
59386         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
59387
59388         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
59389         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
59390
59391         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
59392         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
59393
59394         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
59395         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
59396
59397         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
59398         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
59399
59400 2008-05-10  Bruno Haible  <bruno@clisp.org>
59401
59402         Split up 'linebreak' module.
59403         * lib/unilbrk.h: New file, based on lib/linebreak.h.
59404         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
59405         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
59406         modifications.
59407         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
59408         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
59409         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
59410         lib/linebreak.c.
59411         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
59412         lib/linebreak.c.
59413         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
59414         lib/linebreak.c.
59415         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
59416         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
59417         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
59418         lib/linebreak.c.
59419         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
59420         lib/linebreak.c.
59421         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
59422         lib/linebreak.c.
59423         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
59424         lib/linebreak.c.
59425         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
59426         lib/linebreak.c.
59427         * modules/unilbrk/base: New file.
59428         * modules/unilbrk/tables: New file.
59429         * modules/unilbrk/u8-possible-linebreaks: New file.
59430         * modules/unilbrk/u16-possible-linebreaks: New file.
59431         * modules/unilbrk/u32-possible-linebreaks: New file.
59432         * modules/unilbrk/ulc-common: New file.
59433         * modules/unilbrk/ulc-possible-linebreaks: New file.
59434         * modules/unilbrk/u8-width-linebreaks: New file.
59435         * modules/unilbrk/u16-width-linebreaks: New file.
59436         * modules/unilbrk/u32-width-linebreaks: New file.
59437         * modules/unilbrk/ulc-width-linebreaks: New file.
59438         * lib/linebreak.h: Remove file.
59439         * lib/linebreak.c: Remove file.
59440         * m4/linebreak.m4: Remove file.
59441         * modules/linebreak: Remove file.
59442         * NEWS: Mention the changes.
59443
59444 2008-05-09  Eric Blake  <ebb9@byu.net>
59445
59446         Add xmemdup0.
59447         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
59448         implementation.
59449         * lib/xmalloc.c (xmemdup0): New C implementation.
59450
59451 2008-05-08  Bruno Haible  <bruno@clisp.org>
59452
59453         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
59454
59455 2008-05-07  Eric Blake  <ebb9@byu.net>
59456
59457         Support cross-compilation of <wctype.h>.
59458         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
59459         AC_CACHE_CHECK.
59460
59461 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
59462
59463         * build-aux/vc-list-files: Add support for bzr.
59464
59465 2008-05-03  Jim Meyering  <meyering@redhat.com>
59466
59467         avoid failed assertion with tight malloc
59468         * tests/test-getndelim2.c: Correct an off-by-one assertion.
59469
59470 2008-05-03  Simon Josefsson  <simon@josefsson.org>
59471
59472         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
59473         are needed from arpa/inet.h.
59474         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
59475         Reported by Bruno Haible.
59476
59477 2008-05-02  Jim Meyering  <meyering@redhat.com>
59478
59479         avoid compilation error on FreeBSD 6
59480         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
59481
59482 2008-05-01  Jim Meyering  <meyering@redhat.com>
59483
59484         useless-if-before-free: correct --help's exit status description
59485         * build-aux/useless-if-before-free (usage): Like grep, exit 0
59486         for one or more matches, etc.  Reported by Bruno Haible.
59487
59488         vc-list-files: make the stand-alone gnulib test work
59489         * modules/vc-list-files-tests (configure.ac):
59490         Define and AC_SUBST abs_aux_dir.
59491         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
59492         $(abs_top_srcdir) to each script and having each of them
59493         duplicate the work of setting PATH, set PATH here, using
59494         the new variable, abs_aux_dir instead.
59495         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
59496         * tests/test-vc-list-files-git.sh: Likewise.
59497         Reported by Bruno Haible.
59498
59499 2008-05-01  Bruno Haible  <bruno@clisp.org>
59500
59501         * lib/getndelim2.c (getndelim2): Fix newsize computation during
59502         reallocation. Rename 'done' to 'found_delimiter'.
59503
59504 2008-05-01  Jim Meyering  <meyering@redhat.com>
59505
59506         vc-list-files: accommodate /bin/sh like the one from Solaris 10
59507         * build-aux/vc-list-files: Use `...`, not $(...).
59508
59509 2008-04-30  Jim Meyering  <meyering@redhat.com>
59510
59511         add tests for vc-list-files
59512         * modules/vc-list-files-tests: New module.
59513         * tests/test-vc-list-files-cvs.sh: New file.
59514         * tests/test-vc-list-files-git.sh: New file.
59515
59516         avoid a warning from gcc
59517         * lib/getndelim2.c (IF_LINT): Define.
59518         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
59519
59520         vc-list-files: work properly with build-aux/cvsu, too
59521         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
59522         to all cvs-based clauses.
59523
59524         vc-list-files: work properly in the CVS+awk case, too
59525         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
59526
59527         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
59528         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
59529         take more than one file argument, so .  Add quotes, just in case $dir
59530         ever contains a shell meta-character.  Prompted by Soren Hansen in
59531         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
59532
59533 2008-04-29  Eric Blake  <ebb9@byu.net>
59534
59535         Optimize getndelim2 to use block operations when possible.
59536         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
59537         freadseek, and memchr2.
59538         * lib/getndelim2.c (getndelim2): Use them for block reads.
59539
59540 2008-04-29  Bruno Haible  <bruno@clisp.org>
59541
59542         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
59543         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
59544         * modules/inet_ntop (Depends-on): Add extensions.
59545         * modules/inet_pton (Depends-on): Likewise.
59546         Reported by Simon Josefsson.
59547
59548 2008-04-29  Jim Meyering  <meyering@redhat.com>
59549
59550         When the is more than one match in a block, match all of them.
59551         * build-aux/useless-if-before-free: Iterate through each block
59552         until there are no more matches.
59553
59554         Fix broken useless-if-before-free script.
59555         * build-aux/useless-if-before-free: Fix typo: missing "?" after
59556         the expression to match cast of argument to free-like function.
59557
59558 2008-04-29  Eric Blake  <ebb9@byu.net>
59559
59560         Use new header.
59561         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
59562
59563 2008-04-29  Jim Meyering  <meyering@redhat.com>
59564
59565         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
59566         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
59567         by gnulib to exist and to declare e.g., inet_ntop.
59568         Don't include "inet_ntop.h", now removed.
59569
59570         * m4/arpa_inet_h.m4: Remove trailing blanks.
59571
59572 2008-04-29  Eric Blake  <ebb9@byu.net>
59573
59574         Silence valgrind on safe reads beyond potential array bounds.
59575         * lib/rawmemchr.valgrind: New file.
59576         * lib/strchrnul.valgrind: Likewise.
59577         * modules/rawmemchr (Files): Distribute new file.
59578         * modules/strchrnul (Files): Likewise.
59579         Suggested by Bruno Haible.
59580
59581 2008-04-29  Bruno Haible  <bruno@clisp.org>
59582
59583         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
59584         (inet_ntop, inet_pton): Change portability warning's wording.
59585         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
59586         Invoke gl_CHECK_NEXT_HEADERS.
59587         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
59588         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
59589         set ARPA_INET_H.
59590         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
59591         * modules/arpa_inet (Description): No longer only for systems that
59592         lack it.
59593         (Depends-on): Add include_next.
59594         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
59595         HAVE_ARPA_INET_H.
59596
59597 2008-04-29  Jim Meyering  <meyering@redhat.com>
59598
59599         * modules/mkdir (License): Re-license as LGPLv2+.
59600
59601 2008-04-29  Bruno Haible  <bruno@clisp.org>
59602
59603         * modules/rawmemchr (Maintainer): Set to Eric.
59604         * modules/strchrnul (Maintainer): Likewise.
59605
59606 2008-04-29  Simon Josefsson  <simon@josefsson.org>
59607
59608         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
59609         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
59610
59611         * modules/arpa_inet (arpa/inet.h): Use them.
59612
59613 2008-04-28  Eric Blake  <ebb9@byu.net>
59614
59615         Test getndelim2.
59616         * modules/getndelim2-tests: New file.
59617         * tests/test-getndelim2.c: Likewise.
59618         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
59619         stream.
59620         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
59621
59622         * MODULES.html.sh: Document new module.
59623
59624 2008-04-20  Bruno Haible  <bruno@clisp.org>
59625
59626         * lib/c-stack.c (die): Use raise.
59627         * modules/c-stack (Depends-on): Add raise.
59628
59629 2008-04-28  Bruno Haible  <bruno@clisp.org>
59630
59631         Expect rpmatch to be declared.
59632         * lib/yesno.c (rpmatch): Remove declaration.
59633
59634         Declare rpmatch.
59635         * lib/stdlib.in.h (rpmatch): New declaration.
59636         * lib/rpmatch.c: Include <stdlib.h> first.
59637         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
59638         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
59639         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
59640         HAVE_RPMATCH.
59641         * modules/rpmatch (Depends-on): Add stdlib, extensions.
59642         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
59643         (Include): Set to <stdlib.h>.
59644         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
59645         HAVE_RPMATCH.
59646         * NEWS: Document the change.
59647
59648 2008-04-28  Bruno Haible  <bruno@clisp.org>
59649
59650         Change rpmatch to use nl_langinfo when appropriate.
59651         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
59652         (N_): New macro.
59653         (localized_pattern): New function/macro.
59654         (try): Remove match, nomatch arguments. Copy the pattern into safe
59655         memory before caching it.
59656         (rpmatch): Use localized_pattern. Add translator comments.
59657         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
59658         Suggested by Eric Blake.
59659         * modules/rpmatch (Depends-on): Add stdbool.
59660
59661 2008-04-28  Eric Blake  <ebb9@byu.net>
59662
59663         Add rawmemchr module, matching glibc.
59664         * modules/string (Makefile.am): New indicator.
59665         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
59666         * lib/string.in.h (rawmemchr): Declare when appropriate.
59667         * modules/rawmemchr: New file.
59668         * m4/rawmemchr.m4: Likewise.
59669         * lib/rawmemchr.c: Likewise.
59670         * modules/rawmemchr-tests: Likewise.
59671         * tests/test-rawmemchr.c: Likewise.
59672         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
59673         module.
59674         * modules/strchrnul (Depends-on): Add rawmemchr.
59675         * lib/strchrnul.c (strchrnul): Optimize a corner case.
59676
59677         Whitespace cleanup.
59678         * tests/test-strchrnul.c: Reindent.
59679         * lib/strchrnul.c: Likewise.
59680
59681         Optimize and test strchrnul.
59682         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
59683         * modules/strchrnul-tests: New file.
59684         * tests/test-strchrnul.c: Likewise.
59685
59686         Remove intprops dependency.
59687         * modules/memchr (Depends-on): Remove intprops.
59688         * modules/memrchr (Depends-on): Likewise.
59689         * modules/memchr2 (Depends-on): Likewise.
59690         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
59691         * lib/memrchr.c (__memrchr): Likewise.
59692         * lib/memrchr2.c (memchr2): Likewise.
59693         Reported by Simon Josefsson.
59694
59695 2008-04-28  Simon Josefsson  <simon@josefsson.org>
59696
59697         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
59698         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
59699
59700 2008-04-28  Simon Josefsson  <simon@josefsson.org>
59701
59702         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
59703
59704         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
59705
59706         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
59707
59708         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
59709         declarations.
59710         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
59711
59712         * m4/inet_pton.m4: Don't check for header files.
59713
59714         * m4/inet_ntop.m4: Don't check for header files.
59715
59716 2008-04-28  Simon Josefsson  <simon@josefsson.org>
59717
59718         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
59719         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
59720         trigger for cygwin).
59721         Reported by Bruno Haible  <bruno@clisp.org>.
59722
59723 2008-04-28  Bruno Haible  <bruno@clisp.org>
59724
59725         * doc/posix-functions/strdup.texi: Mention mingw problem.
59726
59727 2008-04-27  Bruno Haible  <bruno@clisp.org>
59728
59729         * modules/stat-time-tests (Depends-on): Add sleep.
59730         * tests/test-stat-time.c (force_unlink): New function.
59731         (cleanup): Use it.
59732         (test_mtime): Remove the ctime related tests.
59733         (test_ctime): New function, containing the ctime related tests.
59734         (main): Call test_ctime, except on native Windows platforms.
59735
59736 2008-04-27  Bruno Haible  <bruno@clisp.org>
59737
59738         * lib/rpmatch.c (rpmatch): Add some comments.
59739         Reported by James Youngman <jay@gnu.org>.
59740
59741 2008-04-27  Bruno Haible  <bruno@clisp.org>
59742
59743         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
59744         quiet NaNs.
59745
59746 2008-04-27  Bruno Haible  <bruno@clisp.org>
59747
59748         Make test-yesno.sh work on mingw.
59749         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
59750         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
59751         (main): Set stdin to binary mode.
59752         * modules/yesno-tests (Depends-on): Add binary-io.
59753
59754 2008-04-27  Bruno Haible  <bruno@clisp.org>
59755
59756         Fix 'isfinite' on x86, x86_64, ia64 platforms.
59757         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
59758         argument that lie outside the IEEE 854 domain.
59759         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
59760         (gl_ISFINITE): Use it.
59761         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
59762
59763 2008-04-27  Bruno Haible  <bruno@clisp.org>
59764
59765         Allow local renaming in config.h.
59766         * lib/memrchr.c (memrchr): Don't undefine outside libc.
59767
59768 2008-04-27  Bruno Haible  <bruno@clisp.org>
59769
59770         * lib/memchr.c (__memchr): Change type of 'i'.
59771         * lib/memchr2.c (memchr2): Likewise.
59772
59773 2008-04-26  Eric Blake  <ebb9@byu.net>
59774         and Bruno Haible  <bruno@clisp.org>
59775
59776         Optimize and test memrchr.
59777         * modules/memrchr (Depends-on): Add intprops.
59778         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
59779         * modules/memrchr-tests: New file.
59780         * tests/test-memrchr.c: New file.
59781
59782 2008-04-26  Bruno Haible  <bruno@clisp.org>
59783
59784         Add tentative support for DragonFly BSD.
59785         * lib/stdio-impl.h: Add macros for DragonFly BSD.
59786         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
59787         fp.
59788         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
59789         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
59790         * lib/fpurge.c (fpurge): Likewise.
59791         * lib/freadable.c (freaadable): Likewise.
59792         * lib/freadahead.c (freadahead): Likewise.
59793         * lib/freading.c (freading): Likewise.
59794         * lib/freadptr.c (freadptr): Likewise.
59795         * lib/freadseek.c (freadptrinc): Likewise.
59796         * lib/fseeko.c (fseeko): Likewise.
59797         * lib/fseterr.c (fseterr): Likewise.
59798         * lib/fwritable.c (fwritable): Likewise.
59799         * lib/fwriting.c (fwriting): Likewise.
59800
59801 2008-04-26  Bruno Haible  <bruno@clisp.org>
59802
59803         * lib/stdio-impl.h: New file.
59804         * lib/fbufmode.c: Include stdio-impl.h.
59805         (fbufmode): Use fp_, remove redundant #defines.
59806         * lib/fflush.c: Include stdio-impl.h.
59807         (clear_ungetc_buffer): Remove redundant #defines.
59808         * lib/fpurge.c: Include stdio-impl.h.
59809         (fpurge): Remove redundant #defines.
59810         * lib/freadable.c: Include stdio-impl.h.
59811         (freadable): Remove redundant #defines.
59812         * lib/freadahead.c: Include stdio-impl.h.
59813         (freadahead): Remove redundant #defines.
59814         * lib/freading.c: Include stdio-impl.h.
59815         (freading): Remove redundant #defines.
59816         * lib/freadptr.c: Include stdio-impl.h.
59817         (freadptr): Remove redundant #defines.
59818         * lib/freadseek.c: Include stdio-impl.h.
59819         (freadptrinc): Remove redundant #defines.
59820         * lib/fseeko.c: Include stdio-impl.h.
59821         (rpl_fseeko): Remove redundant #defines.
59822         * lib/fseterr.c: Include stdio-impl.h.
59823         (fseterr): Remove redundant #defines.
59824         * lib/fwritable.c: Include stdio-impl.h.
59825         (fwritable: Remove redundant #defines.
59826         * lib/fwriting.c: Include stdio-impl.h.
59827         (fwriting): Remove redundant #defines.
59828         * modules/fbufmode (Files): Add lib/stdio-impl.h.
59829         * modules/fflush (Files): Likewise.
59830         * modules/fpurge (Files): Likewise.
59831         * modules/freadable (Files): Likewise.
59832         * modules/freadahead (Files): Likewise.
59833         * modules/freading (Files): Likewise.
59834         * modules/freadptr (Files): Likewise.
59835         * modules/freadseek (Files): Likewise.
59836         * modules/fseeko (Files): Likewise.
59837         * modules/fseterr (Files): Likewise.
59838         * modules/fwritable (Files): Likewise.
59839         * modules/fwriting (Files): Likewise.
59840
59841 2008-04-26  Bruno Haible  <bruno@clisp.org>
59842
59843         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
59844         restore_seek_optimization, update_fpos_cache): New functions, extracted
59845         from rpl_fflush.
59846         (rpl_fflush): Use them.
59847         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
59848         (gl_REPLACE_FFLUSH): Use it.
59849
59850 2008-04-26  Bruno Haible  <bruno@clisp.org>
59851
59852         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
59853         on Solaris.
59854         * tests/test-xstrtoimax.sh: Likewise.
59855         * tests/test-xstrtoumax.sh: Likewise.
59856         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
59857
59858 2008-04-26  Bruno Haible  <bruno@clisp.org>
59859
59860         * modules/memchr-tests: New file.
59861         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
59862
59863 2008-04-26  Eric Blake  <ebb9@byu.net>
59864             Bruno Haible  <bruno@clisp.org>
59865
59866         * lib/memchr.c: Include intprops.h.
59867         (__memchr): Optimize parallel detection of matching bytes. Rename local
59868         variables. Add explanatory comments.
59869
59870 2008-04-26  Bruno Haible  <bruno@clisp.org>
59871
59872         Fix module 'memchr', broken since 2000-10-28.
59873         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
59874
59875 2008-04-26  Bruno Haible  <bruno@clisp.org>
59876
59877         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
59878         comments.
59879
59880 2008-04-25  Eric Blake  <ebb9@byu.net>
59881
59882         Use native fstatat on cygwin 1.7.0.
59883         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
59884         first.
59885
59886 2008-04-23  Eric Blake  <ebb9@byu.net>
59887
59888         Improve memchr2 performance.
59889         * lib/memchr2.c (memchr2): Further optimize parallel detection of
59890         NUL bytes.
59891         * modules/memchr2 (Depends-on): Use intprops.h.
59892
59893 2008-04-23  Simon Josefsson  <simon@josefsson.org>
59894
59895         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
59896         an inline function instead of a CPP macro.  Patch by Ben Pfaff
59897         <blp@cs.stanford.edu>.
59898
59899 2008-04-23  Simon Josefsson  <simon@josefsson.org>
59900
59901         * lib/arpa_inet.in.h: New file.
59902
59903         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
59904         (Makefile.am): Sed in substitute header file.
59905
59906         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
59907         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
59908
59909         * modules/inet_ntop (configure.ac): Use
59910         gl_ARPA_INET_MODULE_INDICATOR.
59911
59912         * modules/inet_pton (configure.ac): Use
59913         gl_ARPA_INET_MODULE_INDICATOR.
59914
59915 2008-04-22  Jim Meyering  <meyering@redhat.com>
59916
59917         * modules/verify (License): Re-license as LGPLv2+.
59918
59919 2008-04-22  Simon Josefsson  <simon@josefsson.org>
59920
59921         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
59922         parameter to void* as per POSIX standard (MinGW uses char*).
59923
59924 2008-04-21  Bruno Haible  <bruno@clisp.org>
59925
59926         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
59927         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
59928         Define to replacements if REPLACE_ISWCNTRL is 1.
59929         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
59930         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
59931         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
59932         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
59933         what it fixes.
59934         * doc/posix-functions/iswalpha.texi: Likewise.
59935         * doc/posix-functions/iswblank.texi: Likewise.
59936         * doc/posix-functions/iswcntrl.texi: Likewise.
59937         * doc/posix-functions/iswdigit.texi: Likewise.
59938         * doc/posix-functions/iswgraph.texi: Likewise.
59939         * doc/posix-functions/iswlower.texi: Likewise.
59940         * doc/posix-functions/iswprint.texi: Likewise.
59941         * doc/posix-functions/iswpunct.texi: Likewise.
59942         * doc/posix-functions/iswspace.texi: Likewise.
59943         * doc/posix-functions/iswupper.texi: Likewise.
59944         * doc/posix-functions/iswxdigit.texi: Likewise.
59945         Reported by Alain Guibert.
59946
59947 2008-04-21  Bruno Haible  <bruno@clisp.org>
59948
59949         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
59950         Patch by Alain Guibert.
59951
59952 2008-04-21  Bruno Haible  <bruno@clisp.org>
59953
59954         Fix test failures on mingw.
59955         * tests/test-xstrtol.c (print_no_progname): New function.
59956         (main): Install it in error_print_progname hook.
59957         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
59958         * tests/test-xstrtoimax.sh: Likewise.
59959         * tests/test-xstrtoumax.sh: Likewise.
59960
59961 2008-04-21  Bruno Haible  <bruno@clisp.org>
59962
59963         Fix test failure on mingw.
59964         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
59965
59966 2008-04-21  Bruno Haible  <bruno@clisp.org>
59967
59968         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
59969         Actually assign a value.
59970
59971 2008-04-20  Bruno Haible  <bruno@clisp.org>
59972
59973         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
59974         take 2.
59975         * lib/canonicalize.c (canonicalize_file_name): Elide if the
59976         'canonicalize-lgpl' module is also used.
59977         * lib/canonicalize-lgpl.c: Undo last change.
59978         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
59979
59980 2008-04-20  Bruno Haible  <bruno@clisp.org>
59981
59982         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
59983         config.h. Provide _mkdir based fallback for mingw.
59984         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
59985         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
59986         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
59987         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
59988         rather than defining mkdir in config.h.
59989         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
59990         (gl_SYS_STAT_H_DEFAULTS): New macro.
59991         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
59992         HAVE_IO_H any more.
59993         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
59994         HAVE_DECL_MKDIR and HAVE_IO_H.
59995
59996 2008-04-20  Bruno Haible  <bruno@clisp.org>
59997
59998         * lib/isapipe.c: Port to native Windows platforms.
59999
60000 2008-04-20  Bruno Haible  <bruno@clisp.org>
60001
60002         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
60003
60004 2008-04-21  Eric Blake  <ebb9@byu.net>
60005
60006         Work around preprocessors that don't handle UINTMAX_MAX.
60007         * lib/memchr2.c (memchr2): Avoid embedded #if.
60008         Reported by Alain Guibert, fix suggested by Bruno Haible.
60009
60010 2008-04-21  Simon Josefsson  <simon@josefsson.org>
60011
60012         * doc/posix-functions/strftime.texi (strftime): Explain better
60013         Windows incompatibility.  Suggested by Micah Cowan
60014         <micah@cowan.name>.
60015
60016 2008-04-20  Bruno Haible  <bruno@clisp.org>
60017
60018         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
60019         unistr/u8-mblen.
60020
60021 2008-04-20  Bruno Haible  <bruno@clisp.org>
60022
60023         Fix test failure on platforms with non-GNU iconv.
60024         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
60025         (U_TO_U8): Use it, rather than u16_to_u8.
60026         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
60027         units at the end of the input string.
60028         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
60029
60030 2008-04-20  Bruno Haible  <bruno@clisp.org>
60031
60032         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
60033         when the resulting length is 0.
60034         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
60035
60036 2008-04-20  Bruno Haible  <bruno@clisp.org>
60037
60038         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
60039         works.
60040         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
60041
60042 2008-04-20  Bruno Haible  <bruno@clisp.org>
60043
60044         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
60045         * modules/tsearch-tests (configure.ac): Test for initstate function.
60046
60047 2008-04-20  Bruno Haible  <bruno@clisp.org>
60048
60049         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
60050         for nlink_t if missing.
60051         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
60052
60053 2008-04-19  Bruno Haible  <bruno@clisp.org>
60054
60055         Work around snprintf bug on Linux libc5.
60056         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
60057         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
60058         gl_SNPRINTF_SIZE1.
60059         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
60060         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
60061         that test failed.
60062         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
60063         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
60064         * modules/snprintf (Files): Add m4/printf.m4.
60065         * modules/vsnprintf (Files): Likewise.
60066         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
60067         * doc/posix-functions/vsnprintf.texi: Likewise.
60068
60069 2008-04-19  Bruno Haible  <bruno@clisp.org>
60070
60071         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
60072         from 0.0058 to less than 10^-7.
60073
60074 2008-04-19  Bruno Haible  <bruno@clisp.org>
60075
60076         Fix rounding when a precision is given.
60077         * lib/vasnprintf.c (is_borderline): New function.
60078         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
60079         9...9x.
60080         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
60081         %e, %g.
60082         * tests/test-vasprintf-posix.c (test_function): Likewise.
60083         * tests/test-snprintf-posix.h (test_function): Likewise.
60084         * tests/test-sprintf-posix.h (test_function): Likewise.
60085         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
60086         * tests/test-printf-posix.h (test_function): Likewise.
60087         * tests/test-printf-posix.output: Update.
60088         Reported by John Darrington <john@darrington.wattle.id.au> via
60089         Ben Pfaff <blp@cs.stanford.edu>.
60090
60091 2008-04-18  Simon Josefsson  <simon@josefsson.org>
60092
60093         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
60094         Suggested by Bruno Haible <bruno@clisp.org>.
60095
60096 2008-04-17  Bruno Haible  <bruno@clisp.org>
60097
60098         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
60099         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
60100         implementation.
60101         Patch by Bruce Merry <bmerry@gmail.com>.
60102
60103 2008-04-17  Simon Josefsson  <simon@josefsson.org>
60104
60105         * doc/posix-functions/strftime.texi (strftime): Mention that %e
60106         doesn't work under Windows.
60107
60108 2008-04-16  Bruno Haible  <bruno@clisp.org>
60109
60110         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
60111         New macros.
60112         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
60113         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
60114         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
60115         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
60116         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
60117         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
60118         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
60119         macros.
60120         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
60121         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
60122         Northern Sotho, Uighur.
60123
60124 2008-04-16  Bruno Haible  <bruno@clisp.org>
60125
60126         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
60127         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
60128         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
60129         Reported by Daniel Bergström <daniel@octocode.com>.
60130
60131 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
60132             Bruno Haible  <bruno@clisp.org>
60133
60134         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
60135         function.
60136         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
60137         New functions, mostly extracted from gl_locale_name_default.
60138         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
60139
60140 2008-04-16  Eric Blake  <ebb9@byu.net>
60141
60142         Adjust strtod detection to catch glibc 2.7 bug.
60143         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
60144         Reported by John Gatewood Ham.
60145
60146 2008-04-16  Bruno Haible  <bruno@clisp.org>
60147
60148         Add tentative support for Linux libc5.
60149         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
60150         * lib/fpurge.c (fpurge): Likewise.
60151         * lib/freadable.c (freadable): Likewise.
60152         * lib/freadahead.c (freadahead): Likewise.
60153         * lib/freading.c (freading): Likewise.
60154         * lib/freadptr.c (freadptr): Likewise.
60155         * lib/freadseek.c (freadptrinc): Likewise.
60156         * lib/fseeko.c (rpl_fseeko): Likewise.
60157         * lib/fseterr.c (fseterr): Likewise.
60158         * lib/fwritable.c (fwritable): Likewise.
60159         * lib/fwriting.c (fwriting): Likewise.
60160         Reported by Alain Guibert <alguibert+bts@free.fr>.
60161
60162 2008-04-15  Bruno Haible  <bruno@clisp.org>
60163
60164         * modules/mathl (configure.ac): Define module indicator.
60165
60166 2008-04-15  Bruno Haible  <bruno@clisp.org>
60167
60168         * lib/logl.c (logl): Remove unused variables.
60169
60170 2008-04-15  Bruno Haible  <bruno@clisp.org>
60171
60172         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
60173         fails.
60174
60175 2008-04-15  Bruno Haible  <bruno@clisp.org>
60176
60177         * lib/trim.c (trim2): Fix argument of isspace() macro.
60178
60179 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
60180
60181         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
60182         to 0.
60183         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
60184
60185 2008-04-14  Bruno Haible  <bruno@clisp.org>
60186
60187         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
60188         AC_LANG_PROGRAM argument.
60189         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
60190         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
60191         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
60192         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
60193         * m4/math_h.m4 (gl_MATH_H): Likewise.
60194         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
60195         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
60196         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
60197         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
60198         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
60199         * m4/regex.m4 (gl_REGEX): Likewise.
60200         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
60201         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
60202         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
60203         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
60204         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
60205         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
60206         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
60207         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
60208
60209 2008-04-14  Jim Meyering  <meyering@redhat.com>
60210
60211         test-strtod: fix typos: s/abs/fabs/
60212         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
60213
60214 2008-04-13  Bruno Haible  <bruno@clisp.org>
60215
60216         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
60217         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
60218         module is also used and while not building the reloc-wrapper.
60219
60220 2008-04-13  Bruno Haible  <bruno@clisp.org>
60221
60222         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
60223
60224 2008-04-13  Bruno Haible  <bruno@clisp.org>
60225
60226         Fix AIX compilation failure introduced on 2008-04-02.
60227         * tests/test-frexp.c (exp): Undefine before redefining.
60228         * tests/test-frexpl.c (exp): Likewise.
60229
60230 2008-04-13  Bruno Haible  <bruno@clisp.org>
60231
60232         Work around a HP-UX stdio bug.
60233         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
60234         * tests/test-ftello.c (main): Likewise.
60235         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
60236         * doc/posix-functions/ftello.texi: Likewise.
60237
60238 2008-04-13  Bruno Haible  <bruno@clisp.org>
60239
60240         Make test-signbit pass on HP-UX/hppa.
60241         * tests/test-signbit.c (minus_zerol): New variable.
60242         (test_signbitl): Use it.
60243
60244 2008-04-13  Bruno Haible  <bruno@clisp.org>
60245
60246         Make truncl work on OSF/1 4.0.
60247         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
60248         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
60249         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
60250         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
60251         HAVE_DECL_TRUNCL.
60252         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
60253         HAVE_DECL_TRUNCL.
60254         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
60255
60256 2008-04-13  Bruno Haible  <bruno@clisp.org>
60257
60258         * lib/unictype.h: Remove trailing comma from enumeration definitions.
60259
60260 2008-04-13  Bruno Haible  <bruno@clisp.org>
60261
60262         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
60263         expression, so as to avoid HP-UX 11 cc compiler bug.
60264
60265 2008-04-13  Bruno Haible  <bruno@clisp.org>
60266
60267         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
60268
60269 2008-04-13  Bruno Haible  <bruno@clisp.org>
60270
60271         * lib/git-merge-changelog.c: Remove empty declaration outside of
60272         functions.
60273
60274 2008-04-13  Bruno Haible  <bruno@clisp.org>
60275
60276         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
60277
60278 2008-04-13  Bruno Haible  <bruno@clisp.org>
60279
60280         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
60281         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
60282         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
60283         also if it exists but lacks definitions of the SHUT_* macros.
60284         * modules/sys_socket (Description): Update.
60285         Reported by Elbert Pol <e.pol@chello.nl>.
60286
60287 2008-04-13  Bruno Haible  <bruno@clisp.org>
60288
60289         * lib/localcharset.c (OS2): Don't redefine if already defined.
60290         Reported by Elbert Pol <e.pol@chello.nl>.
60291
60292 2008-04-13  Bruno Haible  <bruno@clisp.org>
60293
60294         * lib/binary-io.h [__EMX__]: Include <io.h>.
60295         Reported by Elbert Pol <e.pol@chello.nl>.
60296
60297 2008-04-12  Bruno Haible  <bruno@clisp.org>
60298
60299         * lib/fpucw.h: Enable the definitions also for x86_64.
60300         Needed for NetBSD/x86_64.
60301         Reported by Thomas Klausner <tk@giga.or.at>.
60302
60303 2008-04-12  Bruno Haible  <bruno@clisp.org>
60304
60305         * tests/test-strtod.c: Include isnand.h.
60306         (main): Use isnand instead of isnan.
60307         Reported by Jim Meyering.
60308
60309 2008-04-12  Bruno Haible  <bruno@clisp.org>
60310
60311         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
60312         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
60313
60314 2008-04-12  Jim Meyering  <meyering@redhat.com>
60315
60316         * m4/math_h.m4 (gl_MATH_H): Fix typos.
60317
60318 2008-04-12  Bruno Haible  <bruno@clisp.org>
60319
60320         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
60321         Reported by Elbert Pol <e.pol@chello.nl>.
60322
60323 2008-04-12  Eric Blake  <ebb9@byu.net>
60324
60325         Work around Solaris 10 math.h bug.
60326         * m4/math_h.m4 (gl_MATH_H): Check for bug.
60327         (gl_MATH_H_DEFAULTS): Set up default.
60328         * modules/math (Makefile.am): Replace new indicators.
60329         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
60330         * tests/test-math.c (main): Test this.
60331         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
60332         * doc/posix-headers/math.texi (math.h): Mention bug.
60333         Reported by Nelson H. F. Beebe and Jim Meyering.
60334
60335 2008-04-11  Bruno Haible  <bruno@clisp.org>
60336
60337         Adapt to future versions of Apple GCC.
60338         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
60339         Reported by Peter O'Gorman <peter@pogma.com>.
60340
60341 2008-04-11  Bruno Haible  <bruno@clisp.org>
60342
60343         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
60344
60345 2008-04-11  Bruno Haible  <bruno@clisp.org>
60346
60347         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
60348
60349         * modules/getaddrinfo-tests (Makefile.am): Define
60350         test_getaddrinfo_LDADD.
60351
60352 2008-04-11  Bruno Haible  <bruno@clisp.org>
60353
60354         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
60355         (init): Fix syntax error.
60356         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
60357         is declared.
60358
60359 2008-04-11  Bruno Haible  <bruno@clisp.org>
60360
60361         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
60362         * modules/glob (Depends-on): Add stdbool.
60363
60364 2008-04-11  Bruno Haible  <bruno@clisp.org>
60365
60366         * lib/trim.c: Include <string.h>.
60367
60368 2008-04-11  Eric Blake  <ebb9@byu.net>
60369
60370         Avoid compile failure on OS/2.
60371         * lib/regex_internal.h (internal_function): Disable optimization
60372         on OS/2 (__EMX__), where it caused compiler error.
60373         Reported by Elbert Pol.
60374
60375 2008-04-11  Bruno Haible  <bruno@clisp.org>
60376
60377         Flush the standard error stream before aborting. Needed on mingw.
60378         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
60379         * tests/test-array_list.c (ASSERT): Likewise.
60380         * tests/test-array_oset.c (ASSERT): Likewise.
60381         * tests/test-avltree_list.c (ASSERT): Likewise.
60382         * tests/test-avltree_oset.c (ASSERT): Likewise.
60383         * tests/test-avltreehash_list.c (ASSERT): Likewise.
60384         * tests/test-binary-io.c (ASSERT): Likewise.
60385         * tests/test-byteswap.c (ASSERT): Likewise.
60386         * tests/test-c-ctype.c (ASSERT): Likewise.
60387         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
60388         * tests/test-c-strcasestr.c (ASSERT): Likewise.
60389         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
60390         * tests/test-c-strstr.c (ASSERT): Likewise.
60391         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
60392         * tests/test-canonicalize.c (ASSERT): Likewise.
60393         * tests/test-carray_list.c (ASSERT): Likewise.
60394         * tests/test-ceilf1.c (ASSERT): Likewise.
60395         * tests/test-ceilf2.c (ASSERT): Likewise.
60396         * tests/test-ceill.c (ASSERT): Likewise.
60397         * tests/test-count-one-bits.c (ASSERT): Likewise.
60398         * tests/test-fbufmode.c (ASSERT): Likewise.
60399         * tests/test-fflush2.c (ASSERT): Likewise.
60400         * tests/test-floorf1.c (ASSERT): Likewise.
60401         * tests/test-floorf2.c (ASSERT): Likewise.
60402         * tests/test-floorl.c (ASSERT): Likewise.
60403         * tests/test-fopen.c (ASSERT): Likewise.
60404         * tests/test-fpending.c (ASSERT): Likewise.
60405         * tests/test-fprintf-posix.c (ASSERT): Likewise.
60406         * tests/test-fpurge.c (ASSERT): Likewise.
60407         * tests/test-freadable.c (ASSERT): Likewise.
60408         * tests/test-freadahead.c (ASSERT): Likewise.
60409         * tests/test-freading.c (ASSERT): Likewise.
60410         * tests/test-freadptr.c (ASSERT): Likewise.
60411         * tests/test-freadptr2.c (ASSERT): Likewise.
60412         * tests/test-freadseek.c (ASSERT): Likewise.
60413         * tests/test-freopen.c (ASSERT): Likewise.
60414         * tests/test-frexp.c (ASSERT): Likewise.
60415         * tests/test-frexpl.c (ASSERT): Likewise.
60416         * tests/test-fseek.c (ASSERT): Likewise.
60417         * tests/test-fseeko.c (ASSERT): Likewise.
60418         * tests/test-fstrcmp.c (ASSERT): Likewise.
60419         * tests/test-ftell.c (ASSERT): Likewise.
60420         * tests/test-ftello.c (ASSERT): Likewise.
60421         * tests/test-func.c (ASSERT): Likewise.
60422         * tests/test-fwritable.c (ASSERT): Likewise.
60423         * tests/test-fwriting.c (ASSERT): Likewise.
60424         * tests/test-getdelim.c (ASSERT): Likewise.
60425         * tests/test-getline.c (ASSERT): Likewise.
60426         * tests/test-i-ring.c (ASSERT): Likewise.
60427         * tests/test-iconv-utf.c (ASSERT): Likewise.
60428         * tests/test-iconv.c (ASSERT): Likewise.
60429         * tests/test-isfinite.c (ASSERT): Likewise.
60430         * tests/test-isnand.c (ASSERT): Likewise.
60431         * tests/test-isnanf.c (ASSERT): Likewise.
60432         * tests/test-isnanl.h (ASSERT): Likewise.
60433         * tests/test-ldexpl.c (ASSERT): Likewise.
60434         * tests/test-linked_list.c (ASSERT): Likewise.
60435         * tests/test-linkedhash_list.c (ASSERT): Likewise.
60436         * tests/test-localename.c (ASSERT): Likewise.
60437         * tests/test-lseek.c (ASSERT): Likewise.
60438         * tests/test-mbscasecmp.c (ASSERT): Likewise.
60439         * tests/test-mbscasestr1.c (ASSERT): Likewise.
60440         * tests/test-mbscasestr2.c (ASSERT): Likewise.
60441         * tests/test-mbscasestr3.c (ASSERT): Likewise.
60442         * tests/test-mbscasestr4.c (ASSERT): Likewise.
60443         * tests/test-mbschr.c (ASSERT): Likewise.
60444         * tests/test-mbscspn.c (ASSERT): Likewise.
60445         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
60446         * tests/test-mbspbrk.c (ASSERT): Likewise.
60447         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
60448         * tests/test-mbsrchr.c (ASSERT): Likewise.
60449         * tests/test-mbsspn.c (ASSERT): Likewise.
60450         * tests/test-mbsstr1.c (ASSERT): Likewise.
60451         * tests/test-mbsstr2.c (ASSERT): Likewise.
60452         * tests/test-mbsstr3.c (ASSERT): Likewise.
60453         * tests/test-memchr2.c (ASSERT): Likewise.
60454         * tests/test-memmem.c (ASSERT): Likewise.
60455         * tests/test-open.c (ASSERT): Likewise.
60456         * tests/test-printf-frexp.c (ASSERT): Likewise.
60457         * tests/test-printf-frexpl.c (ASSERT): Likewise.
60458         * tests/test-printf-posix.c (ASSERT): Likewise.
60459         * tests/test-quotearg.c (ASSERT): Likewise.
60460         * tests/test-rbtree_list.c (ASSERT): Likewise.
60461         * tests/test-rbtree_oset.c (ASSERT): Likewise.
60462         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
60463         * tests/test-round1.c (ASSERT): Likewise.
60464         * tests/test-roundf1.c (ASSERT): Likewise.
60465         * tests/test-roundl.c (ASSERT): Likewise.
60466         * tests/test-signbit.c (ASSERT): Likewise.
60467         * tests/test-sleep.c (ASSERT): Likewise.
60468         * tests/test-snprintf-posix.c (ASSERT): Likewise.
60469         * tests/test-snprintf.c (ASSERT): Likewise.
60470         * tests/test-sprintf-posix.c (ASSERT): Likewise.
60471         * tests/test-stat-time.c (ASSERT): Likewise.
60472         * tests/test-strcasestr.c (ASSERT): Likewise.
60473         * tests/test-strerror.c (ASSERT): Likewise.
60474         * tests/test-striconv.c (ASSERT): Likewise.
60475         * tests/test-striconveh.c (ASSERT): Likewise.
60476         * tests/test-striconveha.c (ASSERT): Likewise.
60477         * tests/test-strsignal.c (ASSERT): Likewise.
60478         * tests/test-strstr.c (ASSERT): Likewise.
60479         * tests/test-strtod.c (ASSERT): Likewise.
60480         * tests/test-trunc1.c (ASSERT): Likewise.
60481         * tests/test-trunc2.c (ASSERT): Likewise.
60482         * tests/test-truncf1.c (ASSERT): Likewise.
60483         * tests/test-truncf2.c (ASSERT): Likewise.
60484         * tests/test-truncl.c (ASSERT): Likewise.
60485         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
60486         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
60487         * tests/test-vasnprintf.c (ASSERT): Likewise.
60488         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
60489         * tests/test-vasprintf.c (ASSERT): Likewise.
60490         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
60491         * tests/test-vprintf-posix.c (ASSERT): Likewise.
60492         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
60493         * tests/test-vsnprintf.c (ASSERT): Likewise.
60494         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
60495         * tests/test-wcwidth.c (ASSERT): Likewise.
60496         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
60497         * tests/test-xprintf-posix.c (ASSERT): Likewise.
60498         * tests/test-xvasprintf.c (ASSERT): Likewise.
60499         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
60500         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
60501         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
60502         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
60503         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
60504         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
60505         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
60506         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
60507         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
60508         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
60509         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
60510         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
60511         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
60512         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
60513         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
60514         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
60515         * tests/unictype/test-block_list.c (ASSERT): Likewise.
60516         * tests/unictype/test-block_of.c (ASSERT): Likewise.
60517         * tests/unictype/test-block_test.c (ASSERT): Likewise.
60518         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
60519         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
60520         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
60521         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
60522         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
60523         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
60524         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
60525         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
60526         * tests/unictype/test-combining.c (ASSERT): Likewise.
60527         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
60528         * tests/unictype/test-digit.c (ASSERT): Likewise.
60529         * tests/unictype/test-mirror.c (ASSERT): Likewise.
60530         * tests/unictype/test-numeric.c (ASSERT): Likewise.
60531         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
60532         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
60533         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
60534         * tests/unictype/test-scripts.c (ASSERT): Likewise.
60535         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
60536         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
60537         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
60538         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
60539         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
60540         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
60541         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
60542         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
60543         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
60544         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
60545         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
60546         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
60547         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
60548         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
60549         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
60550         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
60551         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
60552         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
60553         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
60554         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
60555         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
60556         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
60557         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
60558         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
60559         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
60560         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
60561         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
60562         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
60563         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
60564         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
60565         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
60566         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
60567         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
60568         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
60569         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
60570         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
60571         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
60572         Reported by Eric Blake.
60573
60574 2008-04-11  Bruno Haible  <bruno@clisp.org>
60575
60576         * lib/wchar.in.h: Tweak comment.
60577
60578 2008-04-11  Bruno Haible  <bruno@clisp.org>
60579
60580         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
60581         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
60582         gl_COMMON.
60583         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
60584
60585 2008-04-11  Bruno Haible  <bruno@clisp.org>
60586
60587         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
60588
60589 2008-04-11  Simon Josefsson  <simon@josefsson.org>
60590
60591         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
60592         of attempting to use non-existing /dev/*random.  Based on patch
60593         from Adam Strzelecki <ono@java.pl> in
60594         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
60595
60596 2008-04-08  Bruno Haible  <bruno@clisp.org>
60597
60598         Add tentative support for emx+gcc.
60599         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
60600         * lib/fpurge.c (fpurge): Likewise.
60601         * lib/freadable.c (freadable): Likewise.
60602         * lib/freadahead.c (freadahead): Likewise.
60603         * lib/freading.c (freading): Likewise.
60604         * lib/freadptr.c (freadptr): Likewise.
60605         * lib/freadseek.c (freadptrinc): Likewise.
60606         * lib/fseeko.c (rpl_fseeko): Likewise.
60607         * lib/fseterr.c (fseterr): Likewise.
60608         * lib/fwritable.c (fwritable): Likewise.
60609         * lib/fwriting.c (fwriting): Likewise.
60610         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
60611
60612 2008-04-09  Eric Blake  <ebb9@byu.net>
60613
60614         Avoid some autoconf warnings.
60615         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
60616         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
60617         * m4/afs.m4 (gl_AFS): Likewise.
60618         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
60619         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
60620         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
60621         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
60622         (gl_INTEGER_TYPE_SUFFIX): Likewise.
60623         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
60624         (AC_CHECK_DECLS_ONCE): Likewise.
60625         Rename file...
60626         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
60627         gnulib-tool requires autoconf 2.59 or better.
60628         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
60629
60630 2008-04-08  Eric Blake  <ebb9@byu.net>
60631
60632         Use 'git describe --match' if present (added in git 1.5.5).
60633         * build-aux/git-version-gen: Limit result to tags that match 'v*'
60634         if possible.
60635
60636 2008-04-08  Bruno Haible  <bruno@clisp.org>
60637
60638         Add tentative support for OpenServer.
60639         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
60640         _ptr, _cnt.
60641         * lib/fpurge.c (fpurge): Likewise.
60642         * lib/freadable.c (freadable): Likewise.
60643         * lib/freadahead.c (freadahead): Likewise.
60644         * lib/freading.c (freading): Likewise.
60645         * lib/freadptr.c (freadptr): Likewise.
60646         * lib/freadseek.c (freadptrinc): Likewise.
60647         * lib/fseeko.c (rpl_fseeko): Likewise.
60648         * lib/fseterr.c (fseterr): Likewise.
60649         * lib/fwritable.c (fwritable): Likewise.
60650         * lib/fwriting.c (fwriting): Likewise.
60651         Reported by Roger Cornelius <rac@tenzing.org> and
60652         Brian K. White <brian@aljex.com>.
60653
60654 2008-04-06  Jim Meyering  <meyering@redhat.com>
60655
60656         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
60657
60658 2008-04-06  Bruno Haible  <bruno@clisp.org>
60659
60660         Avoid possible error with non-ASCII bytes in UTF-8 locales.
60661         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
60662         * tests/test-printf-posix.sh: Likewise.
60663         * tests/test-vfprintf-posix.sh: Likewise.
60664         * tests/test-vprintf-posix.sh: Likewise.
60665         * tests/test-xprintf-posix.sh: Likewise.
60666
60667 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60668
60669         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
60670         hide error from 'ls', needed on OS/2.
60671         Report by Elbert Pol <elbert.pol@gmail.com>.
60672
60673 2008-04-04  Eric Blake  <ebb9@byu.net>
60674
60675         Make test-fseeko.c failures meaningful.
60676         * tests/test-fseeko.c: Print line number on failure.
60677         * tests/test-fseek.c: Likewise.
60678         Reported by Nelson H. F. Beebe.
60679
60680         Improve strtod bug detection check.
60681         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
60682         required for Solaris 10.
60683         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
60684
60685 2008-04-04  Bruno Haible  <bruno@clisp.org>
60686
60687         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
60688         by m4/setenv.m4.
60689
60690 2008-04-03  Eric Blake  <ebb9@byu.net>
60691
60692         Ensure sane .version contents.
60693         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
60694         version string.
60695         * build-aux/git-version-gen: Improve documentation.
60696
60697         Make GNU make output nicer.
60698         * top/GNUmakefile [!_have-Makefile]: Add dependency on
60699         MAKECMDGOALS to enforce message for all command line targets.  Set
60700         srcdir for use in maint.mk.
60701
60702         Another maintainer tweak.
60703         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
60704         a target that regenerates version.
60705
60706 2008-04-03  Jim Meyering  <meyering@redhat.com>
60707
60708         vc-list-files: don't cause coreutils "make po-check" failure
60709         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
60710
60711 2008-04-03  Eric Blake  <ebb9@byu.net>
60712
60713         Allow VPATH usage of vc-list-files.
60714         * build-aux/vc-list-files (scriptversion): Add timestamp.
60715         (options): Add --help, --version, -C.
60716         (CVS): Support installed cvsu.
60717
60718 2008-04-02  Bruno Haible  <bruno@clisp.org>
60719
60720         Avoid some "statement with no effect" warnings from gcc.
60721         * tests/test-wctype.c (main): Explicitly ignore unused values.
60722         Reported by Jim Meyering.
60723
60724 2008-04-02  Jim Meyering  <meyering@redhat.com>
60725
60726         Avoid some warnings from "gcc -Wshadow".
60727         * tests/test-frexp.c (exp): Define to a different identifier.
60728         * tests/test-frexpl.c (exp): Likewise.
60729
60730 2008-04-03  Jim Meyering  <meyering@redhat.com>
60731
60732         bootstrap: remove dangling *.[ch] symlinks from lib
60733         * build-aux/bootstrap [dangling symlink removal]: Move find's
60734         -depth option to precede all others, to avoid a warning.
60735         Remove *.[ch] files too, and from "$source_base" (usually lib/).
60736
60737 2008-04-02  Bruno Haible  <bruno@clisp.org>
60738
60739         Avoid some warnings from "gcc -Wshadow".
60740         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
60741         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
60742         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
60743         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
60744         Reported by Jim Meyering.
60745
60746 2008-04-01  Bruno Haible  <bruno@clisp.org>
60747
60748         Fix test to work on IRIX 6.5 with cc.
60749         * tests/test-math.c (numeric_equal): New function.
60750         (main): Use it.
60751
60752 2008-04-01  Bruno Haible  <bruno@clisp.org>
60753
60754         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
60755
60756 2008-04-01  Bruno Haible  <bruno@clisp.org>
60757
60758         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
60759         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
60760         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
60761         (Depends-on): Remove math.
60762
60763         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
60764         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
60765         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
60766         (Depends-on): Remove math.
60767
60768         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
60769         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
60770         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
60771         (Depends-on): Remove math.
60772         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
60773         (Depends-on): Remove math.
60774
60775         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
60776         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
60777         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
60778         (Depends-on): Remove math.
60779         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
60780         (Depends-on): Remove math.
60781
60782         * tests/test-round1.c: Include nan.h.
60783         (main): Use NaNd instead of NAN.
60784         * modules/round-tests (Files): Add tests/nan.h.
60785
60786         * tests/test-trunc1.c: Include nan.h.
60787         (main): Use NaNd instead of NAN.
60788         * modules/trunc-tests (Files): Add tests/nan.h.
60789
60790         * tests/test-roundf1.c: Include nan.h.
60791         (main): Use NaNf instead of NAN.
60792         * modules/roundf-tests (Files): Add tests/nan.h.
60793
60794         * tests/test-truncf1.c: Include nan.h.
60795         (main): Use NaNf instead of NAN.
60796         * modules/truncf-tests (Files): Add tests/nan.h.
60797
60798         * tests/test-ceilf1.c: Include nan.h.
60799         (main): Use NaNf instead of NAN.
60800         * modules/ceilf-tests (Files): Add tests/nan.h.
60801
60802         * tests/test-floorf1.c: Include nan.h.
60803         (main): Use NaNf instead of NAN.
60804         * modules/floorf-tests (Files): Add tests/nan.h.
60805
60806         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
60807         (main): Use NaNf instead of NAN.
60808         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
60809
60810         * tests/test-isnand.c: Include nan.h instead of <math.h>.
60811         (main): Use NaNd instead of NAN.
60812         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
60813
60814         * tests/test-frexp.c: Include nan.h.
60815         (main): Use NaNd instead of NAN.
60816         * modules/frexp-tests (Files): Add tests/nan.h.
60817
60818         * lib/isnan.c: Don't include <math.h>.
60819         (FUNC): Don't use NAN macro.
60820         * modules/isnand-nolibm (Depends-on): Remove math.
60821         * modules/isnanf-nolibm (Depends-on): Remove math.
60822         * modules/isnanl (Depends-on): Remove math.
60823         * modules/isnanl-nolibm (Depends-on): Remove math.
60824
60825         * tests/nan.h: New file.
60826
60827 2008-04-01  Eric Blake  <ebb9@byu.net>
60828
60829         Fix typos.
60830         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
60831         values to be the right type.
60832
60833         For now, cater to gnulib strtod inaccuracies.
60834         * tests/test-strtod.c (main): Allow 1-ulp error on expected
60835         fractional results.  While not as nice from a QoI perspective, it
60836         is a quicker patch than correctly implementing decimal to binary
60837         rounding.
60838
60839 2008-03-31  Eric Blake  <ebb9@byu.net>
60840
60841         Guarantee a definition of NAN.
60842         * lib/math.in.h (NAN): Define if missing.
60843         * tests/test-math.c (main): Test it.
60844         * doc/posix-headers/math.texi (math.h): Document this.
60845         * lib/isnan.c (rpl_isnand): Use it.
60846         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
60847         * tests/test-floorf1.c (NaN): Likewise.
60848         * tests/test-frexp.c (NaN): Likewise.
60849         * tests/test-isnand.c (NaN): Likewise.
60850         * tests/test-isnanf.c (NaN): Likewise.
60851         * tests/test-round1.c (NaN): Likewise.
60852         * tests/test-roundf1.c (NaN): Likewise.
60853         * tests/test-snprintf-posix.h (NaN): Likewise.
60854         * tests/test-sprintf-posix.h (NaN): Likewise.
60855         * tests/test-trunc1.c (NaN): Likewise.
60856         * tests/test-truncf1.c (NaN): Likewise.
60857         * tests/test-vasnprintf-posix.c (NaN): Likewise.
60858         * tests/test-vasprintf-posix.c (NaN): Likewise.
60859         * modules/isnand-nolibm (Depends-on): Add math.
60860         * modules/isnanf-nolibm (Depends-on): Likewise.
60861         * modules/isnanl (Depends-on): Likewise.
60862         * modules/isnanl-nolibm (Depends-on): Likewise.
60863         * modules/snprintf-posix-tests (Depends-on): Likewise.
60864         * modules/sprintf-posix-tests (Depends-on): Likewise.
60865         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
60866         * modules/vsprintf-posix-tests (Depends-on): Likewise.
60867         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
60868         * modules/vasprintf-posix-tests (Depends-on): Likewise.
60869
60870 2008-03-31  Bruno Haible  <bruno@clisp.org>
60871
60872         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
60873         * doc/posix-functions/strtod.texi: Likewise.
60874
60875 2008-03-31  Bruno Haible  <bruno@clisp.org>
60876
60877         * tests/test-strtod.c (main): Don't use C99 syntax.
60878
60879 2008-03-31  Bruno Haible  <bruno@clisp.org>
60880
60881         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
60882         Reported by Eric Blake.
60883
60884 2008-03-31  Jim Meyering  <meyering@redhat.com>
60885
60886         Don't compare actual signbit return values.
60887         * tests/test-strtod.c (main): Rather, compare only their
60888         zero/non-zero nature.
60889
60890 2008-03-31  Eric Blake  <ebb9@byu.net>
60891
60892         More strtod documentation.
60893         * doc/posix-functions/strtod.texi (strtod): Interpret more test
60894         failures as distinct bugs.
60895
60896 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
60897
60898         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
60899         Problem reported by Erik Benada in
60900         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
60901
60902 2008-03-30  Bruno Haible  <bruno@clisp.org>
60903
60904         * tests/test-strtod.c: Add comments about which assertion fails on which
60905         platform.
60906         * doc/posix-functions/strtod.texi: Add info about many more platforms.
60907
60908 2008-03-30  Eric Blake  <ebb9@byu.net>
60909
60910         Test signbit behavior on zeros.
60911         * tests/test-signbit.c (test_signbitf): Add tests for zero.
60912         (test_signbitd, test_signbitl): Likewise.
60913
60914         More strtod touchups.
60915         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
60916         sign of negative underflow, for now.  Use .5, not .1.
60917         * doc/posix-functions/strtod.texi (strtod): Mention these
60918         limitations.
60919         Reported by Jim Meyering.
60920
60921 2008-03-30  Bruno Haible  <bruno@clisp.org>
60922
60923         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
60924         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
60925
60926 2008-03-30  Bruno Haible  <bruno@clisp.org>
60927
60928         Avoid failure when attempting to return empty iconv results on some
60929         platforms.
60930         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
60931         allocation, don't report ENOMEM when the resulting string is empty.
60932
60933 2008-03-30  Bruno Haible  <bruno@clisp.org>
60934
60935         Fix buffer overrun.
60936         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
60937         Don't consider the width for tmp_length. Check count against tmp_length
60938         before doing the padding. Ensure enough allocation during padding.
60939
60940 2008-03-30  Eric Blake  <ebb9@byu.net>
60941
60942         strtod touchups.
60943         * lib/strtod.c (strtod): Avoid compiler warnings.
60944         Reported by Jim Meyering.
60945
60946 2008-03-30  Bruno Haible  <bruno@clisp.org>
60947
60948         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
60949         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
60950         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
60951         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
60952         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
60953         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
60954         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
60955         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
60956
60957         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
60958         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
60959         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
60960         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
60961         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
60962         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
60963         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
60964         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
60965
60966         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
60967         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
60968         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
60969         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
60970         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
60971         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
60972         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
60973         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
60974
60975         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
60976         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
60977
60978         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
60979         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
60980
60981         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
60982         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
60983
60984         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
60985         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
60986         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
60987
60988         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
60989         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
60990         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
60991
60992         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
60993         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
60994         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
60995
60996         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
60997         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
60998         * modules/vasprintf (Depends-on): Add EOVERFLOW.
60999
61000         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
61001         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
61002         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
61003         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
61004         (Depends-on): Add EOVERFLOW.
61005         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
61006         (Depends-on): Add EOVERFLOW.
61007         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
61008         (Depends-on): Add EOVERFLOW.
61009         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
61010         (Depends-on): Add EOVERFLOW.
61011         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
61012         (Depends-on): Add EOVERFLOW.
61013         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
61014         (Depends-on): Add EOVERFLOW.
61015         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
61016         (Depends-on): Add EOVERFLOW.
61017         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
61018         (Depends-on): Add EOVERFLOW.
61019
61020         * lib/sprintf.c (EOVERFLOW): Remove fallback.
61021         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
61022         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
61023
61024         * lib/snprintf.c (EOVERFLOW): Remove fallback.
61025         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
61026         * modules/snprintf (Depends-on): Add EOVERFLOW.
61027
61028         * lib/poll.c (EOVERFLOW): Remove fallback.
61029         * modules/poll (Depends-on): Add EOVERFLOW.
61030
61031         * lib/getugroups.c (EOVERFLOW): Remove fallback.
61032         * modules/getugroups (Depends-on): Add EOVERFLOW.
61033
61034         * lib/getdelim.c (EOVERFLOW): Remove fallback.
61035         * modules/getdelim (Depends-on): Add EOVERFLOW.
61036
61037         * lib/ftell.c (EOVERFLOW): Remove fallback.
61038         * modules/ftell (Depends-on): Add EOVERFLOW.
61039
61040         * lib/fprintf.c (EOVERFLOW): Remove fallback.
61041         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
61042         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
61043
61044         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
61045
61046         * modules/EOVERFLOW-tests: New file.
61047         * tests/test-EOVERFLOW.c: New file.
61048
61049         * modules/EOVERFLOW: New file.
61050         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
61051
61052 2008-03-30  Bruno Haible  <bruno@clisp.org>
61053
61054         Fix bug introduced on 2007-06-10.
61055         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
61056         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
61057
61058 2008-03-30  Bruno Haible  <bruno@clisp.org>
61059
61060         Improve freadseek's efficiency after ungetc.
61061         * lib/freadseek.c: Include freadahead.h.
61062         (freadptrinc): New function, extracted from freadseek.
61063         (freadseek): Use it in a loop. Use freadahead to determine the number
61064         of loop iterations.
61065         * modules/freadseek (Depends-on): Add freadahead.
61066         (configure.ac): Require AC_C_INLINE.
61067
61068 2008-03-30  Bruno Haible  <bruno@clisp.org>
61069
61070         * lib/freadseek.c (freadseek): Don't ignore the return value of
61071         freadptr.
61072
61073 2008-03-29  Eric Blake  <ebb9@byu.net>
61074
61075         Add hex float support.
61076         * modules/strtod (Depends-on): Add c-ctype.
61077         (Link): Mention POW_LIB.
61078         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
61079         whitespace between 'e' and exponent.
61080         * tests/test-strtod.c (main): Enable hex float tests.
61081         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
61082         now provides.
61083
61084         Document various strtod bugs, with some fixes.
61085         * doc/posix-functions/strtod.texi (strtod): Document bugs with
61086         "-0x", "inf", "nan", and hex constants.
61087         * doc/posix-functions/atof.texi (atof): Likewise.
61088         * modules/stdlib (Makefile.am): Support strtod.
61089         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
61090         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
61091         detect additional strtod bugs.
61092         * lib/stdlib.in.h (rpl_strtod): Add declarations.
61093         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
61094         bool where appropriate.  Parse 'inf' and 'nan'.
61095         * tests/test-strtod.c: New file.
61096         * modules/strtod (Depends-on): Add stdbool, stdlib.
61097         (configure.ac): Turn on module indicator.
61098         * modules/strtod-tests: New module.
61099
61100 2008-03-29  Eric Blake  <ebb9@byu.net>
61101
61102         Fix ftell on mingw.
61103         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
61104         * modules/ftell-tests (Depends-on): Add binary-io.
61105         * modules/ftello-tests (Depends-on): Likewise.
61106         * tests/test-ftell.c (main): Enhance test to cover behavior after
61107         ungetc.  Enforce binary mode.
61108         * tests/test-ftello.c (main): Likewise.
61109
61110         Pass test-freadseek on cygwin.
61111         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
61112         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
61113         ungetc buffer.
61114
61115         * tests/test-fflush2.c (main): Fix typo.
61116
61117 2008-03-29  Bruno Haible  <bruno@clisp.org>
61118
61119         * tests/test-fflush2.c (main): Temporarily disable the contents of
61120         this test.
61121         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
61122         Reported by Eric Blake.
61123
61124 2008-03-28  Simon Josefsson  <simon@josefsson.org>
61125
61126         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
61127         (GC_SHA224_DIGEST_SIZE): Add.
61128
61129         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
61130         (gc_hash_digest_length): Likewise.
61131         (gc_hash_buffer): Likewise.
61132
61133 2008-03-25  Bruno Haible  <bruno@clisp.org>
61134
61135         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
61136         detail which gettext release to use.
61137         Reported by Simon Josefsson.
61138
61139 2008-03-26  Jim Meyering  <meyering@redhat.com>
61140
61141         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
61142         * modules/gnumakefile (clean-GNUmakefile): Also, use
61143         test ... && ... || : syntax rather than if-then ... fi.
61144
61145         gnumakefile: Don't double-quote-expand $(VPATH) value.
61146         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
61147
61148 2008-03-24  Eric Blake  <ebb9@byu.net>
61149
61150         Alter GNUmakefile to install into top directory.
61151         * modules/maintainer-makefile: Split, and add dependency...
61152         * modules/gnumakefile: to this new module.
61153         * build-aux/GNUmakefile: Move...
61154         * top/GNUmakefile: ...here.
61155         * build-aux/maint.mk: Move...
61156         * top/maint.mk: ...here.
61157         * MODULES.html.sh (Support for maintaining...): Document new
61158         module.
61159
61160 2008-03-23  Bruno Haible  <bruno@clisp.org>
61161
61162         * gnulib-tool: New options --vc-files, --no-vc-files.
61163         (func_usage): Document them.
61164         (vc_files): New variable.
61165         (func_import): Consider vc_files.
61166         (func_create_testdir): Set vc_files to empty.
61167         Suggested by Jim Meyering and Karl Berry.
61168
61169 2008-03-23  Bruno Haible  <bruno@clisp.org>
61170
61171         Fix regex compilation error on HP-UX 11.
61172         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
61173         * modules/regex (Files): Add m4/mbstate_t.m4.
61174         Reported by Ton Voon <ton.voon@altinity.com>.
61175
61176 2008-03-23  Bruno Haible  <bruno@clisp.org>
61177
61178         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
61179
61180 2008-03-23  Eric Blake  <ebb9@byu.net>
61181             Bruno Haible  <bruno@clisp.org>
61182
61183         Install files from top/ in the destination directory.
61184         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
61185         augmentation also for the files from top/.
61186         (func_import, func_create_testdir): Rewrite file names:
61187         top/filename -> filename.
61188
61189 2008-03-23  Bruno Haible  <bruno@clisp.org>
61190
61191         Tweak "gnulib --version" output.
61192         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
61193
61194 2008-03-23  Bruno Haible  <bruno@clisp.org>
61195
61196         Tweak "gnulib --version" output.
61197         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
61198         rather than contents of ChangeLog, when possible.
61199
61200 2008-03-21  Eric Blake  <ebb9@byu.net>
61201
61202         More --version tweaks.
61203         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
61204         date of last ChangeLog entry.
61205
61206 2008-03-21  Jim Meyering  <meyering@redhat.com>
61207
61208         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
61209
61210 2008-03-20  Eric Blake  <ebb9@byu.net>
61211
61212         VPATH fix.
61213         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
61214
61215 2008-03-20  Simon Josefsson  <simon@josefsson.org>
61216
61217         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
61218         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
61219
61220 2008-03-20  Eric Blake  <ebb9@byu.net>
61221
61222         Sync GNUmakefile with coreutils.
61223         * build-aux/GNUmakefile (have-Makefile): Rename...
61224         (_have-Makefile): ...to this, for namespace consideration.
61225         (GNUmakefile.cfg): Include, if present.
61226         (_autoreconf): Define a default.
61227         (_is-dist-target): New rule for rebuilds to pick up intra-release
61228         version.
61229         (maint-cfg.mk): Rename...
61230         (cfg.mk): ...to this.
61231
61232 2008-03-18  Jim Meyering  <meyering@redhat.com>
61233
61234         New script and module: mktempd
61235         * MODULES.html.sh (maint+release support): Add mktempd.
61236         * build-aux/mktempd: New file.
61237         * modules/mktempd: New file.
61238
61239 2008-03-15  Jim Meyering  <meyering@redhat.com>
61240
61241         Undo last change.
61242         * lib/sha1.c, lib/md5.c: 63 != ~63.
61243         Reported by Andreas Schwab.
61244
61245         sha1.c, md5.c: Hoist a redundant expression.
61246         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
61247         "ctx->buflen" only once, before calling *_process_block.
61248         * lib/md5.c (md5_process_bytes): Likewise.
61249
61250 2008-03-14  Eric Blake  <ebb9@byu.net>
61251
61252         Bump copyright year in files generated by gnulib-tool.
61253         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
61254         gnulib-tool, rather than hard-coding it.
61255
61256         Fix 'gnulib-tool --version' output to work with git.
61257         * gnulib-tool (func_gnulib_dir): New function, extracted from...
61258         (startup): ...here.
61259         (func_version): Use it to invoke git-version-gen, rather than
61260         relying on CVS keyword expansion.  Modernize wording.
61261         (cvsdatestamp, last_checkin_date, version): Kill unused
61262         variables.
61263
61264 2008-03-12  Jim Meyering  <meyering@redhat.com>
61265
61266         Recognize optional cast of the argument to free.
61267         * build-aux/useless-if-before-free: Update regexps.
61268
61269         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
61270
61271 2008-03-11  Bruno Haible  <bruno@clisp.org>
61272
61273         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
61274         by a single package.
61275         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
61276         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
61277         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
61278         Reported by Sam Steingold <sds@gnu.org>.
61279
61280 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
61281
61282         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
61283         repositories.
61284
61285 2008-03-11  Bruno Haible  <bruno@clisp.org>
61286
61287         Avoid conflicts between local macro definitions.
61288         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
61289         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
61290
61291 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
61292             Bruno Haible  <bruno@clisp.org>
61293
61294         Make va_copy work with some version of xlc on AIX 5.1.
61295         * lib/stdarg.in.h: New file.
61296         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
61297         On AIX, use a <stdarg.h> file substitute.
61298         * modules/stdarg (Files): Add lib/stdarg.in.h.
61299         (Depends-on): Add include_next.
61300         (Makefile.am): Build a stdarg.h substitute if requested.
61301         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
61302
61303 2008-03-10  Bruno Haible  <bruno@clisp.org>
61304
61305         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
61306         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
61307         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
61308
61309 2008-03-10  Bruno Haible  <bruno@clisp.org>
61310
61311         * modules/stdlib (Depends-on): Add include_next, remove
61312         absolute-header.
61313
61314 2008-03-09  Bruno Haible  <bruno@clisp.org>
61315
61316         * lib/freadahead.h (freadahead): Document more precisely.
61317         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
61318         the sum of both buffer sizes.
61319         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
61320         * NEWS: Document the change.
61321
61322 2008-03-09  Bruno Haible  <bruno@clisp.org>
61323
61324         Extend freadptr to return also the buffer size.
61325         * lib/freadptr.h (freadptr): Add sizep argument.
61326         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
61327         (freadptr): Add sizep argument. Determine buffer size like freadahead
61328         does.
61329         * tests/test-freadptr.c: Don't include freadahead.h.
61330         (main): Adapt for new calling convention of freadptr.
61331         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
61332         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
61333         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
61334         tests/test-freadptr2.sh.
61335         (Depends): Remove freadahead.
61336         (TESTS): Add test-freadptr2.sh.
61337         (check_PROGRAMS): Add test-freadptr2.
61338
61339 2008-03-09  Bruno Haible  <bruno@clisp.org>
61340
61341         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
61342         Report and solution by Simon Josefsson.
61343
61344 2008-03-06  Bruno Haible  <bruno@clisp.org>
61345
61346         Make fflush after ungetc work on BSD platforms.
61347         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
61348         * tests/test-fflush2.c: New file.
61349         * tests/test-fflush2.sh: New file.
61350         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
61351         tests/test-fflush2.c.
61352         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
61353         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
61354
61355 2008-03-06  Eric Blake  <ebb9@byu.net>
61356
61357         Likewise for ftello.
61358         * modules/ftello (Dependencies): Add extensions.
61359         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
61360
61361 2008-03-06  Bruno Haible  <bruno@clisp.org>
61362
61363         * modules/fseeko (Dependencies): Add extensions.
61364         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
61365         Needed on glibc systems.
61366
61367 2008-03-06  Bruno Haible  <bruno@clisp.org>
61368
61369         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
61370         email address.
61371         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
61372
61373 2008-03-06  Bruno Haible  <bruno@clisp.org>
61374
61375         * users.txt: Add libgnupdf.
61376
61377 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
61378
61379         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
61380         (Header File Substitutes, Function Substitutes,
61381         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
61382         (Build robot for gnulib): Fix typo.
61383
61384 2008-03-06  Bruno Haible  <bruno@clisp.org>
61385
61386         * doc/gnulib-tool.texi (VCS Issues): Small updates.
61387         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
61388
61389 2008-03-06  Bruno Haible  <bruno@clisp.org>
61390
61391         * doc/func.texi: New file, extracted from doc/gnulib.texi.
61392         * doc/gnulib.texi: Include it.
61393
61394 2008-03-06  Simon Josefsson  <simon@josefsson.org>
61395
61396         * modules/func (License): Change license to unlimited; there was
61397         no LGPL parts in the module anyway.
61398
61399 2008-03-06  Simon Josefsson  <simon@josefsson.org>
61400
61401         * modules/__func__: Renamed to modules/func.
61402         * modules/__func__-tests: Renamed to modules/func-tests.
61403         * tests/test-__func__.c: Renamed to tests/test-func.c.
61404         * m4/__func__.m4: Renamed to m4/func.m4.
61405         * doc/gnulib.texi (__func__): Section renamed to func.
61406         Suggested by Eric Blake <ebb9@byu.net>.
61407
61408 2008-03-06  Simon Josefsson  <simon@josefsson.org>
61409
61410         * doc/gnulib.texi (__func__): Use C99 terminology when talking
61411         about __func__.  Make example self-contained.  Suggested by Eric
61412         Blake <ebb9@byu.net>.
61413
61414         * tests/test-__func__.c (main): Avoid extraneous () around __func.
61415         Suggested by Eric Blake <ebb9@byu.net>.
61416
61417 2008-03-06  Simon Josefsson  <simon@josefsson.org>
61418
61419         * modules/__func__: New file.
61420         * modules/__func__-tests: New file.
61421         * tests/test-__func__.c: New file.
61422         * m4/__func__.m4: New file.
61423         * doc/gnulib.texi (__func__): Document __func__ module.
61424
61425 2008-03-05  Simon Josefsson  <simon@josefsson.org>
61426
61427         * modules/byteswap (License): Re-license as LGPLv2+.
61428
61429 2008-03-05  Simon Josefsson  <simon@josefsson.org>
61430
61431         * doc/Makefile: Add pdf target.
61432
61433 2008-03-05  Simon Josefsson  <simon@josefsson.org>
61434
61435         * modules/inline (License): Use 'unlimited', since there are only
61436         *.m4 files in this module.
61437
61438 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
61439             Bruno Haible  <bruno@clisp.org>
61440
61441         Add support for HP C 7.1 on OpenVMS 8.3.
61442         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
61443
61444 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
61445
61446         Update VMS specifics.
61447         * lib/getopt.c [VMS]: Remove include of unixlib.h.
61448
61449 2008-03-02  Jim Meyering  <meyering@redhat.com>
61450
61451         Remove the last dependency on the "free" module.
61452         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
61453         Reported by Bob Proulx.
61454
61455         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
61456
61457         Remove useless "if" tests before free.  Deprecate "free" module.
61458         * doc/posix-functions/free.texi: Mention that this
61459         module is no longer useful.
61460         * modules/free (Notice): Say this module is obsolete.
61461         * modules/readutmp (Depends-on): Remove free.
61462         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
61463         * lib/putenv.c (putenv): Likewise.
61464         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
61465         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
61466         * tests/test-c-strcasestr.c (main): Likewise.
61467         * tests/test-c-strstr.c (main): Likewise.
61468         * tests/test-mbscasestr1.c (main): Likewise.
61469         * tests/test-mbscasestr2.c (main): Likewise.
61470         * tests/test-mbsstr1.c (main): Likewise.
61471         * tests/test-mbsstr2.c (main): Likewise.
61472         * tests/test-memmem.c (main): Likewise.
61473         * tests/test-strcasestr.c (main): Likewise.
61474         * tests/test-striconv.c (main): Likewise.
61475         * tests/test-striconveh.c (main): Likewise.
61476         * tests/test-striconveha.c (main): Likewise.
61477         * tests/test-strstr.c (main): Likewise.
61478
61479         * build-aux/git-version-gen: Adjust a comment and the Usage string.
61480
61481         bootstrap: sync from coreutils again
61482         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
61483
61484 2008-03-01  Jim Meyering  <meyering@redhat.com>
61485
61486         bootstrap: sync from coreutils
61487         * build-aux/bootstrap (update_po_files): Copy a .po file into place
61488         also when the target doesn't exist.
61489
61490 2008-03-01  Eric Blake  <ebb9@byu.net>
61491
61492         Fix bugs in last patch.
61493         * lib/memchr2.c (memchr2): Fix typo.
61494         * tests/test-memchr2.c: Test previous bug, and don't use GNU
61495         extension.
61496         Reported by Bruce Korb.
61497
61498         New module 'memchr2'.
61499         * modules/memchr2: New file.
61500         * modules/memchr2-tests: Likewise.
61501         * lib/memchr2.h: Likewise.
61502         * lib/memchr2.c: Likewise, based on memchr.c.
61503         * tests/test-memchr2.c: New test.
61504         * MODULES.html.sh (String handling): Add memchr2.
61505
61506 2008-02-29  Bruno Haible  <bruno@clisp.org>
61507
61508         * modules/freadseek-tests: New file.
61509         * tests/test-freadseek.sh: New file.
61510         * tests/test-freadseek.c: New file.
61511
61512         New module 'freadseek'.
61513         * modules/freadseek: New file.
61514         * lib/freadseek.h: New file.
61515         * lib/freadseek.c: New file.
61516         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
61517
61518 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
61519
61520         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
61521         wydawca.
61522
61523         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
61524         program_invocation_name and program_invocation_short_name are
61525         present.
61526
61527 2008-02-28  Bruno Haible  <bruno@clisp.org>
61528
61529         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
61530         * tests/test-freadptr.sh: Also test non-seekable stdin.
61531
61532 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
61533
61534         * build-aux/bootstrap (source_base, m4_base)
61535         (doc_base, tests_base): New variables.
61536         (gnulib_tool_options): Do not hardcode base directories, use
61537         the above variables instead.
61538
61539 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
61540
61541         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
61542
61543 2008-02-28  Bruno Haible  <bruno@clisp.org>
61544
61545         * modules/freadptr-tests: New file.
61546         * tests/test-freadptr.sh: New file.
61547         * tests/test-freadptr.c: New file.
61548
61549         New module 'freadptr'.
61550         * modules/freadptr: New file.
61551         * lib/freadptr.h: New file.
61552         * lib/freadptr.c: New file.
61553         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
61554
61555 2008-02-26  Karl Berry  <karl@freefriends.org>
61556
61557         Sync from Libtool:
61558         * libltdl/argz.c (argz_add, argz_count): New functions.
61559         * libltdl/argz.in.h: Declare them.
61560         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
61561
61562 2008-02-22  Bruno Haible  <bruno@clisp.org>
61563
61564         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
61565         is a pointer type.  Needed for HP-UX 10.
61566         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
61567         * doc/posix-functions/gmtime_r.texi: Likewise.
61568         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
61569
61570 2008-02-24  Bruno Haible  <bruno@clisp.org>
61571
61572         * modules/environ-tests: New file.
61573         * tests/test-environ.c: New file.
61574
61575         New module 'environ'.
61576         * modules/environ: New file.
61577         * lib/unistd.in.h (environ): New declaration.
61578         * m4/environ.m4: New file.
61579         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
61580         after use.
61581         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
61582         HAVE_DECL_ENVIRON.
61583         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
61584         HAVE_DECL_ENVIRON.
61585         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
61586         wrong claim that 'environ' is missing on some systems.
61587         * modules/execute (Depends-on): Add environ.
61588         * lib/execute.c (environ): Remove fallback declaration.
61589         * modules/pipe (Depends-on): Add environ.
61590         * lib/pipe.c (environ): Remove fallback declaration.
61591         * modules/setenv (Depends-on): Add environ.
61592         * lib/setenv.c (environ): Remove fallback declaration.
61593         * modules/unsetenv (Depends-on): Add environ.
61594         * lib/unsetenv.c (environ): Remove fallback declaration.
61595         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
61596         m4/environ.m4.
61597         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
61598         (gl_PREREQ_UNSETENV): Likewise.
61599
61600 2008-02-24  Bruno Haible  <bruno@clisp.org>
61601
61602         * doc/posix-functions/environ.texi: Document the MacOS X problem.
61603
61604 2008-02-20  Bob Proulx  <bob@proulx.com>
61605
61606         Enable use of older two part flavor 'git describe'.
61607         * build-aux/git-version-gen: If using the older two part flavor of
61608         git version then recreate the third part now present in the
61609         newer three part flavor of git describe.
61610
61611 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
61612
61613         * lib/fts.c (fts_build): Typo correction to comment.
61614
61615 2008-02-17  Bruno Haible  <bruno@clisp.org>
61616
61617         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
61618         generating no-op conflicts.
61619
61620 2008-02-17  Bruno Haible  <bruno@clisp.org>
61621
61622         Speed up by 10%.
61623         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
61624         result_entries, rather than an index-based loop.
61625
61626 2008-02-17  Bruno Haible  <bruno@clisp.org>
61627
61628         Speed up by 25%.
61629         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
61630         'hashcode_cached'.
61631         (entry_create): New function.
61632         (entry_hashcode): Use the cached hashcode if possible.
61633         (read_changelog_file, try_split_merged_entry): Use entry_create.
61634
61635 2008-02-17  Bruno Haible  <bruno@clisp.org>
61636
61637         Speed up from O(n^2) to O(n) for long ChangeLog files.
61638         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
61639         (read_changelog_file): Change implementation of entries_reversed list
61640         to rbtreehash.
61641         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
61642
61643 2008-02-17  Bruno Haible  <bruno@clisp.org>
61644
61645         New option --split-merged-entry.
61646         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
61647         (find_paragraph_end, try_split_merged_entry): New functions.
61648         (long_options): Add option --split-merged-entry.
61649         (usage): Document option --split-merged-entry.
61650         (main): Implement option --split-merged-entry.
61651         Reported by Eric Blake.
61652
61653 2008-02-17  Bruno Haible  <bruno@clisp.org>
61654
61655         * lib/git-merge-changelog.c: Include c-strstr.h.
61656         (main): Support the "git pull --rebase" situation.
61657         * modules/git-merge-changelog (Depends-on): Add c-strstr.
61658         Reported by Eric Blake.
61659
61660 2008-02-16  Eric Blake  <ebb9@byu.net>
61661
61662         Avoid doubling \ in common case of "c-maybe" quoting style.
61663         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
61664         eliding outer quotes.
61665         * lib/quotearg.h: Document this.
61666         * tests/test-quotearg.c (result_strings, inputs, results_g)
61667         (flag_results, locale_results): Test it by adding a new string to
61668         each test group.
61669         (compare_strings): Test new string.
61670
61671 2008-02-13  Eric Blake  <ebb9@byu.net>
61672
61673         Avoid trigraph quoting in default output.
61674         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
61675         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
61676         unless explicitly requested.
61677         * tests/test-quotearg.c (flag_results, main): Add additional tests.
61678
61679 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
61680
61681         Don't rely on signed integer overflowing to negative value.
61682         * lib/getugroups.c (getugroups): Include <limits.h>.
61683         Instead, compare against INT_MAX, and increment only if the test passes.
61684
61685 2008-02-13  Jim Meyering  <meyering@redhat.com>
61686         and Eric Blake  <ebb9@byu.net>
61687
61688         Avoid shadowing warning and compile errors on Linux.
61689         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
61690         forwarding macros on Linux.
61691         (dcgettext): Define a stub, for Linux.
61692         (results_g, main): Avoid warnings.
61693
61694 2008-02-12  Eric Blake  <ebb9@byu.net>
61695
61696         Silence warning in last patch.
61697         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
61698
61699         Quotearg part 4: add tests, fix c-maybe colon quoting.
61700         * lib/quotearg.h: Improve documentation.
61701         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
61702         escapes when adding outer quotes.  When quoting trigraphs, use
61703         valid C notation.  When quoting NUL, omit extra characters if next
61704         character is not digit.  Alter prototype.
61705         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
61706         callers.
61707         * modules/quotearg-tests: New module.
61708         * tests/test-quotearg.c: New test.
61709
61710 2008-02-07  Eric Blake  <ebb9@byu.net>
61711
61712         Quotearg part 3: add flag to control outer quote elision.
61713         * lib/quotearg.h (c_maybe_quoting_style): New style.
61714         (enum quoting_flags): Better documentation of flags.
61715         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
61716         c-maybe style.
61717         (quotearg_buffer_restyled): Handle new flag to elide outer
61718         quotes.
61719
61720         Quotearg part 2: add flag that can control NUL elision.
61721         * lib/quotearg.h (set_quoting_flags): New prototype.
61722         * lib/quotearg.c (struct quoting_options): Add flag field.
61723         (set_quoting_flags): New function.
61724         (quotearg_buffer_restyled): Add flags parameter.
61725         (quotearg_alloc_mem): Set the flag if length cannot be returned.
61726         (quotearg_n_options): Set the flag, since length cannot be
61727         returned.
61728         (quoting_options_from_style): Default flags correctly.
61729
61730         Quotearg part 1: more wrappers, restore quotearg_char state.
61731         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
61732         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
61733         (quotearg_colon_mem): New wrappers.
61734         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
61735         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
61736         functions.
61737         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
61738         (quotearg_colon_mem): New functions.
61739
61740 2008-02-11  Bruno Haible  <bruno@clisp.org>
61741
61742         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
61743         library in the current directory: it does not work with parallel make.
61744         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
61745
61746 2008-02-11  Bruno Haible  <bruno@clisp.org>
61747
61748         * .gitattributes: New file.
61749
61750 2008-02-11  Jim Meyering  <meyering@redhat.com>
61751
61752         useless-if-before-free: Fix reversed exit values.
61753         * build-aux/useless-if-before-free: Use correct values
61754         for EXIT_MATCH and EXIT_NO_MATCH.
61755
61756         * build-aux/useless-if-before-free: Close stdout carefully.
61757
61758 2008-02-10  Bruno Haible  <bruno@clisp.org>
61759
61760         New module 'git-merge-changelog'.
61761         * modules/git-merge-changelog: New file.
61762         * lib/git-merge-changelog.c: New file.
61763
61764 2008-02-10  Jim Meyering  <meyering@redhat.com>
61765
61766         useless-if-before-free: New option: --list (-l).
61767
61768         useless-if-before-free: Don't exit immediately upon open failure.
61769         * build-aux/useless-if-before-free: Exit 2 for errors.
61770         Upon failure to open a file, don't exit immediately.
61771         Rather, just warn and continue with any remaining files.
61772
61773 2008-02-10  Bruno Haible  <bruno@clisp.org>
61774
61775         New abstract list operation 'node_set_value'.
61776         * lib/gl_list.h (gl_list_node_set_value): New function.
61777         (struct gl_list_implementation): New field node_set_value.
61778         * lib/gl_list.c (gl_list_node_set_value): New function.
61779         * lib/gl_array_list.c (gl_array_node_set_value): New function.
61780         (gl_array_list_implementation): Update.
61781         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
61782         (gl_carray_list_implementation): Update.
61783         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
61784         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
61785         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
61786         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
61787         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
61788         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
61789         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
61790         Update.
61791         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
61792         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
61793         (gl_sublist_list_implementation): Update.
61794
61795 2008-02-10  Bruno Haible  <bruno@clisp.org>
61796
61797         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
61798         Needed when ELEMENT is #defined to 'some_type *'.
61799
61800 2008-02-10  Jim Meyering  <meyering@redhat.com>
61801
61802         New script and module: useless-if-before-free
61803         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
61804         * build-aux/useless-if-before-free: New file.
61805         * modules/useless-if-before-free: New file.
61806
61807         * build-aux/gitlog-to-changelog: Use committer date, not author date.
61808
61809         xstrtol_error: Fix typo.
61810         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
61811         s/exit_failure/exit_status/.
61812
61813 2008-02-09  Jim Meyering  <meyering@redhat.com>
61814
61815         New script and module: gitlog-to-changelog
61816         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
61817         * modules/gitlog-to-changelog: New file.
61818         * build-aux/gitlog-to-changelog: New file.
61819
61820 2008-02-08  Jim Meyering  <meyering@redhat.com>
61821
61822         Avoid two "parameter unused" warnings.
61823         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
61824         Mark "st" as used.
61825
61826         Use "git COMMAND", not "git-COMMAND".
61827         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
61828         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
61829         * build-aux/git-version-gen: Use "git status", not "git-status".
61830
61831 2008-02-07  Bruno Haible  <bruno@clisp.org>
61832
61833         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
61834         Avoids a crash on Windows Vista.
61835         Reported by Adam Strzelecki <ono@java.pl> via
61836         Simon Josefsson <simon@josefsson.org>.
61837
61838 2008-02-06  Bruno Haible  <bruno@clisp.org>
61839
61840         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
61841         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
61842         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
61843         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
61844         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
61845         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
61846         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
61847         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
61848         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
61849         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
61850         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
61851         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
61852         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
61853         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
61854         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
61855         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
61856         left-adjust flag.
61857         * tests/test-snprintf-posix.h (test_function): Likewise.
61858         * tests/test-sprintf-posix.h (test_function): Likewise.
61859         * tests/test-vasprintf-posix.c (test_function): Likewise.
61860         * doc/posix-functions/fprintf.texi: Update.
61861         * doc/posix-functions/printf.texi: Update.
61862         * doc/posix-functions/snprintf.texi: Update.
61863         * doc/posix-functions/sprintf.texi: Update.
61864         * doc/posix-functions/vfprintf.texi: Update.
61865         * doc/posix-functions/vprintf.texi: Update.
61866         * doc/posix-functions/vsnprintf.texi: Update.
61867         * doc/posix-functions/vsprintf.texi: Update.
61868         Reported by Peter Fales <psfales@alcatel-lucent.com>.
61869
61870 2008-02-06  Bruno Haible  <bruno@clisp.org>
61871
61872         Fix bug introduced on 2008-01-26.
61873         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
61874
61875 2008-02-06  Bruno Haible  <bruno@clisp.org>
61876
61877         Fix bug introduced on 2007-06-10.
61878         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
61879         !NEED_PRINTF_FLAG_ZERO.
61880
61881 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
61882
61883         getloadavg: use libperfstat on AIX5
61884         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
61885
61886 2008-02-03  Bruno Haible  <bruno@clisp.org>
61887
61888         * lib/diffseq.h: Add comments about required #includes.
61889         Reported by Michael Biggs <gnulib@doubleplum.net>.
61890
61891 2008-02-01  Bruno Haible  <bruno@clisp.org>
61892
61893         * users.txt: Add gnuit.
61894
61895 2008-01-31  Bruno Haible  <bruno@clisp.org>
61896
61897         * lib/md4.c (set_uint32): Mark as inline.
61898         * lib/md5.c (set_uint32): Likewise.
61899         * lib/sha1.c (set_uint32): Likewise.
61900         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
61901         * m4/md5.m4 (gl_MD5): Likewise.
61902         * m4/sha1.m4 (gl_SHA1): Likewise.
61903
61904 2008-01-31  Jim Meyering  <meyering@redhat.com>
61905
61906         Use "sizeof VAR", rather than a literal "4".
61907         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
61908         * lib/md4.c (md4_read_ctx): Likewise.
61909         * lib/sha1.c (sha1_read_ctx): Likewise.
61910
61911 2008-01-31  Simon Josefsson  <simon@josefsson.org>
61912
61913         * tests/test-sha1.c: New file, based on test-md5.c.
61914
61915         * modules/crypto/sha1-tests: New file.
61916
61917 2008-01-31  Simon Josefsson  <simon@josefsson.org>
61918
61919         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
61920
61921 2008-01-31  Jim Meyering  <meyering@redhat.com>
61922
61923         Prefer "sizeof v" over the equivalent "4".
61924         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
61925         * lib/md5.c (set_uint32): Likewise.
61926         * lib/sha1.c (set_uint32): Likewise.
61927
61928 2008-01-31  Simon Josefsson  <simon@josefsson.org>
61929
61930         * lib/sha1.c (set_uint32): Mark function as static.
61931
61932 2008-01-31  Simon Josefsson  <simon@josefsson.org>
61933
61934         md2: clarify comments to say that alignment is not required.
61935         * lib/md2.h: Remove warning about alignment in comment.
61936         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
61937         never been required.
61938
61939 2008-01-31  Simon Josefsson  <simon@josefsson.org>
61940
61941         md4: adapt alignment constraint fix from sha1.
61942         * lib/md4.c (set_uint32): New function, from sha1.c
61943         (md4_read_ctx): Use it.
61944         (md4_finish_ctx): Doc fix.
61945         * lib/md4.h: Doc fix.
61946
61947 2008-01-31  Simon Josefsson  <simon@josefsson.org>
61948
61949         md5: adapt alignment constraint fix from sha1.
61950         * lib/md5.c (set_uint32): New function, from sha1.c
61951         (md5_read_ctx): Use it.
61952         (md5_finish_ctx): Doc fix.
61953         * lib/md5.h: Doc fix.
61954
61955 2008-01-30  Peter Palfrader  <weasel@debian.org>
61956
61957         sha1: remove the result buffer alignment constraint
61958         * lib/sha1.c (set_uint32): New function.
61959         (sha1_read_ctx): Rewrite to remove the result buffer alignment
61960         constraint.
61961         (sha1_finish_ctx): Remove comment warning about alignment constraint.
61962         * lib/sha1.h: Likewise.
61963
61964 2008-01-30  Andreas Schwab  <schwab@suse.de>
61965             Bruno Haible  <bruno@clisp.org>
61966
61967         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
61968         correct definition of LDBL_MIN_EXP.
61969
61970 2008-01-30  Karl Berry  <karl@gnu.org>
61971
61972         * config/srclist-update: try to preserve x bit on updates.
61973         * config/srclistvars.sh: update for karl.
61974
61975 2008-01-29  Jim Meyering  <meyering@redhat.com>
61976
61977         vasnprintf.c: Avoid warning about unused label
61978         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
61979         "overflow" label definition and associated code with the
61980         same cpp condition that guards the sole use of that label.
61981
61982 2008-01-26  Bruno Haible  <bruno@clisp.org>
61983
61984         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
61985         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
61986         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
61987         * lib/isnanl-nolibm.h (isnanl): Likewise.
61988         Reported by Paul Eggert <eggert@cs.ucla.edu>.
61989
61990 2008-01-26  Bruno Haible  <bruno@clisp.org>
61991
61992         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
61993         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
61994
61995 2008-01-26  Bruno Haible  <bruno@clisp.org>
61996
61997         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
61998         GCC >= 4.0 built-in.
61999         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
62000
62001 2008-01-26  Bruno Haible  <bruno@clisp.org>
62002
62003         Rename isnan, applicable to 'double' only, to isnand.
62004         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
62005         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
62006         (configure.ac): Update.
62007         (Include): Replace "isnan.h" with "isnand.h".
62008         * m4/isnand.m4: Renamed from m4/isnan.m4.
62009         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
62010         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
62011         instead of isnan.c.
62012         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
62013         instead of HAVE_ISNAN_IN_LIBC.
62014         (isnand): Renamed from isnan.
62015         * lib/isnand.c: New file.
62016         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
62017         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
62018         (Makefile.am): Update.
62019         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
62020         Include isnand.h instead of isnan.h.
62021         (main): Test isnand instead of isnan.
62022         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
62023         isnan-nolibm.
62024         * modules/frexp (Depends-on): Likewise.
62025         * modules/frexp-tests (Depends-on): Likewise.
62026         * modules/frexp-nolibm (Depends-on): Likewise.
62027         * modules/frexp-nolibm-tests (Depends-on): Likewise.
62028         * modules/isfinite (Depends-on): Likewise.
62029         * modules/round-tests (Depends-on): Likewise.
62030         * modules/signbit (Depends-on): Likewise.
62031         * modules/signbit-tests (Depends-on): Likewise.
62032         * modules/snprintf-posix (Depends-on): Likewise.
62033         * modules/sprintf-posix (Depends-on): Likewise.
62034         * modules/trunc-tests (Depends-on): Likewise.
62035         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
62036         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
62037         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
62038         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
62039         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
62040         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
62041         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
62042         * modules/vasnprintf-posix (Depends-on): Likewise.
62043         * modules/vasprintf-posix (Depends-on): Likewise.
62044         * modules/vfprintf-posix (Depends-on): Likewise.
62045         * modules/vsnprintf-posix (Depends-on): Likewise.
62046         * modules/vsprintf-posix (Depends-on): Likewise.
62047         * lib/frexp.c: Include isnand.h instead of isnan.h.
62048         (ISNAN): Set to isnand instead of isnan.
62049         * lib/isfinite.c: Include isnand.h instead of isnan.h.
62050         (gl_isfinited): Use isnand instead of isnan.
62051         * lib/signbitd.c: Include isnand.h instead of isnan.h.
62052         (gl_signbitd): Use isnand instead of isnan.
62053         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
62054         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
62055         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
62056         (main): Use isnand instead of isnan.
62057         * tests/test-round1.c: Include isnand.h.
62058         (main): Use isnand instead of isnan.
62059         * tests/test-round2.c: Include isnand.h instead of isnan.h.
62060         (ISNAN): Set to isnand instead of isnan.
62061         * tests/test-trunc1.c: Include isnand.h.
62062         (main): Use isnand instead of isnan.
62063         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
62064         (equal): Use isnand instead of isnan.
62065         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
62066         isnand-nolibm.
62067         * NEWS: Mention the change.
62068
62069 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
62070             Bruno Haible  <bruno@clisp.org>
62071
62072         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
62073         the GCC builtins for signbits are present and set
62074         REPLACE_SIGNBIT_USING_GCC if so.
62075         * lib/math.in.h (signbit): Define using GCC builtins if
62076         REPLACE_SIGNBIT_USING_GCC is set.
62077         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
62078         REPLACE_SIGNBIT_USING_GCC.
62079         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
62080
62081 2008-01-25  Jim Meyering  <meyering@redhat.com>
62082
62083         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
62084         * lib/poll.c: Include <config.h>, not "config.h".
62085         * tests/test-getaddrinfo.c: Likewise.
62086
62087 2008-01-25  Simon Josefsson  <simon@josefsson.org>
62088
62089         * modules/sockets-tests: New file.
62090
62091 2008-01-24  Simon Josefsson  <simon@josefsson.org>
62092
62093         * modules/sockets: New module, can be used to call WSA_Startup and
62094         WSA_Cleanup when needed.
62095
62096         * lib/sockets.h, lib/sockets.c: New files.
62097
62098         * m4/sockets.m4: New file.
62099
62100         * tests/test-sockets.c: New file.
62101
62102 2008-01-19  Bruno Haible  <bruno@clisp.org>
62103
62104         * doc/posix-headers: Renamed from doc/headers.
62105         * doc/posix-functions: Renamed from doc/functions.
62106         * doc/gnulib.texi: Update.
62107
62108 2008-01-19  Bruno Haible  <bruno@clisp.org>
62109
62110         * doc/glibc-functions/strcasestr.texi: Include contents of
62111         doc/functions/strcasestr.texi, fixing the list of platforms.
62112         * doc/functions/strcasestr.texi: Remove file.
62113
62114 2008-01-19  Bruno Haible  <bruno@clisp.org>
62115
62116         * doc/glibc-functions/memmem.texi: Include contents of
62117         doc/functions/memmem.texi.
62118         * doc/functions/memmem.texi: Remove file.
62119
62120 2008-01-18  Bruno Haible  <bruno@clisp.org>
62121
62122         * doc/glibc-functions/*.texi: New files.
62123         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
62124         to use the new files.
62125
62126 2008-01-17  Bruno Haible  <bruno@clisp.org>
62127
62128         * tests/test-gethostname.c (main): Fix printf statement.
62129
62130 2008-01-17  Simon Josefsson  <simon@josefsson.org>
62131
62132         * modules/gethostname-tests: New file.
62133
62134         * tests/test-gethostname.c: New file.
62135
62136 2008-01-17  Simon Josefsson  <simon@josefsson.org>
62137
62138         * lib/gethostname.c: Include string.h unconditionally, strncpy is
62139         used by the UNAME case.  Reported by Bruno Haible
62140         <bruno@clisp.org>.
62141
62142 2008-01-17  Eric Blake  <ebb9@byu.net>
62143
62144         Convert c-strcasestr to be more efficient.
62145         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
62146         (Depends-on): Add c-strcase, remove malloca, strnlen.
62147         * tests/test-c-strcasestr.c (main): Enhance test.
62148         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
62149
62150 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
62151
62152         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
62153         Use it in creating po/Makevars.
62154
62155 2008-01-15  Simon Josefsson  <simon@josefsson.org>
62156
62157         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
62158         Applications that requires it should initialize libgcrypt
62159         manually.
62160
62161 2008-01-16  Simon Josefsson  <simon@josefsson.org>
62162
62163         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
62164
62165 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
62166
62167         Fix problem with getdate on mingw32 reported by Simon Josefsson
62168         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
62169         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
62170         tzname", when deciding whether to declare tzname.
62171         * lib/strftime.c (tzname): Likewise.
62172
62173 2008-01-15  Bruno Haible  <bruno@clisp.org>
62174
62175         Work around a MacOS X 10.5 bug in frexpl().
62176         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
62177         * doc/functions/frexpl.texi: Document the bug.
62178         Reported by Elias Pipping <pipping@gentoo.org>.
62179
62180 2008-01-14  Eric Blake  <ebb9@byu.net>
62181
62182         Touch up previous patch.
62183         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
62184         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
62185
62186         Convert strcasestr module to use Two-Way algorithm.
62187         * modules/strcasestr-simple: New module, based on the old
62188         strcasestr, but with Two-Way rather than KMP.
62189         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
62190         * lib/string.in.h (rpl_strcasestr): Declare.
62191         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
62192         performance.
62193         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
62194         * modules/string (Makefile.am): Support strcasestr.
62195         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
62196         * modules/strcasestr-tests (Depends-on): Check for alarm.
62197         * tests/test-strcasestr.c: Augment test.
62198         * lib/str-two-way.h: Clean up stray macro.
62199         * NEWS: Document new module.
62200         * MODULES.html.sh (string handling): Likewise.
62201         * doc/functions/strcasestr.texi: New file.
62202         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
62203         here, since it is not a POSIX function.
62204
62205 2008-01-14  Colin Watson  <cjwatson@debian.org>
62206             Bruno Haible  <bruno@clisp.org>
62207
62208         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
62209         works fine; if not, set REPLACE_STRSIGNAL.
62210         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
62211         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
62212         REPLACE_STRSIGNAL.
62213         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
62214         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
62215         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
62216
62217 2008-01-14  Bruno Haible  <bruno@clisp.org>
62218
62219         * modules/strsignal (Include): Change to <string.h>.
62220
62221 2008-01-14  Colin Watson  <cjwatson@debian.org>
62222
62223         * modules/argp (Notice): Add a notice recommending to change
62224         XGETTEXT_OPTIONS.
62225         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
62226
62227 2008-01-13  Colin Watson  <cjwatson@debian.org>
62228
62229         * modules/strsignal-tests: New file.
62230         * tests/test-strsignal.c: New file.
62231
62232         * lib/strsignal.c: New file, from glibc with modifications.
62233         * lib/siglist.h: New file, from glibc with modifications.
62234         * lib/string.in.h (strsignal): New declaration.
62235         * m4/strsignal.m4: New file.
62236         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
62237         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
62238         * modules/strsignal: New file.
62239         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
62240         HAVE_DECL_STRSIGNAL.
62241
62242 2008-01-13  Bruno Haible  <bruno@clisp.org>
62243
62244         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
62245         locale encoding is not ASCII. Needed for OpenBSD 4.0.
62246         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
62247         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
62248
62249 2008-01-13  Bruno Haible  <bruno@clisp.org>
62250
62251         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
62252         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
62253         * lib/argp.h (__attribute__): Likewise.
62254         * lib/c-stack.c (__attribute__): Likewise.
62255         * lib/error.h (__attribute__): Likewise.
62256         * lib/fts.c (__attribute__): Likewise.
62257         * lib/openat.h (__attribute__): Likewise.
62258         * lib/stdio.in.h (__attribute__): Likewise.
62259         * lib/string.in.h (__attribute__): Likewise.
62260         * lib/utimens.c (__attribute__): Likewise.
62261         * lib/vasnprintf.h (__attribute__): Likewise.
62262         * lib/xalloc.h (__attribute__): Likewise.
62263         * lib/xprintf.h (__attribute__): Likewise.
62264         * lib/xstrtol.h (__attribute__): Likewise.
62265         * lib/xvasprintf.h (__attribute__): Likewise.
62266
62267 2008-01-12  Bruno Haible  <bruno@clisp.org>
62268
62269         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
62270         * doc/glibc-headers/a.out.texi: New file.
62271         * doc/glibc-headers/aliases.texi: New file.
62272         * doc/glibc-headers/alloca.texi: New file.
62273         * doc/glibc-headers/ar.texi: New file.
62274         * doc/glibc-headers/argp.texi: New file.
62275         * doc/glibc-headers/argz.texi: New file.
62276         * doc/glibc-headers/byteswap.texi: New file.
62277         * doc/glibc-headers/crypt.texi: New file.
62278         * doc/glibc-headers/endian.texi: New file.
62279         * doc/glibc-headers/envz.texi: New file.
62280         * doc/glibc-headers/err.texi: New file.
62281         * doc/glibc-headers/error.texi: New file.
62282         * doc/glibc-headers/execinfo.texi: New file.
62283         * doc/glibc-headers/fpu_control.texi: New file.
62284         * doc/glibc-headers/fstab.texi: New file.
62285         * doc/glibc-headers/fts.texi: New file.
62286         * doc/glibc-headers/getopt.texi: New file.
62287         * doc/glibc-headers/ieee754.texi: New file.
62288         * doc/glibc-headers/ifaddrs.texi: New file.
62289         * doc/glibc-headers/libintl.texi: New file.
62290         * doc/glibc-headers/mcheck.texi: New file.
62291         * doc/glibc-headers/mntent.texi: New file.
62292         * doc/glibc-headers/obstack.texi: New file.
62293         * doc/glibc-headers/paths.texi: New file.
62294         * doc/glibc-headers/printf.texi: New file.
62295         * doc/glibc-headers/pty.texi: New file.
62296         * doc/glibc-headers/resolv.texi: New file.
62297         * doc/glibc-headers/shadow.texi: New file.
62298         * doc/glibc-headers/sysexits.texi: New file.
62299         * doc/glibc-headers/ttyent.texi: New file.
62300
62301 2008-01-12  Jim Meyering  <meyering@redhat.com>
62302
62303         announce-gen: emit Gnulib's git-based version string.
62304         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
62305         New option --gnulib-version=V, where V is expected to be
62306         the output of running git describe in the gnulib directory.
62307         (get_tool_versions): Request feedback on xdelta.  I suspect it's
62308         not useful, and plan to stop publishing an xdelta file with each
62309         coreutils release.
62310
62311         * build-aux/announce-gen: Also check for lzma-compressed files.
62312
62313 2008-01-11  Bruno Haible  <bruno@clisp.org>
62314
62315         * tests/test-memmem.c (main): Increase maximum allowed time.
62316         * tests/test-strstr.c (main): Likewise.
62317
62318 2008-01-11  Bruno Haible  <bruno@clisp.org>
62319
62320         * doc/functions/memmem.texi: Add more precisions about platforms.
62321         * doc/functions/strstr.texi: Likewise.
62322
62323 2008-01-10  Eric Blake  <ebb9@byu.net>
62324
62325         * m4/strstr.m4: Delete cruft from copy-n-paste.
62326         Reported by Bruno Haible.
62327
62328 2008-01-10  Bruno Haible  <bruno@clisp.org>
62329
62330         Make c-strstr rely on strstr.
62331         * lib/c-strstr.c: Don't include str-kmp.h.
62332         (c_strstr): Define in terms of strstr.
62333         * modules/c-strstr (Files): Remove lib/str-kmp.h.
62334         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
62335
62336 2008-01-10  Bruno Haible  <bruno@clisp.org>
62337
62338         * doc/gnulib.texi (String Functions in C Locale): New section.
62339         * doc/c-ctype.texi: New file.
62340         * doc/c-strcase.texi: New file.
62341         * doc/c-strcaseeq.texi: New file.
62342         * doc/c-strcasestr.texi: New file.
62343         * doc/c-strstr.texi: New file.
62344         * doc/c-strtod.texi: New file.
62345         * doc/c-strtold.texi: New file.
62346
62347 2008-01-10  Eric Blake  <ebb9@byu.net>
62348
62349         * lib/relocatable.h: Fix a comment.
62350
62351 2008-01-10  Eric Blake  <ebb9@byu.net>
62352
62353         Share two-way algorithm.
62354         * lib/str-two-way.h: New file, merged from...
62355         * lib/memmem.c: ...here...
62356         * lib/strstr.c: ...and here.
62357         * modules/memmem (Files): Use it.
62358         * modules/strstr (Files): Likewise.
62359
62360         Avoid quadratic strstr implementations.
62361         * lib/strstr.c: New file.
62362         * m4/strstr.m4: Likewise.
62363         * modules/strstr: Likewise.
62364         * modules/strstr-tests: Likewise.
62365         * tests/test-strstr.c: Likewise.
62366         * lib/string.in.h (rpl_strstr): Declare.
62367         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
62368         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
62369         * modules/string (Makefile.am): Likewise.
62370         * MODULES.html.sh (string handling): Mention new module.
62371         * doc/functions/strstr.texi (strstr): Document the bug.
62372
62373 2008-01-10  Bruno Haible  <bruno@clisp.org>
62374
62375         * lib/relocatable.h (relocate): State whether result is freshly
62376         allocated or not.
62377         * lib/relocatable.c (relocate): Return a freshly allocated string
62378         instead of a pointer to a privately held string.
62379         Reported by Sylvain Beucler <beuc@gnu.org>.
62380
62381 2008-01-10  Colin Watson  <cjwatson@debian.org>
62382
62383         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
62384         s/S_ISNLK/S_ISLNK/.
62385
62386 2008-01-09  Bruno Haible  <bruno@clisp.org>
62387
62388         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
62389         and other files.
62390         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
62391         if it's only a guess.
62392         * modules/memmem: Simplify by depending on memmem-simple.
62393
62394 2008-01-09  Bruno Haible  <bruno@clisp.org>
62395
62396         Work around OpenBSD 4.0 tdelete() bug.
62397         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
62398         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
62399         macros and don't redefine the enum values.
62400         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
62401         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
62402         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
62403
62404 2008-01-09  Bruno Haible  <bruno@clisp.org>
62405
62406         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
62407         (main): Don't perform the tests if setlocale did not install a UTF-8
62408         locale. Needed on OpenBSD 4.0.
62409         * modules/wcwidth-tests (Depends-on): Add localcharset.
62410
62411 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
62412
62413         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
62414         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
62415         * NEWS: announce this.
62416         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
62417
62418 2008-01-09  Simon Josefsson  <simon@josefsson.org>
62419         and Eric Blake  <ebb9@byu.net>
62420
62421         Add memmem-simple module.
62422         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
62423         (gl_FUNC_MEMMEM): Separate performance from presence checks.
62424         * modules/memmem-simple: New file.
62425         * modules/memmem (Description): Tweak.
62426         * MODULES.html.sh (string handling): Mention new module.
62427         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
62428         addressed by memmem-simple.
62429         * NEWS: Document the difference.
62430
62431 2008-01-09  Eric Blake  <ebb9@byu.net>
62432
62433         Give gcc some memmem optimization hints.
62434         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
62435         (strcasestr): Declare as pure.
62436         * modules/memmem (Maintainer): Claim my implementation.
62437
62438 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62439
62440         Support AIX 6.1 and higher.
62441         * build-aux/config.libpath: Likewise.
62442         * build-aux/config.rpath: Likewise.
62443
62444 2008-01-08  Jim Meyering  <meyering@redhat.com>
62445             Bruno Haible  <bruno@clisp.org>
62446
62447         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
62448         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
62449         Reported by Peter Fales in
62450         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
62451
62452 2008-01-08  Bruno Haible  <bruno@clisp.org>
62453
62454         * modules/unictype/category-of (Depends-on): Add
62455         unictype/category-none.
62456         * modules/unictype/category-and-tests (Depends-on): Add
62457         unictype/category-{L,N,Lu,Nd}.
62458         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
62459         * modules/unictype/category-or-tests (Depends-on): Add
62460         unictype/category-{L,N}.
62461         * modules/unictype/category-name-tests (Depends-on): Add
62462         unictype/category-{Z,Nl}.
62463         Reported by Simon Josefsson.
62464
62465 2008-01-08  Bruno Haible  <bruno@clisp.org>
62466
62467         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
62468         convention better.
62469         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
62470         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
62471         Reported by Peter Miller <millerp@canb.auug.org.au>.
62472
62473 2008-01-08  Eric Blake  <ebb9@byu.net>
62474
62475         Rewrite memmem to guarantee linear complexity without malloc.
62476         * lib/memmem.c (memmem): Use Two-Way rather than
62477         Knuth-Morris-Pratt, to allow O(1) space usage.
62478         (critical_factorization, two_way_short_needle)
62479         (two_way_long_needle): New functions.
62480         (knuth_morris_pratt): Delete.
62481         * modules/memmem (Depends-on): No longer need malloca or stdbool.
62482         Add stdint.
62483         * tests/test-memmem.c (main): Add tests for periodic needle and
62484         sublinear performance.
62485         * doc/functions/memmem.texi (memmem): Document other deficiencies
62486         in cygwin and older glibc.
62487
62488 2008-01-08  Bruno Haible  <bruno@clisp.org>
62489
62490         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
62491         augmentation.
62492
62493 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
62494
62495         Add a configure time option: --disable-acl.
62496         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
62497         AC_ARG_ENABLE(acl).
62498
62499 2008-01-06  Simon Josefsson  <simon@josefsson.org>
62500
62501         * tests/test-localename.c: Don't include obsolete "setenv.h".
62502
62503         * modules/localename-tests (Depends-on): Need unsetenv.
62504
62505 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62506
62507         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
62508
62509 2008-01-06  Colin Watson  <cjwatson@debian.org>
62510
62511         * users.txt: Add man-db.
62512
62513 2008-01-07  Bruno Haible  <bruno@clisp.org>
62514
62515         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
62516         previous section name.
62517
62518 2008-01-07  Bruno Haible  <bruno@clisp.org>
62519
62520         * lib/progname.c (set_program_name): Don't strip off a leading
62521         "lt-" prefix outside a .libs directory.
62522         Suggested by Paul Eggert.
62523
62524 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
62525             Bruno Haible  <bruno@clisp.org>
62526
62527         Improve memory cleanup in 'relocatable' module.
62528         * lib/relocatable.h (compute_curr_prefix): Change return type to
62529         'char *'.
62530         * lib/relocatable.c (compute_curr_prefix): Change return type to
62531         'char *'. Free curr_installdir after use.
62532         (relocate): Free curr_prefix_better after use.
62533         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
62534
62535 2008-01-01  Bruno Haible  <bruno@clisp.org>
62536
62537         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
62538         failure on older glibc systems.
62539         Reported by Peter Fales <psfales@alcatel-lucent.com>.
62540
62541 2008-01-05  Eric Blake  <ebb9@byu.net>
62542
62543         Avoid quadratic system memmem.
62544         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
62545         Reported by Ralf Wildenhues.
62546
62547         Fix memmem test for mingw.
62548         * modules/memmem-tests (configure.ac): Check for alarm.
62549         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
62550         it.
62551         * doc/functions/memmem.texi: New file.
62552         * doc/gnulib.texi (Function Substitutes): Add memmem.
62553         Reported by Bruno Haible.
62554
62555 2008-01-04  Bruno Haible  <bruno@clisp.org>
62556
62557         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
62558         Require gl_HEADER_STRINGS_H_DEFAULTS, not
62559         gl_HEADER_STRING_H_DEFAULTS.
62560
62561 2008-01-04  Eric Blake  <ebb9@byu.net>
62562
62563         Shorten duration of memmem test.
62564         * tests/test-memmem.c (main): Use alarm to declare failure if test
62565         is taking too long.
62566         Reported by Ralf Wildenhues.
62567
62568 2007-12-21  Simon Josefsson  <simon@josefsson.org>
62569
62570         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
62571         string, needed by strerror.
62572
62573 2008-01-03  Colin Watson  <cjwatson@debian.org>
62574             Bruno Haible  <bruno@clisp.org>
62575
62576         * doc/gnulib-tool.texi (Localization): New section.
62577
62578 2008-01-02  Bruno Haible  <bruno@clisp.org>
62579
62580         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
62581         variables to 'unsigned char *' type.
62582         Reported by Paul Eggert.
62583
62584 2008-01-02  Jim Meyering  <jim@meyering.net>
62585
62586         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
62587
62588 2007-12-31  Jim Meyering  <jim@meyering.net>
62589
62590         Avoid use of private FTS type name.
62591         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
62592
62593 2007-12-30  Karl Berry  <karl@gnu.org>
62594
62595         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
62596         work around defect in Texinfo and/or the standalone Info browser.
62597
62598 2007-12-30  Bruno Haible  <bruno@clisp.org>
62599
62600         Unify 5 copies of the KMP code.
62601         * lib/str-kmp.h: New file.
62602         * lib/c-strcasestr.c: Include str-kmp.h.
62603         (knuth_morris_pratt): Remove function.
62604         (c_strcasestr): Update.
62605         * lib/c-strstr.c: Include str-kmp.h.
62606         (knuth_morris_pratt): Remove function.
62607         (c_strcasestr): Update.
62608         * lib/mbscasestr.c: Include str-kmp.h.
62609         (knuth_morris_pratt_unibyte): Remove function.
62610         * lib/mbsstr.c: Include str-kmp.h.
62611         (knuth_morris_pratt_unibyte): Remove function.
62612         * lib/strcasestr.c: Include str-kmp.h.
62613         (knuth_morris_pratt): Remove function.
62614         (strcasestr): Update.
62615         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
62616         * modules/c-strstr (Files): Likewise.
62617         * modules/mbscasestr (Files): Likewise.
62618         * modules/mbsstr (Files): Likewise.
62619         * modules/strcasestr (Files): Likewise.
62620         Suggested by Paul Eggert.
62621
62622 2007-12-30  Bruno Haible  <bruno@clisp.org>
62623
62624         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
62625         defined.
62626
62627 2007-12-30  Bruno Haible  <bruno@clisp.org>
62628
62629         * lib/xmalloca.h: Include xalloc.h.
62630         (xnmalloca): New macro.
62631
62632 2007-12-30  Bruno Haible  <bruno@clisp.org>
62633
62634         * lib/malloca.h (nmalloca): New macro.
62635         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
62636         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
62637         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
62638         knuth_morris_pratt_multibyte): Likewise.
62639         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
62640         knuth_morris_pratt_multibyte): Likewise.
62641         * lib/memmem.c (knuth_morris_pratt): Likewise.
62642         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
62643
62644 2007-12-25  Bruno Haible  <bruno@clisp.org>
62645
62646         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
62647         * lib/glob.c: Don't include openat.h.
62648         (link_exists2_p): Add back the code that deals with the
62649         !GLOB_ALTDIRFUNC case.
62650         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
62651         let it do the filename concatenation.
62652         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
62653         * modules/glob (Depends-on): Remove openat.
62654
62655 2007-12-31  Bruno Haible  <bruno@clisp.org>
62656
62657         * modules/dirfd (License): Change to LGPLv2+.
62658         Approved by Jim Meyering.
62659
62660 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
62661
62662         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
62663         when multiplying M by sizeof (size_t).
62664
62665 2007-12-10  Martin Lambers  <marlam@marlam.de>
62666
62667         Override getpagesize on mingw.
62668         * lib/getpagesize.c: New file.
62669         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
62670         * modules/getpagesize (Files): Add lib/getpagesize.c.
62671         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
62672         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
62673         REPLACE_GETPAGESIZE.
62674         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
62675
62676 2007-12-25  Bruno Haible  <bruno@clisp.org>
62677
62678         * modules/localcharset (Notice): New field.
62679         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
62680         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
62681
62682 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
62683             Bruno Haible  <bruno@clisp.org>
62684
62685         Avoid using the syntax symbol() in formatted documentation.
62686         * MODULES.html.sh (func_module): When replacing symbol() with a
62687         hyperlink, remove the parentheses. Show an error if some remain.
62688         Recognize and render the '...' syntax.
62689         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
62690         Rework. Add paragraph about GCC's inlining.
62691         * doc/alloca.texi: Likewise.
62692         * doc/error.texi: Remove parentheses from symbol reference.
62693         * doc/gnulib-intro.texi: Likewise.
62694         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
62695         * modules/fnmatch (Description): Reword to say "the ... function".
62696         * modules/full-read (Description): Likewise.
62697         * modules/full-write (Description): Likewise.
62698         * modules/safe-read (Description): Likewise.
62699         * modules/safe-write (Description): Likewise.
62700         * modules/strchrnul (Description): Likewise.
62701         * modules/trim (Description): Likewise.
62702         * modules/error (Description): Remove parentheses from symbol
62703         references.
62704         * modules/verror (Description): Likewise.
62705         Reported by Karl Berry.
62706
62707 2007-12-25  Bruno Haible  <bruno@clisp.org>
62708
62709         Fixup after 2007-10-16 commit.
62710         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
62711
62712 2007-12-24  Bruno Haible  <bruno@clisp.org>
62713
62714         Make --enable-relocatable work with DESTDIR.
62715         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
62716         to compute installdir from destprog.
62717         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
62718         also set the RELOC_DESTDIR variable.
62719         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
62720
62721 2007-12-24  Bruno Haible  <bruno@clisp.org>
62722
62723         Fix link error due to xalloc_die().
62724         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
62725         of xreadlink.
62726         * lib/relocwrapper.c: Update comments.
62727         * build-aux/install-reloc: Remove xreadlink.c from file list.
62728         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
62729         xreadlink.c.
62730         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
62731
62732 2007-12-24  Bruno Haible  <bruno@clisp.org>
62733
62734         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
62735         * lib/setenv.h: Remove file.
62736         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
62737         lib/setenv.h.
62738         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
62739         (Depends-on): Add stdlib.
62740         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
62741         gl_FUNC_UNSETENV.
62742         (Include): Replace setenv.h with <stdlib.h>.
62743         * modules/unsetenv: New file.
62744         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
62745         * lib/unsetenv.c: Include <stdlib.h> first.
62746         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
62747         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
62748         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
62749         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
62750         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
62751         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
62752         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
62753         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
62754         * doc/functions/unsetenv.texi: Update.
62755         * modules/xsetenv (Depends-on): Add unsetenv.
62756         * modules/getdate (Depends-on): Likewise.
62757         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
62758         * lib/xsetenv.c: Don't include setenv.h.
62759         * lib/getdate.y: Likewise.
62760         * lib/relocwrapper.c: Likewise.
62761         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
62762         (Depends-on): Add stdlib.
62763         * NEWS: Mention the changes.
62764         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
62765
62766 2007-12-23  Bruno Haible  <bruno@clisp.org>
62767
62768         * lib/memmem.c (memmem): Use lowercase variable names. Tab
62769         indentation.
62770
62771 2007-12-23  Bruno Haible  <bruno@clisp.org>
62772
62773         * lib/c-strcasestr.c: Add more comments.
62774         * lib/c-strstr.c: Likewise.
62775         * lib/mbscasestr.c: Likewise.
62776         * lib/mbsstr.c: Likewise.
62777         * lib/strcasestr.c: Likewise.
62778         * lib/memmem.c: Likewise.
62779
62780 2007-12-23  Bruno Haible  <bruno@clisp.org>
62781
62782         * tests/test-memmem.c: Include <string.h> first.
62783
62784 2007-12-22  Bruno Haible  <bruno@clisp.org>
62785
62786         * gnulib-tool (func_create_testdir): Change $auxdir while generating
62787         the contents of $testsbase.
62788         Reported by Ralf Wildenhues.
62789
62790 2007-12-22  Bruno Haible  <bruno@clisp.org>
62791
62792         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
62793         two variables local_ldadd_before, local_ldadd_last.
62794
62795 2007-12-20  Eric Blake  <ebb9@byu.net>
62796
62797         Work around circular library issue when cross-compiling.
62798         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
62799         that progname.o does not need to pull in rpl_memcmp.
62800
62801 2007-12-19  Eric Blake  <ebb9@byu.net>
62802
62803         Fix memmem to avoid O(n^2) worst-case complexity.
62804         * lib/memmem.c (knuth_morris_pratt): New function.
62805         (memmem): Use it if first few naive iterations fail.
62806         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
62807         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
62808         * modules/memchr (License): Likewise.
62809         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
62810         malloca.
62811         * tests/test-memmem.c: Rewrite, borrowing ideas from
62812         test-mbsstr1.c; the old version wouldn't even compile!
62813         * modules/memmem-tests: New file.
62814         * lib/string.in.h (rpl_memmem): Add declaration.
62815         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
62816         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
62817         REPLACE_MEMMEM.
62818
62819 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
62820
62821         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
62822         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
62823         before any system include files, and undef after them all.  This
62824         should fix a problem on VMS reported by John E. Malmberg in
62825         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
62826
62827 2007-12-17  Eric Blake  <ebb9@byu.net>
62828
62829         Revert addition of verify, for BSD/OS.
62830         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
62831         can't handle large files, for the sake of obsolete platforms.
62832         * modules/fseeko (Depends-on): Remove verify.
62833         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
62834         * doc/functions/ftello.texi (ftello): Likewise.
62835         * doc/functions/fgetpos.texi (fgetpos): Likewise.
62836         Reported by Larry Jones.
62837
62838 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
62839
62840         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
62841         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
62842
62843 2007-12-17  Jim Meyering  <meyering@redhat.com>
62844
62845         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
62846         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
62847         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
62848         * modules/getcwd (Depends-on): Add openat.
62849         Reported by Petr Salinger.
62850
62851 2007-12-17  Bruno Haible  <bruno@clisp.org>
62852
62853         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
62854         avoid a segmentation fault of the configure test on x86_64 systems.
62855
62856 2007-12-15  Jim Meyering  <meyering@redhat.com>
62857
62858         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
62859
62860 2007-12-13  Eric Blake  <ebb9@byu.net>
62861
62862         Another fseek test.
62863         * tests/test-fseek.c (main): Also test ungetc handling.
62864         * tests/test-fseeko.c (main): Likewise.
62865         * modules/fseeko (Depends-on): Add verify.
62866         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
62867         large.
62868         Reported by Larry Jones.
62869
62870         Fix fseeko on mingw.
62871         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
62872         seek.
62873
62874         Beef up fseek tests.
62875         * tests/test-fseek.c (main): Also test eof handling.
62876         * tests/test-fseeko.c (main): Likewise.
62877         Reported by Larry Jones.
62878
62879 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
62880
62881         Fix fseeko on BSD-based platforms.
62882         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
62883         successful seek.
62884
62885 2007-12-12  Eric Blake  <ebb9@byu.net>
62886
62887         Allow circular dependency of separate libtests.a
62888         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
62889         when use_libtests.
62890
62891 2007-12-11  Eric Blake  <ebb9@byu.net>
62892
62893         Fix bug with -0.0L in previous patch.
62894         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
62895         * tests/test-isnan.c (main): Also test on zeroes.
62896         * tests/test-isnanf.c (main): Likewise.
62897         * tests/test-isnanl.h (main): Likewise.
62898
62899         Detect pseudo-denormals on x86 even when cross-compiling.
62900         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
62901         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
62902         invalid bit patterns that happen to satisfy ==.
62903
62904         Avoid link failures with separate libtests.a.
62905         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
62906         last, to satisfy circular dependencies.
62907
62908 2007-12-11  Eric Blake  <ebb9@byu.net>
62909         and Bruno Haible  <bruno@clisp.org>
62910
62911         Fix OpenBSD 4.0 <float.h> handling of long double.
62912         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
62913         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
62914         * doc/headers/float.texi (float.h): Document OpenBSD bug.
62915
62916 2007-12-11  Jim Meyering  <meyering@redhat.com>
62917
62918         * users.txt: Add libvirt.
62919
62920         Support versions of autoconf prior to 2.59c.
62921         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
62922         if it is not already defined.
62923
62924 2007-12-09  Bruno Haible  <bruno@clisp.org>
62925
62926         Let 'gnulib-tool --import' collect sources needed for the tests in
62927         tests/ rather than in lib/.
62928         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
62929         argument. If true, add rules to generate libtests.a, and put libtests.a
62930         into $(LDADD). Consider source files in subdirectories and set
62931         uses_subdirs.
62932         (func_emit_initmacro_start, func_emit_initmacro_end,
62933         func_emit_initmacro_done): Pass all arguments explicitly.
62934         (func_import): Determine two module lists main_modules,
62935         testsrelated_modules. Determine use_libtests. Determine two variables
62936         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
62937         instead of just sed_transform_lib_file. Determine two variables
62938         main_files and testsrelated_files. Compute 'files' as the union of
62939         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
62940         func_add_or_update. In the generated gnulib-comp.m4, collect the
62941         object files for tests/ in different variables than those for lib/.
62942         Substitute LIBTESTS_LIBDEPS.
62943         (func_create_testdir): Combine the uses_subdirs results from
62944         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
62945
62946 2007-12-09  Bruno Haible  <bruno@clisp.org>
62947
62948         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
62949         the build-aux directory.
62950
62951 2007-12-09  Bruno Haible  <bruno@clisp.org>
62952
62953         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
62954         introduced on 2006-09-09.
62955
62956 2007-12-07  Jim Meyering  <meyering@redhat.com>
62957
62958         Let these macros work also with autoconf-2.59.
62959         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
62960         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
62961         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
62962
62963 2007-12-06  Jim Meyering  <meyering@redhat.com>
62964
62965         Avoid a configure-time syntax error in gl_FUNC_ACL.
62966         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
62967         function in each branch, before testing the cache variable.
62968
62969 2007-12-04  Eric Blake  <ebb9@byu.net>
62970
62971         Make scripts executable.
62972         * build-aux/config.guess: Add execute permissions.
62973         * build-aux/config.sub: Likewise.
62974         * build-aux/gendocs.sh: Likewise.
62975
62976         Fix frexp on mingw.
62977         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
62978         cross-compiling.
62979         * doc/functions/frexp.texi (frexp): Document the bug.
62980
62981         Make cygwin fseeko check more reliable.
62982         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
62983         version numbers, rather than unrelated feature check.
62984         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
62985         * doc/functions/ftello.texi (ftello): Likewise.
62986         Reported by Bruno Haible.
62987
62988         * m4/strerror.m4: Bump version number.
62989
62990 2007-12-03  Bruno Haible  <bruno@clisp.org>
62991
62992         * doc/functions/mprotect.texi: Mention the mingw problem.
62993
62994 2007-12-03  Eric Blake  <ebb9@byu.net>
62995
62996         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
62997         REPLACE_STRERROR is initialized before this macro.
62998
62999 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
63000
63001         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
63002         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
63003         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
63004         put -lsec in even for programs other than 'ls'.  This fixes a problem
63005         for gettext reported by Bruno Haible in
63006         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
63007         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
63008         Add support for Solaris 10.  This isn't efficient, but should get the
63009         job done for now.
63010
63011 2007-12-03  James Youngman  <jay@gnu.org>
63012
63013         * doc/regexprops-generic.texi: change "an close-group" to "a
63014         close-group" and "illegal" to "not allowed".
63015
63016 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63017
63018         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
63019         pr_byname.h. Needed for the rare case when the maintainer has done
63020         "make maintainer-clean" in the source directory and then attempts a
63021         build outside the source directory.
63022         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
63023         scripts_byname.h.
63024
63025 2007-12-02  Martin Lambers <marlam@marlam.de>
63026             Bruno Haible  <bruno@clisp.org>
63027
63028         * lib/getpagesize.h: Remove file.
63029         * lib/unistd.in.h: Include declaration of getpagesize here.
63030         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
63031         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
63032         HAVE_SYS_PARAM_H.
63033         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
63034         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
63035         * modules/getpagesize (Files): Remove lib/getpagesize.h.
63036         (Depends-on): Add unistd.
63037         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
63038         (Include): Use <unistd.h> instead of getpagesize.h.
63039         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
63040         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
63041         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
63042         gl_GETPAGESIZE invocation, already handled by module dependency.
63043         * lib/pagealign_alloc.c: Don't include getpagesize.h.
63044
63045 2007-12-02  Bruno Haible  <bruno@clisp.org>
63046
63047         * modules/strings-tests: New file.
63048         * tests/test-strings.c: New file.
63049
63050         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
63051         * lib/strings.in.h: New file.
63052         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
63053         * m4/strings_h.m4: New file.
63054         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
63055         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
63056         * modules/strings: New file.
63057         * modules/string (Makefile.am): Update.
63058         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
63059         Reported by Karl Berry.
63060
63061 2007-12-01  Eric Blake  <ebb9@byu.net>
63062
63063         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
63064         accommodate fix in cygwin 1.5.25.
63065
63066 2007-12-01  Jim Meyering  <meyering@redhat.com>
63067
63068         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
63069         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
63070         that would inhibit utf8-optimization of a regexp containing line-
63071         or buffer-anchors, e.g., `^', `$'.
63072
63073 2007-11-30  Bruno Haible  <bruno@clisp.org>
63074
63075         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
63076         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
63077         glthread_recursive_lock_init.
63078         * lib/lock.c (glthread_recursive_lock_init)
63079         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
63080         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
63081
63082 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
63083
63084         New function qset_acl, like set_acl but with syscall semantics.
63085         * lib/acl.h (qset_acl): New decl.
63086         * lib/acl.c (qset_acl): New function.
63087         (set_acl): Use new function.  Use more-consistent diagnostics.
63088
63089 2007-11-28  Jim Meyering  <meyering@redhat.com>
63090
63091         * modules/physmem (License): Change from GPL to LGPLv2+.
63092
63093 2007-11-26  Bruno Haible  <bruno@clisp.org>
63094
63095         * lib/vasnprintf.c (decode_long_double): Don't abort if the
63096         'long double' type has excess precision.
63097         Reported by Jim Meyering in
63098         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
63099
63100 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63101
63102         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
63103         Sync from <http://gnu.org/licenses>.
63104         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
63105         with license text from same location.
63106         * doc/maintain.texi, doc/standards.texi:  Sync from
63107         <http://savannah.gnu.org/projects/gnustandards>.
63108
63109 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
63110         and Jim Meyering  <meyering@redhat.com>
63111
63112         Adjust getdate' grammar to accept a slightly more regular language.
63113         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
63114         Before, the former was rejected.
63115         * lib/getdate.y (digits_to_date_time): New function, factored
63116         out of ...
63117         (number): ...here.  Just call digits_to_date_time.
63118         (hybrid): New non-terminal to handle an <unsigned number,
63119         signed relative offset> sequence consistently.
63120
63121 2007-11-18  Jim Meyering  <meyering@redhat.com>
63122
63123         Pull my changes from coreutils:
63124         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
63125         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
63126         use of $gnulib_tool_option_extras, so that it's separated from the
63127         preceding argument.
63128
63129         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
63130         * build-aux/bootstrap (cp_mark_as_generated): Create any required
63131         parent destination directories before copying a file into place.
63132
63133 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
63134
63135         bootstrap: work also with 4-argument variant of AC_INIT
63136         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
63137
63138 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
63139
63140         Port test-getaddrinfo to Solaris.
63141         Problem reported by Bruno Haible in
63142         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
63143         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
63144         explanation of setting 'hints'.
63145         Don't reject an implementation merely because it returns EAI_SERVICE.
63146         (EAI_SERVICE): Define to 0 if not defined.
63147
63148 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
63149
63150         The license of gnu-make and posix-shell is now "GPLed build tool".
63151         * modules/gnu-make (License): Likewise.
63152         * modules/posix-shell (License): Likewise.
63153
63154         New module posix-shell, for determining a POSIX shell
63155         or perhaps something that is close enough to a POSIX shell.
63156         * m4/posix-shell.m4: New file.
63157         * modules/posix-shell: New file.
63158
63159         * MODULES.html.sh: Mention new module.
63160
63161         New module gnu-make, for determining whether we're using GNU Make.
63162         * m4/gnu-make.m4: New file.
63163         * modules/gnu-make: New file.
63164         * MODULES.html.sh: Mention new module.
63165
63166 2007-11-14  Jim Meyering  <meyering@redhat.com>
63167
63168         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
63169         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
63170         use this macro to create a function _definition_.
63171         Remove useless "#undef ARGMATCH_DIE".
63172
63173 2007-11-14  Bruno Haible  <bruno@clisp.org>
63174
63175         * lib/config.charset: Update for OpenBSD 4.1.
63176         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
63177
63178 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
63179
63180         Document 64-bit #if problems in stdint.texi.
63181         * doc/headers/stdint.texi (stdint.h): Mention problems with
63182         64-bit-#if, and how to work around them.
63183
63184         Don't insist on 'long long int' support in the preprocessor.  It
63185         breaks too many things.  For example, PRIdMAX still uses a 'long
63186         long int' format with the latest Sun compiler, even though
63187         HAVE_LONG_LONG_INT isn't defined due to that compiler's
63188         preprocessor problem.  This causes the latest coreutils to dump
63189         core on Solaris 10 sparc with the Sun C compiler.
63190         Instead, fix the 2007-10-16 problem in a different way, by evaluating
63191         the troublesome expressions at configure-time, not at #if-time.
63192         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
63193         preprocessor.
63194         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
63195         compile-time C checks, done at 'configure'-time.
63196         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
63197         * modules/inttypes (Makefile): Substitute the new symbols that
63198         gl_INTTYPES_H now generates.
63199         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
63200
63201 2007-11-12  Bruno Haible  <bruno@clisp.org>
63202
63203         Tests for Unicode character classification functions.
63204
63205         * modules/unictype/bidicategory-byname-tests: New file.
63206         * modules/unictype/bidicategory-name-tests: New file.
63207         * modules/unictype/bidicategory-of-tests: New file.
63208         * modules/unictype/bidicategory-test-tests: New file.
63209         * modules/unictype/block-list-tests: New file.
63210         * modules/unictype/block-of-tests: New file.
63211         * modules/unictype/block-test-tests: New file.
63212         * modules/unictype/category-C-tests: New file.
63213         * modules/unictype/category-Cc-tests: New file.
63214         * modules/unictype/category-Cf-tests: New file.
63215         * modules/unictype/category-Cn-tests: New file.
63216         * modules/unictype/category-Co-tests: New file.
63217         * modules/unictype/category-Cs-tests: New file.
63218         * modules/unictype/category-L-tests: New file.
63219         * modules/unictype/category-Ll-tests: New file.
63220         * modules/unictype/category-Lm-tests: New file.
63221         * modules/unictype/category-Lo-tests: New file.
63222         * modules/unictype/category-Lt-tests: New file.
63223         * modules/unictype/category-Lu-tests: New file.
63224         * modules/unictype/category-M-tests: New file.
63225         * modules/unictype/category-Mc-tests: New file.
63226         * modules/unictype/category-Me-tests: New file.
63227         * modules/unictype/category-Mn-tests: New file.
63228         * modules/unictype/category-N-tests: New file.
63229         * modules/unictype/category-Nd-tests: New file.
63230         * modules/unictype/category-Nl-tests: New file.
63231         * modules/unictype/category-No-tests: New file.
63232         * modules/unictype/category-P-tests: New file.
63233         * modules/unictype/category-Pc-tests: New file.
63234         * modules/unictype/category-Pd-tests: New file.
63235         * modules/unictype/category-Pe-tests: New file.
63236         * modules/unictype/category-Pf-tests: New file.
63237         * modules/unictype/category-Pi-tests: New file.
63238         * modules/unictype/category-Po-tests: New file.
63239         * modules/unictype/category-Ps-tests: New file.
63240         * modules/unictype/category-S-tests: New file.
63241         * modules/unictype/category-Sc-tests: New file.
63242         * modules/unictype/category-Sk-tests: New file.
63243         * modules/unictype/category-Sm-tests: New file.
63244         * modules/unictype/category-So-tests: New file.
63245         * modules/unictype/category-Z-tests: New file.
63246         * modules/unictype/category-Zl-tests: New file.
63247         * modules/unictype/category-Zp-tests: New file.
63248         * modules/unictype/category-Zs-tests: New file.
63249         * modules/unictype/category-and-not-tests: New file.
63250         * modules/unictype/category-and-tests: New file.
63251         * modules/unictype/category-byname-tests: New file.
63252         * modules/unictype/category-name-tests: New file.
63253         * modules/unictype/category-none-tests: New file.
63254         * modules/unictype/category-of-tests: New file.
63255         * modules/unictype/category-or-tests: New file.
63256         * modules/unictype/category-test-withtable-tests: New file.
63257         * modules/unictype/combining-class-tests: New file.
63258         * modules/unictype/ctype-alnum-tests: New file.
63259         * modules/unictype/ctype-alpha-tests: New file.
63260         * modules/unictype/ctype-blank-tests: New file.
63261         * modules/unictype/ctype-cntrl-tests: New file.
63262         * modules/unictype/ctype-digit-tests: New file.
63263         * modules/unictype/ctype-graph-tests: New file.
63264         * modules/unictype/ctype-lower-tests: New file.
63265         * modules/unictype/ctype-print-tests: New file.
63266         * modules/unictype/ctype-punct-tests: New file.
63267         * modules/unictype/ctype-space-tests: New file.
63268         * modules/unictype/ctype-upper-tests: New file.
63269         * modules/unictype/ctype-xdigit-tests: New file.
63270         * modules/unictype/decimal-digit-tests: New file.
63271         * modules/unictype/digit-tests: New file.
63272         * modules/unictype/mirror-tests: New file.
63273         * modules/unictype/numeric-tests: New file.
63274         * modules/unictype/property-alphabetic-tests: New file.
63275         * modules/unictype/property-ascii-hex-digit-tests: New file.
63276         * modules/unictype/property-bidi-arabic-digit-tests: New file.
63277         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
63278         * modules/unictype/property-bidi-block-separator-tests: New file.
63279         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
63280         * modules/unictype/property-bidi-common-separator-tests: New file.
63281         * modules/unictype/property-bidi-control-tests: New file.
63282         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
63283         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
63284         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
63285         * modules/unictype/property-bidi-european-digit-tests: New file.
63286         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
63287         * modules/unictype/property-bidi-left-to-right-tests: New file.
63288         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
63289         * modules/unictype/property-bidi-other-neutral-tests: New file.
63290         * modules/unictype/property-bidi-pdf-tests: New file.
63291         * modules/unictype/property-bidi-segment-separator-tests: New file.
63292         * modules/unictype/property-bidi-whitespace-tests: New file.
63293         * modules/unictype/property-byname-tests: New file.
63294         * modules/unictype/property-combining-tests: New file.
63295         * modules/unictype/property-composite-tests: New file.
63296         * modules/unictype/property-currency-symbol-tests: New file.
63297         * modules/unictype/property-dash-tests: New file.
63298         * modules/unictype/property-decimal-digit-tests: New file.
63299         * modules/unictype/property-default-ignorable-code-point-tests: New file.
63300         * modules/unictype/property-deprecated-tests: New file.
63301         * modules/unictype/property-diacritic-tests: New file.
63302         * modules/unictype/property-extender-tests: New file.
63303         * modules/unictype/property-format-control-tests: New file.
63304         * modules/unictype/property-grapheme-base-tests: New file.
63305         * modules/unictype/property-grapheme-extend-tests: New file.
63306         * modules/unictype/property-grapheme-link-tests: New file.
63307         * modules/unictype/property-hex-digit-tests: New file.
63308         * modules/unictype/property-hyphen-tests: New file.
63309         * modules/unictype/property-id-continue-tests: New file.
63310         * modules/unictype/property-id-start-tests: New file.
63311         * modules/unictype/property-ideographic-tests: New file.
63312         * modules/unictype/property-ids-binary-operator-tests: New file.
63313         * modules/unictype/property-ids-trinary-operator-tests: New file.
63314         * modules/unictype/property-ignorable-control-tests: New file.
63315         * modules/unictype/property-iso-control-tests: New file.
63316         * modules/unictype/property-join-control-tests: New file.
63317         * modules/unictype/property-left-of-pair-tests: New file.
63318         * modules/unictype/property-line-separator-tests: New file.
63319         * modules/unictype/property-logical-order-exception-tests: New file.
63320         * modules/unictype/property-lowercase-tests: New file.
63321         * modules/unictype/property-math-tests: New file.
63322         * modules/unictype/property-non-break-tests: New file.
63323         * modules/unictype/property-not-a-character-tests: New file.
63324         * modules/unictype/property-numeric-tests: New file.
63325         * modules/unictype/property-other-alphabetic-tests: New file.
63326         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
63327         * modules/unictype/property-other-grapheme-extend-tests: New file.
63328         * modules/unictype/property-other-id-continue-tests: New file.
63329         * modules/unictype/property-other-id-start-tests: New file.
63330         * modules/unictype/property-other-lowercase-tests: New file.
63331         * modules/unictype/property-other-math-tests: New file.
63332         * modules/unictype/property-other-uppercase-tests: New file.
63333         * modules/unictype/property-paired-punctuation-tests: New file.
63334         * modules/unictype/property-paragraph-separator-tests: New file.
63335         * modules/unictype/property-pattern-syntax-tests: New file.
63336         * modules/unictype/property-pattern-white-space-tests: New file.
63337         * modules/unictype/property-private-use-tests: New file.
63338         * modules/unictype/property-punctuation-tests: New file.
63339         * modules/unictype/property-quotation-mark-tests: New file.
63340         * modules/unictype/property-radical-tests: New file.
63341         * modules/unictype/property-sentence-terminal-tests: New file.
63342         * modules/unictype/property-soft-dotted-tests: New file.
63343         * modules/unictype/property-space-tests: New file.
63344         * modules/unictype/property-terminal-punctuation-tests: New file.
63345         * modules/unictype/property-test-tests: New file.
63346         * modules/unictype/property-titlecase-tests: New file.
63347         * modules/unictype/property-unassigned-code-value-tests: New file.
63348         * modules/unictype/property-unified-ideograph-tests: New file.
63349         * modules/unictype/property-uppercase-tests: New file.
63350         * modules/unictype/property-variation-selector-tests: New file.
63351         * modules/unictype/property-white-space-tests: New file.
63352         * modules/unictype/property-xid-continue-tests: New file.
63353         * modules/unictype/property-xid-start-tests: New file.
63354         * modules/unictype/property-zero-width-tests: New file.
63355         * modules/unictype/scripts-tests: New file.
63356         * modules/unictype/syntax-c-ident-tests: New file.
63357         * modules/unictype/syntax-c-whitespace-tests: New file.
63358         * modules/unictype/syntax-java-ident-tests: New file.
63359         * modules/unictype/syntax-java-whitespace-tests: New file.
63360         * tests/unictype/test-bidi_byname.c: New file.
63361         * tests/unictype/test-bidi_name.c: New file.
63362         * tests/unictype/test-bidi_of.c: New file.
63363         * tests/unictype/test-bidi_test.c: New file.
63364         * tests/unictype/test-block_list.c: New file.
63365         * tests/unictype/test-block_of.c: New file.
63366         * tests/unictype/test-block_test.c: New file.
63367         * tests/unictype/test-categ_and.c: New file.
63368         * tests/unictype/test-categ_and_not.c: New file.
63369         * tests/unictype/test-categ_byname.c: New file.
63370         * tests/unictype/test-categ_name.c: New file.
63371         * tests/unictype/test-categ_none.c: New file.
63372         * tests/unictype/test-categ_of.c: New file.
63373         * tests/unictype/test-categ_or.c: New file.
63374         * tests/unictype/test-categ_test_withtable.c: New file.
63375         * tests/unictype/test-combining.c: New file.
63376         * tests/unictype/test-decdigit.c: New file.
63377         * tests/unictype/test-digit.c: New file.
63378         * tests/unictype/test-mirror.c: New file.
63379         * tests/unictype/test-numeric.c: New file.
63380         * tests/unictype/test-pr_byname.c: New file.
63381         * tests/unictype/test-pr_test.c: New file.
63382         * tests/unictype/test-predicate-part1.h: New file.
63383         * tests/unictype/test-predicate-part2.h: New file.
63384         * tests/unictype/test-scripts.c: New file.
63385         * tests/unictype/test-sy_c_ident.c: New file.
63386         * tests/unictype/test-sy_java_ident.c: New file.
63387
63388         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
63389         for Unicode 5.0.0.
63390         * tests/unictype/test-categ_Cc.c: Likewise.
63391         * tests/unictype/test-categ_Cf.c: Likewise.
63392         * tests/unictype/test-categ_Cn.c: Likewise.
63393         * tests/unictype/test-categ_Co.c: Likewise.
63394         * tests/unictype/test-categ_Cs.c: Likewise.
63395         * tests/unictype/test-categ_L.c: Likewise.
63396         * tests/unictype/test-categ_Ll.c: Likewise.
63397         * tests/unictype/test-categ_Lm.c: Likewise.
63398         * tests/unictype/test-categ_Lo.c: Likewise.
63399         * tests/unictype/test-categ_Lt.c: Likewise.
63400         * tests/unictype/test-categ_Lu.c: Likewise.
63401         * tests/unictype/test-categ_M.c: Likewise.
63402         * tests/unictype/test-categ_Mc.c: Likewise.
63403         * tests/unictype/test-categ_Me.c: Likewise.
63404         * tests/unictype/test-categ_Mn.c: Likewise.
63405         * tests/unictype/test-categ_N.c: Likewise.
63406         * tests/unictype/test-categ_Nd.c: Likewise.
63407         * tests/unictype/test-categ_Nl.c: Likewise.
63408         * tests/unictype/test-categ_No.c: Likewise.
63409         * tests/unictype/test-categ_P.c: Likewise.
63410         * tests/unictype/test-categ_Pc.c: Likewise.
63411         * tests/unictype/test-categ_Pd.c: Likewise.
63412         * tests/unictype/test-categ_Pe.c: Likewise.
63413         * tests/unictype/test-categ_Pf.c: Likewise.
63414         * tests/unictype/test-categ_Pi.c: Likewise.
63415         * tests/unictype/test-categ_Po.c: Likewise.
63416         * tests/unictype/test-categ_Ps.c: Likewise.
63417         * tests/unictype/test-categ_S.c: Likewise.
63418         * tests/unictype/test-categ_Sc.c: Likewise.
63419         * tests/unictype/test-categ_Sk.c: Likewise.
63420         * tests/unictype/test-categ_Sm.c: Likewise.
63421         * tests/unictype/test-categ_So.c: Likewise.
63422         * tests/unictype/test-categ_Z.c: Likewise.
63423         * tests/unictype/test-categ_Zl.c: Likewise.
63424         * tests/unictype/test-categ_Zp.c: Likewise.
63425         * tests/unictype/test-categ_Zs.c: Likewise.
63426         * tests/unictype/test-ctype_alnum.c: Likewise.
63427         * tests/unictype/test-ctype_alpha.c: Likewise.
63428         * tests/unictype/test-ctype_blank.c: Likewise.
63429         * tests/unictype/test-ctype_cntrl.c: Likewise.
63430         * tests/unictype/test-ctype_digit.c: Likewise.
63431         * tests/unictype/test-ctype_graph.c: Likewise.
63432         * tests/unictype/test-ctype_lower.c: Likewise.
63433         * tests/unictype/test-ctype_print.c: Likewise.
63434         * tests/unictype/test-ctype_punct.c: Likewise.
63435         * tests/unictype/test-ctype_space.c: Likewise.
63436         * tests/unictype/test-ctype_upper.c: Likewise.
63437         * tests/unictype/test-ctype_xdigit.c: Likewise.
63438         * tests/unictype/test-decdigit.h: Likewise.
63439         * tests/unictype/test-digit.h: Likewise.
63440         * tests/unictype/test-numeric.h: Likewise.
63441         * tests/unictype/test-pr_alphabetic.c: Likewise.
63442         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
63443         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
63444         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
63445         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
63446         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
63447         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
63448         * tests/unictype/test-pr_bidi_control.c: Likewise.
63449         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
63450         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
63451         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
63452         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
63453         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
63454         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
63455         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
63456         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
63457         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
63458         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
63459         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
63460         * tests/unictype/test-pr_combining.c: Likewise.
63461         * tests/unictype/test-pr_composite.c: Likewise.
63462         * tests/unictype/test-pr_currency_symbol.c: Likewise.
63463         * tests/unictype/test-pr_dash.c: Likewise.
63464         * tests/unictype/test-pr_decimal_digit.c: Likewise.
63465         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
63466         * tests/unictype/test-pr_deprecated.c: Likewise.
63467         * tests/unictype/test-pr_diacritic.c: Likewise.
63468         * tests/unictype/test-pr_extender.c: Likewise.
63469         * tests/unictype/test-pr_format_control.c: Likewise.
63470         * tests/unictype/test-pr_grapheme_base.c: Likewise.
63471         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
63472         * tests/unictype/test-pr_grapheme_link.c: Likewise.
63473         * tests/unictype/test-pr_hex_digit.c: Likewise.
63474         * tests/unictype/test-pr_hyphen.c: Likewise.
63475         * tests/unictype/test-pr_id_continue.c: Likewise.
63476         * tests/unictype/test-pr_id_start.c: Likewise.
63477         * tests/unictype/test-pr_ideographic.c: Likewise.
63478         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
63479         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
63480         * tests/unictype/test-pr_ignorable_control.c: Likewise.
63481         * tests/unictype/test-pr_iso_control.c: Likewise.
63482         * tests/unictype/test-pr_join_control.c: Likewise.
63483         * tests/unictype/test-pr_left_of_pair.c: Likewise.
63484         * tests/unictype/test-pr_line_separator.c: Likewise.
63485         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
63486         * tests/unictype/test-pr_lowercase.c: Likewise.
63487         * tests/unictype/test-pr_math.c: Likewise.
63488         * tests/unictype/test-pr_non_break.c: Likewise.
63489         * tests/unictype/test-pr_not_a_character.c: Likewise.
63490         * tests/unictype/test-pr_numeric.c: Likewise.
63491         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
63492         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
63493         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
63494         * tests/unictype/test-pr_other_id_continue.c: Likewise.
63495         * tests/unictype/test-pr_other_id_start.c: Likewise.
63496         * tests/unictype/test-pr_other_lowercase.c: Likewise.
63497         * tests/unictype/test-pr_other_math.c: Likewise.
63498         * tests/unictype/test-pr_other_uppercase.c: Likewise.
63499         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
63500         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
63501         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
63502         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
63503         * tests/unictype/test-pr_private_use.c: Likewise.
63504         * tests/unictype/test-pr_punctuation.c: Likewise.
63505         * tests/unictype/test-pr_quotation_mark.c: Likewise.
63506         * tests/unictype/test-pr_radical.c: Likewise.
63507         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
63508         * tests/unictype/test-pr_soft_dotted.c: Likewise.
63509         * tests/unictype/test-pr_space.c: Likewise.
63510         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
63511         * tests/unictype/test-pr_titlecase.c: Likewise.
63512         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
63513         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
63514         * tests/unictype/test-pr_uppercase.c: Likewise.
63515         * tests/unictype/test-pr_variation_selector.c: Likewise.
63516         * tests/unictype/test-pr_white_space.c: Likewise.
63517         * tests/unictype/test-pr_xid_continue.c: Likewise.
63518         * tests/unictype/test-pr_xid_start.c: Likewise.
63519         * tests/unictype/test-pr_zero_width.c: Likewise.
63520         * tests/unictype/test-sy_c_whitespace.c: Likewise.
63521         * tests/unictype/test-sy_java_whitespace.c: Likewise.
63522
63523 2007-11-12  Bruno Haible  <bruno@clisp.org>
63524
63525         Unicode character classification functions.
63526         * lib/unictype.h: New file.
63527         * modules/unictype/base: New file.
63528         * modules/unictype/category-L: New file.
63529         * modules/unictype/category-Lu: New file.
63530         * modules/unictype/category-Ll: New file.
63531         * modules/unictype/category-Lt: New file.
63532         * modules/unictype/category-Lm: New file.
63533         * modules/unictype/category-Lo: New file.
63534         * modules/unictype/category-M: New file.
63535         * modules/unictype/category-Mn: New file.
63536         * modules/unictype/category-Mc: New file.
63537         * modules/unictype/category-Me: New file.
63538         * modules/unictype/category-N: New file.
63539         * modules/unictype/category-Nd: New file.
63540         * modules/unictype/category-Nl: New file.
63541         * modules/unictype/category-No: New file.
63542         * modules/unictype/category-P: New file.
63543         * modules/unictype/category-Pc: New file.
63544         * modules/unictype/category-Pd: New file.
63545         * modules/unictype/category-Ps: New file.
63546         * modules/unictype/category-Pe: New file.
63547         * modules/unictype/category-Pi: New file.
63548         * modules/unictype/category-Pf: New file.
63549         * modules/unictype/category-Po: New file.
63550         * modules/unictype/category-S: New file.
63551         * modules/unictype/category-Sm: New file.
63552         * modules/unictype/category-Sc: New file.
63553         * modules/unictype/category-Sk: New file.
63554         * modules/unictype/category-So: New file.
63555         * modules/unictype/category-Z: New file.
63556         * modules/unictype/category-Zs: New file.
63557         * modules/unictype/category-Zl: New file.
63558         * modules/unictype/category-Zp: New file.
63559         * modules/unictype/category-C: New file.
63560         * modules/unictype/category-Cc: New file.
63561         * modules/unictype/category-Cf: New file.
63562         * modules/unictype/category-Cs: New file.
63563         * modules/unictype/category-Co: New file.
63564         * modules/unictype/category-Cn: New file.
63565         * modules/unictype/category-or: New file.
63566         * modules/unictype/category-of: New file.
63567         * modules/unictype/category-test: New file.
63568         * modules/unictype/category-test-withtable: New file.
63569         * modules/unictype/category-byname: New file.
63570         * modules/unictype/category-none: New file.
63571         * modules/unictype/category-and: New file.
63572         * modules/unictype/category-and-not: New file.
63573         * modules/unictype/category-name: New file.
63574         * modules/unictype/combining-class: New file.
63575         * modules/unictype/category-all: New file.
63576         * modules/unictype/bidicategory-all: New file.
63577         * modules/unictype/bidicategory-byname: New file.
63578         * modules/unictype/bidicategory-name: New file.
63579         * modules/unictype/bidicategory-of: New file.
63580         * modules/unictype/bidicategory-test: New file.
63581         * modules/unictype/decimal-digit: New file.
63582         * modules/unictype/digit: New file.
63583         * modules/unictype/numeric: New file.
63584         * modules/unictype/mirror: New file.
63585         * modules/unictype/property-white-space: New file.
63586         * modules/unictype/property-alphabetic: New file.
63587         * modules/unictype/property-other-alphabetic: New file.
63588         * modules/unictype/property-not-a-character: New file.
63589         * modules/unictype/property-default-ignorable-code-point: New file.
63590         * modules/unictype/property-other-default-ignorable-code-point: New
63591         file.
63592         * modules/unictype/property-deprecated: New file.
63593         * modules/unictype/property-logical-order-exception: New file.
63594         * modules/unictype/property-variation-selector: New file.
63595         * modules/unictype/property-private-use: New file.
63596         * modules/unictype/property-unassigned-code-value: New file.
63597         * modules/unictype/property-uppercase: New file.
63598         * modules/unictype/property-other-uppercase: New file.
63599         * modules/unictype/property-lowercase: New file.
63600         * modules/unictype/property-other-lowercase: New file.
63601         * modules/unictype/property-titlecase: New file.
63602         * modules/unictype/property-soft-dotted: New file.
63603         * modules/unictype/property-id-start: New file.
63604         * modules/unictype/property-other-id-start: New file.
63605         * modules/unictype/property-id-continue: New file.
63606         * modules/unictype/property-other-id-continue: New file.
63607         * modules/unictype/property-xid-start: New file.
63608         * modules/unictype/property-xid-continue: New file.
63609         * modules/unictype/property-pattern-white-space: New file.
63610         * modules/unictype/property-pattern-syntax: New file.
63611         * modules/unictype/property-join-control: New file.
63612         * modules/unictype/property-grapheme-base: New file.
63613         * modules/unictype/property-grapheme-extend: New file.
63614         * modules/unictype/property-other-grapheme-extend: New file.
63615         * modules/unictype/property-grapheme-link: New file.
63616         * modules/unictype/property-bidi-control: New file.
63617         * modules/unictype/property-bidi-left-to-right: New file.
63618         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
63619         * modules/unictype/property-bidi-arabic-right-to-left: New file.
63620         * modules/unictype/property-bidi-european-digit: New file.
63621         * modules/unictype/property-bidi-eur-num-separator: New file.
63622         * modules/unictype/property-bidi-eur-num-terminator: New file.
63623         * modules/unictype/property-bidi-arabic-digit: New file.
63624         * modules/unictype/property-bidi-common-separator: New file.
63625         * modules/unictype/property-bidi-block-separator: New file.
63626         * modules/unictype/property-bidi-segment-separator: New file.
63627         * modules/unictype/property-bidi-whitespace: New file.
63628         * modules/unictype/property-bidi-non-spacing-mark: New file.
63629         * modules/unictype/property-bidi-boundary-neutral: New file.
63630         * modules/unictype/property-bidi-pdf: New file.
63631         * modules/unictype/property-bidi-embedding-or-override: New file.
63632         * modules/unictype/property-bidi-other-neutral: New file.
63633         * modules/unictype/property-hex-digit: New file.
63634         * modules/unictype/property-ascii-hex-digit: New file.
63635         * modules/unictype/property-ideographic: New file.
63636         * modules/unictype/property-unified-ideograph: New file.
63637         * modules/unictype/property-radical: New file.
63638         * modules/unictype/property-ids-binary-operator: New file.
63639         * modules/unictype/property-ids-trinary-operator: New file.
63640         * modules/unictype/property-zero-width: New file.
63641         * modules/unictype/property-space: New file.
63642         * modules/unictype/property-non-break: New file.
63643         * modules/unictype/property-iso-control: New file.
63644         * modules/unictype/property-format-control: New file.
63645         * modules/unictype/property-dash: New file.
63646         * modules/unictype/property-hyphen: New file.
63647         * modules/unictype/property-punctuation: New file.
63648         * modules/unictype/property-line-separator: New file.
63649         * modules/unictype/property-paragraph-separator: New file.
63650         * modules/unictype/property-quotation-mark: New file.
63651         * modules/unictype/property-sentence-terminal: New file.
63652         * modules/unictype/property-terminal-punctuation: New file.
63653         * modules/unictype/property-currency-symbol: New file.
63654         * modules/unictype/property-math: New file.
63655         * modules/unictype/property-other-math: New file.
63656         * modules/unictype/property-paired-punctuation: New file.
63657         * modules/unictype/property-left-of-pair: New file.
63658         * modules/unictype/property-combining: New file.
63659         * modules/unictype/property-composite: New file.
63660         * modules/unictype/property-decimal-digit: New file.
63661         * modules/unictype/property-numeric: New file.
63662         * modules/unictype/property-diacritic: New file.
63663         * modules/unictype/property-extender: New file.
63664         * modules/unictype/property-ignorable-control: New file.
63665         * modules/unictype/property-test: New file.
63666         * modules/unictype/property-byname: New file.
63667         * modules/unictype/property-all: New file.
63668         * modules/unictype/scripts: New file.
63669         * modules/unictype/scripts-all: New file.
63670         * modules/unictype/block-of: New file.
63671         * modules/unictype/block-test: New file.
63672         * modules/unictype/block-list: New file.
63673         * modules/unictype/block-all: New file.
63674         * modules/unictype/syntax-c-whitespace: New file.
63675         * modules/unictype/syntax-java-whitespace: New file.
63676         * modules/unictype/syntax-c-ident: New file.
63677         * modules/unictype/syntax-java-ident: New file.
63678         * modules/unictype/ctype-alnum: New file.
63679         * modules/unictype/ctype-alpha: New file.
63680         * modules/unictype/ctype-cntrl: New file.
63681         * modules/unictype/ctype-digit: New file.
63682         * modules/unictype/ctype-graph: New file.
63683         * modules/unictype/ctype-lower: New file.
63684         * modules/unictype/ctype-print: New file.
63685         * modules/unictype/ctype-punct: New file.
63686         * modules/unictype/ctype-space: New file.
63687         * modules/unictype/ctype-upper: New file.
63688         * modules/unictype/ctype-xdigit: New file.
63689         * modules/unictype/ctype-blank: New file.
63690         * lib/unictype/bidi_byname.c: New file.
63691         * lib/unictype/bidi_name.c: New file.
63692         * lib/unictype/bidi_of.c: New file.
63693         * lib/unictype/bidi_test.c: New file.
63694         * lib/unictype/bitmap.h: New file.
63695         * lib/unictype/block_test.c: New file.
63696         * lib/unictype/blocks.c: New file.
63697         * lib/unictype/categ_C.c: New file.
63698         * lib/unictype/categ_Cc.c: New file.
63699         * lib/unictype/categ_Cf.c: New file.
63700         * lib/unictype/categ_Cn.c: New file.
63701         * lib/unictype/categ_Co.c: New file.
63702         * lib/unictype/categ_Cs.c: New file.
63703         * lib/unictype/categ_L.c: New file.
63704         * lib/unictype/categ_Ll.c: New file.
63705         * lib/unictype/categ_Lm.c: New file.
63706         * lib/unictype/categ_Lo.c: New file.
63707         * lib/unictype/categ_Lt.c: New file.
63708         * lib/unictype/categ_Lu.c: New file.
63709         * lib/unictype/categ_M.c: New file.
63710         * lib/unictype/categ_Mc.c: New file.
63711         * lib/unictype/categ_Me.c: New file.
63712         * lib/unictype/categ_Mn.c: New file.
63713         * lib/unictype/categ_N.c: New file.
63714         * lib/unictype/categ_Nd.c: New file.
63715         * lib/unictype/categ_Nl.c: New file.
63716         * lib/unictype/categ_No.c: New file.
63717         * lib/unictype/categ_P.c: New file.
63718         * lib/unictype/categ_Pc.c: New file.
63719         * lib/unictype/categ_Pd.c: New file.
63720         * lib/unictype/categ_Pe.c: New file.
63721         * lib/unictype/categ_Pf.c: New file.
63722         * lib/unictype/categ_Pi.c: New file.
63723         * lib/unictype/categ_Po.c: New file.
63724         * lib/unictype/categ_Ps.c: New file.
63725         * lib/unictype/categ_S.c: New file.
63726         * lib/unictype/categ_Sc.c: New file.
63727         * lib/unictype/categ_Sk.c: New file.
63728         * lib/unictype/categ_Sm.c: New file.
63729         * lib/unictype/categ_So.c: New file.
63730         * lib/unictype/categ_Z.c: New file.
63731         * lib/unictype/categ_Zl.c: New file.
63732         * lib/unictype/categ_Zp.c: New file.
63733         * lib/unictype/categ_Zs.c: New file.
63734         * lib/unictype/categ_and.c: New file.
63735         * lib/unictype/categ_and_not.c: New file.
63736         * lib/unictype/categ_byname.c: New file.
63737         * lib/unictype/categ_name.c: New file.
63738         * lib/unictype/categ_none.c: New file.
63739         * lib/unictype/categ_of.c: New file.
63740         * lib/unictype/categ_or.c: New file.
63741         * lib/unictype/categ_test.c: New file.
63742         * lib/unictype/combining.c: New file.
63743         * lib/unictype/ctype_alnum.c: New file.
63744         * lib/unictype/ctype_alpha.c: New file.
63745         * lib/unictype/ctype_blank.c: New file.
63746         * lib/unictype/ctype_cntrl.c: New file.
63747         * lib/unictype/ctype_digit.c: New file.
63748         * lib/unictype/ctype_graph.c: New file.
63749         * lib/unictype/ctype_lower.c: New file.
63750         * lib/unictype/ctype_print.c: New file.
63751         * lib/unictype/ctype_punct.c: New file.
63752         * lib/unictype/ctype_space.c: New file.
63753         * lib/unictype/ctype_upper.c: New file.
63754         * lib/unictype/ctype_xdigit.c: New file.
63755         * lib/unictype/decdigit.c: New file.
63756         * lib/unictype/digit.c: New file.
63757         * lib/unictype/identsyntaxmap.h: New file.
63758         * lib/unictype/mirror.c: New file.
63759         * lib/unictype/numeric.c: New file.
63760         * lib/unictype/pr_alphabetic.c: New file.
63761         * lib/unictype/pr_ascii_hex_digit.c: New file.
63762         * lib/unictype/pr_bidi_arabic_digit.c: New file.
63763         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
63764         * lib/unictype/pr_bidi_block_separator.c: New file.
63765         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
63766         * lib/unictype/pr_bidi_common_separator.c: New file.
63767         * lib/unictype/pr_bidi_control.c: New file.
63768         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
63769         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
63770         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
63771         * lib/unictype/pr_bidi_european_digit.c: New file.
63772         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
63773         * lib/unictype/pr_bidi_left_to_right.c: New file.
63774         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
63775         * lib/unictype/pr_bidi_other_neutral.c: New file.
63776         * lib/unictype/pr_bidi_pdf.c: New file.
63777         * lib/unictype/pr_bidi_segment_separator.c: New file.
63778         * lib/unictype/pr_bidi_whitespace.c: New file.
63779         * lib/unictype/pr_byname.c: New file.
63780         * lib/unictype/pr_byname.gperf: New file.
63781         * lib/unictype/pr_combining.c: New file.
63782         * lib/unictype/pr_composite.c: New file.
63783         * lib/unictype/pr_currency_symbol.c: New file.
63784         * lib/unictype/pr_dash.c: New file.
63785         * lib/unictype/pr_decimal_digit.c: New file.
63786         * lib/unictype/pr_default_ignorable_code_point.c: New file.
63787         * lib/unictype/pr_deprecated.c: New file.
63788         * lib/unictype/pr_diacritic.c: New file.
63789         * lib/unictype/pr_extender.c: New file.
63790         * lib/unictype/pr_format_control.c: New file.
63791         * lib/unictype/pr_grapheme_base.c: New file.
63792         * lib/unictype/pr_grapheme_extend.c: New file.
63793         * lib/unictype/pr_grapheme_link.c: New file.
63794         * lib/unictype/pr_hex_digit.c: New file.
63795         * lib/unictype/pr_hyphen.c: New file.
63796         * lib/unictype/pr_id_continue.c: New file.
63797         * lib/unictype/pr_id_start.c: New file.
63798         * lib/unictype/pr_ideographic.c: New file.
63799         * lib/unictype/pr_ids_binary_operator.c: New file.
63800         * lib/unictype/pr_ids_trinary_operator.c: New file.
63801         * lib/unictype/pr_ignorable_control.c: New file.
63802         * lib/unictype/pr_iso_control.c: New file.
63803         * lib/unictype/pr_join_control.c: New file.
63804         * lib/unictype/pr_left_of_pair.c: New file.
63805         * lib/unictype/pr_line_separator.c: New file.
63806         * lib/unictype/pr_logical_order_exception.c: New file.
63807         * lib/unictype/pr_lowercase.c: New file.
63808         * lib/unictype/pr_math.c: New file.
63809         * lib/unictype/pr_non_break.c: New file.
63810         * lib/unictype/pr_not_a_character.c: New file.
63811         * lib/unictype/pr_numeric.c: New file.
63812         * lib/unictype/pr_other_alphabetic.c: New file.
63813         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
63814         * lib/unictype/pr_other_grapheme_extend.c: New file.
63815         * lib/unictype/pr_other_id_continue.c: New file.
63816         * lib/unictype/pr_other_id_start.c: New file.
63817         * lib/unictype/pr_other_lowercase.c: New file.
63818         * lib/unictype/pr_other_math.c: New file.
63819         * lib/unictype/pr_other_uppercase.c: New file.
63820         * lib/unictype/pr_paired_punctuation.c: New file.
63821         * lib/unictype/pr_paragraph_separator.c: New file.
63822         * lib/unictype/pr_pattern_syntax.c: New file.
63823         * lib/unictype/pr_pattern_white_space.c: New file.
63824         * lib/unictype/pr_private_use.c: New file.
63825         * lib/unictype/pr_punctuation.c: New file.
63826         * lib/unictype/pr_quotation_mark.c: New file.
63827         * lib/unictype/pr_radical.c: New file.
63828         * lib/unictype/pr_sentence_terminal.c: New file.
63829         * lib/unictype/pr_soft_dotted.c: New file.
63830         * lib/unictype/pr_space.c: New file.
63831         * lib/unictype/pr_terminal_punctuation.c: New file.
63832         * lib/unictype/pr_test.c: New file.
63833         * lib/unictype/pr_titlecase.c: New file.
63834         * lib/unictype/pr_unassigned_code_value.c: New file.
63835         * lib/unictype/pr_unified_ideograph.c: New file.
63836         * lib/unictype/pr_uppercase.c: New file.
63837         * lib/unictype/pr_variation_selector.c: New file.
63838         * lib/unictype/pr_white_space.c: New file.
63839         * lib/unictype/pr_xid_continue.c: New file.
63840         * lib/unictype/pr_xid_start.c: New file.
63841         * lib/unictype/pr_zero_width.c: New file.
63842         * lib/unictype/scripts.c: New file.
63843         * lib/unictype/sy_c_ident.c: New file.
63844         * lib/unictype/sy_c_whitespace.c: New file.
63845         * lib/unictype/sy_java_ident.c: New file.
63846         * lib/unictype/sy_java_whitespace.c: New file.
63847
63848         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
63849         Unicode 5.0.0.
63850         * lib/unictype/blocks.h: Likewise.
63851         * lib/unictype/categ_C.h: Likewise.
63852         * lib/unictype/categ_Cc.h: Likewise.
63853         * lib/unictype/categ_Cf.h: Likewise.
63854         * lib/unictype/categ_Cn.h: Likewise.
63855         * lib/unictype/categ_Co.h: Likewise.
63856         * lib/unictype/categ_Cs.h: Likewise.
63857         * lib/unictype/categ_L.h: Likewise.
63858         * lib/unictype/categ_Ll.h: Likewise.
63859         * lib/unictype/categ_Lm.h: Likewise.
63860         * lib/unictype/categ_Lo.h: Likewise.
63861         * lib/unictype/categ_Lt.h: Likewise.
63862         * lib/unictype/categ_Lu.h: Likewise.
63863         * lib/unictype/categ_M.h: Likewise.
63864         * lib/unictype/categ_Mc.h: Likewise.
63865         * lib/unictype/categ_Me.h: Likewise.
63866         * lib/unictype/categ_Mn.h: Likewise.
63867         * lib/unictype/categ_N.h: Likewise.
63868         * lib/unictype/categ_Nd.h: Likewise.
63869         * lib/unictype/categ_Nl.h: Likewise.
63870         * lib/unictype/categ_No.h: Likewise.
63871         * lib/unictype/categ_P.h: Likewise.
63872         * lib/unictype/categ_Pc.h: Likewise.
63873         * lib/unictype/categ_Pd.h: Likewise.
63874         * lib/unictype/categ_Pe.h: Likewise.
63875         * lib/unictype/categ_Pf.h: Likewise.
63876         * lib/unictype/categ_Pi.h: Likewise.
63877         * lib/unictype/categ_Po.h: Likewise.
63878         * lib/unictype/categ_Ps.h: Likewise.
63879         * lib/unictype/categ_S.h: Likewise.
63880         * lib/unictype/categ_Sc.h: Likewise.
63881         * lib/unictype/categ_Sk.h: Likewise.
63882         * lib/unictype/categ_Sm.h: Likewise.
63883         * lib/unictype/categ_So.h: Likewise.
63884         * lib/unictype/categ_Z.h: Likewise.
63885         * lib/unictype/categ_Zl.h: Likewise.
63886         * lib/unictype/categ_Zp.h: Likewise.
63887         * lib/unictype/categ_Zs.h: Likewise.
63888         * lib/unictype/categ_of.h: Likewise.
63889         * lib/unictype/combining.h: Likewise.
63890         * lib/unictype/ctype_alnum.h: Likewise.
63891         * lib/unictype/ctype_alpha.h: Likewise.
63892         * lib/unictype/ctype_blank.h: Likewise.
63893         * lib/unictype/ctype_cntrl.h: Likewise.
63894         * lib/unictype/ctype_digit.h: Likewise.
63895         * lib/unictype/ctype_graph.h: Likewise.
63896         * lib/unictype/ctype_lower.h: Likewise.
63897         * lib/unictype/ctype_print.h: Likewise.
63898         * lib/unictype/ctype_punct.h: Likewise.
63899         * lib/unictype/ctype_space.h: Likewise.
63900         * lib/unictype/ctype_upper.h: Likewise.
63901         * lib/unictype/ctype_xdigit.h: Likewise.
63902         * lib/unictype/decdigit.h: Likewise.
63903         * lib/unictype/digit.h: Likewise.
63904         * lib/unictype/mirror.h: Likewise.
63905         * lib/unictype/numeric.h: Likewise.
63906         * lib/unictype/pr_alphabetic.h: Likewise.
63907         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
63908         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
63909         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
63910         * lib/unictype/pr_bidi_block_separator.h: Likewise.
63911         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
63912         * lib/unictype/pr_bidi_common_separator.h: Likewise.
63913         * lib/unictype/pr_bidi_control.h: Likewise.
63914         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
63915         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
63916         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
63917         * lib/unictype/pr_bidi_european_digit.h: Likewise.
63918         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
63919         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
63920         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
63921         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
63922         * lib/unictype/pr_bidi_pdf.h: Likewise.
63923         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
63924         * lib/unictype/pr_bidi_whitespace.h: Likewise.
63925         * lib/unictype/pr_combining.h: Likewise.
63926         * lib/unictype/pr_composite.h: Likewise.
63927         * lib/unictype/pr_currency_symbol.h: Likewise.
63928         * lib/unictype/pr_dash.h: Likewise.
63929         * lib/unictype/pr_decimal_digit.h: Likewise.
63930         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
63931         * lib/unictype/pr_deprecated.h: Likewise.
63932         * lib/unictype/pr_diacritic.h: Likewise.
63933         * lib/unictype/pr_extender.h: Likewise.
63934         * lib/unictype/pr_format_control.h: Likewise.
63935         * lib/unictype/pr_grapheme_base.h: Likewise.
63936         * lib/unictype/pr_grapheme_extend.h: Likewise.
63937         * lib/unictype/pr_grapheme_link.h: Likewise.
63938         * lib/unictype/pr_hex_digit.h: Likewise.
63939         * lib/unictype/pr_hyphen.h: Likewise.
63940         * lib/unictype/pr_id_continue.h: Likewise.
63941         * lib/unictype/pr_id_start.h: Likewise.
63942         * lib/unictype/pr_ideographic.h: Likewise.
63943         * lib/unictype/pr_ids_binary_operator.h: Likewise.
63944         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
63945         * lib/unictype/pr_ignorable_control.h: Likewise.
63946         * lib/unictype/pr_iso_control.h: Likewise.
63947         * lib/unictype/pr_join_control.h: Likewise.
63948         * lib/unictype/pr_left_of_pair.h: Likewise.
63949         * lib/unictype/pr_line_separator.h: Likewise.
63950         * lib/unictype/pr_logical_order_exception.h: Likewise.
63951         * lib/unictype/pr_lowercase.h: Likewise.
63952         * lib/unictype/pr_math.h: Likewise.
63953         * lib/unictype/pr_non_break.h: Likewise.
63954         * lib/unictype/pr_not_a_character.h: Likewise.
63955         * lib/unictype/pr_numeric.h: Likewise.
63956         * lib/unictype/pr_other_alphabetic.h: Likewise.
63957         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
63958         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
63959         * lib/unictype/pr_other_id_continue.h: Likewise.
63960         * lib/unictype/pr_other_id_start.h: Likewise.
63961         * lib/unictype/pr_other_lowercase.h: Likewise.
63962         * lib/unictype/pr_other_math.h: Likewise.
63963         * lib/unictype/pr_other_uppercase.h: Likewise.
63964         * lib/unictype/pr_paired_punctuation.h: Likewise.
63965         * lib/unictype/pr_paragraph_separator.h: Likewise.
63966         * lib/unictype/pr_pattern_syntax.h: Likewise.
63967         * lib/unictype/pr_pattern_white_space.h: Likewise.
63968         * lib/unictype/pr_private_use.h: Likewise.
63969         * lib/unictype/pr_punctuation.h: Likewise.
63970         * lib/unictype/pr_quotation_mark.h: Likewise.
63971         * lib/unictype/pr_radical.h: Likewise.
63972         * lib/unictype/pr_sentence_terminal.h: Likewise.
63973         * lib/unictype/pr_soft_dotted.h: Likewise.
63974         * lib/unictype/pr_space.h: Likewise.
63975         * lib/unictype/pr_terminal_punctuation.h: Likewise.
63976         * lib/unictype/pr_titlecase.h: Likewise.
63977         * lib/unictype/pr_unassigned_code_value.h: Likewise.
63978         * lib/unictype/pr_unified_ideograph.h: Likewise.
63979         * lib/unictype/pr_uppercase.h: Likewise.
63980         * lib/unictype/pr_variation_selector.h: Likewise.
63981         * lib/unictype/pr_white_space.h: Likewise.
63982         * lib/unictype/pr_xid_continue.h: Likewise.
63983         * lib/unictype/pr_xid_start.h: Likewise.
63984         * lib/unictype/pr_zero_width.h: Likewise.
63985         * lib/unictype/scripts.h: Likewise.
63986         * lib/unictype/scripts_byname.gperf: Likewise.
63987         * lib/unictype/sy_c_ident.h: Likewise.
63988         * lib/unictype/sy_c_whitespace.h: Likewise.
63989         * lib/unictype/sy_java_ident.h: Likewise.
63990         * lib/unictype/sy_java_whitespace.h: Likewise.
63991
63992         * lib/unictype/Makefile: New file.
63993         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
63994         glibc.
63995         * lib/unictype/3level.h: New file, copied from glibc.
63996         * lib/unictype/3levelbit.h: New file.
63997
63998 2007-11-11  Bruno Haible  <bruno@clisp.org>
63999
64000         * modules/gperf: New file.
64001         * modules/iconv_open (Depends-on): Add it.
64002         (Makefile.am): Remove the GPERF definition.
64003
64004 2007-11-11  Bruno Haible  <bruno@clisp.org>
64005
64006         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
64007         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
64008
64009 2007-11-11  Bruno Haible  <bruno@clisp.org>
64010
64011         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
64012         (usage): Remove function.
64013
64014 2007-11-11  Bruno Haible  <bruno@clisp.org>
64015
64016         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
64017         gl_FUNC_CEILF_LIBS.
64018         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
64019         gl_FUNC_CEIL_LIBS.
64020         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
64021         gl_FUNC_CEILL_LIBS.
64022         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
64023         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
64024         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
64025
64026 2007-11-11  Bruno Haible  <bruno@clisp.org>
64027
64028         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
64029         roundf were declared but do not exist on functions.
64030         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
64031         roundl were declared but do not exist on functions.
64032         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
64033         HAVE_FLOORL_AND_CEILL, respectively.
64034         Needed for Sun C on Solaris 10.
64035
64036 2007-11-11  Bruno Haible  <bruno@clisp.org>
64037
64038         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
64039         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
64040         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
64041         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
64042         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
64043         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
64044         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
64045         HAVE_DECL_ROUNDF.
64046         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
64047         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
64048         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
64049         of HAVE_DECL_ROUND*.
64050         * modules/math (Makefile.am): Update.
64051
64052 2007-11-10  Bruno Haible  <bruno@clisp.org>
64053
64054         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
64055         ptrdiff_t as m4/intl.m4.
64056
64057 2007-11-10  Jim Meyering  <meyering@redhat.com>
64058
64059         Avoid link failure for the argmatch test.
64060         * tests/test-argmatch.c (usage): Define function to avoid a link
64061         failure: argmatch_die requires a usage function.
64062
64063 2007-11-09  Bruno Haible  <bruno@clisp.org>
64064
64065         * doc/functions/snprintf.texi: Mention BeOS deficiency.
64066         * doc/functions/vsnprintf.texi: Likewise.
64067         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
64068         with a size argument < 2.
64069
64070 2007-11-09  Bruno Haible  <bruno@clisp.org>
64071
64072         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
64073         buffer. Fixes an inefficiency introduced on 2007-11-03.
64074
64075 2007-11-09  Bruno Haible  <bruno@clisp.org>
64076
64077         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
64078         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
64079
64080 2007-11-08  Jim Meyering  <meyering@redhat.com>
64081
64082         Change cache variable name prefix "jm_" to "gl_" everywhere.
64083         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
64084         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
64085         * m4/uptime.m4: s/gl_/jm_/
64086
64087 2007-11-07  Bruno Haible  <bruno@clisp.org>
64088
64089         Update to GNU gettext 0.17.
64090         * m4/intl.m4: Update to GNU gettext 0.17.
64091         * m4/po.m4: Likewise.
64092         * modules/gettext (Files): Remove m4/ulonglong.m4.
64093         (configure.ac): Require gettext infrastructure from version 0.17.
64094
64095 2007-11-06  Bruno Haible  <bruno@clisp.org>
64096
64097         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
64098         symbolic values are not defined in a public header.
64099         * lib/freadable.c (freadable) [QNX]: Likewise.
64100         * lib/freadahead.c (freadahead) [QNX]: Likewise.
64101         * lib/freading.c (freading) [QNX]: Likewise.
64102         * lib/fseterr.c (fseterr) [QNX]: Likewise.
64103         * lib/fwritable.c (fwritable) [QNX]: Likewise.
64104         * lib/fwriting.c (fwriting) [QNX]: Likewise.
64105         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
64106         Reported by Alain Magloire.
64107
64108         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
64109
64110 2007-11-05  Bruno Haible  <bruno@clisp.org>
64111
64112         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
64113         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
64114         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
64115         Reported by Eric Blake.
64116
64117 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64118             Bruno Haible  <bruno@clisp.org>
64119
64120         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
64121         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
64122         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
64123         (malloc): Undefine also before including <stdlib.h>.
64124         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
64125         Needed on OSF/1 4.0.
64126
64127 2007-11-05  Jim Meyering  <meyering@redhat.com>
64128
64129         git-version-gen: sync from coreutils.
64130         * build-aux/git-version-gen: Add comments.
64131         Change the first '-' to '.' in the snapshot version string,
64132         e.g., 6.9-377-08144 -> 6.9.377-08144
64133         Remove first parameter.
64134         Don't declare a version "-dirty" merely because a time
64135         stamp has changed.
64136
64137 2007-11-04  Bruno Haible  <bruno@clisp.org>
64138
64139         * lib/lock.h: Protect all macro definitions containing an 'if'
64140         statement through a "do { ... } while (0)".
64141         * lib/tls.h: Likewise.
64142
64143 2007-11-04  Bruno Haible  <bruno@clisp.org>
64144
64145         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
64146
64147 2007-11-04  Bruno Haible  <bruno@clisp.org>
64148
64149         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
64150         * modules/fprintf-posix (Depends-on): Add nocrash.
64151         * modules/snprintf-posix (Depends-on): Likewise.
64152         * modules/sprintf-posix (Depends-on): Likewise.
64153         * modules/vasnprintf-posix (Depends-on): Likewise.
64154         * modules/vasprintf-posix (Depends-on): Likewise.
64155         * modules/vfprintf-posix (Depends-on): Likewise.
64156         * modules/vsnprintf-posix (Depends-on): Likewise.
64157         * modules/vsprintf-posix (Depends-on): Likewise.
64158         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
64159         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
64160         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
64161         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
64162         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
64163         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
64164         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
64165
64166 2007-11-04  Bruno Haible  <bruno@clisp.org>
64167
64168         * modules/nocrash: New file.
64169         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
64170         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
64171
64172 2007-11-04  Bruno Haible  <bruno@clisp.org>
64173
64174         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
64175         precision handling.
64176         * tests/test-vasprintf-posix.c (test_function): Likewise.
64177         * tests/test-snprintf-posix.h (test_function): Likewise.
64178         * tests/test-sprintf-posix.h (test_function): Likewise.
64179
64180         Fix *printf behaviour for large precisions on mingw and BeOS.
64181         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
64182         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
64183         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
64184         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
64185         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
64186         gl_PRINTF_PRECISION and test its result. Invoke
64187         gl_PREREQ_VASNPRINTF_PRECISION.
64188         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
64189         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
64190         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
64191         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
64192         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
64193         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
64194         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
64195         * doc/functions/fprintf.texi: Update.
64196         * doc/functions/printf.texi: Update.
64197         * doc/functions/snprintf.texi: Update.
64198         * doc/functions/sprintf.texi: Update.
64199         * doc/functions/vfprintf.texi: Update.
64200         * doc/functions/vprintf.texi: Update.
64201         * doc/functions/vsnprintf.texi: Update.
64202         * doc/functions/vsprintf.texi: Update.
64203
64204 2007-11-04  Bruno Haible  <bruno@clisp.org>
64205
64206         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
64207
64208 2007-11-04  Bruno Haible  <bruno@clisp.org>
64209
64210         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
64211         Reported by Sylvain Beucler <beuc@gnu.org>.
64212
64213 2007-11-03  Bruno Haible  <bruno@clisp.org>
64214
64215         * tests/test-fprintf-posix2.sh: New file.
64216         * tests/test-fprintf-posix2.c: New file.
64217         * modules/fprintf-posix-tests (Files): Add them.
64218         (TESTS): Add test-fprintf-posix2.sh.
64219         (configure.ac): Check for getrlimit and setrlimit.
64220         (check_PROGRAMS): Add test-fprintf-posix2.
64221
64222         * tests/test-printf-posix2.sh: New file.
64223         * tests/test-printf-posix2.c: New file.
64224         * modules/printf-posix-tests (Files): Add them.
64225         (TESTS): Add test-printf-posix2.sh.
64226         (configure.ac): Check for getrlimit and setrlimit.
64227         (check_PROGRAMS): Add test-printf-posix2.
64228
64229         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
64230         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
64231         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
64232         (decode_double): New function, copied from decode_long_double.
64233         (scale10_round_decimal_decoded): New function, extracted from
64234         scale10_round_decimal_long_double.
64235         (scale10_round_decimal_long_double): Use it.
64236         (scale10_round_decimal_double): New function.
64237         (floorlog10): New function.
64238         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
64239         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
64240         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
64241         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
64242         gl_PRINTF_ENOMEM and test its result. Invoke
64243         gl_PREREQ_VASNPRINTF_ENOMEM.
64244         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
64245         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
64246         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
64247         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
64248         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
64249         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
64250         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
64251         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
64252         * modules/snprintf-posix (Depends-on): Likewise.
64253         * modules/sprintf-posix (Depends-on): Likewise.
64254         * modules/vasnprintf-posix (Depends-on): Likewise.
64255         * modules/vasprintf-posix (Depends-on): Likewise.
64256         * modules/vfprintf-posix (Depends-on): Likewise.
64257         * modules/vsnprintf-posix (Depends-on): Likewise.
64258         * modules/vsprintf-posix (Depends-on): Likewise.
64259         * doc/functions/fprintf.texi: Update.
64260         * doc/functions/printf.texi: Update.
64261         * doc/functions/snprintf.texi: Update.
64262         * doc/functions/sprintf.texi: Update.
64263         * doc/functions/vfprintf.texi: Update.
64264         * doc/functions/vprintf.texi: Update.
64265         * doc/functions/vsnprintf.texi: Update.
64266         * doc/functions/vsprintf.texi: Update.
64267
64268 2007-11-03  Bruno Haible  <bruno@clisp.org>
64269
64270         * modules/frexp-nolibm-tests: New file.
64271
64272         * modules/frexp-nolibm: New file.
64273         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
64274
64275 2007-11-03  Bruno Haible  <bruno@clisp.org>
64276
64277         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
64278         value is C99 compliant.
64279         Needed for OSF/1 5.1.
64280
64281 2007-11-03  Bruno Haible  <bruno@clisp.org>
64282
64283         Fix out-of-memory handling of vasnprintf.
64284         * lib/printf-parse.c: Include <errno.h>.
64285         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
64286         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
64287         is already set.
64288
64289 2007-11-02  Eric Blake  <ebb9@byu.net>
64290
64291         Fix tests on cygwin.
64292         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
64293
64294 2007-11-01  Bruno Haible  <bruno@clisp.org>
64295
64296         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
64297         warning.
64298         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
64299         needed for POSIX compatibility.
64300
64301 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
64302
64303         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
64304         for compatibility with GNU.
64305
64306 2007-11-01  Bruno Haible  <bruno@clisp.org>
64307
64308         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
64309         (putenv): Renamed from rpl_putenv. Change argument type from
64310         'const char *' to 'char *'.
64311         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
64312         of defining putenv in config.h, just set REPLACE_PUTENV.
64313         * modules/putenv (Depends-on): Add stdlib.
64314         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
64315         (Include): Use <stdlib.h>.
64316         * lib/stdlib.in.h (putenv): New declaration.
64317         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
64318         REPLACE_PUTENV.
64319         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
64320         REPLACE_PUTENV.
64321         Needed for MacOS X 10.5.0.
64322         Reported by Peter O'Gorman <peter@pogma.com>.
64323
64324 2007-11-01  Jim Meyering  <meyering@redhat.com>
64325
64326         Treat an empty date string exactly like "0".
64327         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
64328         if the remaining date string (to be parsed) is empty, use "0".
64329         Reported by Mischa Molhoek and discussed in this thread:
64330         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
64331
64332 2007-10-31  Bruno Haible  <bruno@clisp.org>
64333
64334         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
64335         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
64336         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
64337         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
64338         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
64339         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
64340
64341 2007-10-31  Bruno Haible  <bruno@clisp.org>
64342
64343         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
64344         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
64345         (AC_TYPE_LONG_LONG_INT): Use it.
64346         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
64347         it as well.
64348         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
64349         to m4/longlong.m4.
64350         * modules/stdint (Files): Remove m4/ulonglong.m4.
64351         * modules/strtoull (Files): Use m4/longlong.m4 instead of
64352         m4/ulonglong.m4.
64353         * modules/strtoumax (Files): Likewise.
64354
64355 2007-10-30  Bruno Haible  <bruno@clisp.org>
64356
64357         * modules/xvasprintf-posix: New file.
64358         Suggested by Eric Blake.
64359
64360 2007-10-30  Bruno Haible  <bruno@clisp.org>
64361
64362         * modules/xprintf-posix-tests: New file.
64363         * tests/test-xprintf-posix.sh: New file.
64364         * tests/test-xprintf-posix.c: New file.
64365         * tests/test-xfprintf-posix.c: New file.
64366
64367         * modules/xprintf-posix: New file.
64368
64369 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64370
64371         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
64372         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
64373         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
64374
64375 2007-10-29  Bruno Haible  <bruno@clisp.org>
64376
64377         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
64378         contain the special marker '_cv_'.
64379         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
64380         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
64381         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
64382         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
64383         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
64384         Reported by Ralf Wildenhues.
64385
64386 2007-10-29  Bruno Haible  <bruno@clisp.org>
64387
64388         * gnulib-tool (func_import): When --lgpl is not specified, set
64389         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
64390         GPLv3.
64391         Reported by Simon Josefsson.
64392
64393 2007-10-28  Bruno Haible  <bruno@clisp.org>
64394
64395         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
64396         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
64397         HAVE_DECL_ISFINITE.
64398         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
64399         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
64400         HAVE_DECL_ISFINITE.
64401
64402 2007-10-28  Bruno Haible  <bruno@clisp.org>
64403
64404         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
64405         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
64406
64407 2007-10-28  Bruno Haible  <bruno@clisp.org>
64408
64409         Fix link errors with Sun C 5.0 on Solaris 10.
64410         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
64411         function is declared but not present in the compiler's libm.
64412         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
64413         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
64414         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
64415         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
64416         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
64417         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
64418         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
64419         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
64420         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
64421         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
64422         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
64423         HAVE_DECL_FLOORL.
64424
64425 2007-10-28  Bruno Haible  <bruno@clisp.org>
64426
64427         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
64428         gl_FUNC_FLOORL. Cache the result.
64429         (gl_FUNC_FLOORL): Use it.
64430         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
64431         gl_FUNC_CEILL. Cache the result.
64432         (gl_FUNC_CEILL): Use it.
64433
64434         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
64435         gl_FUNC_FLOOR. Cache the result.
64436         (gl_FUNC_FLOOR): Use it.
64437         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
64438         gl_FUNC_CEIL. Cache the result.
64439         (gl_FUNC_CEIL): Use it.
64440
64441         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
64442         gl_FUNC_FLOORF. Cache the result.
64443         (gl_FUNC_FLOORF): Use it.
64444         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
64445         gl_FUNC_CEILF. Cache the result.
64446         (gl_FUNC_CEILF): Use it.
64447
64448 2007-10-28  Bruno Haible  <bruno@clisp.org>
64449
64450         * gnulib-tool: Allow specifying the LGPL version number through
64451         --lgpl=2 or --lgpl=3.
64452         (func_usage): Document --lgpl with argument.
64453         Handle --lgpl=... arguments.
64454         (func_import): Recognize also gl_LGPL calls with an argument. When
64455         --lgpl=2 is used and the module's license is just LGPL, report an
64456         error. Set sed_transform_lib_file according to the lgpl variable. In
64457         the generated files, use --lgpl or gl_LGPL invocations with argument,
64458         if necessary.
64459         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
64460         an LGPv2+ license.
64461         * doc/gnulib-tool.texi (Modified imports): Update explanation of
64462         gl_LGPL macro.
64463
64464 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64465             Bruno Haible  <bruno@clisp.org>
64466
64467         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
64468         (u16_uctomb_aux): Likewise.
64469         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
64470         !HAVE_INLINE.
64471         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
64472
64473 2007-10-28  Bruno Haible  <bruno@clisp.org>
64474
64475         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
64476         Invoke AM_GETTEXT_OPTION if it exists.
64477         * modules/vasprintf: Likewise.
64478         * modules/verror: Likewise.
64479         * modules/xprintf: Likewise.
64480         * modules/xvasprintf: Likewise.
64481
64482 2007-10-27  Ben Pfaff  <blp@gnu.org>
64483
64484         * lib/math.in.h: Define isfinite macro and prototypes for
64485         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
64486         implementations.
64487         * m4/math_h.m4: New substitutions for isfinite module.
64488         * lib/isfinite.c: New file.
64489         * m4/isfinite.m4: New file.
64490         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
64491         * modules/isfinite: New file.
64492         * modules/isfinite-tests: New file.
64493         * tests/tests-isfinite.c: New file.
64494         * doc/functions/isfinite.texi: Mention isfinite module.
64495         * MODULES.html.sh: Mention new module.
64496
64497 2007-10-27  Ben Pfaff  <blp@gnu.org>
64498
64499         Ralf Wildenhues reported that Tru64 4.0D declares the round
64500         functions but does not have definitions.
64501         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
64502         cannot be found in any library, set the output variable to
64503         "missing" instead of "".
64504         * m4/round.m4: Also use our substitute if we cannot find round in
64505         any library, even if it is declared.
64506         * m4/roundf.m4: Likewise for roundf.
64507         * m4/roundl.m4: Likewise for roundl.
64508         * lib/math.in.h: Undefine roundf, round, roundl before defining
64509         their replacements, to allow for hypothetical systems where these
64510         may be defined as macros but not available in libraries.
64511
64512 2007-10-27  Bruno Haible  <bruno@clisp.org>
64513
64514         * doc/gnulib.texi: Invoke @firstparagraphindent.
64515         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
64516         changes in gnulib.
64517         (Source changes): New section.
64518
64519 2007-10-26  Bruno Haible  <bruno@clisp.org>
64520
64521         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
64522         borrowed from autoconf.
64523
64524 2007-10-26  Bruno Haible  <bruno@clisp.org>
64525
64526         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
64527         strerror returned the empty string. Needed on HP-UX 11.00.
64528
64529 2007-10-24  Micah Cowan  <micah@cowan.name>
64530
64531         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
64532         * build-aux/bootstrap: Remove support for now-unnecessary option,
64533         --cvs-user, and envvars CVS_USER, CVS_RSH.
64534
64535 2007-10-24  Jim Meyering  <meyering@redhat.com>
64536
64537         Avoid diagnostics from sha1sum when there is no cached checksum.
64538         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
64539         if the po.s1 file hasn't been created yet.
64540
64541         * build-aux/bootstrap: Sync from coreutils:
64542         2007-10-24  Jim Meyering  <meyering@redhat.com>
64543         Get gnulib from the git repository, not from an obsolete cvs one.
64544         * build-aux/bootstrap: Suggestion from Micah Cowan.
64545         2007-10-04  Jim Meyering  <jim@meyering.net>
64546         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
64547         (update_po_files): Work also when there are no .po files in po/.
64548
64549 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
64550
64551         * README: Append ".git" to git and cg examples.
64552         Problem reported by Benoit Sigoure.
64553
64554 2007-10-23  Micah Cowan  <micah@cowan.name>
64555
64556         * users.txt: Add wget.
64557
64558 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64559
64560         Fix linking of some unistdio tests on FreeBSD.
64561         * modules/unistdio/u16-vsnprintf-tests
64562         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
64563         * modules/unistdio/u16-vsprintf-tests
64564         (test_u16_vsnprintf1_LDADD): Likewise.
64565         * modules/unistdio/u32-vsnprintf-tests
64566         (test_u32_vsnprintf1_LDADD): Likewise.
64567         * modules/unistdio/u32-vsprintf-tests
64568         (test_u32_vsprintf1_LDADD): Likewise.
64569         * modules/unistdio/u8-vsnprintf-tests
64570         (test_u8_vsnprintf1_LDADD): Likewise.
64571         * modules/unistdio/u8-vsprintf-tests
64572         (test_u8_vsprintf1_LDADD): Likewise.
64573         * modules/unistdio/ulc-vsnprintf-tests
64574         (test_ulc_vsnprintf1_LDADD): Likewise.
64575         * modules/unistdio/ulc-vsprintf-tests
64576         (test_ulc_vsprintf1_LDADD): Likewise.
64577
64578         Fix linking of some uniconv tests on FreeBSD.
64579         * modules/uniconv/u16-conv-from-enc-tests
64580         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
64581         * modules/uniconv/u16-conv-to-enc-tests
64582         (test_u16_conv_to_enc_LDADD): Likewise.
64583         * modules/uniconv/u16-strconv-from-enc-tests
64584         (test_u16_strconv_from_enc_LDADD): Likewise.
64585         * modules/uniconv/u16-strconv-to-enc-tests
64586         (test_u16_strconv_to_enc_LDADD): Likewise.
64587         * modules/uniconv/u32-conv-from-enc-tests
64588         (test_u32_conv_from_enc_LDADD): Likewise.
64589         * modules/uniconv/u32-conv-to-enc-tests
64590         (test_u32_conv_to_enc_LDADD): Likewise.
64591         * modules/uniconv/u32-strconv-from-enc-tests
64592         (test_u32_strconv_from_enc_LDADD): Likewise.
64593         * modules/uniconv/u32-strconv-to-enc-tests
64594         (test_u32_strconv_to_enc_LDADD): Likewise.
64595         * modules/uniconv/u8-conv-from-enc-tests
64596         (test_u8_conv_from_enc_LDADD): Likewise.
64597         * modules/uniconv/u8-conv-to-enc-tests
64598         (test_u8_conv_to_enc_LDADD): Likewise.
64599         * modules/uniconv/u8-strconv-from-enc-tests
64600         (test_u8_strconv_from_enc_LDADD): Likewise.
64601         * modules/uniconv/u8-strconv-to-enc-tests
64602         (test_u8_strconv_to_enc_LDADD): Likewise.
64603
64604 2007-10-22  Bruno Haible  <bruno@clisp.org>
64605
64606         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
64607         size.
64608
64609 2007-10-22  Eric Blake  <ebb9@byu.net>
64610
64611         Tweak x*printf documentation.
64612         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
64613         variable name and comments.
64614         Suggested by Bruno Haible.
64615
64616 2007-10-22  Bruno Haible  <bruno@clisp.org>
64617
64618         * lib/acl.c (copy_acl): Fix file name in comment.
64619
64620 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
64621
64622         Fix Tru64 problem with stdbool.h.
64623         * lib/stdbool.in.h (false, true):
64624         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
64625         Don't declare as an enum in this situation; it runs afoul of Tru64.
64626         Problem reported by Steven M. Schweda in
64627         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
64628
64629 2007-10-22  Eric Blake  <ebb9@byu.net>
64630
64631         Also wrap vf?printf.
64632         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
64633         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
64634         (xvprintf, xvfprintf): New functions.
64635
64636 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64637
64638         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
64639         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
64640
64641         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
64642         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
64643
64644 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
64645
64646         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
64647         by Bruno Haible.
64648
64649 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64650
64651         * lib/getloadavg.c
64652         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
64653         Undef `sys' after including sys/table.h, for Tru64 4.0D.
64654
64655         * tests/test-i-ring.c: Work for C89.
64656
64657 2007-10-22  Bruno Haible  <bruno@clisp.org>
64658
64659         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
64660         -1u, in preprocessor expression, so that we don't test for the bug
64661         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
64662         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
64663
64664 2007-10-22  Eric Blake  <ebb9@byu.net>
64665
64666         * tests/test-yesno.sh: Silence stderr during test.
64667
64668 2007-10-22  Simon Josefsson  <simon@josefsson.org>
64669
64670         * modules/crypto/gc-camellia: New file.
64671
64672         * m4/gc-camellia.m4: New file.
64673
64674         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
64675
64676         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
64677
64678 2007-10-22  Simon Josefsson  <simon@josefsson.org>
64679
64680         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
64681         --help to stdout.  Reported by sms@antinode.org (Steven
64682         M. Schweda).
64683
64684 2007-10-22  Simon Josefsson  <simon@josefsson.org>
64685
64686         * users.txt: Fix link to libksba.
64687
64688 2007-10-21  Ben Pfaff  <blp@gnu.org>
64689
64690         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
64691         round.c roundf implementation that depends on floorf and ceilf to
64692         be tested unconditionally.
64693
64694 2007-10-21  Ben Pfaff  <blp@gnu.org>
64695
64696         * m4/check-libm-func.m4: Removed.
64697         * m4/check-math-lib.m4: New file.
64698         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
64699         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
64700         definition and lack of AC_LIBOBJ([roundf]).
64701         * m4/roundl.m4: Ditto, and similarly for roundl.
64702         * modules/round: Reference new m4 file.
64703         * modules/roundf: Ditto.
64704         * modules/roundl: Ditto.
64705         * tests/test-round2.c (main): Use ROUND instead of round.
64706         Bug report from Bruno Haible.
64707
64708 2007-10-21  Bruno Haible  <bruno@clisp.org>
64709
64710         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
64711         context.
64712
64713 2007-10-21  Bruno Haible  <bruno@clisp.org>
64714
64715         * tests/test-wcwidth.c (main): Allow negative result for some control
64716         characters.
64717
64718         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
64719         Needed on OSF/1 5.1.
64720
64721 2007-10-21  Bruno Haible  <bruno@clisp.org>
64722
64723         * tests/test-floorf1.c: Include isnanf.h.
64724         (main): Use isnanf() instead of isnan().
64725         * tests/test-ceilf1.c: Include isnanf.h.
64726         (main): Use isnanf() instead of isnan().
64727         * tests/test-truncf1.c: Include isnanf.h.
64728         (main): Use isnanf() instead of isnan().
64729         * tests/test-roundf1.c: Include isnanf.h.
64730         (main): Use isnanf() instead of isnan().
64731
64732 2007-10-21  Eric Blake  <ebb9@byu.net>
64733
64734         * users.txt: Update URL for m4.
64735
64736 2007-10-21  Bruno Haible  <bruno@clisp.org>
64737
64738         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
64739
64740 2007-10-21  Bruno Haible  <bruno@clisp.org>
64741
64742         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
64743         Git's management files if the CVS files are not present.
64744
64745 2007-10-20  Bruno Haible  <bruno@clisp.org>
64746
64747         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
64748         gcc-3.4.x.
64749
64750 2007-10-20  Ben Pfaff  <blp@gnu.org>
64751
64752         * lib/math.in.h: Declare round, roundf, roundl if we are providing
64753         implementations.
64754         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
64755         * lib/round.c: New file.
64756         * lib/roundf.c: New file.
64757         * lib/roundl.c: New file.
64758         * m4/round.m4: New file.
64759         * m4/roundf.m4: New file.
64760         * m4/roundl.m4: New file.
64761         * m4/check-libm-func-m4: New file.
64762         * modules/math: Replace round, roundf, roundl related @VARS@ in
64763         math.in.h.
64764         * modules/round: New file.
64765         * modules/round-tests: New file.
64766         * modules/roundf: New file.
64767         * modules/roundf-tests: New file.
64768         * modules/roundl: New file.
64769         * modules/roundl-tests: New file.
64770         * tests/test-round1.c: New file.
64771         * tests/test-round2.c: New file.
64772         * tests/test-roundf1.c: New file.
64773         * tests/test-roundf2.c: New file.
64774         * tests/test-roundl.c: New file.
64775         * doc/functions/round.texi: Mention round module.
64776         * doc/functions/roundf.texi: Mention roundf module.
64777         * doc/functions/roundl.texi: Mention roundl module.
64778         * MODULES.html.sh: Mention new modules.
64779         Thanks to Bruno Haible for suggestions.
64780
64781 2007-10-20  Jim Meyering  <meyering@redhat.com>
64782
64783         * lib/xprintf.c: Include <config.h> unconditionally.
64784
64785         Change xprintf's license to GPL.
64786         * modules/xprintf (License): s/LGPL/GPL/, since this module
64787         depends on modules (exit and exitfail) which are GPL.
64788         Suggestion from Bruno Haible.
64789
64790         xprintf fixes.
64791         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
64792         Use a clearer diagnostic.
64793         Patch from Bruno Haible.
64794
64795 2007-10-20  Bruno Haible  <bruno@clisp.org>
64796
64797         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
64798         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
64799         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
64800
64801 2007-10-20  Bruno Haible  <bruno@clisp.org>
64802
64803         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
64804         precision in the comparison result > x - 1 or similar.
64805         * tests/test-ceilf2.c (correct_result_p): Likewise.
64806         * tests/test-truncf2.c (correct_result_p): Likewise.
64807         * tests/test-trunc2.c (correct_result_p): Likewise.
64808         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
64809
64810 2007-10-20  Bruno Haible  <bruno@clisp.org>
64811
64812         * modules/ceil: New file.
64813         * m4/ceil.m4: New file.
64814         * doc/functions/ceil.texi: Mention the 'ceil' module.
64815
64816 2007-10-20  Bruno Haible  <bruno@clisp.org>
64817
64818         * modules/floor: New file.
64819         * m4/floor.m4: New file.
64820         * doc/functions/floor.texi: Mention the 'floor' module.
64821
64822 2007-10-20  Bruno Haible  <bruno@clisp.org>
64823
64824         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
64825         of %a.
64826         * modules/floorf-tests (Depends-on): Likewise.
64827         * modules/truncf-tests (Depends-on): Likewise.
64828         * modules/trunc-tests (Depends-on): Likewise.
64829         Reported by Ben Pfaff.
64830
64831 2007-10-19  Jim Meyering  <meyering@redhat.com>
64832
64833         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
64834         Don't bother testing specific errno values.  Just test ferror.
64835
64836         New module: xprintf
64837         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
64838
64839 2007-10-19  Bruno Haible  <bruno@clisp.org>
64840
64841         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
64842         syntax.
64843         * modules/javaexec (Makefile.am): Likewise.
64844         * modules/relocatable-prog (Makefile.am): Likewise.
64845         Suggested by Jim Meyering.
64846
64847 2007-10-18  Bruno Haible  <bruno@clisp.org>
64848
64849         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
64850         Reported by Jim Meyering.
64851
64852 2007-10-18  Eric Blake  <ebb9@byu.net>
64853
64854         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
64855
64856 2007-10-18  Bruno Haible  <bruno@clisp.org>
64857
64858         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
64859         the format string into writable memory. Needed in Fortify conditions.
64860
64861 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
64862             Bruno Haible  <bruno@clisp.org>
64863
64864         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
64865         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
64866         * modules/trim (Depends-on): Add mbchar.
64867         (configure.ac): Add gl_FUNC_MBRTOWC.
64868         (Makefile.am): Augment lib_SOURCES.
64869
64870 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
64871
64872         Modify glob.c to use fstatat and dirfd, to simplify it.
64873         Suggested by Eric Blake.
64874         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
64875         Don't include <stdbool.h>; not used.
64876         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
64877         (link_exists_p): Simplify implementation, since we can now assume
64878         dirfd and fstatat.
64879         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
64880
64881 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64882
64883         * gnulib-tool (func_get_dependencies): Fix sed script to
64884         match only tests.
64885
64886 2007-10-17  Bruno Haible  <bruno@clisp.org>
64887
64888         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
64889         allow locale names without encoding suffix.
64890         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
64891         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
64892
64893 2007-10-16  Bruno Haible  <bruno@clisp.org>
64894
64895         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
64896         * lib/getgroups.c (getgroups): Likewise.
64897         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
64898
64899 2007-10-16  Bruno Haible  <bruno@clisp.org>
64900
64901         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
64902         * modules/malloc-posix (License): Likewise.
64903         * modules/realloc-posix (License): Likewise.
64904         * modules/calloc-posix (License): Likewise.
64905         * modules/intprops (License): Change from GPL to LGPL, with
64906         Paul Eggert's approval.
64907
64908 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
64909
64910         Merge glibc changes into lib/glob.c.
64911
64912         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
64913         2007-10-15 04:59:03 UTC.  Here are the changes:
64914
64915         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
64916
64917         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
64918
64919         * lib/glob.c: Add some branch prediction throughout.
64920
64921         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
64922
64923         [BZ #5103]
64924         * lib/glob.c (glob): Recognize patterns starting \/.
64925
64926         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
64927
64928         [BZ #3996]
64929         * lib/glob.c (attribute_hidden): Define if not defined.
64930         (glob): Unescape dirname, filename or username when needed and not
64931         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
64932         is NULL.  Handle unescaped [ in pattern without closing ].
64933         Don't pass GLOB_CHECK down to recursive glob for directories.
64934         (__glob_pattern_type): New function.
64935         (__glob_pattern_p): Implement using __glob_pattern_type.
64936         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
64937         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
64938         Remove unreachable code.
64939
64940         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
64941
64942         * lib/glob.c (glob_in_dir): Add some comments and asserts to
64943         explain why there are no leaks.
64944
64945         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
64946
64947         [BZ #3253]
64948         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
64949         time, rather allocate increasingly bigger arrays of pointers, if
64950         possible with alloca, if too large with malloc.
64951
64952 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
64953
64954         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
64955         Problem reported by H.Merijn Brand in
64956         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
64957         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
64958         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
64959
64960 2007-10-15  Bruno Haible  <bruno@clisp.org>
64961
64962         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
64963         with explicit rpl_ prefix.
64964         * lib/fopen.c (fopen): Likewise.
64965         * lib/freopen.c (freopen): Likewise.
64966         * lib/iconv.c (iconv): Likewise.
64967         * lib/iconv_close.c (iconv_close): Likewise.
64968
64969 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64970
64971         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
64972
64973 2007-10-15  Bruno Haible  <bruno@clisp.org>
64974
64975         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
64976         <stddef.h> instead of <stdlib.h> since we only need NULL.
64977         Reported by Ben Pfaff <blp@cs.stanford.edu>.
64978
64979 2007-10-15  Bruno Haible  <bruno@clisp.org>
64980
64981         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
64982         Replace paragraph talking about LIBOBJS.
64983         Reported by Colin Watson <cjwatson@debian.org>.
64984
64985 2007-10-15  Bruno Haible  <bruno@clisp.org>
64986
64987         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
64988         <stdlib.h> before using NULL.
64989
64990 2007-10-15  Simon Josefsson  <simon@josefsson.org>
64991
64992         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
64993         Reported by Albert Chin <china@thewrittenword.com>.
64994
64995 2007-10-14  Bruno Haible  <bruno@clisp.org>
64996
64997         * modules/iconv_open-utf-tests: New file.
64998         * tests/test-iconv-utf.c: New file.
64999
65000         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
65001         * modules/iconv_open-utf: New file.
65002         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
65003         (iconv, iconv_close): New declarations.
65004         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
65005         be defined.
65006         (iconv_open): Add special handling of conversion between UTF-8 and
65007         UTF-{16,32}{BE,LE}.
65008         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
65009         * lib/iconv_close.c: New file.
65010         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
65011         gl_FUNC_ICONV_OPEN.
65012         (gl_FUNC_ICONV_OPEN): Use it.
65013         (gl_FUNC_ICONV_OPEN_UTF): New macro.
65014         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
65015         and REPLACE_ICONV_UTF.
65016         * modules/iconv_open (Depends-on): Add c-strcase.
65017         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
65018         ICONV_CONST.
65019         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
65020
65021 2007-10-13  Albert Chin  <china@thewrittenword.com>
65022             Bruno Haible  <bruno@clisp.org>
65023
65024         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
65025         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
65026
65027 2007-10-13  Bruno Haible  <bruno@clisp.org>
65028
65029         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
65030         defined, use the ISO C99 inline semantics.
65031         * lib/argp.h (ARGP_EI): Likewise.
65032
65033 2007-10-13  Bruno Haible  <bruno@clisp.org>
65034
65035         Handle 'inline' change in gcc 4.3.0.
65036         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
65037         argp_fmtstream_write, argp_fmtstream_set_lmargin,
65038         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
65039         argp_fmtstream_point): Disable 'extern' declaration if the function
65040         definition is going to be provided inline.
65041         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
65042         semantics, not the ISO C99 inline semantics.
65043         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
65044         'extern' declaration if the function definition is going to be provided
65045         inline.
65046         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
65047         the GNU C inline semantics, not the ISO C99 inline semantics. With
65048         GCC 4.2, avoid a warning.
65049
65050 2007-10-13  Bruno Haible  <bruno@clisp.org>
65051
65052         * lib/freading.h (freading): Enable the use of __freading for
65053         glibc >= 2.7.
65054         * lib/freading.c (freading): Likewise.
65055
65056 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
65057
65058         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
65059         "warning: C99 inline functions are not supported; using GNU89".
65060
65061 2007-10-12  Bruno Haible  <bruno@clisp.org>
65062
65063         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
65064         of 2.
65065         * tests/test-ceilf2.c: New file.
65066         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
65067
65068         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
65069         * modules/ceilf-tests: Update.
65070
65071 2007-10-12  Bruno Haible  <bruno@clisp.org>
65072
65073         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
65074         of 2.
65075         * tests/test-floorf2.c: New file.
65076         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
65077
65078         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
65079         * modules/floorf-tests: Update.
65080
65081 2007-10-12  Bruno Haible  <bruno@clisp.org>
65082
65083         * tests/test-trunc2.c: New file.
65084         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
65085
65086         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
65087         * modules/trunc-tests: Update.
65088
65089 2007-10-12  Bruno Haible  <bruno@clisp.org>
65090
65091         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
65092         of 2.
65093         * tests/test-truncf2.c: New file.
65094         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
65095
65096         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
65097         * modules/truncf-tests: Update.
65098
65099 2007-10-11  Eric Blake  <ebb9@byu.net>
65100
65101         Don't claim strerror is broken on Interix.
65102         * doc/functions/strerror.texi (strerror): Known broken systems are
65103         now Solaris 8, and not Interix.
65104         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
65105         Interix on cross-compile.
65106         Reported by Martin Koeppe in
65107         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
65108
65109 2007-10-11  Bruno Haible  <bruno@clisp.org>
65110
65111         * modules/i-ring-tests: New file.
65112         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
65113         instead of assert.
65114
65115 2007-10-11  Bruno Haible  <bruno@clisp.org>
65116
65117         * modules/filenamecat-tests: New file.
65118         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
65119         * lib/filenamecat.c: Remove test code.
65120
65121 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
65122
65123         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
65124
65125         * lib/strerror.c: Include <string.h> always, to test interface,
65126         and to remove the need for the dummy.
65127         Include intprops.h to compute width instead of doing it ourselves
65128         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
65129         (strerror): Define it to return NULL if there's no system strerror.
65130         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
65131         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
65132         ancient pre-strerror Unix systems well any more.  Saying "unknown
65133         system error" is enough.
65134         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
65135         simpler strerror.c implementation.
65136         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
65137         Simplify the tests to reflect the simpler strerror implementation.
65138         * modules/strerror (Depends-on): Add intprops.
65139
65140 2007-10-09  Eric Blake  <ebb9@byu.net>
65141
65142         Silence test-fpending.
65143         * modules/fpending-tests (Files): Add wrapper script.
65144         * tests/test-fpending.sh: New file.
65145
65146 2007-10-09  Bruno Haible  <bruno@clisp.org>
65147
65148         * MODULES.html.sh (func_module): Don't create a hyperlink for
65149         function names like 'printf_frexp'.
65150         (Misc): Add crc, memxor.
65151         (Characteristics of floating types): New section.
65152         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
65153         isnanf-nolibm, signbit, trunc, truncf, truncl.
65154         (Enhancements for ISO C 99 functions): New subsection Input/output.
65155         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
65156         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
65157         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
65158         (Compatibility checks for POSIX:2001 functions): Add clock-time.
65159         (Enhancements for POSIX:2001 functions): Add chdir-long.
65160         (File system functions): Add areadlink, chdir-safer, read-file.
65161         Remove cycle-check.
65162         (File system as inode set): New section.
65163         (Date and time): Add gethrxtime.
65164         (Multithreading): Add openmp.
65165         (Internationalization functions): Add localename.
65166         (Unicode string functions): Add unistr/u*-mbsnlen.
65167         (Support for maintaining and releasing projects): Add git-version-gen.
65168         (Lone files): Remove directories.
65169
65170 2007-10-08  Ben Pfaff  <blp@gnu.org>
65171
65172         * lib/xmalloca.h: Fix typo in comment.
65173
65174 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
65175
65176         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
65177         when avoiding problems with integer overflow.  Use a portable test
65178         instead.
65179
65180 2007-10-08  Simon Josefsson  <simon@josefsson.org>
65181
65182         * modules/dummy (License): Change to LGPLv2+.
65183         * modules/float (License): Likewise
65184         * modules/realloc (License): Likewise
65185         * modules/stdlib (License): Likewise
65186
65187 2007-10-07  Bruno Haible  <bruno@clisp.org>
65188
65189         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
65190         * floor.c (TWO_MANT_DIG): Likewise.
65191         * ceil.c (TWO_MANT_DIG): Likewise.
65192         Reported by Ben Pfaff.
65193
65194 2007-10-07  Bruno Haible  <bruno@clisp.org>
65195
65196         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
65197         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
65198         * lib/frexp.c (FUNC): Likewise.
65199         * lib/printf-frexp.h (printf_frexp): Likewise.
65200         * lib/printf-frexpl.h (printf_frexpl): Likewise.
65201         * lib/printf-frexp.c (FUNC): Likewise.
65202         Suggested by Jim Meyering.
65203
65204 2007-10-07  Jim Meyering  <meyering@redhat.com>
65205
65206         Make xnanosleep's integer overflow test more robust.
65207         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
65208         so that gcc-4.3.0 doesn't optimize away this test for overflow.
65209
65210 2007-10-07  Bruno Haible  <bruno@clisp.org>
65211
65212         * NEWS: Mention the license change.
65213
65214         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
65215         abbreviations in the modules files.
65216
65217         Change copyright notice from GPLv2+ to GPLv3+.
65218         * README: Change copyright notice.
65219         * MODULES.html.sh: Likewise.
65220         * build-aux/bootstrap.conf: Likewise.
65221         * build-aux/config.libpath: Likewise.
65222         * build-aux/csharpcomp.sh.in: Likewise.
65223         * build-aux/csharpexec.sh.in: Likewise.
65224         * build-aux/install-reloc: Likewise.
65225         * build-aux/javacomp.sh.in: Likewise.
65226         * build-aux/javaexec.sh.in: Likewise.
65227         * build-aux/ldd.sh.in: Likewise.
65228         * build-aux/reloc-ldflags: Likewise.
65229         * build-aux/relocatable.sh.in: Likewise.
65230         * build-aux/x-to-1.in: Likewise.
65231         * check-module: Likewise.
65232         * config/srclistvars.sh: Likewise.
65233         * gnulib-tool: Likewise.
65234         * lib/acl-internal.h: Likewise.
65235         * lib/acl.c: Likewise.
65236         * lib/acl.h: Likewise.
65237         * lib/acl_entries.c: Likewise.
65238         * lib/areadlink-with-size.c: Likewise.
65239         * lib/areadlink.c: Likewise.
65240         * lib/areadlink.h: Likewise.
65241         * lib/argmatch.c: Likewise.
65242         * lib/argmatch.h: Likewise.
65243         * lib/argp-ba.c: Likewise.
65244         * lib/argp-eexst.c: Likewise.
65245         * lib/argp-fmtstream.c: Likewise.
65246         * lib/argp-fmtstream.h: Likewise.
65247         * lib/argp-fs-xinl.c: Likewise.
65248         * lib/argp-help.c: Likewise.
65249         * lib/argp-namefrob.h: Likewise.
65250         * lib/argp-parse.c: Likewise.
65251         * lib/argp-pin.c: Likewise.
65252         * lib/argp-pv.c: Likewise.
65253         * lib/argp-pvh.c: Likewise.
65254         * lib/argp-xinl.c: Likewise.
65255         * lib/argp.h: Likewise.
65256         * lib/at-func.c: Likewise.
65257         * lib/atanl.c: Likewise.
65258         * lib/backupfile.c: Likewise.
65259         * lib/backupfile.h: Likewise.
65260         * lib/basename.c: Likewise.
65261         * lib/binary-io.h: Likewise.
65262         * lib/byteswap.in.h: Likewise.
65263         * lib/c-stack.c: Likewise.
65264         * lib/c-stack.h: Likewise.
65265         * lib/c-strcasestr.c: Likewise.
65266         * lib/c-strcasestr.h: Likewise.
65267         * lib/c-strstr.c: Likewise.
65268         * lib/c-strstr.h: Likewise.
65269         * lib/c-strtod.c: Likewise.
65270         * lib/calloc.c: Likewise.
65271         * lib/canon-host.c: Likewise.
65272         * lib/canon-host.h: Likewise.
65273         * lib/canonicalize-lgpl.c: Likewise.
65274         * lib/canonicalize.c: Likewise.
65275         * lib/canonicalize.h: Likewise.
65276         * lib/ceil.c: Likewise.
65277         * lib/ceilf.c: Likewise.
65278         * lib/ceill.c: Likewise.
65279         * lib/chdir-long.c: Likewise.
65280         * lib/chdir-long.h: Likewise.
65281         * lib/chdir-safer.c: Likewise.
65282         * lib/chdir-safer.h: Likewise.
65283         * lib/chown.c: Likewise.
65284         * lib/classpath.c: Likewise.
65285         * lib/classpath.h: Likewise.
65286         * lib/clean-temp.c: Likewise.
65287         * lib/clean-temp.h: Likewise.
65288         * lib/cloexec.c: Likewise.
65289         * lib/close-stream.c: Likewise.
65290         * lib/closein.c: Likewise.
65291         * lib/closein.h: Likewise.
65292         * lib/closeout.c: Likewise.
65293         * lib/closeout.h: Likewise.
65294         * lib/concat-filename.c: Likewise.
65295         * lib/copy-file.c: Likewise.
65296         * lib/copy-file.h: Likewise.
65297         * lib/count-one-bits.h: Likewise.
65298         * lib/crc.c: Likewise.
65299         * lib/crc.h: Likewise.
65300         * lib/creat-safer.c: Likewise.
65301         * lib/csharpcomp.c: Likewise.
65302         * lib/csharpcomp.h: Likewise.
65303         * lib/csharpexec.c: Likewise.
65304         * lib/csharpexec.h: Likewise.
65305         * lib/cycle-check.c: Likewise.
65306         * lib/cycle-check.h: Likewise.
65307         * lib/diacrit.c: Likewise.
65308         * lib/diacrit.h: Likewise.
65309         * lib/diffseq.h: Likewise.
65310         * lib/dirchownmod.c: Likewise.
65311         * lib/dirent.in.h: Likewise.
65312         * lib/dirfd.c: Likewise.
65313         * lib/dirfd.h: Likewise.
65314         * lib/dirname.c: Likewise.
65315         * lib/dirname.h: Likewise.
65316         * lib/dummy.c: Likewise.
65317         * lib/dup-safer.c: Likewise.
65318         * lib/dup2.c: Likewise.
65319         * lib/eealloc.h: Likewise.
65320         * lib/error.c: Likewise.
65321         * lib/error.h: Likewise.
65322         * lib/euidaccess.c: Likewise.
65323         * lib/exclude.c: Likewise.
65324         * lib/exclude.h: Likewise.
65325         * lib/execute.c: Likewise.
65326         * lib/execute.h: Likewise.
65327         * lib/exitfail.c: Likewise.
65328         * lib/exitfail.h: Likewise.
65329         * lib/expl.c: Likewise.
65330         * lib/fatal-signal.c: Likewise.
65331         * lib/fatal-signal.h: Likewise.
65332         * lib/fbufmode.c: Likewise.
65333         * lib/fbufmode.h: Likewise.
65334         * lib/fchdir.c: Likewise.
65335         * lib/fchmodat.c: Likewise.
65336         * lib/fchownat.c: Likewise.
65337         * lib/fcntl--.h: Likewise.
65338         * lib/fcntl-safer.h: Likewise.
65339         * lib/fcntl.in.h: Likewise.
65340         * lib/fd-safer.c: Likewise.
65341         * lib/fflush.c: Likewise.
65342         * lib/file-has-acl.c: Likewise.
65343         * lib/file-set.c: Likewise.
65344         * lib/file-type.c: Likewise.
65345         * lib/file-type.h: Likewise.
65346         * lib/fileblocks.c: Likewise.
65347         * lib/filemode.c: Likewise.
65348         * lib/filemode.h: Likewise.
65349         * lib/filename.h: Likewise.
65350         * lib/filenamecat.c: Likewise.
65351         * lib/filenamecat.h: Likewise.
65352         * lib/findprog.c: Likewise.
65353         * lib/findprog.h: Likewise.
65354         * lib/float.in.h: Likewise.
65355         * lib/floor.c: Likewise.
65356         * lib/floorf.c: Likewise.
65357         * lib/floorl.c: Likewise.
65358         * lib/fopen-safer.c: Likewise.
65359         * lib/fopen.c: Likewise.
65360         * lib/fpending.c: Likewise.
65361         * lib/fpending.h: Likewise.
65362         * lib/fprintf.c: Likewise.
65363         * lib/fprintftime.h: Likewise.
65364         * lib/fpucw.h: Likewise.
65365         * lib/fpurge.c: Likewise.
65366         * lib/fpurge.h: Likewise.
65367         * lib/freadable.c: Likewise.
65368         * lib/freadable.h: Likewise.
65369         * lib/freadahead.c: Likewise.
65370         * lib/freadahead.h: Likewise.
65371         * lib/freading.c: Likewise.
65372         * lib/freading.h: Likewise.
65373         * lib/free.c: Likewise.
65374         * lib/freopen.c: Likewise.
65375         * lib/frexp.c: Likewise.
65376         * lib/frexpl.c: Likewise.
65377         * lib/fseek.c: Likewise.
65378         * lib/fseterr.c: Likewise.
65379         * lib/fseterr.h: Likewise.
65380         * lib/fstatat.c: Likewise.
65381         * lib/fstrcmp.c: Likewise.
65382         * lib/fstrcmp.h: Likewise.
65383         * lib/fsusage.c: Likewise.
65384         * lib/fsusage.h: Likewise.
65385         * lib/ftell.c: Likewise.
65386         * lib/ftello.c: Likewise.
65387         * lib/fts-cycle.c: Likewise.
65388         * lib/fts.c: Likewise.
65389         * lib/fts_.h: Likewise.
65390         * lib/full-read.c: Likewise.
65391         * lib/full-read.h: Likewise.
65392         * lib/full-write.c: Likewise.
65393         * lib/full-write.h: Likewise.
65394         * lib/fwritable.c: Likewise.
65395         * lib/fwritable.h: Likewise.
65396         * lib/fwriteerror.c: Likewise.
65397         * lib/fwriteerror.h: Likewise.
65398         * lib/fwriting.c: Likewise.
65399         * lib/fwriting.h: Likewise.
65400         * lib/gcd.c: Likewise.
65401         * lib/gcd.h: Likewise.
65402         * lib/getcwd.c: Likewise.
65403         * lib/getdate.h: Likewise.
65404         * lib/getdate.y: Likewise.
65405         * lib/getdomainname.c: Likewise.
65406         * lib/getdomainname.h: Likewise.
65407         * lib/getgroups.c: Likewise.
65408         * lib/gethostname.c: Likewise.
65409         * lib/gethrxtime.c: Likewise.
65410         * lib/gethrxtime.h: Likewise.
65411         * lib/getloadavg.c: Likewise.
65412         * lib/getndelim2.c: Likewise.
65413         * lib/getndelim2.h: Likewise.
65414         * lib/getnline.c: Likewise.
65415         * lib/getnline.h: Likewise.
65416         * lib/getopt.c: Likewise.
65417         * lib/getopt.in.h: Likewise.
65418         * lib/getopt1.c: Likewise.
65419         * lib/getopt_int.h: Likewise.
65420         * lib/getpagesize.h: Likewise.
65421         * lib/getsubopt.c: Likewise.
65422         * lib/gettime.c: Likewise.
65423         * lib/getugroups.c: Likewise.
65424         * lib/getugroups.h: Likewise.
65425         * lib/getusershell.c: Likewise.
65426         * lib/gl_anyavltree_list1.h: Likewise.
65427         * lib/gl_anyavltree_list2.h: Likewise.
65428         * lib/gl_anyhash_list1.h: Likewise.
65429         * lib/gl_anyhash_list2.h: Likewise.
65430         * lib/gl_anylinked_list1.h: Likewise.
65431         * lib/gl_anylinked_list2.h: Likewise.
65432         * lib/gl_anyrbtree_list1.h: Likewise.
65433         * lib/gl_anyrbtree_list2.h: Likewise.
65434         * lib/gl_anytree_list1.h: Likewise.
65435         * lib/gl_anytree_list2.h: Likewise.
65436         * lib/gl_anytree_oset.h: Likewise.
65437         * lib/gl_anytreehash_list1.h: Likewise.
65438         * lib/gl_anytreehash_list2.h: Likewise.
65439         * lib/gl_array_list.c: Likewise.
65440         * lib/gl_array_list.h: Likewise.
65441         * lib/gl_array_oset.c: Likewise.
65442         * lib/gl_array_oset.h: Likewise.
65443         * lib/gl_avltree_list.c: Likewise.
65444         * lib/gl_avltree_list.h: Likewise.
65445         * lib/gl_avltree_oset.c: Likewise.
65446         * lib/gl_avltree_oset.h: Likewise.
65447         * lib/gl_avltreehash_list.c: Likewise.
65448         * lib/gl_avltreehash_list.h: Likewise.
65449         * lib/gl_carray_list.c: Likewise.
65450         * lib/gl_carray_list.h: Likewise.
65451         * lib/gl_linked_list.c: Likewise.
65452         * lib/gl_linked_list.h: Likewise.
65453         * lib/gl_linkedhash_list.c: Likewise.
65454         * lib/gl_linkedhash_list.h: Likewise.
65455         * lib/gl_list.c: Likewise.
65456         * lib/gl_list.h: Likewise.
65457         * lib/gl_oset.c: Likewise.
65458         * lib/gl_oset.h: Likewise.
65459         * lib/gl_rbtree_list.c: Likewise.
65460         * lib/gl_rbtree_list.h: Likewise.
65461         * lib/gl_rbtree_oset.c: Likewise.
65462         * lib/gl_rbtree_oset.h: Likewise.
65463         * lib/gl_rbtreehash_list.c: Likewise.
65464         * lib/gl_rbtreehash_list.h: Likewise.
65465         * lib/gl_sublist.c: Likewise.
65466         * lib/gl_sublist.h: Likewise.
65467         * lib/group-member.c: Likewise.
65468         * lib/group-member.h: Likewise.
65469         * lib/hard-locale.c: Likewise.
65470         * lib/hard-locale.h: Likewise.
65471         * lib/hash-pjw.c: Likewise.
65472         * lib/hash-pjw.h: Likewise.
65473         * lib/hash-triple.c: Likewise.
65474         * lib/hash.c: Likewise.
65475         * lib/hash.h: Likewise.
65476         * lib/human.c: Likewise.
65477         * lib/human.h: Likewise.
65478         * lib/i-ring.c: Likewise.
65479         * lib/i-ring.h: Likewise.
65480         * lib/idcache.c: Likewise.
65481         * lib/imaxabs.c: Likewise.
65482         * lib/imaxdiv.c: Likewise.
65483         * lib/inet_pton.c: Likewise.
65484         * lib/inet_pton.h: Likewise.
65485         * lib/intprops.h: Likewise.
65486         * lib/inttostr.c: Likewise.
65487         * lib/inttostr.h: Likewise.
65488         * lib/inttypes.in.h: Likewise.
65489         * lib/isapipe.c: Likewise.
65490         * lib/isdir.c: Likewise.
65491         * lib/isnan.c: Likewise.
65492         * lib/isnan.h: Likewise.
65493         * lib/isnanf.c: Likewise.
65494         * lib/isnanf.h: Likewise.
65495         * lib/isnanl-nolibm.h: Likewise.
65496         * lib/isnanl.c: Likewise.
65497         * lib/isnanl.h: Likewise.
65498         * lib/javacomp.c: Likewise.
65499         * lib/javacomp.h: Likewise.
65500         * lib/javaexec.c: Likewise.
65501         * lib/javaexec.h: Likewise.
65502         * lib/javaversion.c: Likewise.
65503         * lib/javaversion.h: Likewise.
65504         * lib/javaversion.java: Likewise.
65505         * lib/lbrkprop.h: Likewise.
65506         * lib/lchmod.h: Likewise.
65507         * lib/lchown.c: Likewise.
65508         * lib/ldexpl.c: Likewise.
65509         * lib/linebreak.c: Likewise.
65510         * lib/linebreak.h: Likewise.
65511         * lib/linebuffer.c: Likewise.
65512         * lib/linebuffer.h: Likewise.
65513         * lib/locale.in.h: Likewise.
65514         * lib/logl.c: Likewise.
65515         * lib/long-options.c: Likewise.
65516         * lib/long-options.h: Likewise.
65517         * lib/lstat.c: Likewise.
65518         * lib/lstat.h: Likewise.
65519         * lib/math.in.h: Likewise.
65520         * lib/mbchar.c: Likewise.
65521         * lib/mbchar.h: Likewise.
65522         * lib/mbfile.h: Likewise.
65523         * lib/mbiter.h: Likewise.
65524         * lib/mbscasecmp.c: Likewise.
65525         * lib/mbscasestr.c: Likewise.
65526         * lib/mbschr.c: Likewise.
65527         * lib/mbscspn.c: Likewise.
65528         * lib/mbslen.c: Likewise.
65529         * lib/mbsncasecmp.c: Likewise.
65530         * lib/mbsnlen.c: Likewise.
65531         * lib/mbspbrk.c: Likewise.
65532         * lib/mbspcasecmp.c: Likewise.
65533         * lib/mbsrchr.c: Likewise.
65534         * lib/mbssep.c: Likewise.
65535         * lib/mbsspn.c: Likewise.
65536         * lib/mbsstr.c: Likewise.
65537         * lib/mbstok_r.c: Likewise.
65538         * lib/mbswidth.c: Likewise.
65539         * lib/mbswidth.h: Likewise.
65540         * lib/mbuiter.h: Likewise.
65541         * lib/memcasecmp.c: Likewise.
65542         * lib/memcasecmp.h: Likewise.
65543         * lib/memchr.c: Likewise.
65544         * lib/memcmp.c: Likewise.
65545         * lib/memcoll.c: Likewise.
65546         * lib/memcoll.h: Likewise.
65547         * lib/memcpy.c: Likewise.
65548         * lib/memrchr.c: Likewise.
65549         * lib/mkancesdirs.c: Likewise.
65550         * lib/mkdir-p.c: Likewise.
65551         * lib/mkdir-p.h: Likewise.
65552         * lib/mkdir.c: Likewise.
65553         * lib/mkdirat.c: Likewise.
65554         * lib/mkdtemp.c: Likewise.
65555         * lib/mkstemp-safer.c: Likewise.
65556         * lib/mkstemp.c: Likewise.
65557         * lib/modechange.c: Likewise.
65558         * lib/modechange.h: Likewise.
65559         * lib/mountlist.c: Likewise.
65560         * lib/mountlist.h: Likewise.
65561         * lib/mpsort.c: Likewise.
65562         * lib/nanosleep.c: Likewise.
65563         * lib/obstack.c: Likewise.
65564         * lib/obstack.h: Likewise.
65565         * lib/open-safer.c: Likewise.
65566         * lib/open.c: Likewise.
65567         * lib/openat-die.c: Likewise.
65568         * lib/openat-priv.h: Likewise.
65569         * lib/openat-proc.c: Likewise.
65570         * lib/openat.c: Likewise.
65571         * lib/openat.h: Likewise.
65572         * lib/pagealign_alloc.c: Likewise.
65573         * lib/pagealign_alloc.h: Likewise.
65574         * lib/physmem.c: Likewise.
65575         * lib/physmem.h: Likewise.
65576         * lib/pipe-safer.c: Likewise.
65577         * lib/pipe.c: Likewise.
65578         * lib/pipe.h: Likewise.
65579         * lib/posixtm.c: Likewise.
65580         * lib/posixtm.h: Likewise.
65581         * lib/posixver.c: Likewise.
65582         * lib/printf-frexp.c: Likewise.
65583         * lib/printf-frexp.h: Likewise.
65584         * lib/printf-frexpl.c: Likewise.
65585         * lib/printf-frexpl.h: Likewise.
65586         * lib/printf.c: Likewise.
65587         * lib/progname.c: Likewise.
65588         * lib/progname.h: Likewise.
65589         * lib/progreloc.c: Likewise.
65590         * lib/putenv.c: Likewise.
65591         * lib/quote.c: Likewise.
65592         * lib/quote.h: Likewise.
65593         * lib/quotearg.c: Likewise.
65594         * lib/quotearg.h: Likewise.
65595         * lib/raise.c: Likewise.
65596         * lib/readline.c: Likewise.
65597         * lib/readline.h: Likewise.
65598         * lib/readlink.c: Likewise.
65599         * lib/readtokens.c: Likewise.
65600         * lib/readtokens.h: Likewise.
65601         * lib/readtokens0.c: Likewise.
65602         * lib/readtokens0.h: Likewise.
65603         * lib/readutmp.c: Likewise.
65604         * lib/readutmp.h: Likewise.
65605         * lib/realloc.c: Likewise.
65606         * lib/relocwrapper.c: Likewise.
65607         * lib/rename-dest-slash.c: Likewise.
65608         * lib/rename.c: Likewise.
65609         * lib/rmdir.c: Likewise.
65610         * lib/rpmatch.c: Likewise.
65611         * lib/safe-read.c: Likewise.
65612         * lib/safe-read.h: Likewise.
65613         * lib/safe-write.c: Likewise.
65614         * lib/safe-write.h: Likewise.
65615         * lib/same-inode.h: Likewise.
65616         * lib/same.c: Likewise.
65617         * lib/same.h: Likewise.
65618         * lib/save-cwd.c: Likewise.
65619         * lib/save-cwd.h: Likewise.
65620         * lib/savedir.c: Likewise.
65621         * lib/savedir.h: Likewise.
65622         * lib/savewd.c: Likewise.
65623         * lib/savewd.h: Likewise.
65624         * lib/search.in.h: Likewise.
65625         * lib/setenv.c: Likewise.
65626         * lib/setenv.h: Likewise.
65627         * lib/settime.c: Likewise.
65628         * lib/sh-quote.c: Likewise.
65629         * lib/sh-quote.h: Likewise.
65630         * lib/sig2str.c: Likewise.
65631         * lib/sig2str.h: Likewise.
65632         * lib/signal.in.h: Likewise.
65633         * lib/signbitd.c: Likewise.
65634         * lib/signbitf.c: Likewise.
65635         * lib/signbitl.c: Likewise.
65636         * lib/sigprocmask.c: Likewise.
65637         * lib/sincosl.c: Likewise.
65638         * lib/sleep.c: Likewise.
65639         * lib/sprintf.c: Likewise.
65640         * lib/sqrtl.c: Likewise.
65641         * lib/stat-time.h: Likewise.
65642         * lib/stdio--.h: Likewise.
65643         * lib/stdio-safer.h: Likewise.
65644         * lib/stdlib--.h: Likewise.
65645         * lib/stdlib-safer.h: Likewise.
65646         * lib/stdlib.in.h: Likewise.
65647         * lib/stpcpy.c: Likewise.
65648         * lib/stpncpy.c: Likewise.
65649         * lib/strchrnul.c: Likewise.
65650         * lib/strcspn.c: Likewise.
65651         * lib/strerror.c: Likewise.
65652         * lib/strftime.c: Likewise.
65653         * lib/strftime.h: Likewise.
65654         * lib/striconveh.c: Likewise.
65655         * lib/striconveh.h: Likewise.
65656         * lib/striconveha.c: Likewise.
65657         * lib/striconveha.h: Likewise.
65658         * lib/stripslash.c: Likewise.
65659         * lib/strnlen1.c: Likewise.
65660         * lib/strnlen1.h: Likewise.
65661         * lib/strtod.c: Likewise.
65662         * lib/strtoimax.c: Likewise.
65663         * lib/strtok_r.c: Likewise.
65664         * lib/strtol.c: Likewise.
65665         * lib/strtoll.c: Likewise.
65666         * lib/strtoul.c: Likewise.
65667         * lib/strtoull.c: Likewise.
65668         * lib/sysexits.in.h: Likewise.
65669         * lib/tempname.c: Likewise.
65670         * lib/tempname.h: Likewise.
65671         * lib/timespec.h: Likewise.
65672         * lib/tls.c: Likewise.
65673         * lib/tls.h: Likewise.
65674         * lib/tmpdir.c: Likewise.
65675         * lib/tmpdir.h: Likewise.
65676         * lib/tmpfile-safer.c: Likewise.
65677         * lib/tmpfile.c: Likewise.
65678         * lib/trigl.c: Likewise.
65679         * lib/trigl.h: Likewise.
65680         * lib/trim.c: Likewise.
65681         * lib/trim.h: Likewise.
65682         * lib/trunc.c: Likewise.
65683         * lib/truncf.c: Likewise.
65684         * lib/truncl.c: Likewise.
65685         * lib/tsearch.c: Likewise.
65686         * lib/unicodeio.c: Likewise.
65687         * lib/unicodeio.h: Likewise.
65688         * lib/unistd--.h: Likewise.
65689         * lib/unistd-safer.h: Likewise.
65690         * lib/unistdio/ulc-fprintf.c: Likewise.
65691         * lib/unistdio/ulc-vfprintf.c: Likewise.
65692         * lib/unlinkdir.c: Likewise.
65693         * lib/unlinkdir.h: Likewise.
65694         * lib/unlocked-io.h: Likewise.
65695         * lib/unsetenv.c: Likewise.
65696         * lib/userspec.c: Likewise.
65697         * lib/utime.c: Likewise.
65698         * lib/utimecmp.c: Likewise.
65699         * lib/utimecmp.h: Likewise.
65700         * lib/utimens.c: Likewise.
65701         * lib/verify.h: Likewise.
65702         * lib/verror.c: Likewise.
65703         * lib/verror.h: Likewise.
65704         * lib/version-etc-fsf.c: Likewise.
65705         * lib/version-etc.c: Likewise.
65706         * lib/version-etc.h: Likewise.
65707         * lib/vfprintf.c: Likewise.
65708         * lib/vprintf.c: Likewise.
65709         * lib/vsprintf.c: Likewise.
65710         * lib/w32spawn.h: Likewise.
65711         * lib/wait-process.c: Likewise.
65712         * lib/wait-process.h: Likewise.
65713         * lib/wcwidth.c: Likewise.
65714         * lib/write-any-file.c: Likewise.
65715         * lib/xalloc-die.c: Likewise.
65716         * lib/xalloc.h: Likewise.
65717         * lib/xasprintf.c: Likewise.
65718         * lib/xgetcwd.c: Likewise.
65719         * lib/xgetcwd.h: Likewise.
65720         * lib/xgetdomainname.c: Likewise.
65721         * lib/xgetdomainname.h: Likewise.
65722         * lib/xgethostname.c: Likewise.
65723         * lib/xmalloc.c: Likewise.
65724         * lib/xmalloca.c: Likewise.
65725         * lib/xmalloca.h: Likewise.
65726         * lib/xmemcoll.c: Likewise.
65727         * lib/xnanosleep.c: Likewise.
65728         * lib/xreadlink.c: Likewise.
65729         * lib/xreadlink.h: Likewise.
65730         * lib/xsetenv.c: Likewise.
65731         * lib/xsetenv.h: Likewise.
65732         * lib/xstriconv.c: Likewise.
65733         * lib/xstriconv.h: Likewise.
65734         * lib/xstrndup.c: Likewise.
65735         * lib/xstrndup.h: Likewise.
65736         * lib/xstrtod.c: Likewise.
65737         * lib/xstrtod.h: Likewise.
65738         * lib/xstrtol-error.c: Likewise.
65739         * lib/xstrtol.c: Likewise.
65740         * lib/xstrtol.h: Likewise.
65741         * lib/xtime.h: Likewise.
65742         * lib/xvasprintf.c: Likewise.
65743         * lib/xvasprintf.h: Likewise.
65744         * lib/yesno.c: Likewise.
65745         * lib/yesno.h: Likewise.
65746         * posix-modules: Likewise.
65747         * tests/test-alloca-opt.c: Likewise.
65748         * tests/test-arcfour.c: Likewise.
65749         * tests/test-arctwo.c: Likewise.
65750         * tests/test-argmatch.c: Likewise.
65751         * tests/test-argp-2.sh: Likewise.
65752         * tests/test-argp.c: Likewise.
65753         * tests/test-arpa_inet.c: Likewise.
65754         * tests/test-array_list.c: Likewise.
65755         * tests/test-array_oset.c: Likewise.
65756         * tests/test-atexit.c: Likewise.
65757         * tests/test-avltree_list.c: Likewise.
65758         * tests/test-avltree_oset.c: Likewise.
65759         * tests/test-avltreehash_list.c: Likewise.
65760         * tests/test-base64.c: Likewise.
65761         * tests/test-binary-io.c: Likewise.
65762         * tests/test-byteswap.c: Likewise.
65763         * tests/test-c-ctype.c: Likewise.
65764         * tests/test-c-strcasecmp.c: Likewise.
65765         * tests/test-c-strcasestr.c: Likewise.
65766         * tests/test-c-strncasecmp.c: Likewise.
65767         * tests/test-c-strstr.c: Likewise.
65768         * tests/test-canonicalize-lgpl.c: Likewise.
65769         * tests/test-canonicalize.c: Likewise.
65770         * tests/test-carray_list.c: Likewise.
65771         * tests/test-ceilf.c: Likewise.
65772         * tests/test-ceill.c: Likewise.
65773         * tests/test-count-one-bits.c: Likewise.
65774         * tests/test-crc.c: Likewise.
65775         * tests/test-dirname.c: Likewise.
65776         * tests/test-fbufmode.c: Likewise.
65777         * tests/test-fcntl.c: Likewise.
65778         * tests/test-fflush.c: Likewise.
65779         * tests/test-floorf.c: Likewise.
65780         * tests/test-floorl.c: Likewise.
65781         * tests/test-fopen.c: Likewise.
65782         * tests/test-fprintf-posix.c: Likewise.
65783         * tests/test-fprintf-posix.h: Likewise.
65784         * tests/test-fpurge.c: Likewise.
65785         * tests/test-freadable.c: Likewise.
65786         * tests/test-freadahead.c: Likewise.
65787         * tests/test-freading.c: Likewise.
65788         * tests/test-freopen.c: Likewise.
65789         * tests/test-frexp.c: Likewise.
65790         * tests/test-frexpl.c: Likewise.
65791         * tests/test-fseek.c: Likewise.
65792         * tests/test-fseeko.c: Likewise.
65793         * tests/test-fseterr.c: Likewise.
65794         * tests/test-fstrcmp.c: Likewise.
65795         * tests/test-ftell.c: Likewise.
65796         * tests/test-ftello.c: Likewise.
65797         * tests/test-fwritable.c: Likewise.
65798         * tests/test-fwriting.c: Likewise.
65799         * tests/test-getaddrinfo.c: Likewise.
65800         * tests/test-getpass.c: Likewise.
65801         * tests/test-gettimeofday.c: Likewise.
65802         * tests/test-hmac-md5.c: Likewise.
65803         * tests/test-hmac-sha1.c: Likewise.
65804         * tests/test-iconv.c: Likewise.
65805         * tests/test-iconvme.c: Likewise.
65806         * tests/test-inttypes.c: Likewise.
65807         * tests/test-isnan.c: Likewise.
65808         * tests/test-isnanf.c: Likewise.
65809         * tests/test-isnanl-nolibm.c: Likewise.
65810         * tests/test-isnanl.c: Likewise.
65811         * tests/test-isnanl.h: Likewise.
65812         * tests/test-ldexpl.c: Likewise.
65813         * tests/test-linked_list.c: Likewise.
65814         * tests/test-linkedhash_list.c: Likewise.
65815         * tests/test-locale.c: Likewise.
65816         * tests/test-localename.c: Likewise.
65817         * tests/test-lock.c: Likewise.
65818         * tests/test-lseek.c: Likewise.
65819         * tests/test-malloca.c: Likewise.
65820         * tests/test-math.c: Likewise.
65821         * tests/test-mbscasecmp.c: Likewise.
65822         * tests/test-mbscasestr1.c: Likewise.
65823         * tests/test-mbscasestr2.c: Likewise.
65824         * tests/test-mbscasestr3.c: Likewise.
65825         * tests/test-mbscasestr4.c: Likewise.
65826         * tests/test-mbschr.c: Likewise.
65827         * tests/test-mbscspn.c: Likewise.
65828         * tests/test-mbsncasecmp.c: Likewise.
65829         * tests/test-mbspbrk.c: Likewise.
65830         * tests/test-mbspcasecmp.c: Likewise.
65831         * tests/test-mbsrchr.c: Likewise.
65832         * tests/test-mbsspn.c: Likewise.
65833         * tests/test-mbsstr1.c: Likewise.
65834         * tests/test-mbsstr2.c: Likewise.
65835         * tests/test-mbsstr3.c: Likewise.
65836         * tests/test-md5.c: Likewise.
65837         * tests/test-memmem.c: Likewise.
65838         * tests/test-netinet_in.c: Likewise.
65839         * tests/test-open.c: Likewise.
65840         * tests/test-printf-frexp.c: Likewise.
65841         * tests/test-printf-frexpl.c: Likewise.
65842         * tests/test-printf-posix.c: Likewise.
65843         * tests/test-printf-posix.h: Likewise.
65844         * tests/test-rbtree_list.c: Likewise.
65845         * tests/test-rbtree_oset.c: Likewise.
65846         * tests/test-rbtreehash_list.c: Likewise.
65847         * tests/test-read-file.c: Likewise.
65848         * tests/test-rijndael.c: Likewise.
65849         * tests/test-search.c: Likewise.
65850         * tests/test-signbit.c: Likewise.
65851         * tests/test-sleep.c: Likewise.
65852         * tests/test-snprintf-posix.c: Likewise.
65853         * tests/test-snprintf-posix.h: Likewise.
65854         * tests/test-snprintf.c: Likewise.
65855         * tests/test-sprintf-posix.c: Likewise.
65856         * tests/test-sprintf-posix.h: Likewise.
65857         * tests/test-stat-time.c: Likewise.
65858         * tests/test-stdbool.c: Likewise.
65859         * tests/test-stdint.c: Likewise.
65860         * tests/test-stdio.c: Likewise.
65861         * tests/test-stdlib.c: Likewise.
65862         * tests/test-stpncpy.c: Likewise.
65863         * tests/test-strcasestr.c: Likewise.
65864         * tests/test-striconv.c: Likewise.
65865         * tests/test-striconveh.c: Likewise.
65866         * tests/test-striconveha.c: Likewise.
65867         * tests/test-string.c: Likewise.
65868         * tests/test-sys_select.c: Likewise.
65869         * tests/test-sys_socket.c: Likewise.
65870         * tests/test-sys_stat.c: Likewise.
65871         * tests/test-sys_time.c: Likewise.
65872         * tests/test-sysexits.c: Likewise.
65873         * tests/test-time.c: Likewise.
65874         * tests/test-tls.c: Likewise.
65875         * tests/test-trunc.c: Likewise.
65876         * tests/test-truncf.c: Likewise.
65877         * tests/test-truncl.c: Likewise.
65878         * tests/test-unistd.c: Likewise.
65879         * tests/test-vasnprintf-posix.c: Likewise.
65880         * tests/test-vasnprintf-posix2.c: Likewise.
65881         * tests/test-vasnprintf.c: Likewise.
65882         * tests/test-vasprintf-posix.c: Likewise.
65883         * tests/test-vasprintf.c: Likewise.
65884         * tests/test-verify.c: Likewise.
65885         * tests/test-vfprintf-posix.c: Likewise.
65886         * tests/test-vprintf-posix.c: Likewise.
65887         * tests/test-vsnprintf-posix.c: Likewise.
65888         * tests/test-vsnprintf.c: Likewise.
65889         * tests/test-vsprintf-posix.c: Likewise.
65890         * tests/test-wchar.c: Likewise.
65891         * tests/test-wctype.c: Likewise.
65892         * tests/test-wcwidth.c: Likewise.
65893         * tests/test-xstrtol.c: Likewise.
65894         * tests/test-xvasprintf.c: Likewise.
65895         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
65896         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
65897         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
65898         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
65899         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
65900         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
65901         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
65902         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
65903         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
65904         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
65905         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
65906         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
65907         * tests/uniname/test-uninames.c: Likewise.
65908         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
65909         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
65910         * tests/unistdio/test-u16-printf1.h: Likewise.
65911         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
65912         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
65913         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
65914         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
65915         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
65916         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
65917         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
65918         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
65919         * tests/unistdio/test-u32-printf1.h: Likewise.
65920         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
65921         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
65922         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
65923         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
65924         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
65925         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
65926         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
65927         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
65928         * tests/unistdio/test-u8-printf1.h: Likewise.
65929         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
65930         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
65931         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
65932         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
65933         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
65934         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
65935         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
65936         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
65937         * tests/unistdio/test-ulc-printf1.h: Likewise.
65938         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
65939         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
65940         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
65941         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
65942         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
65943         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
65944         * tests/uniwidth/test-u16-strwidth.c: Likewise.
65945         * tests/uniwidth/test-u16-width.c: Likewise.
65946         * tests/uniwidth/test-u32-strwidth.c: Likewise.
65947         * tests/uniwidth/test-u32-width.c: Likewise.
65948         * tests/uniwidth/test-u8-strwidth.c: Likewise.
65949         * tests/uniwidth/test-u8-width.c: Likewise.
65950         * tests/uniwidth/test-uc_width.c: Likewise.
65951         * config/srclist-update: Likewise.
65952         (fixlicense): Update to GPLv3+.
65953
65954         Change copyright notice from LGPLv2.1+ to LGPLv3+.
65955         * tests/test-tsearch.c: Change copyright notice.
65956
65957         Change copyright notice from LGPLv2.0+ to LGPLv3+.
65958         * lib/c-strcaseeq.h: Change copyright notice.
65959         * lib/streq.h: Likewise.
65960         * lib/uniconv.h: Likewise.
65961         * lib/uniconv/u-conv-from-enc.h: Likewise.
65962         * lib/uniconv/u-conv-to-enc.h: Likewise.
65963         * lib/uniconv/u-strconv-from-enc.h: Likewise.
65964         * lib/uniconv/u-strconv-to-enc.h: Likewise.
65965         * lib/uniconv/u16-conv-from-enc.c: Likewise.
65966         * lib/uniconv/u16-conv-to-enc.c: Likewise.
65967         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
65968         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
65969         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
65970         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
65971         * lib/uniconv/u32-conv-from-enc.c: Likewise.
65972         * lib/uniconv/u32-conv-to-enc.c: Likewise.
65973         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
65974         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
65975         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
65976         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
65977         * lib/uniconv/u8-conv-from-enc.c: Likewise.
65978         * lib/uniconv/u8-conv-to-enc.c: Likewise.
65979         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
65980         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
65981         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
65982         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
65983         * lib/uniname.h: Likewise.
65984         * lib/uniname/uniname.c: Likewise.
65985         * lib/unistdio.h: Likewise.
65986         * lib/unistdio/u-asnprintf.h: Likewise.
65987         * lib/unistdio/u-asprintf.h: Likewise.
65988         * lib/unistdio/u-printf-args.c: Likewise.
65989         * lib/unistdio/u-printf-args.h: Likewise.
65990         * lib/unistdio/u-printf-parse.h: Likewise.
65991         * lib/unistdio/u-snprintf.h: Likewise.
65992         * lib/unistdio/u-sprintf.h: Likewise.
65993         * lib/unistdio/u-vasprintf.h: Likewise.
65994         * lib/unistdio/u-vsnprintf.h: Likewise.
65995         * lib/unistdio/u-vsprintf.h: Likewise.
65996         * lib/unistdio/u16-asnprintf.c: Likewise.
65997         * lib/unistdio/u16-asprintf.c: Likewise.
65998         * lib/unistdio/u16-printf-parse.c: Likewise.
65999         * lib/unistdio/u16-snprintf.c: Likewise.
66000         * lib/unistdio/u16-sprintf.c: Likewise.
66001         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
66002         * lib/unistdio/u16-u16-asprintf.c: Likewise.
66003         * lib/unistdio/u16-u16-snprintf.c: Likewise.
66004         * lib/unistdio/u16-u16-sprintf.c: Likewise.
66005         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
66006         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
66007         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
66008         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
66009         * lib/unistdio/u16-vasnprintf.c: Likewise.
66010         * lib/unistdio/u16-vasprintf.c: Likewise.
66011         * lib/unistdio/u16-vsnprintf.c: Likewise.
66012         * lib/unistdio/u16-vsprintf.c: Likewise.
66013         * lib/unistdio/u32-asnprintf.c: Likewise.
66014         * lib/unistdio/u32-asprintf.c: Likewise.
66015         * lib/unistdio/u32-printf-parse.c: Likewise.
66016         * lib/unistdio/u32-snprintf.c: Likewise.
66017         * lib/unistdio/u32-sprintf.c: Likewise.
66018         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
66019         * lib/unistdio/u32-u32-asprintf.c: Likewise.
66020         * lib/unistdio/u32-u32-snprintf.c: Likewise.
66021         * lib/unistdio/u32-u32-sprintf.c: Likewise.
66022         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
66023         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
66024         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
66025         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
66026         * lib/unistdio/u32-vasnprintf.c: Likewise.
66027         * lib/unistdio/u32-vasprintf.c: Likewise.
66028         * lib/unistdio/u32-vsnprintf.c: Likewise.
66029         * lib/unistdio/u32-vsprintf.c: Likewise.
66030         * lib/unistdio/u8-asnprintf.c: Likewise.
66031         * lib/unistdio/u8-asprintf.c: Likewise.
66032         * lib/unistdio/u8-printf-parse.c: Likewise.
66033         * lib/unistdio/u8-snprintf.c: Likewise.
66034         * lib/unistdio/u8-sprintf.c: Likewise.
66035         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
66036         * lib/unistdio/u8-u8-asprintf.c: Likewise.
66037         * lib/unistdio/u8-u8-snprintf.c: Likewise.
66038         * lib/unistdio/u8-u8-sprintf.c: Likewise.
66039         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
66040         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
66041         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
66042         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
66043         * lib/unistdio/u8-vasnprintf.c: Likewise.
66044         * lib/unistdio/u8-vasprintf.c: Likewise.
66045         * lib/unistdio/u8-vsnprintf.c: Likewise.
66046         * lib/unistdio/u8-vsprintf.c: Likewise.
66047         * lib/unistdio/ulc-asnprintf.c: Likewise.
66048         * lib/unistdio/ulc-asprintf.c: Likewise.
66049         * lib/unistdio/ulc-printf-parse.c: Likewise.
66050         * lib/unistdio/ulc-snprintf.c: Likewise.
66051         * lib/unistdio/ulc-sprintf.c: Likewise.
66052         * lib/unistdio/ulc-vasnprintf.c: Likewise.
66053         * lib/unistdio/ulc-vasprintf.c: Likewise.
66054         * lib/unistdio/ulc-vsnprintf.c: Likewise.
66055         * lib/unistdio/ulc-vsprintf.c: Likewise.
66056         * lib/unistr.h: Likewise.
66057         * lib/unistr/u-cpy-alloc.h: Likewise.
66058         * lib/unistr/u-cpy.h: Likewise.
66059         * lib/unistr/u-endswith.h: Likewise.
66060         * lib/unistr/u-move.h: Likewise.
66061         * lib/unistr/u-set.h: Likewise.
66062         * lib/unistr/u-startswith.h: Likewise.
66063         * lib/unistr/u-stpcpy.h: Likewise.
66064         * lib/unistr/u-stpncpy.h: Likewise.
66065         * lib/unistr/u-strcat.h: Likewise.
66066         * lib/unistr/u-strcpy.h: Likewise.
66067         * lib/unistr/u-strcspn.h: Likewise.
66068         * lib/unistr/u-strdup.h: Likewise.
66069         * lib/unistr/u-strlen.h: Likewise.
66070         * lib/unistr/u-strncat.h: Likewise.
66071         * lib/unistr/u-strncpy.h: Likewise.
66072         * lib/unistr/u-strnlen.h: Likewise.
66073         * lib/unistr/u-strpbrk.h: Likewise.
66074         * lib/unistr/u-strspn.h: Likewise.
66075         * lib/unistr/u-strstr.h: Likewise.
66076         * lib/unistr/u-strtok.h: Likewise.
66077         * lib/unistr/u16-check.c: Likewise.
66078         * lib/unistr/u16-chr.c: Likewise.
66079         * lib/unistr/u16-cmp.c: Likewise.
66080         * lib/unistr/u16-cpy-alloc.c: Likewise.
66081         * lib/unistr/u16-cpy.c: Likewise.
66082         * lib/unistr/u16-endswith.c: Likewise.
66083         * lib/unistr/u16-mblen.c: Likewise.
66084         * lib/unistr/u16-mbsnlen.c: Likewise.
66085         * lib/unistr/u16-mbtouc-aux.c: Likewise.
66086         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
66087         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
66088         * lib/unistr/u16-mbtouc.c: Likewise.
66089         * lib/unistr/u16-mbtoucr.c: Likewise.
66090         * lib/unistr/u16-move.c: Likewise.
66091         * lib/unistr/u16-next.c: Likewise.
66092         * lib/unistr/u16-prev.c: Likewise.
66093         * lib/unistr/u16-set.c: Likewise.
66094         * lib/unistr/u16-startswith.c: Likewise.
66095         * lib/unistr/u16-stpcpy.c: Likewise.
66096         * lib/unistr/u16-stpncpy.c: Likewise.
66097         * lib/unistr/u16-strcat.c: Likewise.
66098         * lib/unistr/u16-strchr.c: Likewise.
66099         * lib/unistr/u16-strcmp.c: Likewise.
66100         * lib/unistr/u16-strcpy.c: Likewise.
66101         * lib/unistr/u16-strcspn.c: Likewise.
66102         * lib/unistr/u16-strdup.c: Likewise.
66103         * lib/unistr/u16-strlen.c: Likewise.
66104         * lib/unistr/u16-strmblen.c: Likewise.
66105         * lib/unistr/u16-strmbtouc.c: Likewise.
66106         * lib/unistr/u16-strncat.c: Likewise.
66107         * lib/unistr/u16-strncmp.c: Likewise.
66108         * lib/unistr/u16-strncpy.c: Likewise.
66109         * lib/unistr/u16-strnlen.c: Likewise.
66110         * lib/unistr/u16-strpbrk.c: Likewise.
66111         * lib/unistr/u16-strrchr.c: Likewise.
66112         * lib/unistr/u16-strspn.c: Likewise.
66113         * lib/unistr/u16-strstr.c: Likewise.
66114         * lib/unistr/u16-strtok.c: Likewise.
66115         * lib/unistr/u16-to-u32.c: Likewise.
66116         * lib/unistr/u16-to-u8.c: Likewise.
66117         * lib/unistr/u16-uctomb-aux.c: Likewise.
66118         * lib/unistr/u16-uctomb.c: Likewise.
66119         * lib/unistr/u32-check.c: Likewise.
66120         * lib/unistr/u32-chr.c: Likewise.
66121         * lib/unistr/u32-cmp.c: Likewise.
66122         * lib/unistr/u32-cpy-alloc.c: Likewise.
66123         * lib/unistr/u32-cpy.c: Likewise.
66124         * lib/unistr/u32-endswith.c: Likewise.
66125         * lib/unistr/u32-mblen.c: Likewise.
66126         * lib/unistr/u32-mbsnlen.c: Likewise.
66127         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
66128         * lib/unistr/u32-mbtouc.c: Likewise.
66129         * lib/unistr/u32-mbtoucr.c: Likewise.
66130         * lib/unistr/u32-move.c: Likewise.
66131         * lib/unistr/u32-next.c: Likewise.
66132         * lib/unistr/u32-prev.c: Likewise.
66133         * lib/unistr/u32-set.c: Likewise.
66134         * lib/unistr/u32-startswith.c: Likewise.
66135         * lib/unistr/u32-stpcpy.c: Likewise.
66136         * lib/unistr/u32-stpncpy.c: Likewise.
66137         * lib/unistr/u32-strcat.c: Likewise.
66138         * lib/unistr/u32-strchr.c: Likewise.
66139         * lib/unistr/u32-strcmp.c: Likewise.
66140         * lib/unistr/u32-strcpy.c: Likewise.
66141         * lib/unistr/u32-strcspn.c: Likewise.
66142         * lib/unistr/u32-strdup.c: Likewise.
66143         * lib/unistr/u32-strlen.c: Likewise.
66144         * lib/unistr/u32-strmblen.c: Likewise.
66145         * lib/unistr/u32-strmbtouc.c: Likewise.
66146         * lib/unistr/u32-strncat.c: Likewise.
66147         * lib/unistr/u32-strncmp.c: Likewise.
66148         * lib/unistr/u32-strncpy.c: Likewise.
66149         * lib/unistr/u32-strnlen.c: Likewise.
66150         * lib/unistr/u32-strpbrk.c: Likewise.
66151         * lib/unistr/u32-strrchr.c: Likewise.
66152         * lib/unistr/u32-strspn.c: Likewise.
66153         * lib/unistr/u32-strstr.c: Likewise.
66154         * lib/unistr/u32-strtok.c: Likewise.
66155         * lib/unistr/u32-to-u16.c: Likewise.
66156         * lib/unistr/u32-to-u8.c: Likewise.
66157         * lib/unistr/u32-uctomb.c: Likewise.
66158         * lib/unistr/u8-check.c: Likewise.
66159         * lib/unistr/u8-chr.c: Likewise.
66160         * lib/unistr/u8-cmp.c: Likewise.
66161         * lib/unistr/u8-cpy-alloc.c: Likewise.
66162         * lib/unistr/u8-cpy.c: Likewise.
66163         * lib/unistr/u8-endswith.c: Likewise.
66164         * lib/unistr/u8-mblen.c: Likewise.
66165         * lib/unistr/u8-mbsnlen.c: Likewise.
66166         * lib/unistr/u8-mbtouc-aux.c: Likewise.
66167         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
66168         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
66169         * lib/unistr/u8-mbtouc.c: Likewise.
66170         * lib/unistr/u8-mbtoucr.c: Likewise.
66171         * lib/unistr/u8-move.c: Likewise.
66172         * lib/unistr/u8-next.c: Likewise.
66173         * lib/unistr/u8-prev.c: Likewise.
66174         * lib/unistr/u8-set.c: Likewise.
66175         * lib/unistr/u8-startswith.c: Likewise.
66176         * lib/unistr/u8-stpcpy.c: Likewise.
66177         * lib/unistr/u8-stpncpy.c: Likewise.
66178         * lib/unistr/u8-strcat.c: Likewise.
66179         * lib/unistr/u8-strchr.c: Likewise.
66180         * lib/unistr/u8-strcmp.c: Likewise.
66181         * lib/unistr/u8-strcpy.c: Likewise.
66182         * lib/unistr/u8-strcspn.c: Likewise.
66183         * lib/unistr/u8-strdup.c: Likewise.
66184         * lib/unistr/u8-strlen.c: Likewise.
66185         * lib/unistr/u8-strmblen.c: Likewise.
66186         * lib/unistr/u8-strmbtouc.c: Likewise.
66187         * lib/unistr/u8-strncat.c: Likewise.
66188         * lib/unistr/u8-strncmp.c: Likewise.
66189         * lib/unistr/u8-strncpy.c: Likewise.
66190         * lib/unistr/u8-strnlen.c: Likewise.
66191         * lib/unistr/u8-strpbrk.c: Likewise.
66192         * lib/unistr/u8-strrchr.c: Likewise.
66193         * lib/unistr/u8-strspn.c: Likewise.
66194         * lib/unistr/u8-strstr.c: Likewise.
66195         * lib/unistr/u8-strtok.c: Likewise.
66196         * lib/unistr/u8-to-u16.c: Likewise.
66197         * lib/unistr/u8-to-u32.c: Likewise.
66198         * lib/unistr/u8-uctomb-aux.c: Likewise.
66199         * lib/unistr/u8-uctomb.c: Likewise.
66200         * lib/unitypes.h: Likewise.
66201         * lib/uniwidth.h: Likewise.
66202         * lib/uniwidth/cjk.h: Likewise.
66203         * lib/uniwidth/u16-strwidth.c: Likewise.
66204         * lib/uniwidth/u16-width.c: Likewise.
66205         * lib/uniwidth/u32-strwidth.c: Likewise.
66206         * lib/uniwidth/u32-width.c: Likewise.
66207         * lib/uniwidth/u8-strwidth.c: Likewise.
66208         * lib/uniwidth/u8-width.c: Likewise.
66209         * lib/uniwidth/width.c: Likewise.
66210
66211 2007-10-07  Bruno Haible  <bruno@clisp.org>
66212
66213         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
66214         The file is still under LGPL (see modules/inttypes).
66215
66216 2007-10-06  Bruno Haible  <bruno@clisp.org>
66217
66218         * modules/trunc (Dependencies): Add 'extensions'.
66219         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
66220         Reported by Ben Pfaff <blp@gnu.org>.
66221
66222 2007-10-06  Bruno Haible  <bruno@clisp.org>
66223
66224         * modules/freopen-tests: New file.
66225         * tests/test-freopen.c: New file.
66226
66227         * modules/fopen-tests: New file.
66228         * tests/test-fopen.c: New file.
66229
66230         * modules/fopen: New file.
66231         * lib/fopen.c: New file.
66232         * m4/fopen.m4: New file.
66233         * modules/freopen: New file.
66234         * lib/freopen.c: New file.
66235         * m4/freopen.m4: New file.
66236         * lib/stdio.in.h (fopen, freopen): New declarations.
66237         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
66238         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
66239         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
66240         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
66241         * doc/functions/fopen.texi: Mention the 'fopen' module.
66242         * doc/functions/freopen.texi: Mention the 'freopen' module.
66243
66244 2007-10-06  Bruno Haible  <bruno@clisp.org>
66245
66246         * modules/open-tests: New file.
66247         * tests/test-open.c: New file.
66248
66249         * modules/open: New file.
66250         * lib/open.c: New file.
66251         * m4/open.m4: New file.
66252         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
66253         lib/open.c does.
66254         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
66255         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
66256         macros.
66257         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
66258         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
66259         REPLACE_OPEN.
66260         * doc/functions/open.texi: Mention the 'open' module.
66261
66262 2007-10-04  Bruno Haible  <bruno@clisp.org>
66263
66264         * modules/ceill-tests: New file.
66265         * tests/test-ceill.c: New file.
66266
66267         * modules/ceill: New file.
66268         * lib/ceill.c: Replace entire file.
66269         * m4/ceill.m4: New file.
66270         * lib/math.in.h (ceill): Replace declaration.
66271         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
66272         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
66273         * doc/functions/ceill.texi: Mention the 'ceill' module.
66274         * modules/mathl (Files): Remove lib/ceill.c.
66275         (Depends-on): Add ceill.
66276
66277 2007-10-04  Bruno Haible  <bruno@clisp.org>
66278
66279         * modules/ceilf-tests: New file.
66280         * tests/test-ceilf.c: New file.
66281
66282         * modules/ceilf: New file.
66283         * lib/ceil.c: New file.
66284         * lib/ceilf.c: New file.
66285         * m4/ceilf.m4: New file.
66286         * lib/math.in.h (ceilf): New declaration.
66287         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
66288         HAVE_DECL_CEILF.
66289         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
66290         HAVE_DECL_CEILF.
66291         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
66292
66293 2007-10-04  Bruno Haible  <bruno@clisp.org>
66294
66295         * modules/floorl-tests: New file.
66296         * tests/test-floorl.c: New file.
66297
66298         * modules/floorl: New file.
66299         * lib/floorl.c: Replace entire file.
66300         * m4/floorl.m4: New file.
66301         * lib/math.in.h (floorl): Replace declaration.
66302         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
66303         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
66304         * doc/functions/floorl.texi: Mention the 'floorl' module.
66305         * modules/mathl (Files): Remove lib/floorl.c.
66306         (Depends-on): Add floorl.
66307
66308 2007-10-04  Bruno Haible  <bruno@clisp.org>
66309
66310         * modules/floorf-tests: New file.
66311         * tests/test-floorf.c: New file.
66312
66313         * modules/floorf: New file.
66314         * lib/floor.c: New file.
66315         * lib/floorf.c: New file.
66316         * m4/floorf.m4: New file.
66317         * lib/math.in.h (floorf): New declaration.
66318         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
66319         HAVE_DECL_FLOORF.
66320         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
66321         HAVE_DECL_FLOORF.
66322         * doc/functions/floorf.texi: Mention the 'floorf' module.
66323
66324 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
66325             Bruno Haible  <bruno@clisp.org>
66326
66327         Advertise for the Git server instead of the CVS server.
66328         * doc/gnulib-intro.texi (Steady Development): Mention the Git
66329         repository instead of the CVS one.
66330         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
66331         about all VCS systems generically.
66332         * doc/gnulib.texi (Introduction): Capitalize `Git'.
66333
66334 2007-10-04  Bruno Haible  <bruno@clisp.org>
66335
66336         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
66337         means.
66338         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
66339
66340 2007-10-04  Bruno Haible  <bruno@clisp.org>
66341
66342         * modules/truncl-tests: New file.
66343         * tests/test-truncl.c: New file.
66344
66345         * modules/truncl: New file.
66346         * lib/truncl.c: New file.
66347         * m4/truncl.m4: New file.
66348         * lib/math.in.h (truncl): New declaration.
66349         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
66350         HAVE_DECL_TRUNCL.
66351         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
66352         HAVE_DECL_TRUNCL.
66353         * doc/functions/truncl.texi: Mention the 'truncl' module.
66354
66355 2007-10-04  Bruno Haible  <bruno@clisp.org>
66356
66357         * modules/truncf-tests: New file.
66358         * tests/test-truncf.c: New file.
66359
66360         * modules/truncf: New file.
66361         * lib/trunc.c: Make paramerizable through USE_* macros.
66362         * lib/truncf.c: New file.
66363         * m4/truncf.m4: New file.
66364         * lib/math.in.h (truncf): New declaration.
66365         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
66366         HAVE_DECL_TRUNCF.
66367         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
66368         HAVE_DECL_TRUNCF.
66369         * doc/functions/truncf.texi: Mention the 'truncf' module.
66370
66371 2007-10-03  Bruno Haible  <bruno@clisp.org>
66372
66373         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
66374         augmentation also for tests modules.
66375         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
66376         * modules/atexit-tests (Makefile.am): Likewise.
66377         * modules/binary-io-tests (Makefile.am): Likewise.
66378         * modules/c-strcase-tests (Makefile.am): Likewise.
66379         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
66380         * modules/canonicalize-tests (Makefile.am): Likewise.
66381         * modules/closein-tests (Makefile.am): Likewise.
66382         * modules/fprintf-posix-tests (Makefile.am): Likewise.
66383         * modules/freadahead-tests (Makefile.am): Likewise.
66384         * modules/fseek-tests (Makefile.am): Likewise.
66385         * modules/fseeko-tests (Makefile.am): Likewise.
66386         * modules/ftell-tests (Makefile.am): Likewise.
66387         * modules/ftello-tests (Makefile.am): Likewise.
66388         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
66389         * modules/isnanl-tests (Makefile.am): Likewise.
66390         * modules/lseek-tests (Makefile.am): Likewise.
66391         * modules/mbscasecmp-tests (Makefile.am): Likewise.
66392         * modules/mbscasestr-tests (Makefile.am): Likewise.
66393         * modules/mbschr-tests (Makefile.am): Likewise.
66394         * modules/mbscspn-tests (Makefile.am): Likewise.
66395         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
66396         * modules/mbspbrk-tests (Makefile.am): Likewise.
66397         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
66398         * modules/mbsrchr-tests (Makefile.am): Likewise.
66399         * modules/mbsspn-tests (Makefile.am): Likewise.
66400         * modules/mbsstr-tests (Makefile.am): Likewise.
66401         * modules/printf-posix-tests (Makefile.am): Likewise.
66402         * modules/snprintf-posix-tests (Makefile.am): Likewise.
66403         * modules/sprintf-posix-tests (Makefile.am): Likewise.
66404         * modules/tsearch-tests (Makefile.am): Likewise.
66405         * modules/uniname/uniname-tests (Makefile.am): Likewise.
66406         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
66407         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
66408         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
66409         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
66410         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
66411         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
66412         * modules/vprintf-posix-tests (Makefile.am): Likewise.
66413         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
66414         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
66415         * modules/xstrtoimax-tests (Makefile.am): Likewise.
66416         * modules/xstrtol-tests (Makefile.am): Likewise.
66417         * modules/xstrtoumax-tests (Makefile.am): Likewise.
66418         * modules/yesno-tests (Makefile.am): Likewise.
66419
66420 2007-10-03  Bruno Haible  <bruno@clisp.org>
66421
66422         * modules/trunc-tests: New file.
66423         * tests/test-trunc.c: New file.
66424
66425         * modules/trunc: New file.
66426         * lib/trunc.c: New file.
66427         * m4/trunc.m4: New file.
66428         * lib/math.in.h (trunc): New declaration.
66429         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
66430         HAVE_DECL_TRUNC.
66431         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
66432         HAVE_DECL_TRUNC.
66433         * doc/functions/trunc.texi: Mention the 'trunc' module.
66434
66435 2007-10-03  Bruno Haible  <bruno@clisp.org>
66436
66437         * tests/test-fpending.c: New file, mostly copied
66438         from coreutils/lib/t-fpending.c.
66439         * modules/fpending-tests: New file.
66440
66441 2007-10-03  Bruno Haible  <bruno@clisp.org>
66442
66443         Port the stdio extensions to QNX (untested).
66444         * lib/fseterr.c (fseterr): Add support for QNX.
66445         * lib/fbufmode.c (fbufmode): Likewise.
66446         * lib/freadable.c (freadable): Likewise.
66447         * lib/fwritable.c (fwritable): Likewise.
66448         * lib/freading.c (freading): Likewise.
66449         * lib/fwriting.c (fwriting): Likewise.
66450         * lib/freadahead.c (freadahed): Likewise.
66451         * lib/fpurge.c (fpurge): Likewise.
66452         * lib/fseeko.c (rpl_fseeko): Likewise.
66453
66454 2007-10-03  Bruno Haible  <bruno@clisp.org>
66455             Jim Meyering  <jim@meyering.net>
66456             Eric Blake  <ebb9@byu.net>
66457
66458         * doc/relocatable.texi: Use @command instead of @program.
66459
66460 2007-10-02  Jim Meyering  <jim@meyering.net>
66461
66462         Perform one more "_.h" -> ".in.h" substitution.
66463         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
66464         instead of unistd_.h here, too.
66465
66466 2007-10-01  Bruno Haible  <bruno@clisp.org>
66467
66468         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
66469         Needed for the alloca-opt module.
66470
66471 2007-09-30  Bruno Haible  <bruno@clisp.org>
66472
66473         * lib/alloca.in.h: Renamed from lib/alloca_.h.
66474         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
66475         alloca_.h.
66476         * lib/argz.in.h: Renamed from lib/argz_.h.
66477         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
66478         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
66479         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
66480         byteswap_.h.
66481         * lib/dirent.in.h: Renamed from lib/dirent_.h.
66482         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
66483         dirent_.h.
66484         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
66485         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
66486         fcntl_.h.
66487         * lib/float.in.h: Renamed from lib/float_.h.
66488         * modules/float (Files, Makefile.am): Use float.in.h instead of
66489         float_.h.
66490         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
66491         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
66492         fnmatch_.h.
66493         * lib/getopt.in.h: Renamed from lib/getopt_.h.
66494         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
66495         getopt_.h.
66496         * lib/glob.in.h: Renamed from lib/glob_.h.
66497         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
66498         * lib/iconv.in.h: Renamed from lib/iconv_.h.
66499         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
66500         iconv_.h.
66501         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
66502         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
66503         inttypes_.h.
66504         * lib/locale.in.h: Renamed from lib/locale_.h.
66505         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
66506         locale_.h.
66507         * lib/math.in.h: Renamed from lib/math_.h.
66508         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
66509         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
66510         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
66511         of netinet_in_.h. Add dependency.
66512         * lib/poll.in.h: Renamed from lib/poll_.h.
66513         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
66514         * lib/search.in.h: Renamed from lib/search_.h.
66515         * modules/search (Files, Makefile.am): Use search.in.h instead of
66516         search_.h.
66517         * lib/signal.in.h: Renamed from lib/signal_.h.
66518         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
66519         _signal.h.
66520         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
66521         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
66522         stdbool_.h.
66523         * lib/stdint.in.h: Renamed from lib/stdint_.h.
66524         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
66525         stdint_.h.
66526         * lib/stdio.in.h: Renamed from lib/stdio_.h.
66527         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
66528         stdio_.h.
66529         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
66530         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
66531         stdlib_.h.
66532         * lib/string.in.h: Renamed from lib/string_.h.
66533         * modules/string (Files, Makefile.am): Use string.in.h instead of
66534         string_.h.
66535         * doc/gnulib-tool.texi (Initial import): Update.
66536         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
66537         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
66538         of sys_select_.h. Add dependency.
66539         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
66540         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
66541         of sys_socket_.h.
66542         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
66543         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
66544         sys_stat_.h.
66545         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
66546         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
66547         sys_time_.h.
66548         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
66549         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
66550         sysexits_.h.
66551         * lib/time.in.h: Renamed from lib/time_.h.
66552         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
66553         * lib/unistd.in.h: Renamed from lib/unistd_.h.
66554         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
66555         unistd_.h.
66556         * lib/wchar.in.h: Renamed from lib/wchar_.h.
66557         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
66558         wchar_.h.
66559         * lib/wctype.in.h: Renamed from lib/wctype_.h.
66560         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
66561         wctype_.h.
66562         * build-aux/bootstrap (slurp): Update.
66563         * lib/.cppi-disable: Update.
66564
66565 2007-09-30  Bruno Haible  <bruno@clisp.org>
66566
66567         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
66568         Needed on BeOS.
66569
66570 2007-09-30  Bruno Haible  <bruno@clisp.org>
66571
66572         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
66573
66574 2007-09-29  Bruno Haible  <bruno@clisp.org>
66575
66576         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
66577
66578 2007-09-29  Bruno Haible  <bruno@clisp.org>
66579
66580         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
66581         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
66582         * build-aux/install-reloc: Compile also areadlink.c.
66583         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
66584
66585 2007-09-29  Bruno Haible  <bruno@clisp.org>
66586
66587         * gnulib-tool (func_emit_initmacro_done): Indentation.
66588
66589 2007-09-29  Bruno Haible  <bruno@clisp.org>
66590
66591         * README: Add CVS checkout update instructions.
66592         Info from Bob Proulx <bob@proulx.com>.
66593
66594 2007-09-28  Eric Blake  <ebb9@byu.net>
66595
66596         Provide move-if-change.
66597         * build-aux/move-if-change: New file, based on best practice
66598         rather than any canonical upstream location.
66599
66600 2007-09-28  Jim Meyering  <jim@meyering.net>
66601
66602         Fix canonicalize loop-detection corner case.
66603         Do not attempt to stat the symlink values stored via seen_triple.
66604         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
66605         on linux-2.6.18, (but not 2.6.22).
66606         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
66607         triple_compare.  The former compares dev,ino,filename, while the latter
66608         would actually stat dirname(filename) when dev and ino were equal.
66609         * lib/hash-triple.c: Install <string.h>.
66610         (STREQ): Define.
66611         (triple_compare_ino_str): New function.
66612         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
66613
66614 2007-09-28  Eric Blake  <ebb9@byu.net>
66615
66616         Enforce that AC_REPLACE_FUNCS files exist.
66617         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
66618         override check for typos.
66619
66620         Fix test-closein on Solaris 10.
66621         * tests/test-closein.c (main): Don't assume stdin can be inherited
66622         closed on all systems.
66623         * tests/test-closein.sh: Likewise.
66624         Reported by Piotr Tarnowski.
66625
66626 2007-09-28  Jim Meyering  <jim@meyering.net>
66627
66628         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
66629
66630 2007-09-27  Jim Meyering  <jim@meyering.net>
66631
66632         canonicalize: Avoid a false-positive cycle failure.
66633         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
66634         Sort.  Remove cycle-check.
66635         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
66636         not cycle-check.h.
66637         (seen_triple): New function.
66638         (canonicalize_filename_mode): Use it instead of cycle-check.
66639         * tests/test-canonicalize.c: Add a test for this bug.
66640         * tests/test-canonicalize.sh: Set up and run the test.
66641
66642         New module, file-set, from coreutils.
66643         * modules/file-set: Define it.
66644         * lib/file-set.c, lib/file-set.h: Implement.
66645
66646         New module, hash-triple, from coreutils.
66647         * modules/hash-triple: Define it.
66648         * lib/hash-triple.c, lib/hash-triple.h: Implement.
66649
66650 2007-09-25  Eric Blake  <ebb9@byu.net>
66651
66652         Fix strerror on Interix.
66653         * lib/string_.h (strerror): Declare replacement.
66654         * doc/functions/strerror.texi (strerror): Document the Interix
66655         shortcoming.
66656         * modules/string (Makefile.am): Support new hooks.
66657         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
66658         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
66659         gl_FUNC_STRERROR_SEPARATE.
66660         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
66661         * lib/strerror.c (rpl_strerror): Provide replacement.
66662         * modules/strerror (Depends-on): Add string.
66663         (configure.ac): Detect use of module.
66664         * tests/test-strerror.c: New file.
66665         * modules/strerror-tests: New test module.
66666         * modules/argp (Depends-on): Add strerror.
66667         * modules/error (Depends-on): Likewise.
66668         Reported by Martin Koeppe.
66669
66670 2007-09-24  Bruno Haible  <bruno@clisp.org>
66671
66672         * README: Update git instructions.
66673
66674 2007-09-24  Eric Blake  <ebb9@byu.net>
66675
66676         Revert fpending breakage from 2007-09-08.
66677         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
66678         __fpending.c.
66679
66680 2007-09-24  Jim Meyering  <jim@meyering.net>
66681
66682         filenamecat.c: Add a test.
66683         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
66684         showing how the function works when DIR is the empty string.
66685
66686 2007-09-21  Simon Josefsson  <simon@josefsson.org>
66687
66688         * tests/test-canonicalize.sh: Turn on executable bit.
66689
66690 2007-09-19  Eric Blake  <ebb9@byu.net>
66691
66692         * README: Update CVS instructions.
66693
66694 2007-09-18  Bruno Haible  <bruno@clisp.org>
66695
66696         * modules/areadlink: New file.
66697         * lib/areadlink.h (areadlink): New declaration.
66698         * lib/areadlink.c: New file, based on lib/xreadlink.c.
66699
66700 2007-09-17  Jim Meyering  <jim@meyering.net>
66701
66702         * lib/savewd.c (ESTALE) [!defined]: Define.
66703         Reported to be required on Interix by Martin Koeppe.
66704
66705 2007-09-17  Bruno Haible  <bruno@clisp.org>
66706
66707         * gnulib-tool (func_version): Use $version.
66708
66709 2007-09-16  Bruno Haible  <bruno@clisp.org>
66710
66711         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
66712         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
66713         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
66714         Reported by Greg Schafer <gschafer@zip.com.au>.
66715
66716 2007-09-15  Bruno Haible  <bruno@clisp.org>
66717
66718         * gnulib-tool (sed): Try a little harder to make bash understand the
66719         alias.
66720         Reported by Bruce Korb <bruce.korb@gmail.com>.
66721
66722 2007-09-13  Eric Blake  <ebb9@byu.net>
66723
66724         * ChangeLog: Remove conflict markers.
66725
66726 2007-09-13  Simon Josefsson  <simon@josefsson.org>
66727
66728         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
66729         Reported by Bruno Haible <bruno@clisp.org>.
66730
66731 2007-09-12  Bruno Haible  <bruno@clisp.org>
66732
66733         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
66734         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
66735         is not defined.
66736
66737 2007-09-12  Eric Blake  <ebb9@byu.net>
66738
66739         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
66740         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
66741         Autoconf definition.
66742         * modules/euidaccess (Depends-on): Add extensions, for
66743         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
66744         * modules/fnmatch (Depends-on): Likewise.
66745         * modules/getaddrinfo (Depends-on): Likewise.
66746         * modules/getdelim (Depends-on): Likewise.
66747         * modules/getline (Depends-on): Likewise.
66748         * modules/getsubopt (Depends-on): Likewise.
66749         * modules/gettext (Depends-on): Likewise.
66750         * modules/group-member (Depends-on): Likewise.
66751         * modules/mbchar (Depends-on): Likewise.
66752         * modules/memmem (Depends-on): Likewise.
66753         * modules/mempcpy (Depends-on): Likewise.
66754         * modules/memrchr (Depends-on): Likewise.
66755         * modules/pagealign_alloc (Depends-on): Likewise.
66756         * modules/readutmp (Depends-on): Likewise.
66757         * modules/stpcpy (Depends-on): Likewise.
66758         * modules/stpncpy (Depends-on): Likewise.
66759         * modules/strchrnul (Depends-on): Likewise.
66760         * modules/strndup (Depends-on): Likewise.
66761         * modules/strsep (Depends-on): Likewise.
66762         * modules/strverscmp (Depends-on): Likewise.
66763         * modules/vasprintf (Depends-on): Likewise.
66764         * modules/wcwidth (Depends-on): Likewise.
66765         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
66766         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
66767         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
66768         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
66769         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
66770         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
66771         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
66772         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
66773         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
66774         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
66775         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
66776         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
66777         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
66778         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
66779         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
66780         * m4/readutmp.m4 (gl_READUTMP): Likewise.
66781         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
66782         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
66783         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
66784         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
66785         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
66786         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
66787         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
66788         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
66789         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
66790         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
66791         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
66792         so that lock.m4 can be used in gettext without extensions module.
66793
66794 2007-09-11  Bruno Haible  <bruno@clisp.org>
66795
66796         * m4/isc-posix.m4: Remove file.
66797         Suggested by Eric Blake.
66798
66799 2007-09-11  Eric Blake  <ebb9@byu.net>
66800
66801         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
66802
66803 2007-09-10  Bruno Haible  <bruno@clisp.org>
66804
66805         * posix-modules: Fix typo in error message.
66806         Reported by Matt <mkraai@beckman.com>.
66807
66808 2007-09-09  Bruno Haible  <bruno@clisp.org>
66809
66810         * doc/functions/getdelim.texi: Update list of platforms lacking the
66811         function.
66812         * doc/functions/getline.texi: Likewise.
66813
66814 2007-09-09  Jim Meyering  <jim@meyering.net>
66815
66816         * lib/hash.c (hash_initialize): Detect calloc failure.
66817         Reported by Bruno Haible.
66818
66819 2007-09-09  Bruno Haible  <bruno@clisp.org>
66820
66821         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
66822         malloc or realloc fails.
66823
66824 2007-09-09  Bruno Haible  <bruno@clisp.org>
66825
66826         * modules/getcwd (Depends-on): Add malloc-posix.
66827         * modules/glob (Depends-on): Likewise.
66828         * modules/putenv (Depends-on): Likewise.
66829         * modules/strdup (Depends-on): Likewise.
66830         * modules/getdelim (Depends-on): Add realloc-posix.
66831         * modules/read-file (Depends-on): Likewise.
66832
66833 2007-09-09  Bruno Haible  <bruno@clisp.org>
66834
66835         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
66836         (gl_FUNC_MALLOC_POSIX): Require it.
66837         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
66838         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
66839         * modules/realloc (Files): Add m4/malloc.m4.
66840         * modules/calloc (Files): Likewise.
66841
66842 2007-09-09  Bruno Haible  <bruno@clisp.org>
66843
66844         * modules/malloc-posix: New file.
66845         * modules/malloc (Depends-on): Add malloc-posix.
66846         * lib/malloc.c: Include errno.h.
66847         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
66848         and a POSIX-compatible malloc into a single function. Set ENOMEM
66849         when returning NULL.
66850         * m4/malloc.m4: New file.
66851         * doc/functions/malloc.texi: Mention the malloc-posix module.
66852         * lib/stdlib_.h (malloc): New declaration.
66853         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
66854         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
66855         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
66856         and HAVE_MALLOC_POSIX.
66857
66858 2007-09-09  Bruno Haible  <bruno@clisp.org>
66859
66860         * modules/realloc-posix: New file.
66861         * modules/realloc (Depends-on): Add realloc-posix.
66862         * lib/realloc.c: Include errno.h.
66863         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
66864         and a POSIX-compatible realloc into a single function. Set ENOMEM
66865         when returning NULL.
66866         * m4/realloc.m4: New file.
66867         * doc/functions/realloc.texi: Mention the realloc-posix module.
66868         * lib/stdlib_.h (realloc): New declaration.
66869         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
66870         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
66871         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
66872         and HAVE_REALLOC_POSIX.
66873
66874 2007-09-09  Bruno Haible  <bruno@clisp.org>
66875
66876         * modules/calloc-posix: New file.
66877         * modules/calloc (Depends-on): Add calloc-posix.
66878         * lib/calloc.c: Include errno.h.
66879         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
66880         and a POSIX-compatible calloc into a single function. Set ENOMEM
66881         when returning NULL.
66882         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
66883         * doc/functions/calloc.texi: Mention the calloc-posix module.
66884         * lib/stdlib_.h (calloc): New declaration.
66885         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
66886         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
66887         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
66888         and HAVE_CALLOC_POSIX.
66889
66890 2007-09-09  Bruno Haible  <bruno@clisp.org>
66891
66892         Allow for modules to show an arbitrary notice.
66893         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
66894         * gnulib-tool: New option --extract-notice.
66895         (func_usage): Document it.
66896         (sed_extract_prog): Update.
66897         (func_get_notice): New function.
66898         (func_modules_notice): New function.
66899         (func_import, func_create_testdir): Invoke it.
66900         Suggested by Jim Meyering.
66901
66902 2007-09-09  Bruno Haible  <bruno@clisp.org>
66903
66904         * gnulib-tool: New options --verbose, --quiet.
66905         (func_usage): Document them.
66906         (verbose): New variable.
66907         (func_execute_command): New function.
66908         (func_import): Don't show the module list and the file list if
66909         $verbose < 0.
66910         (func_create_testdir): Likewise. Use func_execute_command.
66911         (func_create_megatestdir): Use func_execute_command.
66912
66913 2007-09-08  Bruno Haible  <bruno@clisp.org>
66914
66915         * gnulib-tool (func_import): Prefer rsync over wget when available,
66916         for fetching the PO files.
66917
66918 2007-09-08  Bruno Haible  <bruno@clisp.org>
66919
66920         * posix-modules: New file. Portions copied from gnulib-tool.
66921         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
66922
66923 2007-09-08  Jim Meyering  <jim@meyering.net>
66924
66925         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
66926         * lib/fpending.h: Rename from __fpending.h.
66927         * lib/fpending.c: Rename from __fpending.c.
66928         Include "fpending.h", not "__fpending.h".
66929         * lib/__fpending.h, lib/__fpending.c: Remove files.
66930         * modules/fpending (Files): Reflect new file names.
66931         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
66932
66933 2007-09-08  Bruno Haible  <bruno@clisp.org>
66934
66935         * m4/inttypes-h.m4: Remove stub file.
66936
66937 2007-09-07  Simon Josefsson  <simon@josefsson.org>
66938
66939         * doc/headers/stdint.texi: Discuss #include_next issue.
66940
66941 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
66942
66943         * build-aux/bootstrap: Remove obsolete comment about wget --help.
66944
66945 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
66946
66947         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
66948         in variable name.
66949
66950 2007-09-03  Jim Meyering  <jim@meyering.net>
66951
66952         New module: git-version-gen.
66953         * modules/git-version-gen: New file.
66954
66955         Import changes from coreutils for bootstrap script.
66956
66957         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
66958
66959         bootstrap: uses rsync to download the .po files
66960         * build-aux/bootstrap (po_download_command_format): New global.
66961         (download_po_files): Use rsync.
66962         (update_po_files): Don't remove .po files after download,
66963         so future rsync runs can take advantage of the copies.
66964
66965         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
66966
66967         Solve the unnecessary-.po-file-regeneration problem once and for all.
66968         * build-aux/bootstrap (download_po_files): New function, renamed from
66969         get_translations.  Now, downloads, but doesn't update LINGUAS.
66970         (update_po_files): New function.
66971
66972         bootstrap: Ignore more.
66973         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
66974         uniwidth to e.g., lib/.gitignore.
66975         (slurp): Handle the sys_stat_.h -> sys mapping, too.
66976
66977         * build-aux/bootstrap: New setting: vc_ignore.
66978         (insert_sorted_if_absent): Create $file if absent.
66979         Adapt to new, possibly empty, list: $vc_ignore.
66980
66981         bootstrap: generate more ignorable names
66982         * build-aux/bootstrap (slurp): When generating ignorable names,
66983         also map .sin to .sed, .gperf to .c, and .y to .c.
66984
66985 2007-09-03  Jim Meyering  <jim@meyering.net>
66986
66987         * build-aux/git-version-gen: New file, from coreutils.  For details, see
66988         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
66989
66990 2007-09-02  Bruno Haible  <bruno@clisp.org>
66991
66992         Fix mis-recognition of 'mcs' on QNX 6.
66993         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
66994         output contains the string "Mono".
66995         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
66996         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
66997
66998 2007-09-01  Bruno Haible  <bruno@clisp.org>
66999
67000         Fix collision between uniwidth/* and linebreak modules.
67001         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
67002         u32_width): Remove declarations.
67003         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
67004         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
67005         streq3, streq2, streq1, streq0): Remove functions.
67006         (STREQ): Remove macro.
67007         (is_cjk_encoding): Remove function.
67008         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
67009         (uc_width, u8_width, u16_width, u32_width): Remove functions.
67010         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
67011         * NEWS: Document the change.
67012
67013 2007-09-01  Bruno Haible  <bruno@clisp.org>
67014
67015         * lib/streq.h: Add double-inclusion guard.
67016
67017 2007-09-01  Karl Berry  <karl@gnu.org>
67018
67019         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
67020
67021 2007-08-28  Jim Meyering  <jim@meyering.net>
67022
67023         Rename mreadlink_with_size to areadlink_with_size.
67024         * NEWS: Document the change.
67025         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
67026         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
67027         * lib/mreadlink.h: Rename this to...
67028         * lib/areadlink.h: ...this.
67029         * modules/mreadlink-with-size: Rename this to...
67030         * modules/areadlink-with-size: ...this.
67031         * lib/canonicalize.c: Reflect the renaming.
67032         * modules/canonicalize: Likewise.
67033
67034 2007-08-26  Bruno Haible  <bruno@clisp.org>
67035
67036         * gnulib-tool (func_import): When deciding which files to remove,
67037         consider also dangling symbolic links.
67038         Reported by Eric Blake.
67039
67040 2007-08-26  Bruno Haible  <bruno@clisp.org>
67041
67042         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
67043
67044 2007-08-23  Simon Josefsson  <simon@josefsson.org>
67045
67046         * lib/readline.c: Don't include getline.h, the prototype is now
67047         found in stdio.h.
67048
67049 2007-08-23  Jim Meyering  <jim@meyering.net>
67050
67051         Getdelim touchup.
67052         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
67053         around the funlockfile call, since funlockfile never sets errno.
67054         Don't set errno upon failed realloc.
67055
67056 2007-08-22  Eric Blake  <ebb9@byu.net>
67057
67058         Getline touchups.
67059         * lib/getdelim.c (getdelim): Revert regression that required *n to
67060         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
67061         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
67062         getdelim, rather than whether implementation is missing.
67063         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
67064         * lib/stdio_.h (getline): Also declare if replacement is
67065         required.
67066         * doc/functions/getdelim.texi: New file.
67067         * doc/functions/getline.texi: Likewise.
67068         * doc/gnulib.texi (Function Substitutes): Add new files.
67069         Reported by Bruno Haible.
67070
67071 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
67072
67073         * users.txt: Add Guile.
67074
67075 2007-08-22  Eric Blake  <ebb9@byu.net>
67076
67077         * tests/test-getdelim.c (main): Use remove, not unlink.
67078         * tests/test-getline.c (main): Likewise.
67079
67080         Move getline and getdelim into stdio.h, per POSIX 200x.
67081         * modules/getline (Files): Remove getline.h.
67082         (Depends-on): Add stdio.
67083         (configure.ac): Add module indicator.
67084         * modules/getdelim (Files): Remove getdelim.h.
67085         (Depends-on): Add stdio.
67086         (configure.ac): Add module indicator.
67087         * modules/stdio (Makefile.am): Work with new indicators.
67088         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
67089         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
67090         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
67091         * lib/getdelim.h: Delete.
67092         * lib/getline.h: Delete.
67093         * lib/stdio_.h (getdelim, getline): Declare.
67094         * modules/getdelim-tests: New module.
67095         * modules/getline-tests: Likewise.
67096         * tests/test-getdelim.c: New file.
67097         * tests/test-getline.c: Likewise.
67098         * NEWS: Document the change.
67099         * lib/getline.c: Update choice of header.
67100         * lib/csharpcomp.c: Likewise.
67101         * lib/getpass.c: Likewise.
67102         * lib/javacomp.c: Likewise.
67103         * lib/javaversion.c: Likewise.
67104         * lib/yesno.c: Likewise.
67105         * lib/getdelim.c: Likewise.
67106         (getdelim): Set errno on failure, and avoid memory leak.
67107
67108 2007-08-19  Bruno Haible  <bruno@clisp.org>
67109
67110         * modules/closein (Depends-on): Add freadahead.
67111         * lib/closein.c: Include freadahead.h.
67112         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
67113         is zero.
67114
67115 2007-08-19  Bruno Haible  <bruno@clisp.org>
67116
67117         * modules/freadahead-tests: New file.
67118         * tests/test-freadahead.sh: New file.
67119         * tests/test-freadahead.c: New file.
67120
67121         * modules/freadahead: New file.
67122         * lib/freadahead.h: New file.
67123         * lib/freadahead.c: New file.
67124         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
67125         fbufmode, fpurge, freadable, fwritable.
67126
67127 2007-08-19  Eric Blake  <ebb9@byu.net>
67128
67129         Test yesno in combination with closein.
67130         * lib/yesno.c (yesno): Document use of stdin.
67131         * modules/yesno-tests (Files): New module.
67132         * tests/test-yesno.c (main): New file.
67133         * tests/test-yesno.sh: Likewise.
67134
67135 2007-08-19  Bruno Haible  <bruno@clisp.org>
67136
67137         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
67138         * lib/fseeko.c (rpl_fseeko): Likewise.
67139         * lib/fseterr.c (fseterr): Likewise.
67140
67141 2007-08-19  Bruno Haible  <bruno@clisp.org>
67142
67143         * tests/test-lseek.c (main): Disable a test for BeOS.
67144         * doc/functions/lseek.texi: Document the BeOS bug.
67145
67146 2007-08-19  Bruno Haible  <bruno@clisp.org>
67147             Eric Blake  <ebb9@byu.net>
67148
67149         * lib/lseek.c: Include <sys/stat.h>.
67150         (rpl_lseek): Add workaround code also for Unix platforms.
67151         Needed for BeOS.
67152         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
67153         * doc/functions/lseek.texi: Document BeOS definiency.
67154
67155 2007-08-18  Bruno Haible  <bruno@clisp.org>
67156
67157         * modules/fstrcmp-tests: New file.
67158         * tests/test-fstrcmp.c: New file.
67159
67160 2007-08-18  Bruno Haible  <bruno@clisp.org>
67161
67162         * modules/fstrcmp: New file, from GNU gettext with modifications.
67163         * lib/fstrcmp.h: New file, from GNU gettext.
67164         * lib/fstrcmp.c: New file, from GNU gettext.
67165         * MODULES.html.sh (String handling): Add fstrcmp.
67166
67167 2007-08-18  Bruno Haible  <bruno@clisp.org>
67168
67169         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
67170         'bool'.
67171         (diag, compareseq): Remove const from the ctxt argument.
67172         (USE_HEURISTIC): Undefine at the end.
67173
67174 2007-08-18  Jim Meyering  <jim@meyering.net>
67175
67176         New file: lib/idcache.h
67177         * NEWS: Mention the addition.
67178         * modules/idcache (Files): Add lib/idcache.h
67179         * lib/idcache.c: Include "idcache.h".
67180         Don't include <sys/types.h>.
67181         Add a FIXME comment.
67182         Move file-scoped "static" declarations to the top.
67183         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
67184
67185 2007-08-17  Bruno Haible  <bruno@clisp.org>
67186         and Paul Eggert  <eggert@cs.ucla.edu>
67187
67188         * MODULES.html.sh: Add diffseq.
67189         * modules/diffseq: New file.
67190         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
67191         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
67192
67193 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
67194
67195         Import changes from coreutils for bootstrap script.
67196
67197         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
67198
67199         * build-aux/bootstrap (slurp): Work even in environments where
67200         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
67201         current code does not slurp files whose names start with ".", and
67202         this looks like it might be a troublesome area.
67203
67204         2007-07-11  Jim Meyering  <jim@meyering.net>
67205
67206         If there's a GPL vN copyright comment, require that N == 3.
67207
67208         2007-07-08  Jim Meyering  <jim@meyering.net>
67209
67210         Run the coreutils-specific code only if tests/Makefile.am.in exists.
67211         * build-aux/bootstrap (mam_template): Move definition out of loop.
67212
67213         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
67214
67215         * build-aux/bootstrap (symlink_to_dir): Rename function from
67216         symlink_to_gnulib.  Add a directory parameter.  Update all
67217         callers.
67218         (cp_mark_as_generated): Also check for -- and link to -- files in
67219         gl/.
67220
67221         2007-07-08  Jim Meyering  <jim@meyering.net>
67222
67223         Adapt to deeper hierarchy in gnulib.
67224         * build-aux/bootstrap (symlink_to_dir): If the destination
67225         directory doesn't exist, create it. This is required at least for
67226         "lib/uniwidth/cjk.h".
67227
67228         2007-05-15  Jim Meyering  <jim@meyering.net>
67229
67230         * build-aux/bootstrap: Now that generated Makefile.am files
67231         are no longer under version control, they must be created at
67232         bootstrap time.
67233
67234 2007-08-14  Ben Pfaff  <blp@gnu.org>
67235
67236         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
67237
67238 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
67239
67240         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
67241         given the changes below.
67242         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
67243         even on hosts that have padding bits beyond the supported 64.
67244
67245 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
67246
67247         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
67248         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
67249         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
67250         depends on it.
67251         (xstrtol_error): Remove.
67252         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
67253         but with a different signature.
67254         (ATTRIBUTE_NORETURN, __attribute__): New macros.
67255         * lib/xstrtol-error.c: Include exitfail.h.
67256         (xstrtol_fatal): New function, with a different signature from the
67257         old xstrtol_error, so that the caller need not worry about passing
67258         in an exit status, or about storage management of the option argument.
67259         (xstrtol_error): Now a static function.  Redo signature to
67260         implement xstrtol_fatal.  Output the correct number of hyphens in
67261         front of the option so that the caller need not worry about
67262         storage management.
67263         (N_): New macro.
67264         (_): Remove; not used now.
67265         * modules/xstrtol: Depend on getopt.
67266         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
67267         of old STRTOL_FATAL_ERROR macro.
67268         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
67269         of test program.
67270         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
67271         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
67272
67273 2007-08-08  Eric Blake  <ebb9@byu.net>
67274
67275         * lib/xstrtol-error.c: Add missing include.
67276
67277         Move xstrtol messages into gnulib domain, when --pobase is used.
67278         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
67279         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
67280         * modules/xstrtol (Files): Distribute new file.
67281         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
67282         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
67283         * tests/test-xstrtol.c: ...into new file.
67284         * tests/test-xstrtoul.c: Also test xstrtoul.
67285         * tests/test-xstrtoimax.c: Also test xstrtoimax.
67286         * tests/test-xstrtoumax.c: Also test xstrtoumax.
67287         * tests/test-xstrtol.sh: Drive the tests.
67288         * tests/test-xstrtoimax.sh: Likewise.
67289         * tests/test-xstrtoumax.sh: Likewise.
67290         * modules/xstrtol-tests: New module.
67291         * modules/xstrtoimax-tests: Likewise.
67292         * modules/xstrtoumax-tests: Likewise.
67293
67294 2007-08-08  Jim Meyering  <jim@meyering.net>
67295
67296         New function: mfile_name_concat.
67297         * lib/filenamecat.c (mfile_name_concat): New function, just like
67298         file_name_concat, but return NULL upon failure rather than exiting
67299         with a diagnostic.
67300         * lib/filenamecat.h: Declare it.
67301
67302 2007-08-07  Bruno Haible  <bruno@clisp.org>
67303
67304         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
67305         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
67306         warning from gcc.
67307         Reported by Eric Blake.
67308
67309 2007-08-07  Simon Josefsson  <simon@josefsson.org>
67310
67311         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
67312         * modules/crypto/arcfour (License): Likewise.
67313         * modules/crypto/des-tests (License): Likewise.
67314         * modules/crypto/gc-arctwo-tests (License): Likewise.
67315         * modules/crypto/gc-des-tests (License): Likewise.
67316         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
67317         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
67318         * modules/crypto/gc-md2-tests (License): Likewise.
67319         * modules/crypto/gc-md4-tests (License): Likewise.
67320         * modules/crypto/gc-md5-tests (License): Likewise.
67321         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
67322         * modules/crypto/gc-rijndael-tests (License): Likewise.
67323         * modules/crypto/gc-sha1-tests (License): Likewise.
67324         * modules/crypto/gc-tests (License): Likewise.
67325         * modules/crypto/hmac-md5 (License): Likewise.
67326         * modules/crypto/hmac-sha1 (License): Likewise.
67327         * modules/crypto/md2-tests (License): Likewise.
67328         * modules/crypto/md4-tests (License): Likewise.
67329         * modules/crypto/md5 (License): Likewise.
67330         * modules/crypto/rijndael (License): Likewise.
67331         * modules/crypto/sha1 (License): Likewise.
67332         * modules/memxor (License): Likewise.
67333
67334 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
67335         and Bruno Haible  <bruno@clisp.org>
67336
67337         * NEWS: Describe interface changes to human, xstrtol.
67338         * lib/human.h: Include <xstrtol.h>.
67339         (human_options): Return enum strtol_error, not int.  Remove
67340         bool arg; take int * instead.
67341         * lib/human.c: Don't include "gettext.h".
67342         (_): Remove; no longer used.
67343         Don't include <xstrtol.h>, since human.h does it.
67344         (human_options): Adjust to abovementioned interface changes.
67345         Do not report error to stderr; that's now the caller's
67346         responsibility.
67347         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
67348         interface change.
67349         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
67350         Str, Argument_type_string.  All uses changed.  Put " argument"
67351         in diagnostics to make them clearer.  Change wording of suffix
67352         message for clarity.
67353         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
67354         Argument_type_string.
67355         (STRTOL_FATAL_WARN): Remove; no longer used.
67356         * modules/human (Depends-on): Remove gettext-h.
67357
67358 2007-08-06  Simon Josefsson  <simon@josefsson.org>
67359
67360         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
67361
67362 2007-07-31  Bruno Haible  <bruno@clisp.org>
67363
67364         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
67365         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
67366         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
67367
67368 2007-07-31  Bruno Haible  <bruno@clisp.org>
67369
67370         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
67371         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
67372
67373 2007-07-30  Bruno Haible  <bruno@clisp.org>
67374
67375         * modules/base64 (License): Use the synonymous term "LGPLv2+".
67376         * modules/c-ctype (License): Likewise.
67377         * modules/c-strcase (License): Likewise.
67378         * modules/check-version (License): Likewise.
67379         * modules/iconv (License): Likewise.
67380         * modules/iconv_open (License): Likewise.
67381         * modules/read-file (License): Likewise.
67382         * modules/striconv (License): Likewise.
67383         * modules/strverscmp (License): Likewise.
67384         * modules/vasprintf (License): Likewise.
67385         * modules/crypto/des (License): Likewise.
67386         * modules/crypto/gc (License): Likewise.
67387         * modules/crypto/gc-arcfour (License): Likewise.
67388         * modules/crypto/gc-arctwo (License): Likewise.
67389         * modules/crypto/gc-des (License): Likewise.
67390         * modules/crypto/gc-hmac-md5 (License): Likewise.
67391         * modules/crypto/gc-hmac-sha1 (License): Likewise.
67392         * modules/crypto/gc-md2 (License): Likewise.
67393         * modules/crypto/gc-md4 (License): Likewise.
67394         * modules/crypto/gc-md5 (License): Likewise.
67395         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
67396         * modules/crypto/gc-random (License): Likewise.
67397         * modules/crypto/gc-rijndael (License): Likewise.
67398         * modules/crypto/gc-sha1 (License): Likewise.
67399         * modules/crypto/md2 (License): Likewise.
67400         * modules/crypto/md4 (License): Likewise.
67401
67402 2007-07-30  Jim Meyering  <jim@meyering.net>
67403
67404         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
67405         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
67406         it has valid stat data.  This bug would cause du not to count the
67407         sizes of inaccessible directories.
67408         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
67409         in <http://bugzilla.redhat.com/250077>.
67410
67411 2007-07-25  Peter O'Gorman  <peter@pogma.com>
67412             Bruno Haible  <bruno@clisp.org>
67413
67414         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
67415         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
67416         #include_next, gives a diagnostic about it, but reports no error in
67417         the exit code.
67418         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
67419
67420 2007-07-24  Ben Pfaff  <blp@gnu.org>
67421
67422         Improve name: "count-one-bits" is better than "popcount".
67423         * MODULES.html.sh: Update name.
67424         * lib/popcount.h: Renamed lib/count-one-bits.h.
67425         (popcount): Renamed count_one_bits.
67426         (popcountl): Renamed count_one_bits_l.
67427         (popcountll): Renamed count_one_bits_ll.
67428         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
67429         * modules/popcount: Renamed module/count-one-bits.
67430         * modules/popcount-tests: Renamed module/count-one-bits-tests.
67431         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
67432
67433 2007-07-23  Ben Pfaff  <blp@gnu.org>
67434
67435         * lib/popcount.h (popcount32): Reduce size of constants, to allow
67436         better code generation, and add U to large constants to avoid
67437         warnings, in non-GCC case.
67438         Suggested by Bruno Haible.
67439
67440 2007-07-23  Ben Pfaff  <blp@gnu.org>
67441
67442         * lib/popcount.h: Use verify_true instead of if...abort.
67443         * modules/popcount: Depend on verify module.
67444         Suggested by Jim Meyering.
67445
67446 2007-07-23  Bruno Haible  <bruno@clisp.org>
67447
67448         * gnulib-tool (func_import): Create a .cvsignore file also when the
67449         directory is not yet in CVS but the toplevel directory is. When
67450         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
67451         Reported by Karl Berry.
67452
67453 2007-07-22  Ben Pfaff  <blp@gnu.org>
67454
67455         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
67456         case.
67457         Suggested by Eric Blake.
67458
67459 2007-07-22  Ben Pfaff  <blp@gnu.org>
67460
67461         New module: popcount.
67462         * MODULES.html.sh: Add popcount.
67463         * modules/popcount: New file.
67464         * modules/popcount-tests: New file.
67465         * tests/test-popcount.c: New file.
67466         * lib/popcount.h: New file.
67467         * m4/popcount.m4: New file.
67468
67469 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
67470
67471         * build-aux/announce-gen: Update to GPLv3.
67472
67473         * build-aux/config.guess: Update from config.
67474
67475 2007-07-21  Bruno Haible  <bruno@clisp.org>
67476
67477         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
67478         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
67479
67480 2007-07-20  Jim Meyering  <jim@meyering.net>
67481
67482         * check-module: Diagnose a self-dependency.
67483
67484 2007-07-19  Bruno Haible  <bruno@clisp.org>
67485
67486         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
67487         empty.
67488         Reported by Eric Blake.
67489
67490 2007-07-18  Bruno Haible  <bruno@clisp.org>
67491
67492         * gnulib-tool: New options --po-base, --po-domain.
67493         (func_usage): Document them.
67494         (pobase, po_domain): New variables.
67495         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
67496         DEFAULT_TEXT_DOMAIN.
67497         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
67498         (func_import): Consider pobase and po_domain. Create a po/ directory.
67499         (func_create_testdir): Set pobase and po_domain to empty.
67500         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
67501         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
67502
67503 2007-07-18  Bruno Haible  <bruno@clisp.org>
67504
67505         * gnulib-tool (func_get_automake_snippet): Synthesize also an
67506         EXTRA_DIST augmentation for files in build-aux/.
67507
67508 2007-07-16  Bruno Haible  <bruno@clisp.org>
67509
67510         * modules/lseek (License): Use the synonymous term "LGPLv2+".
67511         * modules/getdelim (License): Likewise.
67512
67513 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
67514
67515         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
67516         * modules/d-type (License): Likewise.
67517         * modules/extensions (License): Likewise.
67518         * modules/fnmatch (License): Likewise.
67519         * modules/fseeko (License): Likewise.
67520         * modules/getaddrinfo (License): Likewise.
67521         * modules/getline (License): Likewise.
67522         * modules/getlogin_r (License): Likewise.
67523         * modules/getpass (License): Likewise.
67524         * modules/gettimeofday (License): Likewise.
67525         * modules/glob (License): Likewise.
67526         * modules/inet_ntop (License): Likewise.
67527         * modules/malloc (License): Likewise.
67528         * modules/malloca (License): Likewise.
67529         * modules/memmem (License): Likewise.
67530         * modules/mempcpy (License): Likewise.
67531         * modules/memset (License): Likewise.
67532         * modules/minmax (License): Likewise.
67533         * modules/mktime (License): Likewise.
67534         * modules/netinet_in (License): Likewise.
67535         * modules/pathmax (License): Likewise.
67536         * modules/poll (License): Likewise.
67537         * modules/regex (License): Likewise.
67538         * modules/snprintf (License): Likewise.
67539         * modules/stdbool (License): Likewise.
67540         * modules/stdint (License): Likewise.
67541         * modules/stdio (License): Likewise.
67542         * modules/strcase (License): Likewise.
67543         * modules/strcasestr (License): Likewise.
67544         * modules/strdup (License): Likewise.
67545         * modules/string (License): Likewise.
67546         * modules/strndup (License): Likewise.
67547         * modules/strnlen (License): Likewise.
67548         * modules/strpbrk (License): Likewise.
67549         * modules/strptime (License): Likewise.
67550         * modules/strsep (License): Likewise.
67551         * modules/sys_select (License): Likewise.
67552         * modules/sys_socket (License): Likewise.
67553         * modules/sys_stat (License): Likewise.
67554         * modules/sys_time (License): Likewise.
67555         * modules/time (License): Likewise.
67556         * modules/time_r (License): Likewise.
67557         * modules/timegm (License): Likewise.
67558         * modules/unistd (License): Likewise.
67559         * modules/vsnprintf (License): Likewise.
67560         * modules/wctype (License): Likewise.
67561
67562 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67563
67564         * modules/argz (License): LGPLv2+.
67565
67566 2007-07-15  Karl Berry  <karl@gnu.org>
67567
67568         * doc/gnulib.texi: revise node structure per new fdl.texi.
67569
67570 2007-07-14  Bruno Haible  <bruno@clisp.org>
67571
67572         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
67573         the output file.
67574         * lib/uniname/uninames.h: Regenerated.
67575
67576 2007-07-14  Karl Berry  <karl@gnu.org>
67577
67578         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
67579         omitting sectioning and index commands.
67580
67581 2007-07-13  Bruno Haible  <bruno@clisp.org>
67582
67583         New gnulib-tool option --more-symlinks.
67584         * gnulib-tool (func_usage): Document --more-symlinks.
67585         (do_copyrights): New variable.
67586         Recognize option --more-symlinks.
67587         (func_import): Don't add a copyright notice transform to
67588         sed_transform_lib_file if do_copyrights is empty.
67589
67590 2007-07-13  Bruno Haible  <bruno@clisp.org>
67591
67592         * lib/vasnprintf.c (decimal_point_char): Define also if
67593         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
67594         && !NEED_PRINTF_DIRECTIVE_A.
67595         Reported by Clemens Koller <clemens.koller@anagramm.de> via
67596         Gary V. Vaughan <gary@gnu.org>.
67597
67598 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
67599
67600         * lib/inttypes_.h: Undo previous change, since it was fixed
67601         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
67602
67603 2007-07-13  Bruno Haible  <bruno@clisp.org>
67604
67605         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
67606         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
67607
67608 2007-07-13  Jim Meyering  <jim@meyering.net>
67609
67610         df: Don't fail for Tru64's "file-on-file mount".
67611         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
67612         so we fall through and use statfs instead.  Details here:
67613         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
67614         Reported by Albert Chin.
67615
67616 2007-07-13  Bruno Haible  <bruno@clisp.org>
67617
67618         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
67619         * modules/configmake (License): Likewise.
67620         * modules/gettext (License): Likewise.
67621         * modules/gettext-h (License): Likewise.
67622         * modules/include_next (License): Likewise.
67623         * modules/link-warning (License): Likewise.
67624         * modules/localcharset (License): Likewise.
67625         * modules/localename (License): Likewise.
67626         * modules/lock (License): Likewise.
67627         * modules/relocatable-lib-lgpl (License): Likewise.
67628         * modules/size_max (License): Likewise.
67629         * modules/vasnprintf (License): Likewise.
67630         * modules/wchar (License): Likewise.
67631         * modules/xsize (License): Likewise.
67632
67633 2007-07-13  Bruno Haible  <bruno@clisp.org>
67634
67635         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
67636         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
67637
67638 2007-07-12  Bruno Haible  <bruno@clisp.org>
67639
67640         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
67641         in the modules files.
67642
67643 2007-07-11  Karl Berry  <karl@gnu.org>
67644
67645         * MODULES.html.sh (func_module): use
67646          sed -e '\|^'"${includefile}"'$|d'
67647          instead of /.../d, to avoid errors on $includefile's containing /.
67648
67649 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
67650
67651         * gnulib-tool (func_import): Avoid duplication of --avoid
67652         statements
67653         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
67654         names to `_' in variable names.
67655
67656 2007-07-10  Eric Blake  <ebb9@byu.net>
67657
67658         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
67659         * NEWS: Document this change.
67660
67661 2007-07-08  Bruno Haible  <bruno@clisp.org>
67662
67663         Update to Unicode 5.0.
67664         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
67665         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
67666         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
67667         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
67668         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
67669         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
67670         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
67671         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
67672         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
67673         U+10A3F, U+1D242..U+1D244.
67674         (nonspacing_table_ind): Update.
67675         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
67676         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
67677
67678 2007-07-08  Bruno Haible  <bruno@clisp.org>
67679
67680         Update to Unicode 5.0.
67681         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
67682         code transform. Extend the name index field of unicode_name_to_code and
67683         unicode_code_to_name from 16 to 24 bits.
67684         * lib/uniname/uniname.c (unicode_character_name,
67685         unicode_name_character): Add the range 0x12xxx to the code transform.
67686         * lib/uniname/uninames.h: Regenerated.
67687         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
67688
67689 2007-07-07  Bruno Haible  <bruno@clisp.org>
67690
67691         * modules/wcwidth-tests: New file.
67692         * tests/test-wcwidth.c: New file.
67693
67694         Work around MacOS X wcwidth() bug.
67695         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
67696         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
67697         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
67698         original wcwidth in non-UTF-8 locales.
67699         * modules/wcwidth (Depends-on): Add localcharset, streq,
67700         uniwidth/width.
67701         * doc/functions/wcwidth.texi: Update.
67702
67703 2007-07-07  Bruno Haible  <bruno@clisp.org>
67704
67705         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
67706         (wcwidth): New declaration.
67707         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
67708         macros.
67709         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
67710         here. Prepare for creating <wchar.h> unconditionally.
67711         * modules/wchar (Depends-on): Add link-warning.
67712         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
67713         REPLACE_WCWIDTH, and GL_LINK_WARNING.
67714         * lib/wcwidth.h: Remove file.
67715         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
67716         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
67717         * modules/wcwidth (Files): Remove lib/wcwidth.h.
67718         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
67719         (Include): Replace wcwidth.h with <wchar.h>.
67720         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
67721         * lib/mbchar.h: Don't include wcwidth.h.
67722         * lib/mbswidth.c: Likewise.
67723         * NEWS: Mention the change.
67724
67725 2007-07-07  Bruno Haible  <bruno@clisp.org>
67726
67727         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
67728         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
67729         definition with an external declaration.
67730         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
67731         defined as a function. Remove AC_C_INLINE requirement.
67732         * modules/wcwidth (Files): Add lib/wcwidth.c.
67733         (Makefile.am): Remove redundant statement.
67734
67735 2007-07-07  Bruno Haible  <bruno@clisp.org>
67736
67737         * MODULES.html.sh (Unicode string functions): Add the new modules.
67738
67739         * tests/uniwidth/test-u32-strwidth.c: New file.
67740         * modules/uniwidth/u32-strwidth-tests: New file.
67741
67742         * lib/uniwidth/u32-strwidth.c: New file.
67743         * modules/uniwidth/u32-strwidth: New file.
67744
67745         * tests/uniwidth/test-u16-strwidth.c: New file.
67746         * modules/uniwidth/u16-strwidth-tests: New file.
67747
67748         * lib/uniwidth/u16-strwidth.c: New file.
67749         * modules/uniwidth/u16-strwidth: New file.
67750
67751         * tests/uniwidth/test-u8-strwidth.c: New file.
67752         * modules/uniwidth/u8-strwidth-tests: New file.
67753
67754         * lib/uniwidth/u8-strwidth.c: New file.
67755         * modules/uniwidth/u8-strwidth: New file.
67756
67757         * tests/uniwidth/test-u32-width.c: New file.
67758         * modules/uniwidth/u32-width-tests: New file.
67759
67760         * lib/uniwidth/u32-width.c: New file.
67761         * modules/uniwidth/u32-width: New file.
67762
67763         * tests/uniwidth/test-u16-width.c: New file.
67764         * modules/uniwidth/u16-width-tests: New file.
67765
67766         * lib/uniwidth/u16-width.c: New file.
67767         * modules/uniwidth/u16-width: New file.
67768
67769         * tests/uniwidth/test-u8-width.c: New file.
67770         * modules/uniwidth/u8-width-tests: New file.
67771
67772         * lib/uniwidth/u8-width.c: New file.
67773         * modules/uniwidth/u8-width: New file.
67774
67775         * tests/uniwidth/test-uc_width.c: New file.
67776         * modules/uniwidth/width-tests: New file.
67777
67778         * lib/uniwidth/width.c: New file, from GNU libiconv.
67779         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
67780         * modules/uniwidth/width: New file.
67781
67782         * lib/uniwidth.h: New file, from GNU libiconv.
67783         * modules/uniwidth/base: New file.
67784
67785 2007-07-07  Bruno Haible  <bruno@clisp.org>
67786
67787         * lib/uniname.h: New file, from GNU gettext.
67788         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
67789         * lib/uniname/uninames.h: New file, from GNU gettext.
67790         * lib/uniname/uniname.c: New file, from GNU gettext.
67791         * tests/uniname/test-uninames.sh: New file.
67792         * tests/uniname/test-uninames.c: New file, from GNU gettext.
67793         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
67794         * modules/uniname/base: New file.
67795         * modules/uniname/uniname: New file.
67796         * modules/uniname/uniname-tests: New file.
67797         * MODULES.html.sh (Unicode string functions): Add the new modules.
67798
67799 2007-07-06  Bruno Haible  <bruno@clisp.org>
67800
67801         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
67802
67803 2007-07-06  Bruno Haible  <bruno@clisp.org>
67804
67805         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
67806         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
67807         includes <cygwin/sys_time.h> which includes <sys/select.h> which
67808         include <sys/time.h>.
67809         Reported by Eric Blake.
67810
67811 2007-07-06  Eric Blake  <ebb9@byu.net>
67812
67813         Fix testing canonicalize on cygwin.
67814         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
67815         Revert patch from 2007-06-19.
67816         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
67817         canonicalize module is also in use.
67818         * tests/test-canonicalize.c: New file.
67819         * tests/test-canonicalize.sh: Likewise.
67820         * modules/canonicalize-tests: Likewise.
67821
67822 2007-07-06  Jim Meyering  <jim@meyering.net>
67823
67824         * lib/getugroups.c (getugroups): Detect getgrent failure.
67825         Adjust comment to reflect reality: this function may return -1.
67826
67827 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
67828
67829         * build-aux/bootstrap (TP_URL,get_translations): Update to use
67830         the new TP address.
67831         (usage): Fix typo
67832         (gnulib_mk): New variable.
67833
67834 2007-07-05  Jim Meyering  <jim@meyering.net>
67835
67836         Don't let endgrent clobber errno, no matter how improbable.
67837         * lib/getugroups.c (getugroups): Save and restore errno around
67838         endgrent call.
67839
67840         Close the group DB even when failing with 2^31 or more members.
67841         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
67842
67843 2007-07-04  Jim Meyering  <jim@meyering.net>
67844
67845         * lib/getugroups.h: New file.
67846         * lib/getugroups.c: Include "getugroups.h".
67847         Remove uses of "register" keyword.
67848         Move local variable, "cp", down into scope where used.
67849         Give "username" parameter the "const" attribute.
67850         * modules/getugroups (Files): Add lib/getugroups.h
67851
67852 2007-07-04  Karl Berry  <karl@gnu.org>
67853
67854         * MODULES.html.sh (func_all_modules): Complete rename of
67855         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
67856
67857 2007-07-02  Bruno Haible  <bruno@clisp.org>
67858
67859         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
67860         mode, when inttypes.h comes from gnulib.
67861         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
67862
67863 2007-07-02  Simon Josefsson  <simon@josefsson.org>
67864
67865         * NEWS: Mention lgpl module name change.
67866
67867         * modules/lgpl-2.1: Renamed from lgpl.
67868
67869         * NEWS: Mention gpl module name change.
67870
67871         * modules/gpl-3.0: New file, based on gpl-2.0.
67872
67873         * modules/gpl-2.0: Renamed from gpl.
67874
67875         * modules/gpl: Fix filename, doc/gpl.texi is now found at
67876         doc/gpl-2.0.texi.
67877
67878 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
67879
67880         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
67881         #define __STDC_LIMIT_MACROS temporarily while including
67882         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
67883         Problem reported by Joel E. Denny in
67884         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
67885
67886 2007-07-01  Bruno Haible  <bruno@clisp.org>
67887
67888         * lib/unistdio.h: New file.
67889         * lib/unistdio/u-asnprintf.h: New file.
67890         * lib/unistdio/u-asprintf.h: New file.
67891         * lib/unistdio/u-printf-args.c: New file.
67892         * lib/unistdio/u-printf-args.h: New file.
67893         * lib/unistdio/u-printf-parse.h: New file.
67894         * lib/unistdio/u-snprintf.h: New file.
67895         * lib/unistdio/u-sprintf.h: New file.
67896         * lib/unistdio/u-vasprintf.h: New file.
67897         * lib/unistdio/u-vsnprintf.h: New file.
67898         * lib/unistdio/u-vsprintf.h: New file.
67899         * lib/unistdio/ulc-asnprintf.c: New file.
67900         * lib/unistdio/ulc-asprintf.c: New file.
67901         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
67902         * lib/unistdio/ulc-printf-parse.c: New file.
67903         * lib/unistdio/ulc-snprintf.c: New file.
67904         * lib/unistdio/ulc-sprintf.c: New file.
67905         * lib/unistdio/ulc-vasnprintf.c: New file.
67906         * lib/unistdio/ulc-vasprintf.c: New file.
67907         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
67908         * lib/unistdio/ulc-vsnprintf.c: New file.
67909         * lib/unistdio/ulc-vsprintf.c: New file.
67910         * lib/unistdio/u8-asnprintf.c: New file.
67911         * lib/unistdio/u8-asprintf.c: New file.
67912         * lib/unistdio/u8-printf-parse.c: New file.
67913         * lib/unistdio/u8-snprintf.c: New file.
67914         * lib/unistdio/u8-sprintf.c: New file.
67915         * lib/unistdio/u8-vasnprintf.c: New file.
67916         * lib/unistdio/u8-vasprintf.c: New file.
67917         * lib/unistdio/u8-vsnprintf.c: New file.
67918         * lib/unistdio/u8-vsprintf.c: New file.
67919         * lib/unistdio/u8-u8-asnprintf.c: New file.
67920         * lib/unistdio/u8-u8-asprintf.c: New file.
67921         * lib/unistdio/u8-u8-snprintf.c: New file.
67922         * lib/unistdio/u8-u8-sprintf.c: New file.
67923         * lib/unistdio/u8-u8-vasnprintf.c: New file.
67924         * lib/unistdio/u8-u8-vasprintf.c: New file.
67925         * lib/unistdio/u8-u8-vsnprintf.c: New file.
67926         * lib/unistdio/u8-u8-vsprintf.c: New file.
67927         * lib/unistdio/u16-asnprintf.c: New file.
67928         * lib/unistdio/u16-asprintf.c: New file.
67929         * lib/unistdio/u16-printf-parse.c: New file.
67930         * lib/unistdio/u16-snprintf.c: New file.
67931         * lib/unistdio/u16-sprintf.c: New file.
67932         * lib/unistdio/u16-vasnprintf.c: New file.
67933         * lib/unistdio/u16-vasprintf.c: New file.
67934         * lib/unistdio/u16-vsnprintf.c: New file.
67935         * lib/unistdio/u16-vsprintf.c: New file.
67936         * lib/unistdio/u16-u16-asnprintf.c: New file.
67937         * lib/unistdio/u16-u16-asprintf.c: New file.
67938         * lib/unistdio/u16-u16-snprintf.c: New file.
67939         * lib/unistdio/u16-u16-sprintf.c: New file.
67940         * lib/unistdio/u16-u16-vasnprintf.c: New file.
67941         * lib/unistdio/u16-u16-vasprintf.c: New file.
67942         * lib/unistdio/u16-u16-vsnprintf.c: New file.
67943         * lib/unistdio/u16-u16-vsprintf.c: New file.
67944         * lib/unistdio/u32-asnprintf.c: New file.
67945         * lib/unistdio/u32-asprintf.c: New file.
67946         * lib/unistdio/u32-printf-parse.c: New file.
67947         * lib/unistdio/u32-snprintf.c: New file.
67948         * lib/unistdio/u32-sprintf.c: New file.
67949         * lib/unistdio/u32-vasnprintf.c: New file.
67950         * lib/unistdio/u32-vasprintf.c: New file.
67951         * lib/unistdio/u32-vsnprintf.c: New file.
67952         * lib/unistdio/u32-vsprintf.c: New file.
67953         * lib/unistdio/u32-u32-asnprintf.c: New file.
67954         * lib/unistdio/u32-u32-asprintf.c: New file.
67955         * lib/unistdio/u32-u32-snprintf.c: New file.
67956         * lib/unistdio/u32-u32-sprintf.c: New file.
67957         * lib/unistdio/u32-u32-vasnprintf.c: New file.
67958         * lib/unistdio/u32-u32-vasprintf.c: New file.
67959         * lib/unistdio/u32-u32-vsnprintf.c: New file.
67960         * lib/unistdio/u32-u32-vsprintf.c: New file.
67961         * tests/unistdio/test-ulc-asnprintf1.c: New file.
67962         * tests/unistdio/test-ulc-asnprintf1.h: New file.
67963         * tests/unistdio/test-ulc-printf1.h: New file.
67964         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
67965         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
67966         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
67967         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
67968         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
67969         * tests/unistdio/test-ulc-vasprintf1.c: New file.
67970         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
67971         * tests/unistdio/test-ulc-vsprintf1.c: New file.
67972         * tests/unistdio/test-u8-asnprintf1.c: New file.
67973         * tests/unistdio/test-u8-asnprintf1.h: New file.
67974         * tests/unistdio/test-u8-printf1.h: New file.
67975         * tests/unistdio/test-u8-vasnprintf1.c: New file.
67976         * tests/unistdio/test-u8-vasnprintf2.c: New file.
67977         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
67978         * tests/unistdio/test-u8-vasnprintf3.c: New file.
67979         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
67980         * tests/unistdio/test-u8-vasprintf1.c: New file.
67981         * tests/unistdio/test-u8-vsnprintf1.c: New file.
67982         * tests/unistdio/test-u8-vsprintf1.c: New file.
67983         * tests/unistdio/test-u16-asnprintf1.c: New file.
67984         * tests/unistdio/test-u16-asnprintf1.h: New file.
67985         * tests/unistdio/test-u16-printf1.h: New file.
67986         * tests/unistdio/test-u16-vasnprintf1.c: New file.
67987         * tests/unistdio/test-u16-vasnprintf2.c: New file.
67988         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
67989         * tests/unistdio/test-u16-vasnprintf3.c: New file.
67990         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
67991         * tests/unistdio/test-u16-vasprintf1.c: New file.
67992         * tests/unistdio/test-u16-vsnprintf1.c: New file.
67993         * tests/unistdio/test-u16-vsprintf1.c: New file.
67994         * tests/unistdio/test-u32-asnprintf1.c: New file.
67995         * tests/unistdio/test-u32-asnprintf1.h: New file.
67996         * tests/unistdio/test-u32-printf1.h: New file.
67997         * tests/unistdio/test-u32-vasnprintf1.c: New file.
67998         * tests/unistdio/test-u32-vasnprintf2.c: New file.
67999         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
68000         * tests/unistdio/test-u32-vasnprintf3.c: New file.
68001         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
68002         * tests/unistdio/test-u32-vasprintf1.c: New file.
68003         * tests/unistdio/test-u32-vsnprintf1.c: New file.
68004         * tests/unistdio/test-u32-vsprintf1.c: New file.
68005         * modules/unistdio/base: New file.
68006         * modules/unistdio/u-printf-args: New file.
68007         * modules/unistdio/ulc-asnprintf: New file.
68008         * modules/unistdio/ulc-asprintf: New file.
68009         * modules/unistdio/ulc-fprintf: New file.
68010         * modules/unistdio/ulc-printf-parse: New file.
68011         * modules/unistdio/ulc-snprintf: New file.
68012         * modules/unistdio/ulc-sprintf: New file.
68013         * modules/unistdio/ulc-vasnprintf: New file.
68014         * modules/unistdio/ulc-vasprintf: New file.
68015         * modules/unistdio/ulc-vfprintf: New file.
68016         * modules/unistdio/ulc-vsnprintf: New file.
68017         * modules/unistdio/ulc-vsprintf: New file.
68018         * modules/unistdio/u8-asnprintf: New file.
68019         * modules/unistdio/u8-asprintf: New file.
68020         * modules/unistdio/u8-printf-parse: New file.
68021         * modules/unistdio/u8-snprintf: New file.
68022         * modules/unistdio/u8-sprintf: New file.
68023         * modules/unistdio/u8-vasnprintf: New file.
68024         * modules/unistdio/u8-vasprintf: New file.
68025         * modules/unistdio/u8-vsnprintf: New file.
68026         * modules/unistdio/u8-vsprintf: New file.
68027         * modules/unistdio/u8-u8-asnprintf: New file.
68028         * modules/unistdio/u8-u8-asprintf: New file.
68029         * modules/unistdio/u8-u8-snprintf: New file.
68030         * modules/unistdio/u8-u8-sprintf: New file.
68031         * modules/unistdio/u8-u8-vasnprintf: New file.
68032         * modules/unistdio/u8-u8-vasprintf: New file.
68033         * modules/unistdio/u8-u8-vsnprintf: New file.
68034         * modules/unistdio/u8-u8-vsprintf: New file.
68035         * modules/unistdio/u16-asnprintf: New file.
68036         * modules/unistdio/u16-asprintf: New file.
68037         * modules/unistdio/u16-printf-parse: New file.
68038         * modules/unistdio/u16-snprintf: New file.
68039         * modules/unistdio/u16-sprintf: New file.
68040         * modules/unistdio/u16-vasnprintf: New file.
68041         * modules/unistdio/u16-vasprintf: New file.
68042         * modules/unistdio/u16-vsnprintf: New file.
68043         * modules/unistdio/u16-vsprintf: New file.
68044         * modules/unistdio/u16-u16-asnprintf: New file.
68045         * modules/unistdio/u16-u16-asprintf: New file.
68046         * modules/unistdio/u16-u16-snprintf: New file.
68047         * modules/unistdio/u16-u16-sprintf: New file.
68048         * modules/unistdio/u16-u16-vasnprintf: New file.
68049         * modules/unistdio/u16-u16-vasprintf: New file.
68050         * modules/unistdio/u16-u16-vsnprintf: New file.
68051         * modules/unistdio/u16-u16-vsprintf: New file.
68052         * modules/unistdio/u32-asnprintf: New file.
68053         * modules/unistdio/u32-asprintf: New file.
68054         * modules/unistdio/u32-printf-parse: New file.
68055         * modules/unistdio/u32-snprintf: New file.
68056         * modules/unistdio/u32-sprintf: New file.
68057         * modules/unistdio/u32-vasnprintf: New file.
68058         * modules/unistdio/u32-vasprintf: New file.
68059         * modules/unistdio/u32-vsnprintf: New file.
68060         * modules/unistdio/u32-vsprintf: New file.
68061         * modules/unistdio/u32-u32-asnprintf: New file.
68062         * modules/unistdio/u32-u32-asprintf: New file.
68063         * modules/unistdio/u32-u32-snprintf: New file.
68064         * modules/unistdio/u32-u32-sprintf: New file.
68065         * modules/unistdio/u32-u32-vasnprintf: New file.
68066         * modules/unistdio/u32-u32-vasprintf: New file.
68067         * modules/unistdio/u32-u32-vsnprintf: New file.
68068         * modules/unistdio/u32-u32-vsprintf: New file.
68069         * modules/unistdio/ulc-asnprintf-tests: New file.
68070         * modules/unistdio/ulc-vasnprintf-tests: New file.
68071         * modules/unistdio/ulc-vasprintf-tests: New file.
68072         * modules/unistdio/ulc-vsnprintf-tests: New file.
68073         * modules/unistdio/ulc-vsprintf-tests: New file.
68074         * modules/unistdio/u8-asnprintf-tests: New file.
68075         * modules/unistdio/u8-vasnprintf-tests: New file.
68076         * modules/unistdio/u8-vasprintf-tests: New file.
68077         * modules/unistdio/u8-vsnprintf-tests: New file.
68078         * modules/unistdio/u8-vsprintf-tests: New file.
68079         * modules/unistdio/u16-asnprintf-tests: New file.
68080         * modules/unistdio/u16-vasnprintf-tests: New file.
68081         * modules/unistdio/u16-vasprintf-tests: New file.
68082         * modules/unistdio/u16-vsnprintf-tests: New file.
68083         * modules/unistdio/u16-vsprintf-tests: New file.
68084         * modules/unistdio/u32-asnprintf-tests: New file.
68085         * modules/unistdio/u32-vasnprintf-tests: New file.
68086         * modules/unistdio/u32-vasprintf-tests: New file.
68087         * modules/unistdio/u32-vsnprintf-tests: New file.
68088         * modules/unistdio/u32-vsprintf-tests: New file.
68089         * MODULES.html.sh (Unicode string functions): Add the new modules.
68090
68091 2007-07-01  Bruno Haible  <bruno@clisp.org>
68092
68093         * lib/sprintf.c (sprintf): Limit the available length estimation,
68094         to avoid address wraparound.
68095         * lib/vsprintf.c (vsprintf): Likewise.
68096         * modules/sprintf-posix (Dependencies): Add stdint.
68097         * modules/vsprintf-posix (Dependencies): Likewise.
68098
68099 2007-07-01  Bruno Haible  <bruno@clisp.org>
68100
68101         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
68102         Windows PATH as well. Conservative double-quoting. Comments.
68103
68104 2007-07-01  Bruno Haible  <bruno@clisp.org>
68105             Eric Blake  <ebb9@byu.net>
68106             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68107
68108         * gnulib-tool (self_abspathname): Fix algorithm to cope with
68109         empty components in $PATH, denoting '.'.
68110
68111 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68112
68113         * gnulib-tool: Fix indentation.
68114         (func_create_megatestdir): Likewise.
68115         Report by Bruno Haible.
68116
68117 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68118
68119         Sync from Automake.
68120         * build-aux/gnupload: Fix shell portability issues with for loops.
68121         Report by Karl Berry.
68122
68123 2007-06-29  Simon Josefsson  <simon@josefsson.org>
68124
68125         * build-aux/maint.mk (POURL): Use translationproject.org.
68126
68127 2007-06-27  Simon Josefsson  <simon@josefsson.org>
68128             Bruno Haible  <bruno@clisp.org>
68129
68130         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
68131         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
68132         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
68133         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
68134         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
68135
68136 2007-06-27  Bruno Haible  <bruno@clisp.org>
68137
68138         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
68139         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
68140
68141 2007-06-26  Karl Berry  <karl@gnu.org>
68142
68143         * MODULES.html.sh: remove xreadlink-with-size.
68144
68145 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
68146
68147         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
68148         method that I hope also handles the double-include problem noted
68149         by Bruno Haible in
68150         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
68151
68152 2007-06-23  Bruno Haible  <bruno@clisp.org>
68153
68154         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
68155         Don't let the 'mostlyclean' target fail if the last subdirectory could
68156         not be removed.
68157         Reported by Karl Berry.
68158
68159 2007-06-23  Bruno Haible  <bruno@clisp.org>
68160
68161         * gnulib-tool (echo): Add a speedier workaround for ksh.
68162         * tests/test-echo.sh: Likewise.
68163
68164 2007-06-23  Bruno Haible  <bruno@clisp.org>
68165
68166         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
68167         * tests/test-echo.sh: Likewise.
68168
68169 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68170
68171         * gnulib-tool (IFS): Initialize early, so we don't set it to
68172         empty later.
68173         (self_abspathname): Rewrite algorithm to set it, reindent.
68174         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
68175         (func_create_megatestdir): Merge some sed scripts.
68176
68177 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
68178
68179         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
68180         exposed by Sun Studio 11 cc on Solaris 8.
68181
68182 2007-06-22  Bruno Haible  <bruno@clisp.org>
68183
68184         * gnulib-tool (echo): Ensure the echo primitive does not interpret
68185         backslashes.
68186         * tests/test-echo.sh: New file.
68187
68188 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68189
68190         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
68191         simplify `sed_replace_build_aux' scripts, they are portable but
68192         echoing them with `echo' is not.
68193         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
68194
68195 2007-06-21  Karl Berry  <karl@gnu.org>
68196
68197         * config/srclist.txt: guess we can't handle the licenses via
68198         srclist at the moment.
68199
68200 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
68201
68202         * MODULES.html.sh: Add include_next.
68203         * modules/include_next: New file.
68204
68205 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
68206
68207         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
68208         INCLUDE_NEXT.
68209         (gl_CHECK_NEXT_HEADERS): New macro.
68210         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
68211         the obsolescent gl_ABSOLUTE_HEADER.
68212         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
68213         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
68214         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
68215         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
68216         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
68217         * m4/math_h.m4 (gl_MATH_H): Likewise.
68218         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
68219         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
68220         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
68221         * m4/stdint.m4 (gl_STDINT_H): Likewise.
68222         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
68223         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
68224         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
68225         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
68226         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
68227         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
68228         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
68229         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
68230         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
68231         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
68232         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
68233         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
68234         * m4/inttypes.m4 (gl_INTTYPES_H): Define
68235         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
68236         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
68237         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
68238         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
68239         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
68240         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
68241         * lib/float_.h: Likewise.
68242         * lib/inttypes_.h: Likewise.
68243         * lib/math_.h: Likewise.
68244         * lib/search_.h: Likewise.
68245         * lib/signal_.h: Likewise.
68246         * lib/stdint_.h: Likewise.
68247         * lib/stdio_.h: Likewise.
68248         * lib/stdlib_.h: Likewise.
68249         * lib/string_.h: Likewise.
68250         * lib/sys_stat_.h: Likewise.
68251         * lib/sys_time_.h: Likewise.
68252         * lib/time_.h: Likewise.
68253         * lib/unistd_.h: Likewise.
68254         * lib/wchar_.h: Likewise.
68255         * lib/wctype_.h: Likewise.
68256         * lib/dirent_.h: Likewise.
68257         * lib/iconv_.h: Likewise.
68258         * lib/locale_.h: Likewise.
68259         * lib/netinet_in_.h: Likewise.
68260         * lib/sys_select_.h: Likewise.
68261         * lib/sys_socket_.h: Likewise.
68262         * lib/sysexits_.h: Likewise.
68263         * modules/fcntl (Depends-on): Depend on include_next, not
68264         absolute_header.
68265         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
68266         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
68267         * modules/fchdir: Likewise.
68268         * modules/float: Likewise.
68269         * modules/iconv_open: Likewise.
68270         * modules/inttypes: Likewise.
68271         * modules/locale: Likewise.
68272         * modules/math: Likewise.
68273         * modules/netinet_in: Likewise.
68274         * modules/search: Likewise.
68275         * modules/signal: Likewise.
68276         * modules/stdint: Likewise.
68277         * modules/stdio: Likewise.
68278         * modules/stdlib: Likewise.
68279         * modules/string: Likewise.
68280         * modules/sys_select: Likewise.
68281         * modules/sys_socket: Likewise.
68282         * modules/sys_stat: Likewise.
68283         * modules/sys_time: Likewise.
68284         * modules/sysexits: Likewise.
68285         * modules/time: Likewise.
68286         * modules/unistd: Likewise.
68287         * modules/wchar: Likewise.
68288         * modules/wctype: Likewise.
68289         * modules/sys_stat: Change maintainer to "all".
68290         * modules/unistd: Likewise.
68291
68292 2007-06-20  Karl Berry  <karl@gnu.org>
68293
68294         * config/srclist.txt: track www changes in license files.
68295
68296 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
68297
68298         * build-aux/bootstrap: Remove stray dot.
68299         Make sure build_aux settings are honored when linking
68300         gnulib_extra_files.
68301
68302 2007-06-19  Eric Blake  <ebb9@byu.net>
68303
68304         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
68305         Allow compilation on cygwin.
68306
68307 2007-06-19  Jim Meyering  <jim@meyering.net>
68308
68309         xreadlink-with-size: Remove module.  No longer used.
68310         Ex-callers now use xreadlink or mreadlink-with-size.
68311         * modules/xreadlink-with-size: Remove module.
68312         * lib/xreadlink-with-size.c: Remove file.
68313         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
68314         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
68315         just before the function definition *is* accurate.
68316
68317         Eliminate one way canonicalize_filename_mode could exit.
68318         * lib/canonicalize.c (canonicalize_filename_mode):
68319         Use mreadlink_with_size, not xreadlink_with_size.
68320
68321 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
68322
68323         Detect porting problems to FreeBSD/arm, which has time_t wider than
68324         long int.  Original problem reported for GNU diff by Xin Li in
68325         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
68326         * modules/getdate (Depends-on): Add intprops, verify.
68327         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
68328         is an integer type no wider than long int.
68329
68330 2007-06-18  Jim Meyering  <jim@meyering.net>
68331
68332         New module: mreadlink-with-size.
68333         * MODULES.html.sh: Add mreadlink-with-size.
68334         * modules/mreadlink-with-size: New module
68335         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
68336         not xreadlink-with-size.
68337         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
68338
68339 2007-06-16  Bruno Haible  <bruno@clisp.org>
68340
68341         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
68342         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
68343         Reported by Gary V. Vaughan <gary@gnu.org>.
68344
68345 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
68346
68347         Revamp lchown so that it lives in unistd.h where it belongs.
68348         * lib/lchown.h: Remove.
68349         * lib/dirchownmod.c: Don't include lib/lchown.h.
68350         * lib/fchownat.c: Likewise.
68351         * lib/openat.c: Likewise.
68352         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
68353         does not follow symlinks.
68354         (EOPNOTSUPP): Define if not defined.
68355         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
68356         is defined to 0.
68357         (lchown): New decl.
68358         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
68359         Do not check for lchown decl.
68360         Set REPLACE_LCHOWN.
68361         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
68362         REPLACE_LCHOWN.
68363         * modules/chown: Make it clear it follows symlinks.
68364         * modules/lchown: Make it clear it doesn't follow symlinks.
68365         (Files): Remove lib/lchown.h
68366         (Depends-on): Add unistd.
68367         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
68368         (Include): Include <unistd.h>, not "lchown.h".
68369         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
68370         REPLACE_LCHOWN.
68371
68372 2007-06-15  Jim Meyering  <jim@meyering.net>
68373
68374         Change license (GPL to LGPL) of fsusage and dependents.
68375         * modules/fsusage (License): Change to LGPL.
68376         * modules/full-read (License): Likewise.
68377         * modules/full-write (License): Likewise.
68378         * modules/safe-read (License): Likewise.
68379         * modules/safe-write (License): Likewise.
68380
68381 2007-06-14  Ben Pfaff  <blp@gnu.org>
68382
68383         Missing part of allocsa -> malloca transition.
68384         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
68385         gl_MALLOCA.
68386
68387 2007-06-12  Bruno Haible  <bruno@clisp.org>
68388
68389         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
68390         to ia64, x86_64, i386.
68391         Reported by Eric Blake.
68392
68393 2007-06-12  Bruno Haible  <bruno@clisp.org>
68394
68395         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
68396         cross-compiling to x86_64.
68397
68398 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
68399
68400         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
68401         glitch reported by Ralf Wildenhues in
68402         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
68403
68404         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
68405         Vin Shelton.
68406
68407 2007-06-11  Bruno Haible  <bruno@clisp.org>
68408
68409         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
68410         replacement string.
68411         Reported by Eric Blake.
68412
68413 2007-06-10  Bruno Haible  <bruno@clisp.org>
68414
68415         Prepare vasnprintf code for use with Unicode strings.
68416         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
68417         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
68418         TYPE_U32_STRING.
68419         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
68420         a_u32_string variants.
68421         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
68422         * lib/printf-args.c: Don't include config.h and the specification
68423         header if PRINTF_FETCHARGS is already defined.
68424         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
68425         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
68426         TYPE_U16_STRING, TYPE_U32_STRING.
68427         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
68428         u16_directive, u16_directives, u32_directive, u32_directives): New
68429         types.
68430         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
68431         New declarations.
68432         * lib/printf-parse.c: Don't include config.h and the specification
68433         header if PRINTF_PARSE is already defined. Eliminate the set of
68434         parameters for WIDE_CHAR_VERSION; the user of this file must provide
68435         them now. Include c-ctype.h.
68436         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
68437         directive and CHAR_T_ONLY_ASCII.
68438         * lib/vasnprintf.c: Don't include config.h and the specification header
68439         if VASNPRINTF is already defined.
68440         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
68441         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
68442         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
68443         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
68444         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
68445         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
68446         code accordingly.
68447         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
68448         pad_ourselves also in this case, with the 'c' and 's' directives, and
68449         with a different notion of "width".
68450         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
68451
68452 2007-06-10  Bruno Haible  <bruno@clisp.org>
68453
68454         * modules/unistr/u32-mbsnlen: New file.
68455         * lib/unistr/u32-mbsnlen.c: New file.
68456
68457         * modules/unistr/u16-mbsnlen: New file.
68458         * lib/unistr/u16-mbsnlen.c: New file.
68459
68460         * modules/unistr/u8-mbsnlen: New file.
68461         * lib/unistr/u8-mbsnlen.c: New file.
68462
68463         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
68464         declarations.
68465
68466 2007-06-10  Bruno Haible  <bruno@clisp.org>
68467
68468         * lib/string_.h (mbsnlen): New declaration.
68469         * lib/mbsnlen.c: New file.
68470         * m4/mbsnlen.m4: New file.
68471         * modules/mbsnlen: New file.
68472         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
68473         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
68474         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
68475
68476 2007-06-10  Bruno Haible  <bruno@clisp.org>
68477
68478         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
68479
68480 2007-06-10  Bruno Haible  <bruno@clisp.org>
68481
68482         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
68483         * lib/mbuiter.h: Likewise.
68484
68485 2007-06-10  Bruno Haible  <bruno@clisp.org>
68486
68487         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
68488         declaration.
68489
68490 2007-06-10  Karl Berry  <karl@gnu.org>
68491
68492         * config/srclist.txt: remove gettext entries, Bruno prefers
68493         to update individually.
68494
68495 2007-06-10  Bruno Haible  <bruno@clisp.org>
68496
68497         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
68498         'maxlen'. Ensure only length + width bytes are allocated, not
68499         length + 1 + width.
68500
68501 2007-06-09  Bruno Haible  <bruno@clisp.org>
68502
68503         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
68504         (CHAR_T): Remove macro.
68505         (VASNPRINTF): Update.
68506
68507 2007-06-09  Bruno Haible  <bruno@clisp.org>
68508
68509         * MODULES.html.sh (Unicode string functions): Add the new modules.
68510
68511         * modules/uniconv/u32-conv-to-enc: New file.
68512         * lib/uniconv/u32-conv-to-enc.c: New file.
68513         * modules/uniconv/u32-conv-to-enc-tests: New file.
68514         * tests/uniconv/test-u32-conv-to-enc.c: New file.
68515
68516         * modules/uniconv/u16-conv-to-enc: New file.
68517         * lib/uniconv/u16-conv-to-enc.c: New file.
68518         * lib/uniconv/u-conv-to-enc.h: New file.
68519         * modules/uniconv/u16-conv-to-enc-tests: New file.
68520         * tests/uniconv/test-u16-conv-to-enc.c: New file.
68521
68522         * modules/uniconv/u8-conv-to-enc: New file.
68523         * lib/uniconv/u8-conv-to-enc.c: New file.
68524         * modules/uniconv/u8-conv-to-enc-tests: New file.
68525         * tests/uniconv/test-u8-conv-to-enc.c: New file.
68526
68527         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
68528         u32_conv_to_encoding): New declarations.
68529
68530 2007-06-09  Bruno Haible  <bruno@clisp.org>
68531
68532         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
68533
68534 2007-06-09  Bruno Haible  <bruno@clisp.org>
68535
68536         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
68537         * modules/malloca: Renamed from modules/allocsa, updated.
68538         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
68539         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
68540         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
68541         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
68542         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
68543         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
68544         * modules/xmalloca: Renamed from modules/xallocsa, updated.
68545         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
68546         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
68547         * modules/c-strcasestr (Depends-on): Update.
68548         * lib/c-strcasestr.c: Update.
68549         * modules/c-strstr (Depends-on): Update.
68550         * lib/c-strstr.c: Update.
68551         * modules/canonicalize-lgpl (Depends-on): Update.
68552         * lib/canonicalize-lgpl.c: Update.
68553         * modules/clean-temp (Depends-on): Update.
68554         * lib/clean-temp.c: Update.
68555         * modules/csharpcomp (Depends-on): Update.
68556         * lib/csharpcomp.c: Update.
68557         * modules/csharpexec (Depends-on): Update.
68558         * lib/csharpexec.c: Update.
68559         * modules/javacomp (Depends-on): Update.
68560         * lib/javacomp.c: Update.
68561         * modules/javaexec (Depends-on): Update.
68562         * lib/javaexec.c: Update.
68563         * modules/mbscasestr (Depends-on): Update.
68564         * lib/mbscasestr.c: Update.
68565         * modules/mbsstr (Depends-on): Update.
68566         * lib/mbsstr.c: Update.
68567         * modules/setenv (Depends-on): Update.
68568         * lib/setenv.c: Update.
68569         * modules/strcasestr (Depends-on): Update.
68570         * lib/strcasestr.c: Update.
68571         * modules/striconveha (Depends-on): Update.
68572         * lib/striconveha.c: Update.
68573         * modules/relocatable-prog-wrapper (Files): Update.
68574         * lib/relocwrapper.c: Update.
68575         * build-aux/install-reloc: Update.
68576         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
68577
68578 2007-06-08  Bruno Haible  <bruno@clisp.org>
68579
68580         Port to uClibc.
68581         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
68582         * lib/fpurge.c (fpurge): Likewise.
68583         * lib/freading.c (freading): Likewise.
68584         * lib/fseeko.c (rpl_fseeko): Likewise.
68585         * lib/fseterr.c (fseterr): Likewise.
68586         * lib/fwriting.c (fwriting): Likewise.
68587         * tests/test-fflush.c (main): Avoid a failure on uClibc.
68588
68589 2007-06-08  Bruno Haible  <bruno@clisp.org>
68590
68591         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
68592         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
68593         * modules/gettext (Files): Add m4/intlmacosx.m4.
68594
68595 2007-06-07  Bruno Haible  <bruno@clisp.org>
68596
68597         * modules/localename-tests: New file.
68598         * tests/test-localename.c: New file.
68599
68600         New module 'localename'.
68601         * lib/localename.h: New file.
68602         * lib/localename.c: New file, from GNU gettext.
68603         * m4/localename.m4: New file.
68604         * modules/localename: New file.
68605
68606 2007-06-07  Bruno Haible  <bruno@clisp.org>
68607
68608         Work around the lack of <wchar.h> on some builds of uClibc.
68609         * doc/headers/wchar.texi: Update.
68610         * lib/wchar_.h: Include <wchar.h> only if it exists.
68611         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
68612         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
68613         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
68614         doesn't exist.
68615         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
68616         * modules/mbfile (Depends-on): Add wchar.
68617         * modules/mbiter (Depends-on): Likewise.
68618         * modules/mbuiter (Depends-on): Likewise.
68619         Reported by Simon Josefsson.
68620
68621 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
68622
68623         Work around problem reported by Steven M. Schweda in
68624         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
68625         Tru64 5.1B with the Compaq compiler environment installed declares
68626         an 'isblank' function but does not define it in the C library.
68627         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
68628         * lib/regex_internal.h (isblank): Likewise.
68629         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
68630         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
68631
68632 2007-06-05  Bruno Haible  <bruno@clisp.org>
68633
68634         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
68635         ia64.
68636         * modules/printf-safe: New file.
68637         * modules/fprintf-posix (Depends-on): Add printf-safe.
68638         * modules/printf-posix (Depends-on): Likewise.
68639         * modules/snprintf-posix (Depends-on): Likewise.
68640         * modules/sprintf-posix (Depends-on): Likewise.
68641         * modules/vasnprintf-posix (Depends-on): Likewise.
68642         * modules/vasprintf-posix (Depends-on): Likewise.
68643         * modules/vfprintf-posix (Depends-on): Likewise.
68644         * modules/vprintf-posix (Depends-on): Likewise.
68645         * modules/vsnprintf-posix (Depends-on): Likewise.
68646         * modules/vsprintf-posix (Depends-on): Likewise.
68647         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
68648         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
68649         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
68650         "no" on i386, x86_64, ia64.
68651         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
68652         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
68653         on i386, x86_64, ia64.
68654         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
68655         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
68656         on i386, x86_64, ia64.
68657         * tests/test-vasnprintf-posix.c: Include float.h.
68658         (LDBL80_WORDS): New macro.
68659         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
68660         on i386, x86_64, ia64.
68661         * tests/test-vasprintf-posix.c: Include float.h.
68662         (LDBL80_WORDS): New macro.
68663         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
68664         on i386, x86_64, ia64.
68665         * tests/test-snprintf-posix.c: Include float.h.
68666         * tests/test-sprintf-posix.c: Likewise.
68667         * tests/test-vsnprintf-posix.c: Likewise.
68668         * tests/test-vsprintf-posix.c: Likewise.
68669
68670 2007-06-05  Bruno Haible  <bruno@clisp.org>
68671
68672         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
68673         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
68674         non-IEEE numbers on i386, x86_64, ia64.
68675         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
68676         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
68677         * tests/test-isnanl.h: Include float.h.
68678         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
68679
68680 2007-06-05  Bruno Haible  <bruno@clisp.org>
68681
68682         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
68683         also the %a / %A. Handle the %a / %A code before this extra handling.
68684
68685 2007-06-05  Bruno Haible  <bruno@clisp.org>
68686
68687         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
68688         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
68689
68690 2007-06-05  Bruno Haible  <bruno@clisp.org>
68691
68692         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
68693         typo in variable name.
68694
68695 2007-06-05  Eric Blake  <ebb9@byu.net>
68696
68697         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
68698         Reported by Simon Josefsson.
68699
68700 2007-06-04  Bruno Haible  <bruno@clisp.org>
68701
68702         Avoid test failures on some PowerPC platforms.
68703         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
68704         Define differently for PowerPC.
68705         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
68706         Reported by Gary V. Vaughan <gary@gnu.org>.
68707
68708 2007-06-02  Bruno Haible  <bruno@clisp.org>
68709
68710         Fix test-stdint failure on FreeBSD/ia64.
68711         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
68712         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
68713         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
68714         * doc/headers/stdint.texi: Update.
68715
68716 2007-06-01  Bruno Haible  <bruno@clisp.org>
68717
68718         * tests/test-binary-io.c (main): Pass a third argument to open().
68719         Reported by Gary V. Vaughan <gary@gnu.org>.
68720
68721 2007-06-01  Bruno Haible  <bruno@clisp.org>
68722
68723         * doc/functions/frexpl.texi: Update for mingw.
68724
68725 2007-06-01  Bruno Haible  <bruno@clisp.org>
68726
68727         * tests/test-lseek.c (main): Disable test of errno for invalid third
68728         argument.
68729         * doc/functions/lseek.texi: Update.
68730         Reported by Gary V. Vaughan <gary@gnu.org>.
68731
68732 2007-05-28  Bruno Haible  <bruno@clisp.org>
68733
68734         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
68735
68736 2007-05-31  Eric Blake  <ebb9@byu.net>
68737
68738         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
68739         cross compiling.
68740
68741 2007-05-30  Eric Blake  <ebb9@byu.net>
68742         and Bruno Haible  <bruno@clisp.org>
68743
68744         Work around mingw test failures exposed by m4-1.4.9b.
68745         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
68746         * tests/test-unistd.c: Disable uid_t and git_t tests for the
68747         moment.
68748
68749 2007-05-30  Bruno Haible  <bruno@clisp.org>
68750
68751         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
68752         assuming that they are closed. Needed on HP-UX 11.
68753
68754 2007-05-29  Bruno Haible  <bruno@clisp.org>
68755
68756         Fix a problem with #include_next.
68757         * lib/dirent_.h: Split the double-inclusion guard.
68758         * lib/fcntl_.h: Likewise.
68759         * lib/float_.h: Likewise.
68760         * lib/iconv_.h: Likewise.
68761         * lib/inttypes_.h: Likewise.
68762         * lib/locale_.h: Likewise.
68763         * lib/math_.h: Likewise.
68764         * lib/netinet_in_.h: Likewise.
68765         * lib/search_.h: Likewise.
68766         * lib/signal_.h: Likewise.
68767         * lib/stdint_.h: Likewise.
68768         * lib/stdio_.h: Likewise.
68769         * lib/stdlib_.h: Likewise.
68770         * lib/string_.h: Likewise.
68771         * lib/sys_select_.h: Likewise.
68772         * lib/sys_socket_.h: Likewise.
68773         * lib/sys_stat_.h: Likewise.
68774         * lib/sys_time_.h: Likewise.
68775         * lib/sysexits_.h: Likewise.
68776         * lib/time_.h: Likewise.
68777         * lib/unistd_.h: Likewise.
68778         * lib/wchar_.h: Likewise.
68779         * lib/wctype_.h: Likewise.
68780
68781 2007-05-29  Bruno Haible  <bruno@clisp.org>
68782
68783         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
68784         for the moment.
68785
68786 2007-05-29  Bruno Haible  <bruno@clisp.org>
68787
68788         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
68789         invocation.
68790         Reported by Eric Blake.
68791
68792 2007-05-29  Bruno Haible  <bruno@clisp.org>
68793
68794         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
68795         compiling case.
68796
68797 2007-05-29  Eric Blake  <ebb9@byu.net>
68798             Bruno Haible  <bruno@clisp.org>
68799
68800         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
68801         cross compiles.
68802
68803 2007-05-28  Eric Blake  <ebb9@byu.net>
68804
68805         * modules/closein-tests (test_closein_LDADD): Support test on
68806         cygwin with libtool.
68807
68808 2007-05-28  Bruno Haible  <bruno@clisp.org>
68809
68810         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
68811         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
68812         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
68813         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
68814         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
68815         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
68816         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
68817         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
68818         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
68819
68820 2007-05-28  Eric Blake  <ebb9@byu.net>
68821
68822         Unconditionally include <config.h> in unit tests.
68823         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
68824         * tests/test-allocsa.c, tests/test-arcfour.c,
68825         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
68826         tests/test-array_list.c, tests/test-array_oset.c,
68827         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
68828         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
68829         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
68830         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
68831         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
68832         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
68833         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
68834         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
68835         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
68836         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
68837         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
68838         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
68839         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
68840         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
68841         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
68842         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
68843         test-md5.c, test-memmem.c, test-printf-posix.c,
68844         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
68845         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
68846         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
68847         test-strcasestr.c, test-striconv.c, test-striconveh.c,
68848         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
68849         test-vasnprintf-posix2.c, test-vasnprintf.c,
68850         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
68851         test-vfprintf-posix.c, test-vprintf-posix.c,
68852         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
68853         test-xvasprintf.c: Likewise.
68854
68855 2007-05-28  Bruno Haible  <bruno@clisp.org>
68856
68857         * gnulib-tool (func_import): Remember the --with-tests command-line
68858         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
68859         Reported by Eric Blake.
68860
68861 2007-05-28  Bruno Haible  <bruno@clisp.org>
68862
68863         * modules/ftell-tests: New file.
68864         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
68865         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
68866
68867         * lib/ftell.c: New file.
68868         * modules/ftell: New file.
68869         * m4/ftell.m4: New file.
68870         * doc/functions/ftell.texi: Update.
68871         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
68872         REPLACE_FTELL.
68873         * lib/stdio_.h (rpl_ftell): New declaration.
68874         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
68875         REPLACE_FTELL.
68876
68877 2007-05-28  Eric Blake  <ebb9@byu.net>
68878
68879         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
68880
68881 2007-05-28  Bruno Haible  <bruno@clisp.org>
68882
68883         * modules/fseek-tests: New file.
68884         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
68885         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
68886
68887         * lib/fseek.c: New file.
68888         * modules/fseek: New file.
68889         * m4/fseek.m4: New file.
68890         * doc/functions/fseek.texi: Update.
68891         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
68892         REPLACE_FSEEK.
68893         * lib/stdio_.h (rpl_fseek): New declaration.
68894         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
68895         REPLACE_FSEEK.
68896
68897 2007-05-28  Bruno Haible  <bruno@clisp.org>
68898
68899         * lib/stdio_.h (fflush): More comments.
68900
68901 2007-05-28  Bruno Haible  <bruno@clisp.org>
68902
68903         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
68904         runtime test.
68905
68906 2007-05-28  Eric Blake  <ebb9@byu.net>
68907
68908         Improve lseek module.
68909         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
68910         * lib/unistd_.h (lseek): Scale back link warning message.
68911         * tests/test-lseek.c: Beef up test.
68912         * tests/test-lseek.sh: Exercise more facets of lseek.
68913         Reported by Bruno Haible.
68914
68915 2007-05-28  Bruno Haible  <bruno@clisp.org>
68916
68917         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
68918         to define.
68919
68920 2007-05-27  Bruno Haible  <bruno@clisp.org>
68921
68922         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
68923
68924 2007-05-27  Bruno Haible  <bruno@clisp.org>
68925
68926         * modules/openmp: New file.
68927         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
68928         Noah Misch.
68929
68930 2007-05-26  Bruno Haible  <bruno@clisp.org>
68931
68932         * modules/chdir-long (Depends-on): Add fchdir.
68933         * modules/chdir-safer (Depends-on): Likewise.
68934         * modules/fts (Depends-on): Likewise.
68935         * modules/fts-lgpl (Depends-on): Likewise.
68936         * modules/openat (Depends-on): Likewise.
68937         * modules/savewd (Depends-on): Likewise.
68938
68939 2007-05-24  Eric Blake  <ebb9@byu.net>
68940
68941         Fix lseek on mingw.
68942         * modules/lseek: New module.
68943         * m4/lseek.m4: New file.
68944         * lib/lseek.c: New file.
68945         * modules/lseek-tests: New file.
68946         * tests/test-lseek.c: New file.
68947         * tests/test-lseek.sh: New file.
68948         * MODULES.html.sh: Document lseek module.
68949         * modules/fflush (Depends-on): Add lseek, fseeko.
68950         * modules/fseeko (Depends-on): Likewise.
68951         * modules/ftello (Depends-on): Likewise.
68952         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
68953         broken.
68954         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
68955         broken.
68956         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
68957         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
68958         * lib/ftello.c (rpl_ftello): Likewise.
68959         * tests/test-fseeko.c (main): Test this.
68960         * tests/test-fseeko.sh: Likewise.
68961         * tests/test-ftello.c (main): Likewise.
68962         * tests/test-ftello.sh: Likewise.
68963         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
68964         implies replacing fseek.
68965         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
68966         HAVE_FTELLO.
68967         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
68968         * modules/unistd (Makefile.am): Likewise.
68969         * lib/unistd_.h (lseek): Declare a replacement.
68970         * doc/functions/lseek.texi (lseek): Document this fix.
68971         * doc/functions/fseek.texi (fseek): Likewise.
68972         * doc/functions/ftell.texi (ftell): Likewise.
68973
68974 2007-05-24  Bruno Haible  <bruno@clisp.org>
68975
68976         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
68977         in the printed representation of a NaN.
68978         * tests/test-vasprintf-posix.c (test_function): Likewise.
68979         * tests/test-snprintf-posix.h (test_function): Likewise.
68980         * tests/test-sprintf-posix.h (test_function): Likewise.
68981         Reported by Eric Blake.
68982
68983 2007-05-23  Eric Blake  <ebb9@byu.net>
68984
68985         Fix fseeko/ftello on cygwin 1.5.24.
68986         * doc/functions/fseeko.texi (fseeko): Document the fix.
68987         * doc/functions/ftello.texi (ftello): Document the fix.
68988         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
68989         * doc/functions/stdout.text (stdout): New file.
68990         * doc/functions/stderr.text (stderr): New file.
68991         * doc/gnulib.texi (Function Substitutes): Use new files.
68992         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
68993         prior to 1.7.0.
68994         * tests/test-ftello.c (main): Likewise for ftello.
68995         * tests/test-fseeko.sh: New file.
68996         * tests/test-ftello.sh: New file.
68997         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
68998         with seekable stdin.
68999         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
69000         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
69001         (gl_REPLACE_FSEEKO): New macro.
69002         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
69003         * modules/fseeko (Files): Distribute fseeko.c.
69004         * modules/ftello (Files): Distribute ftello.c.
69005         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
69006         mode.
69007         * lib/ftello.c (rpl_ftello): New file.
69008         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
69009         fseeko, ftello.
69010         (gl_STDIN_LARGE_OFFSET): New macro.
69011         * modules/stdio (Makefile.am): Perform the replacement.
69012         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
69013
69014 2007-05-23  Bruno Haible  <bruno@clisp.org>
69015
69016         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
69017         GNULIB_POSIXCHECK is defined.
69018
69019 2007-05-21  Bruno Haible  <bruno@clisp.org>
69020
69021         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
69022         Check also the output for NaN arguments. When cross-compiling, guess
69023         no on IRIX.
69024         * lib/vasnprintf.c: Update comments.
69025         * tests/test-vasnprintf-posix.c (strisnan): New function.
69026         (test_function): Use it.
69027         * tests/test-vasprintf-posix.c (strisnan): New function.
69028         (test_function): Use it.
69029         * tests/test-snprintf-posix.h (strisnan): New function.
69030         (test_function): Use it.
69031         * tests/test-sprintf-posix.h (strisnan): New function.
69032         (test_function): Use it.
69033         Reported by Eric Blake.
69034
69035 2007-05-20  Bruno Haible  <bruno@clisp.org>
69036
69037         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
69038         numbers that fails on BeOS.
69039         * doc/functions/frexpl.texi: Update.
69040
69041 2007-05-20  Jim Meyering  <jim@meyering.net>
69042
69043         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
69044         forced upon us by glibc-2.6.
69045
69046 2007-05-20  Bruno Haible  <bruno@clisp.org>
69047
69048         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
69049         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
69050         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
69051         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
69052         NEED_PRINTF_INFINITE.
69053         (is_infinitel): New function.
69054         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
69055         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
69056         gl_PREREQ_VASNPRINTF_INFINITE.
69057         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
69058         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
69059         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
69060         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
69061         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
69062         gl_PREREQ_VASNPRINTF_INFINITE.
69063         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
69064         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
69065         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
69066         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
69067         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
69068         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
69069         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
69070         * doc/functions/fprintf.texi: Update.
69071         * doc/functions/printf.texi: Update.
69072         * doc/functions/snprintf.texi: Update.
69073         * doc/functions/sprintf.texi: Update.
69074         * doc/functions/vfprintf.texi: Update.
69075         * doc/functions/vprintf.texi: Update.
69076         * doc/functions/vsnprintf.texi: Update.
69077         * doc/functions/vsprintf.texi: Update.
69078
69079 2007-05-20  Bruno Haible  <bruno@clisp.org>
69080
69081         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
69082         was not found in libc.
69083         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
69084
69085 2007-05-20  Bruno Haible  <bruno@clisp.org>
69086
69087         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
69088         printed as "-nan" instead of "nan".
69089         * tests/test-vasprintf-posix.c (test_function): Likewise.
69090         * tests/test-snprintf-posix.h (test_function): Likewise.
69091         * tests/test-sprintf-posix.h (test_function): Likewise.
69092         Needed for HP-UX 11.
69093
69094 2007-05-20  Jim Meyering  <jim@meyering.net>
69095
69096         Fix buggy test for the fchownat-deref bug.
69097         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
69098         symlink required for the run-test.  Without it, this test would
69099         always declare that fchownat doesn't work, and client code would
69100         unnecessarily use the replacement function with fixed libc.
69101         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
69102         Reported by Greg Schafer.
69103
69104 2007-05-19  Bruno Haible  <bruno@clisp.org>
69105
69106         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
69107         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
69108         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
69109         Needed for IRIX 6.5 and Solaris 2.5.1.
69110
69111 2007-05-19  Bruno Haible  <bruno@clisp.org>
69112
69113         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
69114         (test_function): Skip tests involving -0.0 on platforms where
69115         -0.0 = 0.0.
69116         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
69117         (test_function): Skip tests involving -0.0 on platforms where
69118         -0.0 = 0.0.
69119         * tests/test-snprintf-posix.h (have_minus_zero): New function.
69120         (test_function): Skip tests involving -0.0 on platforms where
69121         -0.0 = 0.0.
69122         * tests/test-sprintf-posix.h (have_minus_zero): New function.
69123         (test_function): Skip tests involving -0.0 on platforms where
69124         -0.0 = 0.0.
69125         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
69126         tests.
69127         * tests/test-printf-posix.h (test_function): Likewise.
69128         * tests/test-printf-posix.output: Remove all -0.0 related results.
69129         Needed for IRIX 6.5.
69130
69131 2007-05-19  Bruno Haible  <bruno@clisp.org>
69132
69133         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
69134         printed as "nan0x7fffffff" instead of "nan".
69135         * tests/test-vasprintf-posix.c (test_function): Likewise.
69136         * tests/test-snprintf-posix.h (test_function): Likewise.
69137         * tests/test-sprintf-posix.h (test_function): Likewise.
69138         * tests/test-fprintf-posix.h (NaN): Remove macro.
69139         (test_function): Remove all NaN related tests.
69140         * tests/test-printf-posix.h (NaN): Remove macro.
69141         (test_function): Remove all NaN related tests.
69142         * tests/test-printf-posix.output: Remove all NaN related results.
69143         Needed for IRIX 6.5.
69144
69145 2007-05-19  Bruno Haible  <bruno@clisp.org>
69146
69147         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
69148         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
69149
69150 2007-05-19  Bruno Haible  <bruno@clisp.org>
69151
69152         * lib/float_.h: New file.
69153         * m4/float_h.m4: New file.
69154         * modules/float: New file.
69155         * modules/isnanl (Dependencies): Add float.
69156         * modules/isnanl-nolibm (Dependencies): Likewise.
69157         * modules/mathl (Dependencies): Likewise.
69158         * modules/printf-frexpl (Dependencies): Likewise.
69159         * modules/signbit (Dependencies): Likewise.
69160         * modules/vasnprintf (Dependencies): Likewise.
69161         * doc/headers/float.texi: Update.
69162
69163 2007-05-19  Jim Meyering  <jim@meyering.net>
69164
69165         * lib/utimens.c (gl_futimens): Rename from futimens,
69166         now that glibc-2.6 declares futimens.
69167         * lib/utimens.h: Likewise.
69168
69169 2007-05-19  Bruno Haible  <bruno@clisp.org>
69170
69171         Avoid test failures on mingw.
69172         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
69173         * tests/test-printf-posix.sh: Likewise.
69174         * tests/test-vfprintf-posix.sh: Likewise.
69175         * tests/test-vprintf-posix.sh: Likewise.
69176
69177 2007-05-19  Bruno Haible  <bruno@clisp.org>
69178
69179         Fix *printf result for NaN, Inf, -0.0 on mingw.
69180         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
69181         * lib/vasnprintf.c: Include math.h and isnan.h.
69182         (is_infinite_or_zero): New function.
69183         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
69184         values in the %f, %F, %e, %E, %g, %G directives.
69185         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
69186         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
69187         gl_PRINTF_INFINITE and test its result. Invoke
69188         gl_PREREQ_VASNPRINTF_INFINITE.
69189         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
69190         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
69191         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
69192         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
69193         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
69194         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
69195         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
69196         * doc/functions/fprintf.texi: Update.
69197         * doc/functions/printf.texi: Update.
69198         * doc/functions/snprintf.texi: Update.
69199         * doc/functions/sprintf.texi: Update.
69200         * doc/functions/vfprintf.texi: Update.
69201         * doc/functions/vprintf.texi: Update.
69202         * doc/functions/vsnprintf.texi: Update.
69203         * doc/functions/vsprintf.texi: Update.
69204
69205 2007-05-19  Bruno Haible  <bruno@clisp.org>
69206
69207         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
69208         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
69209         Instead of multiplying with 10^k, set extra_zeroes to k.
69210         (scale10_round_long_double): Remove function.
69211
69212 2007-05-18  Bruno Haible  <bruno@clisp.org>
69213
69214         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
69215         introduced on 2007-05-06.
69216
69217 2007-05-18  Bruno Haible  <bruno@clisp.org>
69218
69219         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
69220         %g directives.
69221         * tests/test-vasprintf-posix.c (test_function): Likewise.
69222         * tests/test-snprintf-posix.h (test_function): Likewise.
69223         * tests/test-sprintf-posix.h (test_function): Likewise.
69224
69225 2007-05-18  Bruno Haible  <bruno@clisp.org>
69226
69227         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
69228         (strmatch): New function.
69229         (test_function): Test the %f directive on numbers of various exponents.
69230         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
69231         (strmatch): New function.
69232         (test_function): Test the %f directive on numbers of various exponents.
69233         * tests/test-snprintf-posix.h (strmatch): New function.
69234         (test_function): Test the %f directive on numbers of various exponents.
69235         * tests/test-sprintf-posix.h (strmatch): New function.
69236         (test_function): Test the %f directive on numbers of various exponents.
69237         * tests/test-snprintf-posix.c (SIZEOF): New macro.
69238         * tests/test-sprintf-posix.c (SIZEOF): New macro.
69239         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
69240         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
69241
69242 2007-05-18  Bruno Haible  <bruno@clisp.org>
69243
69244         Add support for 'long double' number output.
69245         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
69246         * lib/vasnprintf.c: Include math.h and float+.h.
69247         (mp_limb_t): New type.
69248         (GMP_LIMB_BITS): New macro.
69249         (mp_twolimb_t): New type.
69250         (GMP_TWOLIMB_BITS): New macro.
69251         (mpn_t): New type.
69252         (multiply, divide, convert_to_decimal, decode_long_double,
69253         scale10_round_long_double, scale10_round_decimal_long_double,
69254         floorlog10l): New functions.
69255         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
69256         for the %f, %F, %e, %E, %g, %G directives.
69257         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
69258         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
69259         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
69260         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
69261         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
69262         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
69263         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
69264         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
69265         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
69266         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
69267         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
69268         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
69269         * modules/snprintf-posix (Depends-on): Likewise.
69270         * modules/sprintf-posix (Depends-on): Likewise.
69271         * modules/vasnprintf-posix (Depends-on): Likewise.
69272         * modules/vasprintf-posix (Depends-on): Likewise.
69273         * modules/vfprintf-posix (Depends-on): Likewise.
69274         * modules/vsnprintf-posix (Depends-on): Likewise.
69275         * modules/vsprintf-posix (Depends-on): Likewise.
69276         * modules/vasnprintf (Files): Add lib/float+.h.
69277         * doc/functions/fprintf.texi: Update.
69278         * doc/functions/printf.texi: Update.
69279         * doc/functions/snprintf.texi: Update.
69280         * doc/functions/sprintf.texi: Update.
69281         * doc/functions/vfprintf.texi: Update.
69282         * doc/functions/vprintf.texi: Update.
69283         * doc/functions/vsnprintf.texi: Update.
69284         * doc/functions/vsprintf.texi: Update.
69285
69286 2007-05-18  Bruno Haible  <bruno@clisp.org>
69287
69288         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
69289
69290 2007-05-18  Bruno Haible  <bruno@clisp.org>
69291
69292         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
69293         for printing 64-bit integers. Needed for mingw.
69294
69295 2007-05-18  Bruno Haible  <bruno@clisp.org>
69296
69297         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
69298         gl_FUNC_FREXPL_WORKS.
69299         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
69300
69301 2007-05-18  Bruno Haible  <bruno@clisp.org>
69302
69303         * modules/frexpl-nolibm-tests: New file.
69304
69305         * modules/frexpl-nolibm: New file.
69306         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
69307
69308 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
69309
69310         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
69311         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
69312         GCC 4.2, which otherwise issues a lot of warnings.
69313         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
69314         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
69315         Likewise.
69316         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
69317         * modules/iconv_open (iconv.h): Likewise.
69318         * modules/locale (locale.h): Likewise.
69319         * modules/netinet_in (netinet/in.h): Likewise.
69320         * modules/sys_select (sys_select.h): Likewise.
69321         * modules/sys_socket (sys/socket.h): Likewise.
69322         * modules/sys_stat (sys/stat.h): Likewise.
69323         * modules/sysexits (sysexits.h): Likewise.
69324         * modules/unistd (unistd.h): Likewise.
69325
69326 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69327
69328         * modules/closein-tests (Makefile.am): Distribute
69329         `test-closein.sh'.
69330
69331 2007-05-17  Bruno Haible  <bruno@clisp.org>
69332
69333         * tests/test-printf-posix.output: Renamed from
69334         tests/test-fprintf-posix.out.
69335         * modules/fprintf-posix-tests: Update.
69336         * modules/printf-posix-tests: Update.
69337         * modules/vfprintf-posix-tests: Update.
69338         * modules/vprintf-posix-tests: Update.
69339         * tests/test-fprintf-posix.sh: Update.
69340         * tests/test-printf-posix.sh: Update.
69341         * tests/test-vfprintf-posix.sh: Update.
69342         * tests/test-vprintf-posix.sh: Update.
69343         Reported by Ralf Wildenhues.
69344
69345 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
69346
69347         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
69348         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
69349         GCC 4.2, which otherwise issues a lot of warnings.
69350         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
69351         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
69352         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
69353         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
69354         it should no longer be needed.
69355         * lib/string_.h: Likewise.
69356         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
69357         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
69358         * modules/inttypes (inttypes.h): Likewise.
69359         * modules/math (math.h): Likewise.
69360         * modules/search (search.h): Likewise.
69361         * modules/signal (signal.h): Likewise.
69362         * modules/stdint (stdint.h): Likewise.
69363         * modules/stdio (stdio.h): Likewise.
69364         * modules/stdlib (stdlib.h): Likewise.
69365         * modules/string (string.h): Likewise.
69366         * modules/sys_time (sys/time.h): Likewise.
69367         * modules/time (time.h): Likewise.
69368         * modules/wchar (wchar.h): Likewise.
69369         * modules/wctype (wtype.h): Likewise.
69370
69371 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
69372
69373         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
69374
69375 2007-05-13  Bruno Haible  <bruno@clisp.org>
69376
69377         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
69378         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
69379         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
69380         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
69381         (gl_PREREQ_STRTOK_R): Don't require it here.
69382
69383 2007-05-13  Bruno Haible  <bruno@clisp.org>
69384
69385         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
69386         when used in C++ mode.
69387
69388 2007-05-12  Bruno Haible  <bruno@clisp.org>
69389
69390         * lib/linebuffer.h: Tweak doc.
69391         * lib/linebuffer.c: Likewise.
69392
69393 2007-05-12  James Youngman  <jay@gnu.org>
69394
69395         * lib/linebuffer.c (readlinebuffer_delim): New function,
69396         like readlinebuffer, but use a caller-specified delimiter.
69397         (readlinebuffer): Just call readlinebuffer_delim with '\n'
69398         as the delimiter.
69399         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
69400
69401 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
69402
69403         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
69404         * modules/openat (Files): Remove openat-die.c.
69405         (Depends-on): Add openat-die.
69406         * modules/openat-die: New module.
69407
69408 2007-05-06  Bruno Haible  <bruno@clisp.org>
69409
69410         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
69411         Update with info about Cygwin.
69412         * doc/functions/fprintf.texi: Update.
69413         * doc/functions/printf.texi: Update.
69414         * doc/functions/snprintf.texi: Update.
69415         * doc/functions/sprintf.texi: Update.
69416         * doc/functions/vfprintf.texi: Update.
69417         * doc/functions/vprintf.texi: Update.
69418         * doc/functions/vsnprintf.texi: Update.
69419         * doc/functions/vsprintf.texi: Update.
69420         Reported by Eric Blake.
69421
69422 2007-05-06  Bruno Haible  <bruno@clisp.org>
69423
69424         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
69425         padding ourselves for the floating-point directives.
69426         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
69427         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
69428         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
69429         gl_PRINTF_FLAG_ZERO and test its result. Invoke
69430         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
69431         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
69432         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
69433         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
69434         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
69435         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
69436         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
69437         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
69438         * tests/test-snprintf-posix.h (test_function): Also check the width
69439         and some flags in the %f directive.
69440         * tests/test-sprintf-posix.h (test_function): Likewise.
69441         * tests/test-vasnprintf-posix.c (test_function): Likewise.
69442         * tests/test-vasprintf-posix.c (test_function): Likewise.
69443         * doc/functions/fprintf.texi: Update.
69444         * doc/functions/printf.texi: Update.
69445         * doc/functions/snprintf.texi: Update.
69446         * doc/functions/sprintf.texi: Update.
69447         * doc/functions/vfprintf.texi: Update.
69448         * doc/functions/vprintf.texi: Update.
69449         * doc/functions/vsnprintf.texi: Update.
69450         * doc/functions/vsprintf.texi: Update.
69451
69452 2007-05-06  Bruno Haible  <bruno@clisp.org>
69453
69454         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
69455         pass the ' flag character to sprintf or snprintf.
69456         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
69457         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
69458         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
69459         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
69460         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
69461         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
69462         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
69463         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
69464         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
69465         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
69466         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
69467         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
69468         * tests/test-snprintf-posix.h (test_function): Also check the grouping
69469         flag.
69470         * tests/test-sprintf-posix.h (test_function): Likewise.
69471         * tests/test-vasnprintf-posix.c (test_function): Likewise.
69472         * tests/test-vasprintf-posix.c (test_function): Likewise.
69473         * doc/functions/fprintf.texi: Update.
69474         * doc/functions/printf.texi: Update.
69475         * doc/functions/snprintf.texi: Update.
69476         * doc/functions/sprintf.texi: Update.
69477         * doc/functions/vfprintf.texi: Update.
69478         * doc/functions/vprintf.texi: Update.
69479         * doc/functions/vsnprintf.texi: Update.
69480         * doc/functions/vsprintf.texi: Update.
69481
69482 2007-05-01  Bruno Haible  <bruno@clisp.org>
69483
69484         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
69485
69486 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
69487
69488         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
69489         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
69490
69491 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
69492
69493         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
69494         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
69495         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
69496
69497 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
69498
69499         * lib/argp-help.c (struct hol_entry): New member `ord'.
69500         (HOL_ENTRY_PTRCMP): Use ord for comparison
69501         (hol_sort): Initialize ord.
69502
69503 2007-05-01  Bruno Haible  <bruno@clisp.org>
69504
69505         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
69506         Reported by Eric Blake.
69507         * doc/gnulib.texi (Function Substitutes): Update.
69508
69509 2007-05-01  Bruno Haible  <bruno@clisp.org>
69510
69511         * doc/functions.texi: Remove file, now redundant through
69512         doc/functions/*.texi.
69513
69514 2007-05-01  Bruno Haible  <bruno@clisp.org>
69515
69516         * modules/argp (Depends-on): Add sleep.
69517
69518 2007-05-01  Bruno Haible  <bruno@clisp.org>
69519
69520         * modules/sleep-tests: New file.
69521         * tests/test-sleep.c: New file.
69522
69523         * modules/sleep: New file.
69524         * lib/sleep.c: New file.
69525         * m4/sleep.m4: New file.
69526         * lib/unistd_.h (sleep): New declaration.
69527         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
69528         HAVE_SLEEP.
69529         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
69530         * doc/functions/sleep.texi: Document the sleep module.
69531
69532 2007-05-01  Bruno Haible  <bruno@clisp.org>
69533
69534         * lib/sigprocmask.h: Remove file.
69535         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
69536         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
69537         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
69538         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
69539         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
69540         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
69541         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
69542         HAVE_SIGSET_T as a shell variable.
69543         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
69544         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
69545         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
69546         (Depends-on): Add signal. Remove verify.
69547         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
69548         (Include): Mention <signal.h> instead of sigprocmask.h.
69549         * NEWS: Mention the change.
69550         * lib/fatal-signal.c: Don't include sigprocmask.h.
69551
69552 2007-05-01  Bruno Haible  <bruno@clisp.org>
69553
69554         * modules/signal: New file.
69555         * lib/signal_.h: New file.
69556         * m4/signal_h.m4: New file.
69557
69558 2007-05-01  Bruno Haible  <bruno@clisp.org>
69559
69560         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
69561         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
69562         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
69563         HAVE_WCTYPE_CTMP_BUG into wctype.h.
69564
69565 2007-05-01  Bruno Haible  <bruno@clisp.org>
69566
69567         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
69568         configure time.
69569         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
69570         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
69571         * modules/sys_stat (Makefile.am): Substitute their values into
69572         sys/stat.h.
69573
69574 2007-05-01  Bruno Haible  <bruno@clisp.org>
69575
69576         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
69577         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
69578         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
69579
69580 2007-05-01  Bruno Haible  <bruno@clisp.org>
69581
69582         * doc/header/assert.texi: Undo last change: don't mention the gnulib
69583         'assert' module here.
69584
69585 2007-05-01  Bruno Haible  <bruno@clisp.org>
69586
69587         * doc/functions/*.texi: New files.
69588         * doc/functions/google-ranking.txt: New file.
69589         * doc/gnulib.texi (Function Substitutes): New chapter.
69590         (ctime, inet_ntoa): Remove sections.
69591         * doc/ctime.texi: Remove file.
69592         * doc/inet_ntoa.texi: Remove file.
69593         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
69594         dependencies.
69595         (%.info): New rule, specifying a --reference-limit.
69596
69597 2007-05-01  Bruno Haible  <bruno@clisp.org>
69598
69599         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
69600
69601 2007-05-01  Bruno Haible  <bruno@clisp.org>
69602
69603         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
69604         the portability of 'mkdir' to mingw systems.
69605
69606 2007-05-01  Bruno Haible  <bruno@clisp.org>
69607
69608         * doc/headers/google-ranking.txt: New file.
69609
69610 2007-04-30  Eric Blake  <ebb9@byu.net>
69611
69612         Prefer fseeko to fseek.
69613         * modules/getpass (Depends-on): Add fseeko.
69614         * lib/getpass.c (getpass): Use fseeko, not fseek.
69615
69616 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
69617
69618         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
69619         assumes the sorting is stable, while most qsort implementations
69620         are not.  Use argument addresses to ensure they never compare as
69621         equal.
69622
69623         * tests/test-argp-2.sh (usage-indent test): Fix output
69624         (func_compare): Restore diff options
69625         * tests/test-argp.c: Restore #include "progname.h"
69626
69627 2007-04-29  Bruno Haible  <bruno@clisp.org>
69628
69629         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
69630         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
69631         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
69632         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
69633         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
69634         (configure.ac): Define CHECK_SNPRINTF_POSIX.
69635         (TESTS, check_PROGRAMS): Add test-snprintf.
69636         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
69637         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
69638         (TESTS, check_PROGRAMS): Add test-vsnprintf.
69639         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
69640         assertions that fail on HP-UX, OSF/1, or IRIX.
69641         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
69642
69643 2007-04-29  Bruno Haible  <bruno@clisp.org>
69644
69645         * MODULES.html.sh (posix_functions): Remove 'contents'.
69646
69647 2007-04-29  Karl Berry  <karl@gnu.org>
69648
69649         * config/srclist.txt (gendocs_template_min): new entry.
69650
69651 2007-04-29  Bruno Haible  <bruno@clisp.org>
69652
69653         Work around fpurge bug on BSD systems.
69654         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
69655         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
69656         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
69657         fpurge to rpl_fpurge if the system already has this function.
69658         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
69659         the case where the system already has this function. Correct invariants
69660         on BSD systems.
69661         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
69662         BSD systems.
69663
69664 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
69665
69666         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
69667         proposed by Sven Verdoolaege.
69668
69669         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
69670         options.
69671         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
69672         (usage and help tests): Update
69673
69674 2007-04-29  Bruno Haible  <bruno@clisp.org>
69675
69676         * tests/test-fflush.c (main): Use a file of size 17, not 10.
69677         Print more information in case of failure. Disable a test on BeOS.
69678
69679 2007-04-29  Bruno Haible  <bruno@clisp.org>
69680
69681         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
69682         This helps debugging on systems on which no gdb is available.
69683
69684 2007-04-29  Bruno Haible  <bruno@clisp.org>
69685
69686         * lib/freading.h: Improve comments.
69687         * lib/fwriting.h: Likewise.
69688         * tests/test-freading.c (main): Don't check freading immediately after
69689         repositioning. Needed for glibc.
69690
69691 2007-04-29  Bruno Haible  <bruno@clisp.org>
69692
69693         * lib/freading.c (freading): Trivial simplification.
69694
69695 2007-04-28  Bruno Haible  <bruno@clisp.org>
69696
69697         * tests/test-fwriting.c (main): Also test the interaction between
69698         fflush and fwriting.
69699         * modules/fwriting-tests (Depends-on): Add fflush.
69700
69701         * tests/test-freading.c (main): Also test the interaction between
69702         fflush and freading.
69703         * modules/freading-tests (Depends-on): Add fflush.
69704
69705 2007-04-28  Bruno Haible  <bruno@clisp.org>
69706
69707         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
69708         fseeko and ftello.
69709         Suggested by Eric Blake.
69710
69711 2007-04-28  Jim Meyering  <jim@meyering.net>
69712
69713         Avoid false-negative in gl_STDINT_H's C99 conformance test.
69714         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
69715         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
69716
69717 2007-04-27  Eric Blake  <ebb9@byu.net>
69718
69719         * doc/headers/assert.texi (assert.h): Document assert module use.
69720
69721 2007-04-27  Bruno Haible  <bruno@clisp.org>
69722
69723         * doc/headers/*.texi: New files.
69724         * doc/gnulib.texi (Header File Substitutes): New chapter.
69725         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
69726         dependencies.
69727         (standards.info ,standards.html, standards.dvi): Update dependencies.
69728         (mostlyclean, clean): New targets.
69729
69730 2007-04-27  Bruno Haible  <bruno@clisp.org>
69731
69732         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
69733         * modules/sysexits (Files, Makefile.am): Update.
69734
69735         * lib/sys_socket_.h: Renamed from lib/socket_.h.
69736         * modules/sys_socket (Files, Makefile.am): Update.
69737
69738         * lib/sys_stat_.h: Renamed from lib/stat_.h.
69739         * modules/sys_stat (Files, Makefile.am): Update.
69740
69741 2007-04-27  Eric Blake  <ebb9@byu.net>
69742
69743         * lib/freading.h: Improve comments.
69744         * lib/fwriting.h: Likewise.
69745         * lib/fflush.c: Likewise.
69746
69747         Fix closein for mingw.
69748         * modules/closein-tests: Add tests for closein.
69749         * tests/test-closein.c: New file.
69750         * tests/test-closein.sh: Likewise.
69751         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
69752         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
69753
69754 2007-04-27  Bruno Haible  <bruno@clisp.org>
69755
69756         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
69757         version is < 6.
69758         * lib/math_.h [__DECC]: Likewise.
69759         * lib/stdio_.h [__DECC]: Likewise.
69760         * lib/stdlib_.h [__DECC]: Likewise.
69761         * lib/string_.h [__DECC]: Likewise.
69762         * lib/time_.h [__DECC]: Likewise.
69763         * lib/wchar_.h [__DECC]: Likewise.
69764         * lib/wctype_.h [__DECC]: Likewise.
69765
69766 2007-04-27  Bruno Haible  <bruno@clisp.org>
69767
69768         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
69769
69770 2007-04-27  Bruno Haible  <bruno@clisp.org>
69771
69772         * lib/fflush.c: Add comments.
69773         * modules/fpurge-tests (Depends-on): Add fflush.
69774         * modules/freadable-tests (Depends-on): Likewise.
69775         * modules/fwritable-tests (Depends-on): Likewise.
69776
69777 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
69778
69779         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
69780         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
69781         Report by Bruno Haible <bruno@clisp.org>.
69782
69783 2007-04-26  Eric Blake  <ebb9@byu.net>
69784
69785         Fix fflush on mingw.
69786         * modules/fflush (Depends-on): Add freading.
69787         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
69788         but unread data.
69789
69790 2007-04-26  Eric Blake  <ebb9@byu.net>
69791         and Bruno Haible  <bruno@clisp.org>
69792
69793         Implement freading and fwriting.
69794         * lib/freading.c: New file.
69795         * lib/freading.h: Likewise.
69796         * m4/freading.m4: Likewise.
69797         * modules/freading: Likewise.
69798         * modules/freading-tests: Likewise.
69799         * tests/test-freading.c: Likewise.
69800         * lib/fwriting.c: New file.
69801         * lib/fwriting.h: Likewise.
69802         * m4/fwriting.m4: Likewise.
69803         * modules/fwriting: Likewise.
69804         * modules/fwriting-tests: Likewise.
69805         * tests/test-fwriting.c: Likewise.
69806         * MODULES.html.sh (File stream based Input/Output): Mention them.
69807
69808 2007-04-26  Bruno Haible  <bruno@clisp.org>
69809
69810         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
69811         'long' when we assume it.
69812         Suggested by Eric Blake.
69813
69814 2007-04-26  Bruno Haible  <bruno@clisp.org>
69815
69816         Ensure fseeko, ftello are declared on glibc systems.
69817         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
69818         * modules/fseeko (configure.ac-early): Likewise.
69819         * modules/ftello (configure.ac-early): Likewise.
69820         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
69821         AC_FUNC_FSEEKO for this.
69822         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
69823         (gl_CHECK_FSEEKO): Remove macro.
69824
69825 2007-04-26  Bruno Haible  <bruno@clisp.org>
69826
69827         * tests/test-fflush.c (main): Also check the ftell result after
69828         fflush and fseek/fseeko.
69829         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
69830         file descriptor position cache in the stream.
69831         * lib/fseeko.c (rpl_fseeko): Likewise.
69832
69833 2007-04-26  Bruno Haible  <bruno@clisp.org>
69834
69835         * modules/fflush-tests (Depends-on): Add fseeko.
69836
69837 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
69838             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69839
69840         * lib/argz_.h: ensure error_t definition is obtained in same
69841         mechanism system argz.h would have.
69842         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
69843         argz facilities are known bad.  Err on the side of caution if
69844         cross-compiling.
69845
69846 2007-04-25  Eric Blake  <ebb9@byu.net>
69847
69848         * lib/fpurge.c (includes): Use stdlib.h for free.
69849         * tests/test-fflush.c (main): Also test fflush-fseeko.
69850
69851 2007-04-25  Bruno Haible  <bruno@clisp.org>
69852
69853         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
69854         * lib/fseeko.c: New file.
69855         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
69856         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
69857         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
69858         gl_FUNC_FSEEKO.
69859         (gl_FUNC_FSEEKO): Invoke it.
69860         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
69861         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
69862         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
69863
69864 2007-04-25  Bruno Haible  <bruno@clisp.org>
69865
69866         * modules/fflush (Depends-on): Add ftello.
69867
69868 2007-04-25  Bruno Haible  <bruno@clisp.org>
69869
69870         * modules/ftello-tests: New file.
69871         * tests/test-ftello.c: New file.
69872
69873         * modules/ftello: New file.
69874         * m4/ftello.m4: New file.
69875         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
69876         HAVE_FTELLO.
69877         * lib/stdio_.h (ftello): New declaration.
69878         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
69879         HAVE_FTELLO.
69880
69881 2007-04-25  Bruno Haible  <bruno@clisp.org>
69882
69883         * modules/fseeko-tests: New file.
69884         * tests/test-fseeko.c: New file.
69885
69886         * modules/fseeko: New file.
69887         * m4/fseeko.m4: New file.
69888         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
69889         HAVE_FSEEKO.
69890         * lib/stdio_.h (fseeko): New declaration.
69891         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
69892         HAVE_FSEEKO.
69893
69894 2007-04-25  Bruno Haible  <bruno@clisp.org>
69895
69896         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
69897
69898 2007-04-25  Bruno Haible  <bruno@clisp.org>
69899
69900         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
69901         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
69902         * tests/test-unistd.c: Likewise.
69903         * tests/test-fcntl.c: Likewise.
69904
69905 2007-04-23  Eric Blake  <ebb9@byu.net>
69906
69907         * lib/fflush.c: Fix missing include.
69908         Reported by Bruno Haible.
69909
69910 2007-04-23  Bruno Haible  <bruno@clisp.org>
69911
69912         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
69913         Reported by Eric Blake.
69914
69915 2007-04-23  Bruno Haible  <bruno@clisp.org>
69916
69917         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
69918
69919 2007-04-23  Bruno Haible  <bruno@clisp.org>
69920
69921         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
69922
69923 2007-04-23  Bruno Haible  <bruno@clisp.org>
69924
69925         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
69926         Needed on HP-UX 11.
69927
69928 2007-04-16  Eric Blake  <ebb9@byu.net>
69929
69930         Make fflush rely on fpurge.
69931         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
69932         open coding all variants.
69933         * modules/fflush (Depends-on): Add fpurge and unistd.
69934         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
69935         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
69936
69937         Fix --with-tests compilation on cygwin.
69938         * modules/argmatch-tests (Makefile.am): List gnulib library first
69939         in LDADD.
69940         * modules/argp-tests (Makefile.am): Likewise.
69941         * modules/array-list-tests (Makefile.am): Likewise.
69942         * modules/array-oset-tests (Makefile.am): Likewise.
69943         * modules/avltree-list-tests (Makefile.am): Likewise.
69944         * modules/avltree-oset-tests (Makefile.am): Likewise.
69945         * modules/avltreehash-list-tests (Makefile.am): Likewise.
69946         * modules/carray-list-tests (Makefile.am): Likewise.
69947         * modules/dirname-tests (Makefile.am): Likewise.
69948         * modules/frexp-tests (Makefile.am): Likewise.
69949         * modules/isnanl-tests (Makefile.am): Likewise.
69950         * modules/linked-list-tests (Makefile.am): Likewise.
69951         * modules/linkedhash-list-tests (Makefile.am): Likewise.
69952         * modules/lock-tests (Makefile.am): Likewise.
69953         * modules/rbtree-list-tests (Makefile.am): Likewise.
69954         * modules/rbtree-oset-tests (Makefile.am): Likewise.
69955         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
69956         * modules/tls-tests (Makefile.am): Likewise.
69957         * modules/tsearch-tests (Makefile.am): Likewise.
69958         * modules/xvasprintf-tests (Makefile.am): Likewise.
69959
69960         Fix fpurge for cygwin.
69961         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
69962         value.
69963         * modules/fpurge-tests (Depends-on): Clean up trash.
69964
69965 2007-04-16  Simon Josefsson  <simon@josefsson.org>
69966
69967         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
69968
69969         * m4/autobuild.m4: Re-indent.
69970
69971 2007-04-13  Bruno Haible  <bruno@clisp.org>
69972
69973         * modules/fpurge-tests: New file.
69974         * tests/test-fpurge.c: New file.
69975
69976         * modules/fpurge: New file.
69977         * lib/fpurge.h: New file.
69978         * lib/fpurge.c: New file.
69979         * m4/fpurge.m4: New file.
69980
69981 2007-04-13  Bruno Haible  <bruno@clisp.org>
69982
69983         * modules/fbufmode-tests: New file.
69984         * tests/test-fbufmode.c: New file.
69985
69986         * modules/fbufmode: New file.
69987         * lib/fbufmode.h: New file.
69988         * lib/fbufmode.c: New file.
69989         * m4/fbufmode.m4: New file.
69990
69991 2007-04-13  Bruno Haible  <bruno@clisp.org>
69992
69993         * modules/fwritable-tests: New file.
69994         * tests/test-fwritable.c: New file.
69995
69996         * modules/fwritable: New file.
69997         * lib/fwritable.h: New file.
69998         * lib/fwritable.c: New file.
69999         * m4/fwritable.m4: New file.
70000
70001 2007-04-13  Bruno Haible  <bruno@clisp.org>
70002
70003         * modules/freadable-tests: New file.
70004         * tests/test-freadable.c: New file.
70005
70006         * modules/freadable: New file.
70007         * lib/freadable.h: New file.
70008         * lib/freadable.c: New file.
70009         * m4/freadable.m4: New file.
70010
70011 2007-04-13  Bruno Haible  <bruno@clisp.org>
70012
70013         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
70014         MOSTLYCLEANFILES.
70015
70016 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
70017
70018         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
70019         gzip bootstrap.conf to avoid dragging in i18n machinery.
70020         (gnulib_tool_option): Use it.
70021
70022 2007-04-13  Bruno Haible  <bruno@clisp.org>
70023
70024         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
70025         %F directives.
70026         * tests/test-vasprintf-posix.c (test_function): Likewise.
70027         * tests/test-snprintf-posix.h (test_function): Likewise.
70028         * tests/test-sprintf-posix.h (test_function): Likewise.
70029         * tests/test-fprintf-posix.h (test_function): Likewise.
70030         * tests/test-printf-posix.h (test_function): Likewise.
70031         * tests/test-fprintf-posix.out: Likewise.
70032
70033 2007-04-13  Bruno Haible  <bruno@clisp.org>
70034
70035         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
70036         * modules/tls-tests (configure.ac): Likewise.
70037         Reported by Arto C. Nirkko <anirkko@insel.ch>.
70038
70039 2007-04-13  Bruno Haible  <bruno@clisp.org>
70040
70041         * lib/tls.c (glthread_tls_get): Fix return type.
70042         Patch by Arto C. Nirkko <anirkko@insel.ch>.
70043
70044 2007-04-12  Eric Blake  <ebb9@byu.net>
70045
70046         * modules/gettime (Depends-on): Remove gettime.
70047         Reported by Dmitry V. Levin.
70048
70049 2007-04-12  Bruno Haible  <bruno@clisp.org>
70050
70051         * modules/fflush (Include): Mention <stdio.h>.
70052         * modules/strtoimax (Include): Mention <inttypes.h>.
70053         * modules/strtoumax (Include): Likewise.
70054
70055 2007-04-12  Eric Blake  <ebb9@byu.net>
70056
70057         * .cvsignore: New file.
70058         * .gitignore: Likewise.
70059
70060 2007-04-12  Bruno Haible  <bruno@clisp.org>
70061
70062         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
70063         not before, since $(LDADD) often contains libgnu.a.
70064         * modules/striconv-tests (test_striconv_LDADD): Likewise.
70065         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
70066         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
70067         Needed on Cygwin.
70068
70069 2007-04-12  Eric Blake  <ebb9@byu.net>
70070
70071         Work around glibc's failure to flush stdin on fclose.
70072         * lib/closein.c (close_stdin): Flush stdin before closing.
70073
70074         Work around glibc's failure to reset seekable stdin on exit.
70075         * modules/closein: New module.
70076         * lib/closein.c: New file.
70077         * lib/closein.h: Likewise.
70078         * m4/closein.m4: Likewise.
70079         * MODULES.html.sh (File stream based Input/Output): Document it.
70080
70081 2007-04-12  Simon Josefsson  <simon@josefsson.org>
70082
70083         * gnulib-tool: Rename generated 'autobuild' script to
70084         'do-autobuild' in --create-megatestdir output.
70085
70086         * doc/gnulib.texi (Build robot for gnulib): Fix.
70087
70088 2007-04-12  Simon Josefsson  <simon@josefsson.org>
70089
70090         * modules/sysexits (Depends-on): Add absolute-header.
70091
70092 2007-04-12  Eric Blake  <ebb9@byu.net>
70093
70094         No need to preserve errno on success.
70095         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
70096         Reported by Bruno Haible.
70097
70098 2007-04-12  Simon Josefsson  <simon@josefsson.org>
70099
70100         * MODULES.html.sh (Support for maintaining and releasing
70101         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
70102
70103 2007-04-12  Simon Josefsson  <simon@josefsson.org>
70104
70105         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
70106
70107 2007-04-12  Simon Josefsson  <simon@josefsson.org>
70108
70109         * modules/autobuild: New module.
70110
70111         * m4/autobuild.m4: New file.
70112
70113 2007-04-11  Bruno Haible  <bruno@clisp.org>
70114
70115         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
70116         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
70117         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
70118         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
70119         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
70120         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
70121         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
70122         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
70123         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
70124         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
70125         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
70126         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
70127         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
70128         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
70129         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
70130         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
70131         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
70132         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
70133         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
70134         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
70135         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
70136         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
70137         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
70138         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
70139         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
70140         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
70141         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
70142         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
70143         Reported by Eric Blake.
70144
70145 2007-04-11  Bruno Haible  <bruno@clisp.org>
70146
70147         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
70148
70149 2007-04-10  Bruno Haible  <bruno@clisp.org>
70150
70151         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
70152         for NaN and Infinity. Needed on FreeBSD 6.1.
70153         * tests/test-vasnprintf-posix.c (test_function): Undo last change
70154         regarding results for "%010a" of Infinity and NaN.
70155         * tests/test-vasprintf-posix.c (test_function): Likewise.
70156         * tests/test-snprintf-posix.h (test_function): Likewise.
70157         * tests/test-sprintf-posix.h (test_function): Likewise.
70158         * tests/test-fprintf-posix.h (test_function): Likewise.
70159         * tests/test-printf-posix.h (test_function): Likewise.
70160         * tests/test-fprintf-posix.out: Likewise.
70161
70162 2007-04-10  Bruno Haible  <bruno@clisp.org>
70163
70164         * modules/locale-tests: New file.
70165         * tests/test-locale.c: New file.
70166
70167         * modules/locale: New file.
70168         * lib/locale_.h: New file.
70169         * m4/locale_h.m4: New file.
70170
70171 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
70172             Bruno Haible  <bruno@clisp.org>
70173
70174         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
70175         be determined, test for availability of the copysignf, copysign,
70176         copysignl functions.
70177         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
70178         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
70179         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
70180
70181 2007-04-09  Eric Blake  <ebb9@byu.net>
70182
70183         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
70184         * modules/stdio (Makefile.am): Support fflush.
70185         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
70186         * modules/fflush: New file.
70187         * lib/fflush.c: Likewise.
70188         * m4/fflush.m4: Likewise.
70189         * modules/fflush-tests: New test.
70190         * tests/test-fflush.c: Likewise.
70191         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
70192
70193 2007-04-06  Bruno Haible  <bruno@clisp.org>
70194
70195         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
70196         (VASNPRINTF): Use signbit for faster determination whether to print a
70197         minus sign.
70198         * modules/vasnprintf (Files): Remove lib/float+.h.
70199         * modules/fprintf-posix (Depends-on): Add signbit.
70200         * modules/snprintf-posix (Depends-on): Likewise.
70201         * modules/sprintf-posix (Depends-on): Likewise.
70202         * modules/vasnprintf-posix (Depends-on): Likewise.
70203         * modules/vasprintf-posix (Depends-on): Likewise.
70204         * modules/vfprintf-posix (Depends-on): Likewise.
70205         * modules/vsnprintf-posix (Depends-on): Likewise.
70206         * modules/vsprintf-posix (Depends-on): Likewise.
70207
70208 2007-04-06  Bruno Haible  <bruno@clisp.org>
70209
70210         * tests/test-frexp.c (main): Test also the sign bit of zero results.
70211         * tests/test-frexpl.c (main): Likewise.
70212         * tests/test-ldexpl.c (main): Likewise.
70213         * modules/frexp-tests (Depends-on): Add signbit.
70214         * modules/frexpl-tests (Depdends-on): Likewise.
70215         * modules/ldexpl-tests (Depdends-on): Likewise.
70216
70217 2007-04-06  Bruno Haible  <bruno@clisp.org>
70218
70219         * modules/signbit-tests: New file.
70220         * tests/test-signbit.c: New file.
70221
70222         * modules/signbit: New file.
70223         * lib/signbitf.c: New file.
70224         * lib/signbitd.c: New file.
70225         * lib/signbitl.c: New file.
70226         * m4/signbit.m4: New file.
70227         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
70228         (signbit): New macro.
70229         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
70230         REPLACE_SIGNBIT.
70231         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
70232         REPLACE_FREXPL into math.h.
70233
70234 2007-04-06  Bruno Haible  <bruno@clisp.org>
70235
70236         * modules/isnanf-nolibm-tests: New file.
70237         * tests/test-isnanf.c: New file.
70238
70239         * modules/isnanf-nolibm: New file.
70240         * lib/isnanf.h: New file.
70241         * lib/isnanf.c: New file.
70242         * lib/isnan.c: Consider the USE_FLOAT macro.
70243         * m4/isnanf.m4: New file.
70244
70245 2007-04-06  Bruno Haible  <bruno@clisp.org>
70246
70247         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
70248         (Link): New section.
70249
70250         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
70251
70252 2007-04-06  Bruno Haible  <bruno@clisp.org>
70253
70254         Assume the 'long double' type.
70255         * m4/longdouble.m4: Remove file.
70256         * config/srclist.txt: Don't mention longdouble.m4.
70257         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
70258         * lib/float+.h: Likewise.
70259         * lib/frexp.c: Likewise.
70260         * lib/printf-args.h: Likewise.
70261         * lib/printf-args.c: Likewise.
70262         * lib/printf-frexp.c: Likewise.
70263         * lib/printf-parse.c: Likewise.
70264         * lib/vasnprintf.c: Likewise.
70265         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
70266         * m4/intl.m4: Likewise.
70267         * m4/isnanl.m4: Likewise.
70268         * m4/printf.m4: Likewise.
70269         * m4/printf-frexpl.m4: Likewise.
70270         * m4/vasnprintf.m4: Likewise.
70271         * modules/allocsa (Files): Remove m4/longdouble.m4.
70272         * modules/gettext (Files): Likewise.
70273         * modules/relocatable-prog-wrapper (Files): Likewise.
70274         * modules/vasnprintf (Files): Likewise.
70275         * modules/isnanl (Files): Likewise.
70276         (Include): Simplify.
70277         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
70278         (Include): Simplify.
70279         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
70280         (Include): Simplify.
70281         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
70282         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
70283         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
70284         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
70285         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
70286         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
70287         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
70288         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
70289         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
70290         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
70291         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
70292         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
70293         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
70294         * tests/test-isnanl.c: Likewise.
70295         * tests/test-snprintf-posix.h: Likewise.
70296         * tests/test-sprintf-posix.h: Likewise.
70297         * tests/test-vasnprintf-posix.c: Likewise.
70298         * tests/test-vasnprintf-posix2.c: Likewise.
70299         * tests/test-vasprintf-posix.c: Likewise.
70300
70301 2007-04-06  Bruno Haible  <bruno@clisp.org>
70302
70303         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
70304         * lib/math_.h [__DECC]: Include the overridden include file through
70305         #include_next, outside the double-inclusion guard.
70306         * lib/stdio_.h [__DECC]: Likewise.
70307         * lib/stdlib_.h [__DECC]: Likewise.
70308         * lib/string_.h [__DECC]: Likewise.
70309         * lib/time_.h [__DECC]: Likewise.
70310         * lib/wchar_.h [__DECC]: Likewise.
70311         * lib/wctype_.h [__DECC]: Likewise.
70312         * lib/inttypes_.h [__DECC]: Likewise.
70313         Reported by Albert Chin <china@thewrittenword.com> in
70314         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
70315
70316 2007-04-04  Eric Blake  <ebb9@byu.net>
70317
70318         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
70319         1.5.x.
70320
70321 2007-04-04  Bruno Haible  <bruno@clisp.org>
70322
70323         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
70324         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
70325
70326 2007-04-04  Bruno Haible  <bruno@clisp.org>
70327
70328         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
70329         results for "%010a" of Infinity and NaN.
70330         * tests/test-vasprintf-posix.c (test_function): Likewise.
70331         * tests/test-snprintf-posix.h (test_function): Likewise.
70332         * tests/test-sprintf-posix.h (test_function): Likewise.
70333         * tests/test-fprintf-posix.h (test_function): Remove these tests.
70334         * tests/test-printf-posix.h (test_function): Likewise.
70335         * tests/test-fprintf-posix.out: Update.
70336         Needed for FreeBSD 6.1.
70337
70338 2007-04-04  Bruno Haible  <bruno@clisp.org>
70339
70340         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
70341         directly used by the gnulib modules nor by gnulib-tool.
70342
70343 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
70344
70345         * DEPENDENCIES: Give overall description of version dependency
70346         desirability.  Use more-typical names for apps.
70347         Add shell, coreutils, diffutils, grep, tar, gzip.
70348
70349 2007-04-04  Simon Josefsson  <simon@josefsson.org>
70350
70351         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
70352
70353 2007-04-04  Karl Berry  <karl@gnu.org>
70354
70355         * MODULES.html.sh (func_module): missing '.
70356
70357 2007-04-03  Bruno Haible  <bruno@clisp.org>
70358
70359         * modules/argmatch-tests (Makefile.am): New variable
70360         test_argmatch_LDADD.
70361         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
70362         * modules/array-list-tests (Makefile.am): New variable
70363         test_array_list_LDADD.
70364         * modules/array-oset-tests (Makefile.am): New variable
70365         test_array_oset_LDADD.
70366         * modules/avltree-list-tests (Makefile.am): New variable
70367         test_avltree_list_LDADD.
70368         * modules/avltree-oset-tests (Makefile.am): New variable
70369         test_avltree_oset_LDADD.
70370         * modules/avltreehash-list-tests (Makefile.am): New variable
70371         test_avltreehash_list_LDADD.
70372         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
70373         test_canonicalize_lgpl_LDADD.
70374         * modules/carray-list-tests (Makefile.am): New variable
70375         test_carray_list_LDADD.
70376         * modules/dirname-tests (Makefile.am): New variable
70377         test_dirname_LDADD.
70378         * modules/linked-list-tests (Makefile.am): New variable
70379         test_linked_list_LDADD.
70380         * modules/linkedhash-list-tests (Makefile.am): New variable
70381         test_linkedhash_list_LDADD.
70382         * modules/rbtree-list-tests (Makefile.am): New variable
70383         test_rbtree_list_LDADD.
70384         * modules/rbtree-oset-tests (Makefile.am): New variable
70385         test_rbtree_oset_LDADD.
70386         * modules/rbtreehash-list-tests (Makefile.am): New variable
70387         test_rbtreehash_list_LDADD.
70388         * modules/xvasprintf-tests (Makefile.am): New variable
70389         test_xvasprintf_LDADD.
70390         Reported by Eric Blake.
70391
70392 2007-04-03  Eric Blake  <ebb9@byu.net>
70393
70394         * DEPENDENCIES: Weaken m4 requirements.
70395
70396 2007-04-03  Bruno Haible  <bruno@clisp.org>
70397
70398         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
70399         * modules/isnanl-tests (configure.ac): Likewise.
70400
70401 2007-04-03  Ben Pfaff  <blp@gnu.org>
70402
70403         * modules/iconv_open: Add $(srcdir)/ to source directory
70404         references in Makefile fragments that call gperf, to fix VPATH
70405         builds.
70406
70407 2007-04-03  Bruno Haible  <bruno@clisp.org>
70408
70409         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
70410         * lib/ldexpl.c: Undo last change.
70411
70412 2007-04-03  Bruno Haible  <bruno@clisp.org>
70413
70414         * modules/printf-frexpl (Depends-on): Undo last change.
70415         (Files): Add m4/ldexpl.m4.
70416
70417 2007-04-03  Bruno Haible  <bruno@clisp.org>
70418
70419         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
70420         * modules/isnanl (Link): New section.
70421
70422         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
70423         * modules/frexp (Link): New section.
70424
70425         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
70426         * modules/frexpl (Link): New section.
70427
70428         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
70429         * modules/ldexpl (Link): New section.
70430
70431 2007-04-03  Bruno Haible  <bruno@clisp.org>
70432
70433         * modules/TEMPLATE-EXTENDED: New file.
70434         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
70435
70436 2007-04-03  Bruno Haible  <bruno@clisp.org>
70437
70438         * DEPENDENCIES: New file.
70439         Suggested by Simon Josefsson.
70440
70441 2007-04-03  Bruno Haible  <bruno@clisp.org>
70442
70443         * doc/gnulib.texi: Escape @.
70444
70445 2007-04-03  James Youngman  <jay@gnu.org>
70446         and Paul Eggert  <eggert@cs.ucla.edu>
70447
70448         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
70449         birthtime on all systems that have birthtime, not just those which
70450         use st_birthtimensec rather than st_birthtim.  Putting zero in
70451         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
70452         that the birth time is not available for files on an NFS mount.
70453
70454 2007-04-03  Simon Josefsson  <simon@josefsson.org>
70455
70456         * modules/memxor: Move back from crypto/, suggested by Bruno.
70457         * modules/crypto/hmac-sha1: Fix memxor dependency.
70458
70459         * modules/crypto/gc: Moved from ../.
70460
70461 2007-04-02  Eric Blake  <ebb9@byu.net>
70462
70463         * lib/ldexpl.c (includes): Avoid libm.
70464
70465         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
70466
70467 2007-04-02  Bruno Haible  <bruno@clisp.org>
70468
70469         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
70470         on IRIX.
70471
70472 2007-04-02  Bruno Haible  <bruno@clisp.org>
70473
70474         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
70475         x86 or x86_64 platforms running MacOS X.
70476         Reported by Ryan Schmidt <@ryandesign.com>.
70477
70478 2007-04-02  Bruno Haible  <bruno@clisp.org>
70479
70480         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
70481         i386.
70482
70483 2007-04-01  Simon Josefsson  <simon@josefsson.org>
70484
70485         * modules/crypto/arcfour: Moved from ../.
70486         * modules/crypto/arcfour-tests: Moved from ../.
70487         * modules/crypto/arctwo: Moved from ../.
70488         * modules/crypto/arctwo-tests: Moved from ../.
70489         * modules/crypto/des: Moved from ../.
70490         * modules/crypto/des-tests: Moved from ../.
70491         * modules/crypto/gc-arcfour: Moved from ../.
70492         * modules/crypto/gc-arcfour-tests: Moved from ../.
70493         * modules/crypto/gc-arctwo: Moved from ../.
70494         * modules/crypto/gc-arctwo-tests: Moved from ../.
70495         * modules/crypto/gc-des: Moved from ../.
70496         * modules/crypto/gc-des-tests: Moved from ../.
70497         * modules/crypto/gc-hmac-md5: Moved from ../.
70498         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
70499         * modules/crypto/gc-hmac-sha1: Moved from ../.
70500         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
70501         * modules/crypto/gc-md2: Moved from ../.
70502         * modules/crypto/gc-md2-tests: Moved from ../.
70503         * modules/crypto/gc-md4: Moved from ../.
70504         * modules/crypto/gc-md4-tests: Moved from ../.
70505         * modules/crypto/gc-md5: Moved from ../.
70506         * modules/crypto/gc-md5-tests: Moved from ../.
70507         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
70508         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
70509         * modules/crypto/gc-random: Moved from ../.
70510         * modules/crypto/gc-rijndael: Moved from ../.
70511         * modules/crypto/gc-rijndael-tests: Moved from ../.
70512         * modules/crypto/gc-sha1: Moved from ../.
70513         * modules/crypto/gc-sha1-tests: Moved from ../.
70514         * modules/crypto/gc-tests: Moved from ../.
70515         * modules/crypto/hmac-md5: Moved from ../.
70516         * modules/crypto/hmac-md5-tests: Moved from ../.
70517         * modules/crypto/hmac-sha1: Moved from ../.
70518         * modules/crypto/hmac-sha1-tests: Moved from ../.
70519         * modules/crypto/md2: Moved from ../.
70520         * modules/crypto/md2-tests: Moved from ../.
70521         * modules/crypto/md4: Moved from ../.
70522         * modules/crypto/md4-tests: Moved from ../.
70523         * modules/crypto/md5: Moved from ../.
70524         * modules/crypto/md5-tests: Moved from ../.
70525         * modules/crypto/memxor: Moved from ../.
70526         * modules/crypto/rijndael: Moved from ../.
70527         * modules/crypto/rijndael-tests: Moved from ../.
70528         * modules/crypto/sha1: Moved from ../.
70529
70530 2007-03-30  James Youngman  <jay@gnu.org>
70531
70532         * tests/test-stat-time.c (prepare_test): use chmod() rather than
70533         rename() to change the ctime of a file (because ctime is unaffected
70534         by rename on jfs2 on AIX 5.1).
70535         (main): Start by doing cleanup, in case a previous run failed leaving
70536         test files behind.
70537
70538 2007-03-31  Bruno Haible  <bruno@clisp.org>
70539
70540         Support old proprietary implementations of iconv.
70541         * modules/iconv_open: New file.
70542         * lib/iconv_.h: New file.
70543         * m4/iconv_h.m4: New file.
70544         * lib/iconv_open.c: New file.
70545         * lib/iconv_open-aix.gperf: New file.
70546         * lib/iconv_open-hpux.gperf: New file.
70547         * lib/iconv_open-irix.gperf: New file.
70548         * lib/iconv_open-osf.gperf: New file.
70549         * m4/iconv_open.m4: New file.
70550         * modules/linebreak (Depends-on): Add iconv_open.
70551         * modules/striconv (Depends-on): Likewise.
70552         * modules/striconveh (Depends-on): Likewise.
70553         * modules/unicodeio (Depends-on): Likewise.
70554         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
70555         (iconv_t)(-1).
70556         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
70557         conversion if cd is (iconv_t)(-1).
70558         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
70559         is not possible.
70560
70561 2007-03-31  Bruno Haible  <bruno@clisp.org>
70562
70563         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
70564         work on Solaris either. Protect also second use of "autodetect_jp".
70565
70566 2007-03-31  Bruno Haible  <bruno@clisp.org>
70567
70568         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
70569         the function is not present.
70570
70571 2007-03-31  Bruno Haible  <bruno@clisp.org>
70572
70573         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
70574         the function is not present.
70575
70576 2007-03-31  Bruno Haible  <bruno@clisp.org>
70577
70578         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
70579         a bug in HP-UX iconv_open().
70580
70581 2007-03-31  Bruno Haible  <bruno@clisp.org>
70582
70583         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
70584         (Mathematics <math.h>): New section, add fpieee.
70585         (Input/output <stdio.h>): Add fseterr.
70586         (Mathematics <math.h>): New section, add printf-frexp.
70587         (Container data structures): Add sublist.
70588         (Core language properties): Add fpucw, inline.
70589         (Functions for greatest-width integer types <inttypes.h>): Add
70590         imaxabs, imaxdiv, inttypes.
70591         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
70592         isnanl-nolibm, ldexp.
70593         (Mathematics <math.h>): New section, add printf-frexpl.
70594         (Support for systems lacking POSIX:2001): Add fprintf-posix,
70595         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
70596         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
70597         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
70598         (Unicode string functions): Add unistr/u*-mbtoucr.
70599         (Java): Add javacomp-script, javaexec-script.
70600         (C#): Add csharpcomp-script, csharpexec-script.
70601         (Support for building libraries and executables): Add havelib,
70602         relocatable-*.
70603         (Support for maintaining and releasing projects): Renamed from
70604         'Support for maintaining and release projects'. Add announce-gen.
70605
70606 2007-03-31  Bruno Haible  <bruno@clisp.org>
70607
70608         * README: Talk primarily about git.
70609         (git and CVS): Renamed from CVS.
70610         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
70611         gnulib is available through git.
70612         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
70613
70614 2007-03-30  Bruno Haible  <bruno@clisp.org>
70615
70616         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
70617         * lib/poll_.h: Likewise.
70618         * lib/stat_.h: Likewise.
70619         * lib/sys_time_.h: Likewise.
70620         * lib/sysexit_.h: Likewise.
70621         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
70622         * lib/stdbool_.h: Likewise.
70623         * lib/byteswap_.h: Add double-inclusion guard.
70624
70625 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
70626
70627         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
70628
70629 2007-03-30  Karl Berry  <karl@gnu.org>
70630
70631         * config/srclist-update: double space after USA in the license
70632         substitution, since that's how it's usually (?) written.
70633
70634 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
70635
70636         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
70637         reported by Bruno Haible.
70638
70639 2007-03-29  Bruno Haible  <bruno@clisp.org>
70640
70641         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
70642         a bug in AIX iconv().
70643
70644 2007-03-29  Bruno Haible  <bruno@clisp.org>
70645
70646         * modules/ldexpl-tests: New file.
70647         * tests/test-ldexpl.c: New file.
70648
70649 2007-03-29  Bruno Haible  <bruno@clisp.org>
70650
70651         * lib/ldexpl.c: Include fpucw.h.
70652         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
70653         multiplication.
70654         * modules/ldexpl (Depends-on): Add fpucw.
70655
70656 2007-03-29  Bruno Haible  <bruno@clisp.org>
70657
70658         * modules/ldexpl: New file.
70659         * m4/ldexpl.m4: New file.
70660         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
70661         set.
70662         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
70663         REPLACE_LDEXPL.
70664         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
70665         REPLACE_LDEXPL.
70666         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
70667         gl_FUNC_LDEXPL_WORKS.
70668         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
70669         * modules/mathl (Files): Remove lib/ldexpl.c.
70670         (Depends-on): Add ldexpl.
70671
70672 2007-03-29  Bruno Haible  <bruno@clisp.org>
70673
70674         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
70675
70676 2007-03-29  Bruno Haible  <bruno@clisp.org>
70677
70678         * tests/test-striconveh.c (main): Don't assume that a direct conversion
70679         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
70680         and possibly also HP-UX.
70681         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
70682         work on AIX, IRIX, HP-UX, OSF/1.
70683         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
70684         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
70685         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
70686         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
70687         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
70688         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
70689
70690 2007-03-29  Bruno Haible  <bruno@clisp.org>
70691
70692         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
70693
70694 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
70695
70696         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
70697         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
70698
70699 2007-03-29  Eric Blake  <ebb9@byu.net>
70700
70701         * lib/acl-internal.h: Remove redundant include.
70702         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
70703         Cygwin when a file is locked.
70704
70705 2007-03-29  Bruno Haible  <bruno@clisp.org>
70706
70707         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
70708         file.
70709         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
70710
70711 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
70712
70713         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
70714         try to remove a parent directory if the child couldn't be removed
70715         (except for the first rmdir, which could fail because the child
70716         doesn't exist).  Problem reported by Jeff Blaine in
70717         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
70718
70719 2007-03-28  Bruno Haible  <bruno@clisp.org>
70720
70721         * lib/striconveh.c (utf8conv_carefully): New function.
70722         (mem_cd_iconveh_internal): Invoke it.
70723
70724 2007-03-28  Bruno Haible  <bruno@clisp.org>
70725
70726         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
70727         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
70728         input.
70729         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
70730         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
70731         unistr/u8-uctomb.
70732
70733 2007-03-28  Bruno Haible  <bruno@clisp.org>
70734
70735         * modules/unistr/u8-mbtoucr: New file.
70736         * lib/unistr/u8-mbtoucr.c: New file.
70737         * modules/unistr/u16-mbtoucr: New file.
70738         * lib/unistr/u16-mbtoucr.c: New file.
70739         * modules/unistr/u16-mbtoucr: New file.
70740         * lib/unistr/u16-mbtoucr.c: New file.
70741         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
70742
70743 2007-03-27  Simon Josefsson  <simon@josefsson.org>
70744             Bruno Haible  <bruno@clisp.org>
70745
70746         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
70747         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
70748         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
70749
70750         * m4/stdio_h.m4: Add stubs for vasprintf too.
70751
70752         * modules/stdio: Support vasprintf in sed command.
70753
70754         * modules/vasprintf: Depend on stdio for prototypes.  Remove
70755         vasprintf.h.  Add stdio module indicator.
70756
70757         * lib/stdio_.h: Declare asprintf and vasprintf, based on
70758         vasprintf.h.
70759
70760         * lib/vasprintf.h: File removed.
70761
70762         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
70763         * lib/vasprintf.c: Ditto.
70764         * lib/xvasprintf.c: Ditto.
70765         * tests/test-vasprintf-posix.c: Ditto.
70766         * tests/test-vasprintf.c: Ditto.
70767
70768 2007-03-27  Bruno Haible  <bruno@clisp.org>
70769
70770         Make vasnprintf multithread-safe.
70771         * lib/vasnprintf.c (decimal_point_char): New function.
70772         (VASNPRINTF): Use it.
70773         Suggested by Simon Josefsson.
70774
70775 2007-03-27  Eric Blake  <ebb9@byu.net>
70776
70777         Support sub-second birthtime on cygwin.
70778         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
70779         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
70780         (get_stat_birthtime): Also work with st_birthtim.
70781
70782 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
70783
70784         * lib/stat-time.h (USE_BIRTHTIME): Remove.
70785         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
70786         (get_stat_birthtime_ns): Do not try to use "spare" fields.
70787         (get_stat_birthtime_ns): Simplify compile-time tests.
70788         (get_stat_birthtime): Change the API to look like
70789         get_stat_mtime etc., except return a negative tv_nsec on error.
70790         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
70791         Don't check for "spare" fields.
70792         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
70793         or for struct stat.st_birthtime, as these tests aren't used.
70794         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
70795
70796 2007-03-27  Bruno Haible  <bruno@clisp.org>
70797
70798         * lib/stat-time.h: Include <sys/stat.h>.
70799
70800 2007-03-27  James Youngman  <jay@gnu.org>
70801
70802         * lib/stat-time.h (get_stat_birthtime): New function for
70803           retrieving st_birthtime as provided by UFS2 (hence *BSD).
70804         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
70805           and its variants.
70806         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
70807         * modules/stat-time-test: New file.
70808         * tests/test-stat-time.c: New test, devised by Bruno Haible.
70809
70810 2007-03-26  Bruno Haible  <bruno@clisp.org>
70811
70812         Better support of signalling NaNs.
70813         * lib/atanl.c: Include isnanl.h.
70814         (atanl): Perform test for NaN at the beginning of the function and
70815         through a call to isnanl.
70816         * lib/cosl.c: Include isnanl.h.
70817         (cosl): Perform test for NaN at the beginning of the function and
70818         through a call to isnanl.
70819         * lib/ldexpl.c: Include isnanl.h.
70820         (ldexpl): Perform test for NaN through a call to isnanl.
70821         * lib/logl.c: Include isnanl.h.
70822         (logl): Perform test for NaN at the beginning of the function and
70823         through a call to isnanl.
70824         * lib/sinl.c: Include isnanl.h.
70825         (sinl): Perform test for NaN at the beginning of the function and
70826         through a call to isnanl.
70827         * lib/sqrtl.c: Include isnanl.h.
70828         (sqrtl): Perform test for NaN at the beginning of the function and
70829         through a call to isnanl.
70830         * lib/tanl.c: Include isnanl.h.
70831         (tanl): Perform test for NaN at the beginning of the function and
70832         through a call to isnanl.
70833         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
70834         * modules/mathl (Depends-on): Add isnanl.
70835
70836 2007-03-26  Eric Blake  <ebb9@byu.net>
70837
70838         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
70839         regression in logic sense of previous patch.
70840
70841 2007-03-26  Bruno Haible  <bruno@clisp.org>
70842
70843         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
70844         unportable shell command "if ! ...".
70845         Reported by Ralf Wildenhues.
70846
70847 2007-03-25  Bruno Haible  <bruno@clisp.org>
70848
70849         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
70850         <sysexits.h> file, and only add EX_CONFIG.
70851         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
70852         absolute file name and whether it is sufficient. Substitute also
70853         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
70854         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
70855         ABSOLUTE_SYSEXITS_H into sysexits.h.
70856
70857 2007-03-25  Bruno Haible  <bruno@clisp.org>
70858
70859         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
70860         hints is NULL.
70861
70862 2007-03-25  Bruno Haible  <bruno@clisp.org>
70863
70864         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
70865         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
70866
70867 2007-03-25  Bruno Haible  <bruno@clisp.org>
70868
70869         * lib/vasnprintf.c: Include langinfo.h.
70870         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
70871         multithread-safe.
70872         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
70873         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
70874         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
70875         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
70876         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
70877         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
70878         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
70879         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
70880         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
70881         Reported by Simon Josefsson.
70882
70883 2007-03-25  Bruno Haible  <bruno@clisp.org>
70884
70885         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
70886         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
70887         * modules/vasnprintf (Depends-on): Add stdint.
70888
70889 2007-03-25  Bruno Haible  <bruno@clisp.org>
70890
70891         * modules/fpieee: New file.
70892         * m4/fpieee.m4: New file.
70893         * modules/isnan-nolibm (Depends-on): Add fpieee.
70894         * modules/isnanl-nolibm (Depends-on): Add fpieee.
70895         * modules/isnanl (Depends-on): Add fpieee.
70896
70897 2007-03-25  Bruno Haible  <bruno@clisp.org>
70898
70899         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
70900
70901 2007-03-25  Bruno Haible  <bruno@clisp.org>
70902
70903         Avoid test failures on IRIX 6.5.
70904         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
70905         (main): Use it.
70906         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
70907         macros.
70908         (main): Use them.
70909
70910 2007-03-25  Bruno Haible  <bruno@clisp.org>
70911
70912         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
70913         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
70914         exists but doesn't work.
70915         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
70916         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
70917         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
70918         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
70919         math.h.
70920
70921 2007-03-25  Bruno Haible  <bruno@clisp.org>
70922
70923         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
70924         returns inf. Needed on IRIX 6.5.
70925
70926 2007-03-25  Bruno Haible  <bruno@clisp.org>
70927
70928         * tests/test-frexpl.c: Include isnanl-nolibm.h.
70929         (main): Use isnanl instead of x != x idiom.
70930         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
70931
70932         * tests/test-frexp.c: Include isnan.h.
70933         (main): Use isnan instead of x != x idiom.
70934         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
70935
70936 2007-03-25  Bruno Haible  <bruno@clisp.org>
70937
70938         * tests/test-frexp.c (NaN): New function/macro.
70939         (main): Use it instead of 0.0 / 0.0.
70940         * tests/test-isnan.c (NaN): New function/macro.
70941         (main): Use it instead of 0.0 / 0.0.
70942         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
70943         (test_function): Use it instead of 0.0 / 0.0.
70944         * tests/test-vasprintf-posix.c (NaN): New function/macro.
70945         (test_function): Use it instead of 0.0 / 0.0.
70946         * tests/test-snprintf-posix.h (NaN): New function/macro.
70947         (test_function): Use it instead of 0.0 / 0.0.
70948         * tests/test-sprintf-posix.h (NaN): New function/macro.
70949         (test_function): Use it instead of 0.0 / 0.0.
70950         * tests/test-fprintf-posix.h (NaN): New function/macro.
70951         (test_function): Use it instead of 0.0 / 0.0.
70952         * tests/test-printf-posix.h (NaN): New function/macro.
70953         (test_function): Use it instead of 0.0 / 0.0.
70954
70955         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
70956
70957 2007-03-25  Bruno Haible  <bruno@clisp.org>
70958
70959         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
70960
70961 2007-03-25  Bruno Haible  <bruno@clisp.org>
70962
70963         * lib/regexec.c (merge_state_with_log): Make static.
70964
70965 2007-03-25  Bruno Haible  <bruno@clisp.org>
70966
70967         * lib/trigl.c (kernel_rem_pio2): Make static.
70968
70969 2007-03-25  Bruno Haible  <bruno@clisp.org>
70970
70971         * lib/sincosl.c (sincosl_table): Make static.
70972
70973 2007-03-25  Bruno Haible  <bruno@clisp.org>
70974
70975         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
70976         if the compiler does not support C99.
70977
70978 2007-03-25  Bruno Haible  <bruno@clisp.org>
70979
70980         * modules/time (Makefile.am): Ensure all rule action lines start with a
70981         tab.
70982
70983 2007-03-24  Bruno Haible  <bruno@clisp.org>
70984
70985         * modules/tsearch-tests: New file.
70986         * tests/test-tsearch.sh: New file.
70987         * tests/test-tsearch.c: New file, mostly copied from glibc.
70988
70989         * modules/search-tests: New file.
70990         * tests/test-search.c: New file.
70991
70992         * modules/search: New file.
70993         * lib/search_.h: New file, incorporating lib/tsearch.h.
70994         * m4/search_h.m4: New file.
70995         * lib/tsearch.h: Remove file.
70996         * lib/tsearch.c: Include search.h instead of tsearch.h.
70997         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
70998         HAVE_TSEARCH.
70999         * modules/tsearch (Files): Remove lib/tsearch.h.
71000         (Depends-on): Add search.
71001         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
71002         (Include): Change tsearch.h into search.h.
71003
71004 2007-03-24  Bruno Haible  <bruno@clisp.org>
71005
71006         * modules/fpucw: New file.
71007         * lib/fpucw.h: New file.
71008         * lib/frexp.c: Include fpucw.h.
71009         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
71010         (FUNC): Use them.
71011         * lib/printf-frexp.c: Include fpucw.h.
71012         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
71013         (FUNC): Use them.
71014         * lib/vasnprintf.c: Include fpucw.h.
71015         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
71016         'long double' calculations.
71017         * tests/test-frexpl.c: Include fpucw.h.
71018         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
71019         * tests/test-printf-frexpl.c: Include fpucw.h.
71020         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
71021         * modules/frexpl (Depends-on): Add fpucw.
71022         * modules/printf-frexpl (Depends-on): Likewise.
71023         * modules/fprintf-posix (Depends-on): Likewise.
71024         * modules/snprintf-posix (Depends-on): Likewise.
71025         * modules/sprintf-posix (Depends-on): Likewise.
71026         * modules/vasnprintf-posix (Depends-on): Likewise.
71027         * modules/vasprintf-posix (Depends-on): Likewise.
71028         * modules/vfprintf-posix (Depends-on): Likewise.
71029         * modules/vsnprintf-posix (Depends-on): Likewise.
71030         * modules/vsprintf-posix (Depends-on): Likewise.
71031         * modules/frexpl-tests (Depends-on): Likewise.
71032         * modules/printf-frexpl-tests (Depends-on): Likewise.
71033
71034 2007-03-24  Bruno Haible  <bruno@clisp.org>
71035
71036         * lib/float+.h: New file.
71037         * lib/isnan.c: Include float+.h.
71038         (SIZE): New macro.
71039         (FUNC): Compare only SIZE bytes of the value.
71040         * lib/vasnprintf.c: Include float+.h.
71041         (VASNPRINTF): When comparing against +0.0L or +0.0, compare only
71042         SIZEOF_LDBL or SIZEOF_DBL bytes.
71043         * modules/isnan-nolibm (Files): Add lib/float+.h.
71044         * modules/isnanl-nolibm (Files): Add lib/float+.h.
71045         * modules/isnanl (Files): Add lib/float+.h.
71046         * modules/vasnprintf (Files): Add lib/float+.h.
71047
71048 2007-03-24  Bruno Haible  <bruno@clisp.org>
71049
71050         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
71051         include isnanl-nolibm.h.
71052
71053 2007-03-24  Bruno Haible  <bruno@clisp.org>
71054
71055         * tests/test-read-file.c (main): Don't produce spurious output for
71056         expected situations. Make the test fail if it encountered unexpected
71057         results.
71058
71059 2007-03-24  Bruno Haible  <bruno@clisp.org>
71060
71061         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
71062         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
71063
71064 2007-03-24  Bruno Haible  <bruno@clisp.org>
71065
71066         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
71067
71068 2007-03-24  Bruno Haible  <bruno@clisp.org>
71069
71070         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
71071         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
71072
71073         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
71074         * modules/utf8-ucs4: Turn into a symbolic link to module
71075         unistr/u8-mbtouc.
71076
71077         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
71078         utf8-ucs4-unsafe.
71079         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
71080         unistr/u8-mbtouc-unsafe.
71081
71082         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
71083         * modules/utf16-ucs4: Turn into a symbolic link to module
71084         unistr/u16-mbtouc.
71085
71086         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
71087         utf16-ucs4-unsafe.
71088         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
71089         unistr/u16-mbtouc-unsafe.
71090
71091         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
71092         * modules/ucs4-utf8: Turn into a symbolic link to module
71093         unistr/u8-ubtomb.
71094
71095         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
71096         * modules/ucs4-utf16: Turn into a symbolic link to module
71097         unistr/u16-ubtomb.
71098
71099 2007-03-24  Bruno Haible  <bruno@clisp.org>
71100
71101         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
71102         Enable the function only if HAVE_INLINE.
71103         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
71104         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
71105         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
71106         Enable the function only if HAVE_INLINE.
71107         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
71108         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
71109         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
71110         Enable the function only if HAVE_INLINE.
71111         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
71112         Enable the function only if HAVE_INLINE.
71113         * modules/utf8-ucs4: Update.
71114         * modules/utf8-ucs4-unsafe: Update.
71115         * modules/utf16-ucs4: Update.
71116         * modules/utf16-ucs4-unsafe: Update.
71117         * modules/ucs4-utf8: Update.
71118         * modules/ucs4-utf16: Update.
71119
71120 2007-03-24  Bruno Haible  <bruno@clisp.org>
71121
71122         * lib/utf8-ucs4.h: Remove file.
71123         * lib/utf8-ucs4-unsafe.h: Remove file.
71124         * lib/utf16-ucs4.h: Remove file.
71125         * lib/utf16-ucs4-unsafe.h: Remove file.
71126         * lib/ucs4-utf8.h: Remove file.
71127         * lib/ucs4-utf16.h: Remove file.
71128         * lib/unistr.h: Include their previous contents.
71129         * m4/utf-ucs4.m4: Remove file.
71130         * m4/ucs4-utf.m4: Remove file.
71131         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
71132         (Depends-on): Add unistr/base.
71133         (configure.ac): Remove gl_UTF_UCS4.
71134         (Makefile.am): Update.
71135         (Include): Change to unistr.h.
71136         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
71137         (Depends-on): Add unistr/base.
71138         (configure.ac): Remove gl_UTF_UCS4.
71139         (Makefile.am): Update.
71140         (Include): Change to unistr.h.
71141         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
71142         (Depends-on): Add unistr/base.
71143         (configure.ac): Remove gl_UTF_UCS4.
71144         (Makefile.am): Update.
71145         (Include): Change to unistr.h.
71146         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
71147         (Depends-on): Add unistr/base.
71148         (configure.ac): Remove gl_UTF_UCS4.
71149         (Makefile.am): Update.
71150         (Include): Change to unistr.h.
71151         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
71152         (Depends-on): Add unistr/base.
71153         (configure.ac): Remove gl_UCS4_UTF.
71154         (Makefile.am): Update.
71155         (Include): Change to unistr.h.
71156         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
71157         (Depends-on): Add unistr/base.
71158         (configure.ac): Remove gl_UCS4_UTF.
71159         (Makefile.am): Update.
71160         (Include): Change to unistr.h.
71161         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
71162         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
71163         utf8-ucs4-unsafe.h.
71164         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
71165         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
71166         utf16-ucs4-unsafe.h.
71167         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
71168         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
71169         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
71170         * lib/unistr/u8-strchr.c: Likewise.
71171         * lib/unistr/u8-strrchr.c: Likewise.
71172         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
71173         * lib/unistr/u16-strchr.c: Likewise.
71174         * lib/unistr/u16-strrchr.c: Likewise.
71175         * lib/striconveh.c: Update.
71176         * lib/linebreak.c: Update.
71177
71178 2007-03-24  Bruno Haible  <bruno@clisp.org>
71179
71180         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
71181         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
71182
71183 2007-03-22  Bruno Haible  <bruno@clisp.org>
71184
71185         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
71186
71187 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
71188
71189         * MODULES.html.sh (File system functions): New module write-any-file.
71190         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
71191         * m4/write-any-file.m4: New files.
71192
71193 2007-03-23  Eric Blake  <ebb9@byu.net>
71194
71195         * gnulib-tool: Rearrange space-tab sequences, since some editors
71196         like to eat them.
71197
71198 2007-03-23  Eric Blake  <ebb9@byu.net>
71199
71200         * lib/version-etc.c (version_etc_va): Update license wording to
71201         be more concise.  Recommended by Richard Stallman.
71202
71203 2007-03-22  Bruno Haible  <bruno@clisp.org>
71204
71205         * lib/poll.c (MSG_PEEK): New fallback definition.
71206
71207 2007-03-22  Bruno Haible  <bruno@clisp.org>
71208
71209         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
71210         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
71211         (main): Update.
71212         Fixes a compilation error on BeOS.
71213
71214 2007-03-22  Bruno Haible  <bruno@clisp.org>
71215
71216         * modules/frexpl-tests: New file.
71217         * tests/test-frexpl.c: New file.
71218
71219         * modules/frexpl: New file.
71220         * m4/frexpl.m4: New file.
71221         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
71222         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
71223         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
71224         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
71225         (Depends-on): Add frexpl. Remove isnanl-nolibm.
71226         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
71227
71228 2007-03-22  Bruno Haible  <bruno@clisp.org>
71229
71230         * lib/frexpl.c: Share code with lib/frexp.c.
71231         * modules/mathl (Files): Add lib/frexp.c.
71232         (Depends-on): Add isnanl-nolibm.
71233
71234 2007-03-22  Bruno Haible  <bruno@clisp.org>
71235
71236         * modules/printf-frexp (Files): Add m4/frexp.m4.
71237         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
71238         only if the found frexp function actually works.
71239
71240 2007-03-22  Bruno Haible  <bruno@clisp.org>
71241
71242         * lib/frexp.c: Remove older implementation that uses divisions.
71243
71244 2007-03-21  Bruno Haible  <bruno@clisp.org>
71245
71246         * modules/frexp-tests: New file.
71247         * tests/test-frexp.c: New file.
71248
71249         * modules/frexp: New file.
71250         * lib/frexp.c: New file.
71251         * m4/frexp.m4: New file.
71252         * lib/math_.h (frexp): New declaration.
71253         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
71254         REPLACE_FREXP.
71255         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
71256
71257 2007-03-21  Bruno Haible  <bruno@clisp.org>
71258
71259         * modules/isnanl-tests: New file.
71260         * tests/test-isnanl.c: New file.
71261
71262         * modules/isnanl: New file.
71263         * lib/isnanl.h: New file.
71264         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
71265         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
71266         gl_FUNC_ISNANL_WORKS.
71267         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
71268         New macros.
71269
71270 2007-03-21  Bruno Haible  <bruno@clisp.org>
71271
71272         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
71273         lib/isnanl.h.
71274         (Include): Update.
71275         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
71276         * lib/vasnprintf.c: Update.
71277         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
71278         tests/test-isnanl.h, remove tests/test-isnanl.c.
71279         (Makefile.am): Update.
71280         * tests/test-isnanl-nolibm.c: New file.
71281         * tests/test-isnanl.h: New file.
71282         * tests/test-isnanl.c: Remove file.
71283
71284 2007-03-21  Jim Meyering  <jim@meyering.net>
71285
71286         When trying to open ".", treat ESTALE like EACCES.
71287         * lib/savewd.c (savewd_save): Resort to forking not just upon
71288         failure with EACCES, but also when errno is ESTALE.
71289
71290 2007-03-20  Bruno Haible  <bruno@clisp.org>
71291
71292         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
71293         Needed on AIX 5.1. Reported by Matthew Woehlke.
71294
71295 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
71296
71297         Suggestions by Bruno Haible:
71298         * lib/acl-internal.h: Include "gettext.h" rather than rolling
71299         our own.
71300         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
71301         * modules/acl (Depends-on): Add gettext.
71302
71303 2007-03-19  Bruno Haible  <bruno@clisp.org>
71304
71305         * modules/iconvme: Remove file.
71306         * lib/iconvme.h: Remove file.
71307         * lib/iconvme.c: Remove file.
71308         * m4/iconvme.m4: Remove file.
71309
71310 2007-03-19  Bruno Haible  <bruno@clisp.org>
71311
71312         * doc/relocatable-maint.texi: Break long shell script line.
71313         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
71314
71315 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
71316
71317         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
71318         handle file_has_acl.
71319         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
71320         * lib/acl.c: Move header inclusions and related macro defns into
71321         lib/acl-internal.h.
71322         (S_ISLNK): Remove defn, since that's now done for us.
71323         (file_has_acl): Move to lib/file-has-acl.c.
71324         Call acl_trivial if available.  This is the crucial part of the fix.
71325         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
71326         shared within the library.  Rewrite a bit, partly to make it compatible
71327         with the GNU coding style.
71328         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
71329         Remove unnecessary double-quotes.
71330         Don't test for acl_to_text; the build will catch that.
71331         Replace acl_entries if it doesn't exist and it is needed.
71332         Check for -lsec and acl_trivial (as used on Solaris 10).
71333         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
71334         lib/file-has-acl.c.
71335         (Depends-on): Add sys_stat, for S_ISLNK.
71336
71337 2007-03-19  Ben Pfaff  <blp@gnu.org>
71338
71339         * doc/gnulib.texi: Fix typos.
71340         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
71341
71342 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
71343
71344         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
71345         If size is zero here, buf must be zero.
71346
71347 2007-03-19  Simon Josefsson  <simon@josefsson.org>
71348
71349         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
71350         <bruno@clisp.org>.
71351
71352 2007-03-18  Bruno Haible  <bruno@clisp.org>
71353
71354         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
71355         Suggested by Eric Blake.
71356
71357 2007-03-18  Ben Pfaff  <blp@gnu.org>
71358
71359         * doc/relocatable.texi: Recommend using as prefix a directory
71360         that does not exist and will never be created.  Based on
71361         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
71362         and others.
71363
71364 2007-03-17  Bruno Haible  <bruno@clisp.org>
71365
71366         * lib/fchownat.c: Include lchown.h.
71367
71368 2007-03-17  Bruno Haible  <bruno@clisp.org>
71369
71370         Fix endless loop when the given allocated size was > INT_MAX.
71371         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
71372         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
71373         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
71374         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
71375         * lib/sprintf.c (sprintf): Likewise.
71376
71377 2007-03-17  Bruno Haible  <bruno@clisp.org>
71378
71379         * tests/test-argp-2.sh (func_compare): Output a context diff.
71380
71381 2007-03-17  Bruno Haible  <bruno@clisp.org>
71382
71383         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
71384         locale's decimal-point character.
71385
71386 2007-03-17  Bruno Haible  <bruno@clisp.org>
71387
71388         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
71389         before comparing it. Needed because on some platforms (e.g. x86) a
71390         'long double' occupies less bytes than sizeof (long double).
71391
71392 2007-03-17  Bruno Haible  <bruno@clisp.org>
71393
71394         * tests/test-crc.c (main): Make printf statements 64-bit clean.
71395         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
71396         * tests/test-getaddrinfo.c (simple): Likewise.
71397         * tests/test-read-file.c (main): Likewise.
71398
71399 2007-03-17  Bruno Haible  <bruno@clisp.org>
71400
71401         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
71402
71403 2007-03-17  Bruno Haible  <bruno@clisp.org>
71404
71405         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
71406         unused variable.
71407
71408 2007-03-17  Bruno Haible  <bruno@clisp.org>
71409
71410         * tests/test-c-strcasecmp.c: Include c-strcase.h.
71411         * tests/test-c-strncasecmp.c: Likewise.
71412
71413 2007-03-17  Bruno Haible  <bruno@clisp.org>
71414
71415         * modules/stdlib (Depends-on): Add unistd.
71416         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
71417         Needed for MacOS X 10.3.
71418
71419 2007-03-17  Bruno Haible  <bruno@clisp.org>
71420
71421         * lib/unistr/u-strdup.h: Include <stdlib.h>.
71422
71423 2007-03-17  Bruno Haible  <bruno@clisp.org>
71424
71425         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
71426
71427 2007-03-17  Bruno Haible  <bruno@clisp.org>
71428
71429         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
71430         to reflect files copied from gnulib (with or without modifications).
71431         Suggested by Jim Meyering.
71432
71433 2007-03-17  Eric Blake  <ebb9@byu.net>
71434
71435         * NEWS: Document stdlib change from 2007-02-18.
71436
71437 2007-03-17  Jim Meyering  <jim@meyering.net>
71438
71439         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
71440         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
71441         someone uses a name containing shell meta-characters.
71442         Reported by Alfred M. Szmidt.
71443
71444         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
71445
71446 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
71447
71448         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
71449         and copy gettext configuration files only if configure.ac contains
71450         a use of AM_GNU_GETTEXT_VERSION.
71451
71452 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
71453
71454         * build-aux/bootstrap (gnulib_name): New variable.
71455         (gnulib_tool_options): Use it.
71456
71457 2007-03-13  Simon Josefsson  <simon@josefsson.org>
71458
71459         * tests/test-des.c: Use new namespace.
71460
71461 2007-03-15  Bruno Haible  <bruno@clisp.org>
71462
71463         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
71464         Reported by James Youngman <jay@gnu.org>.
71465
71466 2007-03-15  Bruno Haible  <bruno@clisp.org>
71467
71468         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
71469         declared prototype. Needed with cc on OSF/1 5.1.
71470
71471 2007-03-15  Bruno Haible  <bruno@clisp.org>
71472
71473         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
71474         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
71475         (struct gl_list_implementation): Add dispose_fn argument to the
71476         'create_empty', 'create' methods.
71477         (struct gl_list_impl_base): Add field 'dispose_fn'.
71478         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
71479         argument.
71480         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
71481         dispose_fn argument.
71482         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
71483         dispose_fn on the dropped values.
71484         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
71485         dispose_fn argument.
71486         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
71487         dropped values.
71488         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
71489         (gl_tree_remove_node): Call dispose_fn on the dropped value.
71490         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
71491         (gl_tree_remove_node): Call dispose_fn on the dropped value.
71492         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
71493         argument.
71494         (gl_tree_list_free): Call dispose_fn on the dropped values.
71495         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
71496         the dropped values.
71497         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
71498         Add dispose_fn argument.
71499         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
71500         Call dispose_fn on the dropped values.
71501         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
71502         Add dispose_fn argument.
71503         (gl_sublist_create): Initialize the 'dispose_fn' field.
71504         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
71505         * tests/test-array_list.c (main): Update.
71506         * tests/test-carray_list.c (main): Update.
71507         * tests/test-avltree_list.c (main): Update.
71508         * tests/test-rbtree_list.c (main): Update.
71509         * tests/test-avltreehash_list.c (main): Update.
71510         * tests/test-rbtreehash_list.c (main): Update.
71511         * tests/test-linked_list.c (main): Update.
71512         * tests/test-linkedhash_list.c (main): Update.
71513         * tests/test-array_oset.c (main): Update.
71514
71515 2007-03-15  Bruno Haible  <bruno@clisp.org>
71516
71517         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
71518         (gl_oset_create_empty): Add dispose_fn argument.
71519         (struct gl_oset_implementation): Add dispose_fn argument to
71520         'create_empty' method.
71521         (struct gl_oset_impl_base): Add dispose_fn field.
71522         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
71523         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
71524         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
71525         values.
71526         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
71527         (gl_tree_oset_free): Call dispose_fn on the dropped values.
71528         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
71529         dropped value.
71530         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
71531         dropped value.
71532         * tests/test-array_oset.c (main): Update.
71533         * tests/test-avltree_oset.c (main): Update.
71534         * tests/test-rbtree_oset.c (main): Update.
71535         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
71536
71537 2007-03-13  Bruno Haible  <bruno@clisp.org>
71538
71539         * tests/test-stdbool.c (i): Update after last patch.
71540
71541 2007-03-12  Bruno Haible  <bruno@clisp.org>
71542
71543         * lib/quotearg.c: Include <wctype.h> early, before the definition of
71544         the iswprint macro. Needed on Solaris 2.5.1.
71545
71546 2007-03-12  Bruno Haible  <bruno@clisp.org>
71547
71548         * tests/test-printf-frexp.c (main): Declare x as volatile.
71549
71550 2007-03-12  Simon Josefsson  <simon@josefsson.org>
71551
71552         * doc/gnulib.texi (Build robot for gnulib): New section.
71553
71554 2007-03-12  Jim Meyering  <jim@meyering.net>
71555
71556         * build-aux/bootstrap: New file.
71557         * build-aux/bootstrap.conf: New file, from coreutils.
71558
71559 2007-03-11  Bruno Haible  <bruno@clisp.org>
71560
71561         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
71562
71563 2007-03-12  Simon Josefsson  <simon@josefsson.org>
71564
71565         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
71566         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
71567         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
71568
71569 2007-03-11  Bruno Haible  <bruno@clisp.org>
71570
71571         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
71572         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
71573
71574 2007-03-11  Bruno Haible  <bruno@clisp.org>
71575
71576         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
71577         formula. Needed for SunPRO C 5.0.
71578
71579 2007-03-11  Bruno Haible  <bruno@clisp.org>
71580
71581         * modules/long-options (Depends-on): Add getopt.
71582
71583 2007-03-11  Bruno Haible  <bruno@clisp.org>
71584
71585         * modules/modechange (Depends-on): Add stdbool.
71586
71587 2007-03-11  Bruno Haible  <bruno@clisp.org>
71588
71589         * modules/i-ring (Depends-on): Add stdbool.
71590
71591 2007-03-11  Bruno Haible  <bruno@clisp.org>
71592
71593         * modules/gc-des (Depends-on): Add stdbool.
71594
71595 2007-03-11  Bruno Haible  <bruno@clisp.org>
71596
71597         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
71598
71599 2007-03-11  Bruno Haible  <bruno@clisp.org>
71600
71601         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
71602
71603 2007-03-11  Bruno Haible  <bruno@clisp.org>
71604
71605         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
71606
71607 2007-03-11  Bruno Haible  <bruno@clisp.org>
71608
71609         * lib/vasnprintf.c (sprintf): Undefine.
71610
71611 2007-03-11  Bruno Haible  <bruno@clisp.org>
71612
71613         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
71614         initializers in SunPRO C and Compaq C compilers.
71615
71616 2007-03-11  Bruno Haible  <bruno@clisp.org>
71617
71618         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
71619         decrementing code ANSI C compliant.
71620
71621 2007-03-11  Bruno Haible  <bruno@clisp.org>
71622
71623         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
71624         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
71625
71626 2007-03-11  Bruno Haible  <bruno@clisp.org>
71627
71628         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
71629         <stdbool.h> substitute doesn't pass.
71630
71631 2007-03-11  Bruno Haible  <bruno@clisp.org>
71632
71633         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
71634
71635 2007-03-11  Bruno Haible  <bruno@clisp.org>
71636
71637         * gnulib-tool (func_create_megatestdir): Create also an autobuild
71638         script, for submission to autobuild.josefsson.org.
71639
71640 2007-03-10  Bruno Haible  <bruno@clisp.org>
71641
71642         * modules/canonicalize-lgpl-tests: New file.
71643         * tests/test-canonicalize-lgpl.sh: New file.
71644         * tests/test-canonicalize-lgpl.c: New file.
71645
71646         * modules/c-strcase-tests: New file.
71647         * tests/test-c-strcase.sh: New file.
71648         * tests/test-c-strcasecmp.c: New file.
71649         * tests/test-c-strncasecmp.c: New file.
71650
71651         * modules/atexit-tests: New file.
71652         * tests/test-atexit.sh: New file.
71653         * tests/test-atexit.c: New file.
71654
71655 2007-03-10  Bruno Haible  <bruno@clisp.org>
71656
71657         * tests/test-binary-io.sh: Use temporary filenames that are not so
71658         likely to clash with those of other tests (in a parallel make).
71659         * tests/test-binary-io.c: Likewise.
71660
71661 2007-03-10  Bruno Haible  <bruno@clisp.org>
71662
71663         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
71664         fallback; use #error instead.
71665         Suggested by Simon Josefsson.
71666
71667 2007-03-10  Bruno Haible  <bruno@clisp.org>
71668
71669         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
71670         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
71671         first and the last.
71672
71673 2007-03-10  Bruno Haible  <bruno@clisp.org>
71674
71675         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
71676
71677 2007-03-10  Bruno Haible  <bruno@clisp.org>
71678
71679         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
71680         "make distcheck".
71681         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
71682         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
71683         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
71684
71685 2007-03-10  Bruno Haible  <bruno@clisp.org>
71686
71687         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
71688         variable.
71689         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
71690         variable.
71691
71692 2007-03-09  Eric Blake  <ebb9@byu.net>
71693         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
71694
71695         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
71696         types are not being provided by gnulib.
71697         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
71698         types are supported.
71699
71700 2007-03-10  Bruno Haible  <bruno@clisp.org>
71701
71702         * lib/stdio_.h (__attribute__): New macro.
71703         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
71704         vsprintf): Specify __attribute__ __format__ for GCC.
71705         Suggested by Eric Blake.
71706
71707 2007-03-09  Bruno Haible  <bruno@clisp.org>
71708
71709         * modules/printf-posix-tests: New file.
71710         * tests/test-printf-posix.sh: New file.
71711         * tests/test-printf-posix.c: New file.
71712
71713         * modules/printf-posix: New file.
71714         * lib/printf.c: New file.
71715         * m4/printf-posix-rpl.m4: New file.
71716         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
71717         REPLACE_PRINTF.
71718         * lib/stdio_.h (printf): New declaration.
71719         (format, __format__, ____printf____, ____scanf____, ____strftime____,
71720         ____strfmon____): New macros.
71721         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
71722         REPLACE_PRINTF.
71723
71724 2007-03-09  Bruno Haible  <bruno@clisp.org>
71725
71726         * tests/test-vasnprintf-posix2.sh: New file.
71727         * tests/test-vasnprintf-posix2.c: New file.
71728         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
71729         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
71730         (Makefile.am): Activate test-vasnprintf-posix2.sh.
71731
71732         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
71733         a locale dependent decimal point, rather than always '.'.
71734
71735 2007-03-09  Eric Blake  <ebb9@byu.net>
71736
71737         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
71738         spite of platforms like Tandem/NSK that define it to -1.
71739
71740 2007-03-08  Bruno Haible  <bruno@clisp.org>
71741
71742         * modules/vprintf-posix-tests: New file.
71743         * tests/test-vprintf-posix.sh: New file.
71744         * tests/test-vprintf-posix.c: New file.
71745         * tests/test-printf-posix.h: New file.
71746
71747         * modules/vprintf-posix: New file.
71748         * lib/vprintf.c: New file.
71749         * m4/vprintf-posix.m4: New file.
71750         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
71751         REPLACE_VPRINTF.
71752         * lib/stdio_.h (vprintf): New declaration.
71753         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
71754         REPLACE_VPRINTF.
71755
71756 2007-03-08  Bruno Haible  <bruno@clisp.org>
71757
71758         * modules/fprintf-posix-tests: New file.
71759         * tests/test-fprintf-posix.sh: New file.
71760         * tests/test-fprintf-posix.c: New file.
71761
71762         * modules/fprintf-posix: New file.
71763         * lib/fprintf.c: New file.
71764         * m4/fprintf-posix.m4: New file.
71765         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
71766         REPLACE_FPRINTF.
71767         * lib/stdio_.h (fprintf): New declaration.
71768         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
71769         REPLACE_FPRINTF.
71770
71771 2007-03-08  Bruno Haible  <bruno@clisp.org>
71772
71773         * modules/vfprintf-posix-tests: New file.
71774         * tests/test-vfprintf-posix.sh: New file.
71775         * tests/test-vfprintf-posix.c: New file.
71776         * tests/test-fprintf-posix.h: New file.
71777         * tests/test-fprintf-posix.out: New file.
71778
71779         * modules/vfprintf-posix: New file.
71780         * lib/vfprintf.c: New file.
71781         * m4/vfprintf-posix.m4: New file.
71782         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
71783         REPLACE_VFPRINTF.
71784         * lib/stdio_.h (vfprintf): New declaration.
71785         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
71786         REPLACE_VFPRINTF.
71787
71788 2007-03-08  Bruno Haible  <bruno@clisp.org>
71789
71790         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
71791
71792 2007-03-08  Bruno Haible  <bruno@clisp.org>
71793
71794         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
71795         instead of 'expr' invocations.
71796         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
71797         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
71798         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
71799         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
71800         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
71801         Suggested by Paul Eggert.
71802
71803 2007-03-08  Bruno Haible  <bruno@clisp.org>
71804
71805         * modules/fseterr-tests: New file.
71806         * tests/test-fseterr.c: New file.
71807
71808         * modules/fseterr: New file.
71809         * lib/fseterr.h: New file.
71810         * lib/fseterr.c: New file.
71811
71812 2007-03-08  Bruno Haible  <bruno@clisp.org>
71813
71814         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
71815         * lib/getopt_.h: Likewise.
71816         * lib/mbswidth.h: Likewise.
71817         * lib/setenv.h: Likewise.
71818         * lib/vasnprintf.h: Likewise.
71819         * lib/vasprintf.h: Likewise.
71820         * lib/verror.h: Likewise.
71821         * lib/xsetenv.h: Likewise.
71822         * lib/xvasprintf.h: Likewise.
71823
71824 2007-03-08  Jim Meyering  <jim@meyering.net>
71825
71826         * users.txt: Add parted.
71827
71828         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
71829
71830 2007-03-07  Bruno Haible  <bruno@clisp.org>
71831
71832         * m4/printf.m4: Make the shell script snippets copy&pastable.
71833
71834 2007-03-02  Bruno Haible  <bruno@clisp.org>
71835
71836         * lib/netinet_in_.h: New file.
71837         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
71838         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
71839         * modules/netinet_in (Files): Add lib/netinet_in_.h.
71840         (Depends-on): Add absolute-header.
71841         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
71842         into netinet/in.h.
71843
71844 2007-03-03  Bruno Haible  <bruno@clisp.org>
71845
71846         * lib/sys_select_.h: New file.
71847         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
71848         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
71849         * modules/sys_select (Files): Add lib/sys_select_.h.
71850         (Depends-on): Add absolute-header.
71851         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
71852         into sys/select.h.
71853
71854 2007-03-02  Bruno Haible  <bruno@clisp.org>
71855
71856         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
71857         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
71858         values.
71859         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
71860         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
71861         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
71862         * modules/sys_socket (Depends-on): Add absolute-header.
71863         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
71864         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
71865         (Include): Remove requirement of inclusion of <sys/types.h>.
71866
71867 2007-03-02  Bruno Haible  <bruno@clisp.org>
71868
71869         * lib/byteswap_.h (bswap_32): Fix formula.
71870
71871 2007-03-06  Bruno Haible  <bruno@clisp.org>
71872
71873         * modules/sprintf-posix-tests: New file.
71874         * tests/test-sprintf-posix.c: New file.
71875
71876         * modules/sprintf-posix: New file.
71877         * lib/sprintf.c: New file.
71878         * m4/sprintf-posix.m4: New file.
71879         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
71880         REPLACE_SPRINTF.
71881         * lib/stdio_.h (sprintf): New declaration.
71882         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
71883         REPLACE_SPRINTF.
71884
71885 2007-03-06  Bruno Haible  <bruno@clisp.org>
71886
71887         * modules/vsprintf-posix-tests: New file.
71888         * tests/test-vsprintf-posix.c: New file.
71889         * tests/test-sprintf-posix.h: New file.
71890
71891         * modules/vsprintf-posix: New file.
71892         * lib/vsprintf.c: New file.
71893         * m4/vsprintf-posix.m4: New file.
71894         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
71895         REPLACE_VSPRINTF.
71896         * lib/stdio_.h (vsprintf): New declaration.
71897         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
71898         REPLACE_VSPRINTF.
71899
71900 2007-03-06  Bruno Haible  <bruno@clisp.org>
71901
71902         * modules/vsnprintf (Depend-on): Remove minmax.
71903
71904 2007-03-06  Bruno Haible  <bruno@clisp.org>
71905
71906         * modules/snprintf-posix-tests: New file.
71907         * tests/test-snprintf-posix.c: New file.
71908
71909         * modules/snprintf-posix: New file.
71910         * m4/snprintf-posix.m4: New file.
71911         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
71912         gl_FUNC_SNPRINTF.
71913         (gl_FUNC_SNPRINTF): Invoke it.
71914         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
71915         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
71916         is set.
71917         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
71918
71919 2007-03-06  Bruno Haible  <bruno@clisp.org>
71920
71921         * modules/vsnprintf-posix-tests: New file.
71922         * tests/test-vsnprintf-posix.c: New file.
71923         * tests/test-snprintf-posix.h: New file.
71924
71925         * modules/vsnprintf-posix: New file.
71926         * m4/vsnprintf-posix.m4: New file.
71927         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
71928         gl_FUNC_VSNPRINTF.
71929         (gl_FUNC_VSNPRINTF): Invoke it.
71930         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
71931         * lib/stdio_.h (vsnprintf): Define as a replacement if
71932         REPLACE_VSNPRINTF is set.
71933         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
71934
71935 2007-03-06  Bruno Haible  <bruno@clisp.org>
71936
71937         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
71938         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
71939
71940 2007-03-06  Bruno Haible  <bruno@clisp.org>
71941
71942         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
71943         (asinl): Declare also if HAVE_DECL_ASINL is set.
71944         (atanl): Declare also if HAVE_DECL_ATANL is set.
71945         (ceill): Declare also if HAVE_DECL_CEILL is set.
71946         (cosl): Declare also if HAVE_DECL_COSL is set.
71947         (expl): Declare also if HAVE_DECL_EXPL is set.
71948         (floorl): Declare also if HAVE_DECL_FLOORL is set.
71949         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
71950         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
71951         (logl): Declare also if HAVE_DECL_LOGL is set.
71952         (sinl): Declare also if HAVE_DECL_SINL is set.
71953         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
71954         (tanl): Declare also if HAVE_DECL_TANL is set.
71955         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
71956         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
71957         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
71958         declaration of frexpl, ldexpl.
71959         * modules/printf-frexpl (Depends-on): Add math.
71960         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
71961
71962 2007-03-05  Bruno Haible  <bruno@clisp.org>
71963
71964         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
71965         frexpl and ldexpl are declared.
71966         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
71967
71968 2007-03-05  Bruno Haible  <bruno@clisp.org>
71969
71970         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
71971         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
71972
71973 2007-03-05  Bruno Haible  <bruno@clisp.org>
71974
71975         * lib/stdio_.h: Include <stddef.h>.
71976
71977 2007-03-05  Bruno Haible  <bruno@clisp.org>
71978
71979         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
71980
71981 2007-03-05  Bruno Haible  <bruno@clisp.org>
71982
71983         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
71984         NetBSD 4, from Ralf Wildenhues.
71985
71986 2007-03-04  Bruno Haible  <bruno@clisp.org>
71987
71988         * lib/vasprintf.h: Update #if logic for the case when the functions
71989         exist but are overridden.
71990
71991 2007-03-04  Bruno Haible  <bruno@clisp.org>
71992
71993         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
71994         implementations: glibc-2.4 and MacOS X 10.3.
71995         * tests/test-vasnprintf-posix.c (test_function): Test also the case
71996         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
71997         * tests/test-vasprintf-posix.c (test_function): Likewise.
71998
71999 2007-03-04  Bruno Haible  <bruno@clisp.org>
72000
72001         * modules/vasprintf-posix-tests: New file.
72002         * tests/test-vasprintf-posix.c: New file.
72003
72004         * modules/vasprintf-posix: New file.
72005         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
72006         defined.
72007         * m4/vasprintf-posix.m4: New file.
72008         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
72009         gl_FUNC_VASPRINTF.
72010         (gl_FUNC_VASPRINTF): Invoke it.
72011         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
72012         here.
72013         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
72014
72015 2007-03-04  Bruno Haible  <bruno@clisp.org>
72016
72017         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
72018         REPLACE_GETTIMEOFDAY.
72019         * modules/sys_time (Makefile.am): Likewise.
72020         * m4/sys_time_h.m4: Likewise.
72021         * m4/gettimeofday.m4: Likewise.
72022
72023 2007-03-04  Bruno Haible  <bruno@clisp.org>
72024
72025         * modules/vasnprintf-posix-tests: New file.
72026         * tests/test-vasnprintf-posix.c: New file.
72027
72028         * modules/vasnprintf-posix: New file.
72029         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
72030         printf-frexpl.h.
72031         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
72032         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
72033         REPLACE_VASNPRINTF is defined.
72034         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
72035         gl_FUNC_VASNPRINTF.
72036         (gl_FUNC_VASNPRINTF): Invoke it.
72037         * m4/vasnprintf-posix.m4: New file.
72038         * m4/printf.m4: New file.
72039
72040 2007-03-04  Bruno Haible  <bruno@clisp.org>
72041
72042         Compile progreloc.c only if --enable-relocatable is specified.
72043         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
72044         if --enable-relocatable was specified.
72045         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
72046         lib_SOURCES.
72047
72048 2007-03-04  Jim Meyering  <jim@meyering.net>
72049
72050         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
72051         Use it consistently, rather than enumerating errno constants.
72052
72053 2007-03-04  Bruno Haible  <bruno@clisp.org>
72054
72055         * modules/xvasprintf-tests: New file.
72056         * tests/test-xvasprintf.c: New file.
72057
72058         * modules/vasprintf-tests: New file.
72059         * tests/test-vasprintf.c: New file.
72060
72061         * modules/vasnprintf-tests: New file.
72062         * tests/test-vasnprintf.c: New file.
72063
72064         * modules/vsnprintf-tests: New file.
72065         * tests/test-vsnprintf.c: New file.
72066
72067         * modules/snprintf-tests: New file.
72068         * tests/test-snprintf.c: New file.
72069
72070 2007-03-04  Bruno Haible  <bruno@clisp.org>
72071
72072         Compile relocatable.c only if --enable-relocatable is specified.
72073         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
72074         gl_RELOCATABLE_LIBRARY.
72075         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
72076         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
72077         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
72078         gl_RELOCATABLE_LIBRARY.
72079         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
72080         (Makefile.am): Remove lib_SOURCES.
72081         * modules/relocatable-lib-lgpl (configure.ac): Invoke
72082         gl_RELOCATABLE_LIBRARY.
72083         (Makefile.am): Remove lib_SOURCES.
72084         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
72085         always.
72086         * modules/relocatable-prog-wrapper (configure.ac): Invoke
72087         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
72088
72089 2007-03-04  Bruno Haible  <bruno@clisp.org>
72090
72091         * modules/argmatch-tests: New file.
72092         * tests/test-argmatch.c: New file.
72093
72094         * tests/test-allocsa.c (main): Halve the number of loop runs.
72095
72096         * modules/alloca-opt-tests: New file.
72097         * tests/test-alloca-opt.c: New file.
72098
72099 2007-03-04  Jim Meyering  <jim@meyering.net>
72100
72101         Work around difference between Linux ACLs and Solaris 10 ZFS.
72102         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
72103         for EINVAL.
72104
72105 2007-03-03  Bruno Haible  <bruno@clisp.org>
72106
72107         * modules/relocatable-prog (Depends-on): Add back progreloc's
72108         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
72109
72110 2007-03-03  Bruno Haible  <bruno@clisp.org>
72111
72112         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
72113         * modules/relocatable-lib: New file.
72114
72115 2007-03-03  Bruno Haible  <bruno@clisp.org>
72116
72117         * modules/relocatable-prog: Renamed from modules/relocatable.
72118         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
72119
72120 2007-03-03  Bruno Haible  <bruno@clisp.org>
72121
72122         * modules/relocatable-script (Files): Add doc/relocatable.texi,
72123         m4/relocatable-lib.m4.
72124         (Depends-on): Remove 'relocatable'.
72125         (configure.ac): Add gl_RELOCATABLE_NOP.
72126
72127 2007-03-03  Bruno Haible  <bruno@clisp.org>
72128
72129         * modules/relocatable-prog-wrapper: New file.
72130         * modules/relocatable (Depends-on): Add it. Remove all other
72131         dependencies except progname.
72132         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
72133
72134         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
72135         (gl_FUNC_STRERROR): Nop.
72136         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
72137
72138         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
72139         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
72140
72141         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
72142         (gl_FUNC_READLINK): Update.
72143
72144         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
72145
72146 2007-03-03  Bruno Haible  <bruno@clisp.org>
72147
72148         * lib/xreadlink.c: Include <unistd.h> unconditionally.
72149         * modules/xreadlink (Depends-on): Add unistd.
72150         * modules/xreadlink-with-size (Depends-on): Likewise.
72151
72152 2007-03-03  Bruno Haible  <bruno@clisp.org>
72153
72154         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
72155         extracted from gt_FUNC_SETENV.
72156         (gt_FUNC_SETENV): Remove macro.
72157         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
72158         remove gt_FUNC_SETENV.
72159
72160 2007-03-03  Bruno Haible  <bruno@clisp.org>
72161
72162         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
72163         ENABLE_RELOCATABLE here.
72164         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
72165
72166 2007-03-03  Bruno Haible  <bruno@clisp.org>
72167
72168         * modules/rbtreehash-list-tests (Depends-on): Add progname.
72169         * tests/test-rbtreehash_list.c: Include progname.h.
72170         (main): Call set_program_name.
72171
72172         * modules/rbtree-oset-tests (Depends-on): Add progname.
72173         * tests/test-rbtree_oset.c: Include progname.h.
72174         (main): Call set_program_name.
72175
72176         * modules/rbtree-list-tests (Depends-on): Add progname.
72177         * tests/test-rbtree_list.c: Include progname.h.
72178         (main): Call set_program_name.
72179
72180         * modules/linked-list-tests (Depends-on): Add progname.
72181         * tests/test-linked_list.c: Include progname.h.
72182         (main): Call set_program_name.
72183
72184 2007-03-03  Bruno Haible  <bruno@clisp.org>
72185
72186         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
72187         All uses of __restrict changed to _Restrict_.
72188         * lib/glob_.h (__restrict): Remove macro.
72189
72190 2007-03-02  Bruno Haible  <bruno@clisp.org>
72191
72192         * modules/gettext (configure.ac): Require gettext infrastructure
72193         from version 0.16.1.
72194
72195 2007-03-02  Bruno Haible  <bruno@clisp.org>
72196
72197         * modules/linkedhash-list-tests (Depends-on): Add progname.
72198         * tests/test-linkedhash_list.c: Include progname.h.
72199         (main): Call set_program_name.
72200
72201         * modules/carray-list-tests (Depends-on): Add progname.
72202         * tests/test-carray_list.c: Include progname.h.
72203         (main): Call set_program_name.
72204
72205         * modules/avltreehash-list-tests (Depends-on): Add progname.
72206         * tests/test-avltreehash_list.c: Include progname.h.
72207         (main): Call set_program_name.
72208
72209         * modules/avltree-oset-tests (Depends-on): Add progname.
72210         * tests/test-avltree_oset.c: Include progname.h.
72211         (main): Call set_program_name.
72212
72213         * modules/avltree-list-tests (Depends-on): Add progname.
72214         * tests/test-avltree_list.c: Include progname.h.
72215         (main): Call set_program_name.
72216
72217         * modules/array-oset-tests (Depends-on): Add progname.
72218         * tests/test-array_oset.c: Include progname.h.
72219         (main): Call set_program_name.
72220
72221         * modules/array-list-tests (Depends-on): Add progname.
72222         * tests/test-array_list.c: Include progname.h.
72223         (main): Call set_program_name.
72224
72225         * modules/argp-tests (Depends-on): Add progname.
72226         * tests/test-argp.c: Include argp.h first. Include progname.h.
72227         (main): Call set_program_name.
72228
72229 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
72230
72231         * doc/gnulib-tool.texi (Initial import): Reword description of
72232         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
72233         limited effect even if defined after the first system include.
72234
72235 2007-03-01  Bruno Haible  <bruno@clisp.org>
72236
72237         * build-aux/config.libpath: Update to libtool-1.5.22.
72238         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
72239
72240 2007-03-01  Bruno Haible  <bruno@clisp.org>
72241
72242         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
72243         foo_CFLAGS.
72244         Reported by Ralf Wildenhues.
72245
72246 2007-03-01  Bruno Haible  <bruno@clisp.org>
72247
72248         * build-aux/install-reloc: Remove object files left over by some
72249         compilers.
72250         Reported by Ralf Wildenhues.
72251
72252 2007-03-01  Bruno Haible  <bruno@clisp.org>
72253
72254         * build-aux/install-reloc: Break long lines.
72255
72256 2007-03-01  Bruno Haible  <bruno@clisp.org>
72257
72258         * doc/relocatable.texi: Document that it may not work on OpenBSD.
72259         Reported by Ralf Wildenhues.
72260
72261 2007-03-01  Bruno Haible  <bruno@clisp.org>
72262
72263         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
72264         include ordering constraints.
72265
72266 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
72267
72268         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
72269         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
72270         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
72271         as another example.
72272         * lib/time_.h: Fix misspelling.
72273         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
72274         Require gl_HEADER_TIME_H_DEFAULTS.
72275         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
72276         * m4/time_r.m4 (gl_TIME_R): Likewise.
72277         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
72278
72279 2007-03-01  Bruno Haible  <bruno@clisp.org>
72280
72281         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
72282         * m4/utimens.m4 (gl_UTIMENS): Likewise.
72283
72284 2007-03-01  Jim Meyering  <jim@meyering.net>
72285
72286         * modules/xreadlink (Maintainer): Add my name.
72287         * modules/xreadlink-with-size (Depends-on): Alphabetize.
72288
72289 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
72290             Bruno Haible  <bruno@clisp.org>
72291
72292         * build-aux/install-reloc: Compile also c-ctype.c.
72293         * build-aux/relocatable.sh.in: New file.
72294         * doc/relocatable.texi: New file.
72295         * doc/relocatable-maint.texi: New file.
72296         * doc/gnulib.texi: Include relocatable-maint.texi.
72297         * lib/progreloc.c: Include unistd.h unconditionally.
72298         * lib/relocwrapper.c: Include unistd.h unconditionally.
72299         Include c-ctype.h.
72300         (add_dotbin): Use c_tolower.
72301         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
72302         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
72303         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
72304         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
72305         to m4/relocatable-lib.m4.
72306         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
72307         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
72308         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
72309         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
72310         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
72311         * modules/relocatable: New file.
72312         * modules/relocatable-lib: New file.
72313         * modules/relocatable-script: New file.
72314
72315 2007-02-28  Bruno Haible  <bruno@clisp.org>
72316
72317         Import --enable-relocatable infrastructure.
72318         * build-aux/config.libpath: New file, from GNU gettext.
72319         * build-aux/install-reloc: New file, from GNU gettext.
72320         * build-aux/reloc-ldflags: New file, from GNU gettext.
72321         * lib/relocatable.h: New file, from GNU gettext.
72322         * lib/relocatable.c: New file, from GNU gettext.
72323         * lib/relocwrapper.c: New file, from GNU gettext.
72324         * m4/relocatable.m4: New file, from GNU gettext.
72325
72326 2007-02-28  Bruno Haible  <bruno@clisp.org>
72327
72328         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
72329
72330         * modules/xreadlink: New file, from GNU gettext with modifications.
72331         * lib/xreadlink.c: New file, from GNU gettext.
72332         * lib/xreadlink.h: Add comments.
72333         (xreadlink): New declaration.
72334
72335         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
72336         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
72337         lib/xreadlink-with-size.c.
72338         (configure.ac): Remove gl_XREADLINK invocation.
72339         (Makefile.am): Augment lib_SOURCES.
72340         * m4/xreadlink.m4: Remove file.
72341         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
72342         (xreadlink_with_size): Renamed from xreadink.
72343         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
72344         * modules/canonicalize (Depends-on): Replace xreadlink with
72345         xreadlink-with-size.
72346         * lib/canonicalize.c (canonicalize_filename_mode): Update.
72347
72348 2007-02-25  Jim Meyering  <jim@meyering.net>
72349
72350         * build-aux/announce-gen: When complaining about excess arguments,
72351         list them.
72352
72353 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
72354
72355         * README: Document signed integer overflow situation more
72356         accurately.
72357
72358 2007-02-25  Bruno Haible  <bruno@clisp.org>
72359
72360         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
72361         'a' or 'A' conversion.
72362
72363 2007-02-25  Bruno Haible  <bruno@clisp.org>
72364
72365         * modules/filename: Renamed from modules/pathname.
72366         (Files): Replace lib/pathname.h with lib/filename.h. Replace
72367         lib/concatpath.c with lib/concat-filename.c.
72368         (Makefile.am): Update.
72369         (Include): Replace pathname.h with filename.h.
72370         * lib/filename.h: Renamed from lib/pathname.h.
72371         (concatenated_filename): Renamed from concatenated_pathname.
72372         * lib/concat-filename.c: Renamed from lib/concatpath.c.
72373         (concatenated_filename): Renamed from concatenated_pathname.
72374         * lib/findprog.c: Include filename.h instead of pathname.h.
72375         (find_in_path): Update.
72376         * lib/javacomp.c: Include filename.h instead of pathname.h.
72377         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
72378         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
72379         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
72380         is_oldgcj_14_13_usable, is_javac_usable): Update.
72381         * lib/javaexec.c: Include filename.h instead of pathname.h.
72382         (execute_java_class): Update.
72383         * modules/findprog: Update.
72384         * modules/javacomp: Update.
72385         * modules/javaexec: Update.
72386         * MODULES.html.sh (File system functions): Add 'filename', remove
72387         'pathname'.
72388
72389 2007-02-25  Bruno Haible  <bruno@clisp.org>
72390
72391         * modules/printf-frexpl-tests: New file.
72392         * tests/test-printf-frexpl.c: New file.
72393
72394         * modules/printf-frexpl: New file.
72395         * lib/printf-frexpl.h: New file.
72396         * lib/printf-frexpl.c: New file.
72397         * m4/printf-frexpl.m4: New file.
72398
72399 2007-02-25  Bruno Haible  <bruno@clisp.org>
72400
72401         * modules/printf-frexp-tests: New file.
72402         * tests/test-printf-frexp.c: New file.
72403
72404         * modules/printf-frexp: New file.
72405         * lib/printf-frexp.h: New file.
72406         * lib/printf-frexp.c: New file.
72407         * m4/printf-frexp.m4: New file.
72408
72409 2007-02-25  Bruno Haible  <bruno@clisp.org>
72410
72411         Assume automake >= 1.10 for the tests.
72412         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
72413         * modules/arctwo-tests: Likewise.
72414         * modules/argp-tests: Likewise.
72415         * modules/avltree-list-tests: Likewise.
72416         * modules/avltree-oset-tests: Likewise.
72417         * modules/avltreehash-list-tests: Likewise.
72418         * modules/carray-list-tests: Likewise.
72419         * modules/crc-tests: Likewise.
72420         * modules/des-tests: Likewise.
72421         * modules/gc-arcfour-tests: Likewise.
72422         * modules/gc-arctwo-tests: Likewise.
72423         * modules/gc-des-tests: Likewise.
72424         * modules/gc-hmac-md5-tests: Likewise.
72425         * modules/gc-hmac-sha1-tests: Likewise.
72426         * modules/gc-md2-tests: Likewise.
72427         * modules/gc-md4-tests: Likewise.
72428         * modules/gc-md5-tests: Likewise.
72429         * modules/gc-pbkdf2-sha1-tests: Likewise.
72430         * modules/gc-rijndael-tests: Likewise.
72431         * modules/gc-sha1-tests: Likewise.
72432         * modules/gc-tests: Likewise.
72433         * modules/getaddrinfo-tests: Likewise.
72434         * modules/hmac-md5-tests: Likewise.
72435         * modules/hmac-sha1-tests: Likewise.
72436         * modules/linked-list-tests: Likewise.
72437         * modules/linkedhash-list-tests: Likewise.
72438         * modules/lock-tests: Likewise.
72439         * modules/md2-tests: Likewise.
72440         * modules/md4-tests: Likewise.
72441         * modules/md5-tests: Likewise.
72442         * modules/rbtree-list-tests: Likewise.
72443         * modules/rbtree-oset-tests: Likewise.
72444         * modules/rbtreehash-list-tests: Likewise.
72445         * modules/read-file-tests: Likewise.
72446         * modules/rijndael-tests: Likewise.
72447         * modules/stdint-tests: Likewise.
72448         * modules/tls-tests: Likewise.
72449
72450 2007-02-24  Bruno Haible  <bruno@clisp.org>
72451
72452         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
72453         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
72454         function; instead check whether isnan with a double argument links.
72455         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
72456         function; instead check whether isnan with a 'long double' argument
72457         links.
72458         Reported by Eric Blake <ebb9@byu.net>.
72459
72460 2007-02-24  Bruno Haible  <bruno@clisp.org>
72461
72462         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
72463         defined.
72464         * lib/isnanl.c: Remove all code. Just include isnan.c.
72465         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
72466
72467 2007-02-25  Jim Meyering  <jim@meyering.net>
72468
72469         Avoid conflicting types for 'unsetenv' on FreeBSD.
72470         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
72471         conflicting with FreeBSD's (5.0 and 6.1) function declaration
72472         in stdlib.h.
72473
72474 2007-02-24  Bruno Haible  <bruno@clisp.org>
72475
72476         * modules/isnanl-nolibm-tests: New file.
72477         * tests/test-isnanl.c: New file.
72478
72479         * modules/isnanl-nolibm: New file.
72480         * lib/isnanl.h: New file.
72481         * lib/isnanl.c: New file.
72482         * m4/isnanl.m4: New file.
72483
72484 2007-02-24  Bruno Haible  <bruno@clisp.org>
72485
72486         * modules/isnan-nolibm-tests: New file.
72487         * tests/test-isnan.c: New file.
72488
72489         * modules/isnan-nolibm: New file.
72490         * lib/isnan.h: New file.
72491         * lib/isnan.c: New file.
72492         * m4/isnan.m4: New file.
72493
72494 2007-02-24  Bruno Haible  <bruno@clisp.org>
72495
72496         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
72497         assume that an exponent fits in 20 bits.
72498
72499 2007-02-24  Jim Meyering  <jim@meyering.net>
72500
72501         * m4/regex.m4: Update the description of the configure-time option,
72502         --without-included-regex, to state accurately what the defaults are,
72503         and perhaps to give people an idea why using this option is risky.
72504
72505 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
72506
72507         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
72508         loops on small arguments.  This attempts to avoid the problem
72509         Bruno Haible reported for AIX 4.3.2 in
72510         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
72511
72512 2007-02-23  Bruno Haible  <bruno@clisp.org>
72513
72514         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
72515         Needed for help2man.
72516
72517 2007-02-23  Karl Berry  <karl@gnu.org>
72518
72519         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
72520         exists, foo.h should be cvs-ignored, not committed.
72521
72522 2007-02-23  Eric Blake  <ebb9@byu.net>
72523
72524         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
72525         * lib/stat-time.h (includes): Likewise.
72526         * lib/utimecmp.c (includes): Likewise.
72527         * lib/utimens.h (includes): Likewise.
72528         * lib/getdate.y (includes): Also include "timespec.h" for use
72529         internal to the module.
72530         * modules/utimens (Depends-on): Revert yesterday's patch.
72531         * modules/nanosleep (Depends-on): Add missing dependency.
72532
72533 2007-02-22  Bruno Haible  <bruno@clisp.org>
72534
72535         * lib/glob.c: Don't include getlogin_r.h.
72536
72537 2007-02-22  Jim Meyering  <jim@meyering.net>
72538
72539         * modules/utimens (Depends-on): Add timespec, required for
72540         utimens.h's inclusion of timespec.h.
72541
72542 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
72543
72544         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
72545         long unreadable paths in GNU/Linux.  Problem reported by Andreas
72546         Schwab in
72547         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
72548         I'll try to think of a better way to fix the Solaris problem.
72549
72550         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
72551         like glibc; on Solaris 10, it fails with errno == EINVAL.
72552         POSIX says the behavior is unspecified if the first argument is NULL,
72553         so play it safe and never pass NULL to the system getcwd.
72554
72555 2007-02-21  Jim Meyering  <jim@meyering.net>
72556
72557         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
72558         of gettimeofday.  It would conflict with the one now always
72559         provided via sys_time_.h.  Reported by Matthew Woehlke, as
72560         an IRIX 6.5 build failure.
72561
72562 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
72563
72564         Minor fixups to port to Solaris 10 with Sun C 5.8.
72565         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
72566         * modules/getcwd (Depends-on): Add dirfd.
72567         * lib/putenv.c (putenv): #undef it.
72568         (rpl_putenv): New decl.
72569         (malloc, free): Include <stdlib.h> rather than prototyping separately.
72570
72571 2007-02-20  Bruno Haible  <bruno@clisp.org>
72572
72573         * modules/stdio-tests: New file.
72574         * tests/test-stdio.c: New file.
72575
72576         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
72577         (Depends-on): Add stdio.
72578         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
72579         (Include): Use <stdio.h> instead of vsnprintf.h.
72580         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
72581         HAVE_DECL_VSNPRINTF.
72582         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
72583
72584         * modules/snprintf (Files): Remove lib/snprintf.h.
72585         (Depends-on): Add stdio.
72586         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
72587         (Include): Use <stdio.h> instead of snprintf.h.
72588         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
72589         HAVE_DECL_SNPRINTF.
72590         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
72591         * lib/getaddrinfo.c: Likewise.
72592
72593         * modules/stdio: New file.
72594         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
72595         * lib/snprintf.h: Remove file.
72596         * lib/vsnprintf.h: Remove file.
72597         * lib/.cppi-disable: Remove snprintf.h.
72598         * m4/stdio_h.m4: New file.
72599         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
72600
72601 2007-02-20  Jim Meyering  <jim@meyering.net>
72602
72603         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
72604         used by e.g., mingw.  From Bruno Haible.
72605
72606 2007-02-19  Bruno Haible  <bruno@clisp.org>
72607
72608         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
72609         warnings.
72610         Reported by Ben Pfaff <blp@cs.stanford.edu>.
72611
72612 2007-02-19  Bruno Haible  <bruno@clisp.org>
72613
72614         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
72615         from mingw users.
72616
72617 2007-02-19  Bruno Haible  <bruno@clisp.org>
72618
72619         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
72620         warnings.
72621         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
72622
72623 2007-02-19  Jim Meyering  <jim@meyering.net>
72624
72625         Don't use FD after a successful "fdopendir (fd)".
72626         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
72627         Reset it by calling dirfd on the just-obtained DIR*.
72628
72629         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
72630         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
72631
72632 2007-02-18  Bruno Haible  <bruno@clisp.org>
72633
72634         * lib/readlink.c: Include <unistd.h>.
72635         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
72636         HAVE_READLINK.
72637         * modules/readlink (Depends-on): Add unistd.
72638         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
72639         (Include): Add <unistd.h>.
72640
72641         * lib/getlogin_r.h: Remove file.
72642         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
72643         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
72644         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
72645         HAVE_DECL_GETLOGIN_R.
72646         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
72647         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
72648         (Include): Use <unistd.h> instead of getlogin_r.h.
72649
72650         * lib/getcwd.h: Remove file.
72651         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
72652         * lib/xgetcwd.c: Likewise.
72653         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
72654         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
72655         * modules/getcwd (Files): Remove lib/getcwd.h.
72656         (Depends-on): Add unistd.
72657         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
72658         (Include): Use <unistd.h> instad of getcwd.h.
72659
72660         * lib/ftruncate.c: Include <unistd.h> first.
72661         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
72662         Set HAVE_FTRUNCATE.
72663         * modules/ftruncate (Depends-on): Add unistd.
72664         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
72665
72666         * lib/fchdir.c: Include <unistd.h> first.
72667         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
72668         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
72669         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
72670         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
72671         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
72672
72673         * lib/dup2.c: Include <unistd.h> first.
72674         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
72675         HAVE_DUP2.
72676         * modules/dup2 (Depends-on): Add unistd.
72677         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
72678
72679         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
72680         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
72681         REPLACE_CHOWN. Don't define chown as a macro here.
72682         * modules/chown (Depends-on): Add unistd.
72683         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
72684
72685         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
72686         Add definition for GL_LINK_WARNING.
72687         (chown, dup2): New declarations.
72688         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
72689         link warning.
72690         (ftruncate): New declaration.
72691         (getcwd): New declaration, taken from old getcwd.h.
72692         (getlogin_r): New declaration, taken from old getlogin_r.h.
72693         (readlink): New declaration.
72694         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
72695         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
72696         (gl_PREREQ_UNISTD): Remove macro.
72697         (gl_UNISTD_MODULE_INDICATOR): New macro.
72698         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
72699         many new variables. Don't set UNISTD_H.
72700         * modules/unistd (Description): Change.
72701         (Depends-on): Add link-warning.
72702         (configure.ac): Update.
72703         (Makefile.am): Create unistd.h always. Substitute many new variables
72704         into it.
72705
72706 2007-02-18  Bruno Haible  <bruno@clisp.org>
72707
72708         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
72709         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
72710         HAVE_GETSUBOPT.
72711         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
72712         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
72713         * lib/getsubopt.h: Remove file.
72714         * modules/getsubopt (Files): Remove lib/getsubopt.h.
72715         (Depends-on): Add stdlib.
72716         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
72717         (Includes): Use <stdlib.h> instead of getsubopt.h.
72718         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
72719         Set HAVE_GETSUBOPT.
72720         * lib/getsubopt.c: Don't include getsubopt.h.
72721
72722 2007-02-18  Bruno Haible  <bruno@clisp.org>
72723
72724         * modules/fchdir (Depends-on): Add dup2.
72725
72726 2007-02-18  Bruno Haible  <bruno@clisp.org>
72727
72728         * lib/stdlib_.h: Handle glibc's special invocation convention
72729         specially.
72730
72731 2007-02-18  Bruno Haible  <bruno@clisp.org>
72732
72733         * modules/stdlib-tests: New file.
72734         * tests/test-stdlib.c: New file.
72735
72736         * modules/mkstemp (Files): Remove lib/mkstemp.h.
72737         (Depends-on): Add stdlib.
72738         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
72739         (Includes): Use <stdlib.h> instead of mkstemp.h.
72740         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
72741         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
72742         * lib/mkstemp.c: Don't include mkstemp.h.
72743         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
72744         * lib/stdlib--.h: Don't include mkstemp.h.
72745
72746         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
72747         (Depends-on): Add stdlib.
72748         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
72749         (Includes): Use <stdlib.h> instead of mkdtemp.h.
72750         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
72751         HAVE_MKDTEMP.
72752         * lib/mkdtemp.c: Don't include mkdtemp.h.
72753         * lib/clean-temp.c: Don't include mkdtemp.h.
72754
72755         * modules/exit (Files): Remove lib/exit.h.
72756         (Depends-on): Add stdlib.
72757         (Makefile.am): Remove lib_SOURCES.
72758         (Include): Use <stdlib.h> instead of exit.h.
72759         * lib/argmatch.c: Don't include exit.h.
72760         * lib/execute.c: Likewise.
72761         * lib/pagealign_alloc.c: Likewise.
72762         * lib/pipe.c: Likewise.
72763         * lib/wait-process.c: Likewise.
72764         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
72765         * lib/exitfail.c: Likewise.
72766         * lib/savewd.c: Likewise.
72767         * lib/xsetenv.c: Likewise.
72768
72769         * modules/stdlib: New file.
72770         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
72771         and extra comments about mkstemp().
72772         * lib/exit.h: Remove file.
72773         * lib/mkdtemp.h: Remove file.
72774         * lib/mkstemp.h: Remove file.
72775         * m4/stdlib_h.m4: New file.
72776         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
72777
72778 2007-02-18  Bruno Haible  <bruno@clisp.org>
72779
72780         * modules/math-tests: New file.
72781         * tests/test-math.c: New file.
72782
72783         * modules/math: New file.
72784         * modules/mathl (Files): Remove lib/mathl.h.
72785         (Depends-on): Add math.
72786         (Makefile.am): Don't mention mathl.h.
72787         (Include): Use <math.h> instead of mathl.h.
72788         * lib/math_.h: New file.
72789         * lib/mathl.h: Remove file.
72790         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
72791         mathl.h.
72792         * lib/asinl.c: Likewise.
72793         * lib/atanl.c: Likewise.
72794         * lib/ceill.c: Likewise.
72795         * lib/cosl.c: Likewise.
72796         * lib/expl.c: Likewise.
72797         * lib/floorl.c: Likewise.
72798         * lib/frexpl.c: Likewise.
72799         * lib/ldexpl.c: Likewise.
72800         * lib/logl.c: Likewise.
72801         * lib/sincosl.c: Likewise.
72802         * lib/sinl.c: Likewise.
72803         * lib/sqrtl.c: Likewise.
72804         * lib/tanl.c: Likewise.
72805         * lib/trigl.c: Likewise.
72806         * m4/math_h.m4: New file.
72807         * MODULES.html.sh (Mathematics): Add math.
72808
72809 2007-02-17  Bruno Haible  <bruno@clisp.org>
72810
72811         * modules/wctype-tests: New file.
72812         * tests/test-wctype.c: New file.
72813
72814         * modules/wchar-tests: New file.
72815         * tests/test-wchar.c: New file.
72816
72817         * modules/unistd-tests: New file.
72818         * tests/test-unistd.c: New file.
72819
72820         * modules/time-tests: New file.
72821         * tests/test-time.c: New file.
72822
72823         * modules/sysexits-tests: New file.
72824         * tests/test-sysexits.c: New file.
72825
72826         * modules/sys_time-tests: New file.
72827         * tests/test-sys_time.c: New file.
72828
72829         * modules/sys_stat-tests: New file.
72830         * tests/test-sys_stat.c: New file.
72831
72832         * modules/sys_socket-tests: New file.
72833         * tests/test-sys_socket.c: New file.
72834
72835         * modules/sys_select-tests: New file.
72836         * tests/test-sys_select.c: New file.
72837
72838         * modules/string-tests: New file.
72839         * tests/test-string.c: New file.
72840
72841         * modules/stdbool-tests: New file.
72842         * tests/test-stdbool.c: New file.
72843
72844         * modules/netinet_in-tests: New file.
72845         * tests/test-netinet_in.c: New file.
72846
72847         * modules/inttypes-tests: New file.
72848         * tests/test-inttypes.c: New file.
72849
72850         * modules/fcntl-tests: New file.
72851         * tests/test-fcntl.c: New file.
72852
72853         * modules/byteswap-tests: New file.
72854         * tests/test-byteswap.c: New file.
72855
72856         * modules/arpa_inet-tests: New file.
72857         * tests/test-arpa_inet.c: New file.
72858
72859 2007-02-17  Bruno Haible  <bruno@clisp.org>
72860
72861         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
72862         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
72863         if the corresponding module is not enabled. Emit link warnings if
72864         the function is used nevertheless.
72865         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
72866         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
72867         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
72868         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
72869         * modules/inttypes (Depends-on): Add link-warning.
72870         (Makefile.am): Copy the contents of build-aux/link-warning.h into
72871         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
72872         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
72873         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
72874         * modules/imaxdiv (configure.ac): Likewise.
72875         * modules/strtoimax (configure.ac): Likewise.
72876         * modules/strtoumax (configure.ac): Likewise.
72877
72878 2007-02-17  Bruno Haible  <bruno@clisp.org>
72879
72880         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
72881         gl_STRING_MODULE_INDICATOR_DEFAULTS.
72882         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
72883         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
72884
72885 2007-02-17  Bruno Haible  <bruno@clisp.org>
72886
72887         * modules/link-warning: New file.
72888         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
72889         * lib/string_.h (GL_LINK_WARNING): Remove definition.
72890         * modules/string (Depends-on): Add link-warning.
72891         (Makefile.am): Copy the contents of build-aux/link-warning.h into
72892         string.h.
72893         * MODULES.html.sh (Support for building libraries and executables): Add
72894         link-warning.
72895
72896 2007-02-17  Bruno Haible  <bruno@clisp.org>
72897
72898         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
72899         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
72900         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
72901         long lines.
72902
72903 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
72904             Bruno Haible  <bruno@clisp.org>
72905
72906         * modules/tmpfile: New file.
72907         * lib/tmpfile.c: New file.
72908         * m4/tmpfile.m4: New file.
72909         * MODULES.html.sh (func_all_modules): New section "Input/output".
72910
72911 2007-02-15  Bruno Haible  <bruno@clisp.org>
72912
72913         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
72914         (supports_delete_on_close): New function.
72915         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
72916
72917 2007-02-14  Bruno Haible  <bruno@clisp.org>
72918
72919         * modules/mbspcasecmp-tests: New file.
72920         * tests/test-mbspcasecmp.sh: New file.
72921         * tests/test-mbspcasecmp.c: New file.
72922
72923         New module mbspcasecmp.
72924         * modules/mbspcasecmp: New file.
72925         * lib/mbspcasecmp.c: New file.
72926         * lib/string_.h (strncasecmp): Change warning message.
72927         (mbspcasecmp): New declaration.
72928         * m4/mbspcasecmp.m4: New file.
72929         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
72930         GNULIB_MBSPCASECMP.
72931         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
72932         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
72933
72934 2007-02-14  Bruno Haible  <bruno@clisp.org>
72935
72936         * modules/mbsncasecmp-tests: New file.
72937         * tests/test-mbsncasecmp.sh: New file.
72938         * tests/test-mbsncasecmp.c: New file.
72939
72940         New module mbsncasecmp.
72941         * modules/mbsncasecmp: New file.
72942         * lib/mbsncasecmp.c: New file.
72943         * lib/string_.h (mbsncasecmp): New declaration.
72944         * m4/mbsncasecmp.m4: New file.
72945         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
72946         GNULIB_MBSNCASECMP.
72947         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
72948         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
72949
72950 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
72951
72952         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
72953         Verify that it doesn't overlap with our flags.
72954         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
72955         do not have the desired effect in multibyte locales; instead, use
72956         mbscasecmp.
72957         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
72958         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
72959         we don't require GNU fnmatch ourselves (if our users require it, they
72960         should do so explicitly).
72961
72962         Fix regex code so it doesn't rely on strcasecmp.
72963         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
72964         Otherwise, include gnulib's langinfo.h.
72965         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
72966         undesirable behavior in non-C locales.  Instead, rely on localecharset.
72967         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
72968         * modules/regex (FILES): Remove m4/codeset.m4.
72969         (Depends-on): Add localcharset.  Remove strcase.
72970
72971 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72972
72973         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
72974         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
72975
72976 2007-02-13  Bruno Haible  <bruno@clisp.org>
72977
72978         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
72979         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
72980
72981 2007-02-12  Bruno Haible  <bruno@clisp.org>
72982
72983         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
72984         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
72985         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
72986         time warning rather than a link error.
72987
72988 2007-02-12  Bruno Haible  <bruno@clisp.org>
72989
72990         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
72991         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
72992         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
72993
72994 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
72995
72996         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
72997         args, not 2.
72998
72999 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
73000
73001         New module 'time', so that apps can include <time.h> as per
73002         POSIX and GNU instead of separate include files like time_r.h
73003         and timegm.h.  This implementation tries out a simpler approach
73004         for replacing decls in standard include files (as compared to
73005         the string module), somewhat as an experiment.
73006
73007         * config/srclist.txt: Comment out mktime.c for now.
73008         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
73009         since it doesn't apply any more.  Use generic wording instead.
73010         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
73011         'time'.
73012         * lib/time_.h, m4/time_h.m4, modules/time: New files.
73013         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
73014         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
73015         Don't include <sys/types.h>; no longer needed since we assume C89.
73016         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
73017         * lib/strftime.c: Likewise.
73018         * lib/time_r.c: Likewise.
73019         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
73020         * lib/nanosleep.c: Include <time.h> first, to check interface.
73021         * lib/strptime.c: Likewise.
73022         * lib/time_r.c: Likewise.
73023         * lib/timegm.c: Likewise.
73024         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
73025         needed.
73026         * lib/timegm.c: Don't include timegm.h; no longer needed.
73027         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
73028         time.h now handles any problems in that area.
73029         (struct timespec, nanosleep): Remove; time.h now arranges for these.
73030         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
73031         that time.h defines struct timespec.
73032         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
73033         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
73034         handles that.
73035         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
73036         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
73037         needed.  Set REPLACE_LOCALTIME.
73038         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
73039         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
73040         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
73041         nanosleep; time_h.m4 now does that.  Don't require
73042         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
73043         module handles this now.
73044         * modules/getdate (Depends-on): Remove timespec.  Add time.
73045         * modules/nanosleep (Depends-on): Likewise.
73046         * modules/stat-time (Depends-on): Likewise.
73047         * modules/nanosleep (Include): Include time.h, not timespec.h.
73048         * modules/strptime (Files): Remove lib/strptime.h.
73049         (Depends-on): Add extensions, time.
73050         (Include): Include time.h, not strptime.h.
73051         * modules/time_r (Files): Remove lib/time_r.h.
73052         (Depends-on): Add time.
73053         (Include): Include time.h, not time_r.h.
73054         * modules/timegm: Likewise.
73055         * modules/timespec (Description): Now does timespec-related decls
73056         of our own, instead of struct timespec itself.
73057         (Depends-on): Add time; remove extensions.
73058         (Maintainer): Add self.
73059         * modules/utimecmp (Depends-on): Add time; remove timespec.
73060         * modules/utimens (Depends-on): Likewise.
73061         * modules/xnanosleep (Depends-on): Likewise.
73062
73063 2007-02-11  Bruno Haible  <bruno@clisp.org>
73064
73065         * lib/c-strstr.c: Include allocsa.h.
73066         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
73067         * lib/c-strcasestr.c: Include allocsa.h.
73068         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
73069         * lib/strcasestr.c: Include allocsa.h.
73070         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
73071         * lib/mbsstr.c: Include allocsa.h.
73072         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
73073         allocsa/freesa instead of malloc/free.
73074         * lib/mbscasestr.c: Include allocsa.h.
73075         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
73076         allocsa/freesa instead of malloc/free.
73077         * modules/c-strstr (Depends-on): Add allocsa.
73078         * modules/c-strcasestr (Depends-on): Likewise.
73079         * modules/strcasestr (Depends-on): Likewise.
73080         * modules/mbsstr (Depends-on): Likewise.
73081         * modules/mbscasestr (Depends-on): Likewise.
73082
73083 2007-02-11  Bruno Haible  <bruno@clisp.org>
73084
73085         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
73086
73087         * modules/mbsspn-tests: New file.
73088         * tests/test-mbsspn.sh: New file.
73089         * tests/test-mbsspn.c: New file.
73090
73091 2007-02-11  Bruno Haible  <bruno@clisp.org>
73092
73093         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
73094
73095         * modules/mbspbrk-tests: New file.
73096         * tests/test-mbspbrk.sh: New file.
73097         * tests/test-mbspbrk.c: New file.
73098
73099 2007-02-11  Bruno Haible  <bruno@clisp.org>
73100
73101         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
73102         unneeded cast.
73103
73104         * modules/mbscspn-tests: New file.
73105         * tests/test-mbscspn.sh: New file.
73106         * tests/test-mbscspn.c: New file.
73107
73108 2007-02-11  Bruno Haible  <bruno@clisp.org>
73109
73110         * modules/mbscasecmp-tests: New file.
73111         * tests/test-mbscasecmp.sh: New file.
73112         * tests/test-mbscasecmp.c: New file.
73113
73114 2007-02-11  Bruno Haible  <bruno@clisp.org>
73115
73116         Ensure O(n) worst-case complexity of mbscasestr.
73117         * lib/mbscasestr.c: Include stdbool.h.
73118         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
73119         functions.
73120         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
73121         the bookkeeping indicates that it's worth it.
73122         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
73123
73124         * modules/mbscasestr-tests: New file.
73125         * tests/test-mbscasestr1.c: New file.
73126         * tests/test-mbscasestr2.sh: New file.
73127         * tests/test-mbscasestr2.c: New file.
73128         * tests/test-mbscasestr3.sh: New file.
73129         * tests/test-mbscasestr3.c: New file.
73130         * tests/test-mbscasestr4.sh: New file.
73131         * tests/test-mbscasestr4.c: New file.
73132         * m4/locale-tr.m4: New file.
73133
73134 2007-02-11  Bruno Haible  <bruno@clisp.org>
73135
73136         Ensure O(n) worst-case complexity of mbsstr.
73137         * lib/mbsstr.c: Include stdbool.h.
73138         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
73139         functions.
73140         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
73141         bookkeeping indicates that it's worth it.
73142         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
73143
73144         * modules/mbsstr-tests: New file.
73145         * tests/test-mbsstr1.c: New file.
73146         * tests/test-mbsstr2.sh: New file.
73147         * tests/test-mbsstr2.c: New file.
73148         * tests/test-mbsstr3.sh: New file.
73149         * tests/test-mbsstr3.c: New file.
73150         * m4/locale-fr.m4: New file.
73151
73152 2007-02-11  Bruno Haible  <bruno@clisp.org>
73153
73154         * lib/mbsrchr.c (mbsrchr): Fix bug.
73155
73156         * modules/mbsrchr-tests: New file.
73157         * tests/test-mbsrchr.sh: New file.
73158         * tests/test-mbsrchr.c: New file.
73159
73160 2007-02-11  Bruno Haible  <bruno@clisp.org>
73161
73162         * lib/mbschr.c (mbschr): Fix bug.
73163
73164         * modules/mbschr-tests: New file.
73165         * tests/test-mbschr.sh: New file.
73166         * tests/test-mbschr.c: New file.
73167         * m4/locale-zh.m4: New file.
73168
73169 2007-02-11  Bruno Haible  <bruno@clisp.org>
73170
73171         Support for copying multibyte string iterators.
73172         * lib/mbiter.h: Include <string.h>.
73173         (mbiter_multi_copy): New function.
73174         (mbi_copy): New macro.
73175         * lib/mbuiter.h: Include <string.h>.
73176         (mbuiter_multi_copy): New function.
73177         (mbui_copy): New macro.
73178
73179 2007-02-11  Bruno Haible  <bruno@clisp.org>
73180
73181         New module mbslen.
73182         * modules/mbslen: New file.
73183         * lib/mbslen.c: New file.
73184         * lib/string_.h (mbslen): New declaration.
73185         * m4/mbslen.m4: New file.
73186         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
73187         GNULIB_MBSLEN.
73188         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
73189         * MODULES.html.sh (Internationalization functions): Add mbslen.
73190
73191 2007-02-11  Bruno Haible  <bruno@clisp.org>
73192
73193         Ensure O(n) worst-case complexity of strcasestr substitute.
73194         * lib/strcasestr.c: Include stdbool.h.
73195         (knuth_morris_pratt): New function.
73196         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
73197         bookkeeping indicates that it's worth it.
73198         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
73199
73200         * modules/strcasestr-tests: New file.
73201         * tests/test-strcasestr.c: New file.
73202
73203 2007-02-11  Bruno Haible  <bruno@clisp.org>
73204
73205         Ensure O(n) worst-case complexity of c_strcasestr.
73206         * lib/c-strcasestr.c: Include stdbool.h, string.h.
73207         (knuth_morris_pratt): New function.
73208         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
73209         the bookkeeping indicates that it's worth it.
73210         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
73211
73212         * modules/c-strcasestr-tests: New file.
73213         * tests/test-c-strcasestr.c: New file.
73214
73215 2007-02-11  Bruno Haible  <bruno@clisp.org>
73216
73217         Ensure O(n) worst-case complexity of c_strstr.
73218         * lib/c-strstr.c: Include stdbool.h, string.h.
73219         (knuth_morris_pratt): New function.
73220         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
73221         bookkeeping indicates that it's worth it.
73222         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
73223
73224         * lib/c-strstr.c: Complete rewrite for maintainability.
73225
73226         * modules/c-strstr-tests: New file.
73227         * tests/test-c-strstr.c: New file.
73228
73229 2007-02-11  Bruno Haible  <bruno@clisp.org>
73230
73231         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
73232         5.2.1 and earlier, whereby \055 was treated just like the range
73233         delimiter '-'.
73234         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
73235
73236 2007-02-08  Bruno Haible  <bruno@clisp.org>
73237
73238         * modules/regex (Depends-on): Add stdbool.
73239         Reported by Dalibor Topic <robilad@kaffe.org>.
73240
73241 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
73242
73243         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
73244         Prefer returning from main to exiting from it.
73245         Remove unnecessary parens after sizeof.
73246
73247 2007-02-05  Bruno Haible  <bruno@clisp.org>
73248
73249         New module mbssep.
73250         * modules/mbssep: New file.
73251         * lib/mbssep.c: New file.
73252         * lib/string_.h (strsep): Add a conditional link warning.
73253         (mbssep): New declaration.
73254         * m4/mbssep.m4: New file.
73255         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
73256         GNULIB_MBSSEP.
73257         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
73258         * MODULES.html.sh (Internationalization functions): Add mbssep.
73259
73260 2007-02-05  Bruno Haible  <bruno@clisp.org>
73261
73262         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
73263         Optimize search in case of 1 delimiter.
73264
73265 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
73266
73267         * lib/acl.h: Include sys/types.h before sys/acl.h.
73268
73269 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
73270
73271         Merge upstream fix for glibc bugzilla #3957:
73272
73273         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
73274
73275         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
73276         bit for RE_HAT_LISTS_NOT_NEWLINE.
73277         (build_charclass_op): Remove bogus comment.
73278
73279 2007-02-05  Simon Josefsson  <simon@josefsson.org>
73280
73281         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
73282
73283 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
73284
73285         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
73286         * lib/memmem.c [!defined _LIBC]: Include config.h.
73287
73288 2007-02-04  Bruno Haible  <bruno@clisp.org>
73289
73290         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
73291         warning message.
73292
73293 2007-02-04  Bruno Haible  <bruno@clisp.org>
73294
73295         New module mbstok_r.
73296         * modules/mbstok_r: New file.
73297         * lib/mbstok_r.c: New file.
73298         * lib/string_.h (strtok_r): Change argument names to match the
73299         comments. Add a conditional link warning.
73300         (mbstok_r): New declaration.
73301         * m4/mbstok_r.m4: New file.
73302         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
73303         GNULIB_MBSTOK_R.
73304         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
73305         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
73306
73307 2007-02-04  Bruno Haible  <bruno@clisp.org>
73308
73309         New module mbsspn.
73310         * modules/mbsspn: New file.
73311         * lib/mbsspn.c: New file.
73312         * lib/string_.h (strspn): Add a conditional link warning.
73313         (mbsspn): New declaration.
73314         * m4/mbsspn.m4: New file.
73315         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
73316         GNULIB_MBSSPN.
73317         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
73318         * MODULES.html.sh (Internationalization functions): Add mbsspn.
73319
73320 2007-02-04  Bruno Haible  <bruno@clisp.org>
73321
73322         New module mbspbrk.
73323         * modules/mbspbrk: New file.
73324         * lib/mbspbrk.c: New file.
73325         * lib/string_.h (strpbrk): Add a conditional link warning.
73326         (mbspbrk): New declaration.
73327         * m4/mbspbrk.m4: New file.
73328         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
73329         GNULIB_MBSPBRK.
73330         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
73331         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
73332
73333 2007-02-04  Bruno Haible  <bruno@clisp.org>
73334
73335         New module mbscspn.
73336         * modules/mbscspn: New file.
73337         * lib/mbscspn.c: New file.
73338         * lib/string_.h (strcspn): Add a conditional link warning.
73339         (mbscspn): New declaration.
73340         * m4/mbscspn.m4: New file.
73341         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
73342         GNULIB_MBSCSPN.
73343         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
73344         * MODULES.html.sh (Internationalization functions): Add mbscspn.
73345
73346 2007-02-04  Bruno Haible  <bruno@clisp.org>
73347
73348         New module mbscasestr, reduced goal of strcasestr.
73349         * modules/mbscasestr: New file.
73350         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
73351         (mbscasestr): Renamed from strcasestr.
73352         * lib/strcasestr.c: Don't include mbuiter.h.
73353         (strcasestr): Remove support for multibyte locales.
73354         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
73355         Change the conditional link warning.
73356         (mbscasestr): New declaration.
73357         * m4/mbscasestr.m4: New file.
73358         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
73359         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
73360         REPLACE_STRCASESTR.
73361         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
73362         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
73363         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
73364         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
73365         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
73366         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
73367         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
73368         (Depends-on): Remove mbuiter.
73369         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
73370
73371 2007-02-04  Bruno Haible  <bruno@clisp.org>
73372
73373         Simplify handling of strncasecmp.
73374         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
73375         the conditional link warning.
73376         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
73377         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
73378         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
73379         * modules/strcase (configure.ac): Don't invoke
73380         gl_STRING_MODULE_INDICATOR.
73381         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
73382
73383 2007-02-04  Bruno Haible  <bruno@clisp.org>
73384
73385         New module mbscasecmp, reduced goal of strcasecmp.
73386         * modules/mbscasecmp: New file.
73387         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
73388         (mbscasecmp): Renamed from strcasecmp.
73389         * lib/strcasecmp.c: Don't include mbuiter.h.
73390         (strcasecmp): Remove support for multibyte locales.
73391         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
73392         Change the conditional link warning.
73393         (mbscasecmp): New declaration.
73394         * m4/mbscasecmp.m4: New file.
73395         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
73396         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
73397         REPLACE_STRCASECMP.
73398         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
73399         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
73400         GNULIB_MBSCASECMP.
73401         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
73402         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
73403         * modules/strcase (Files): Remove m4/mbrtowc.m4.
73404         (Depends-on): Remove mbuiter.
73405         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
73406
73407 2007-02-04  Bruno Haible  <bruno@clisp.org>
73408
73409         New module mbsstr. Remove module strstr.
73410         * modules/mbsstr: New file.
73411         * modules/strstr: Remove file.
73412         * lib/mbsstr.c: Renamed from lib/strstr.c.
73413         (mbsstr): Renamed from strstr.
73414         * lib/string_.h (strstr): Remove declaration. Change the conditional
73415         link warning.
73416         (mbsstr): New declaration.
73417         * m4/mbsstr.m4: New file.
73418         * m4/strstr.m4: Remove file.
73419         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
73420         REPLACE_STRSTR.
73421         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
73422         Don't initialize GNULIB_STRSTR.
73423         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
73424         substitute GNULIB_STRSTR and REPLACE_STRSTR.
73425         * MODULES.html.sh (Internationalization functions): Add mbsstr.
73426         (Support for systems lacking ANSI C 89): Remove strstr.
73427
73428 2007-02-04  Bruno Haible  <bruno@clisp.org>
73429
73430         New module mbsrchr.
73431         * modules/mbsrchr: New file.
73432         * lib/mbsrchr.c: New file.
73433         * lib/string_.h (strrchr): Add a conditional link warning.
73434         (mbsrchr): New declaration.
73435         * m4/mbsrchr.m4: New file.
73436         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
73437         GNULIB_MBSRCHR.
73438         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
73439         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
73440
73441 2007-02-04  Bruno Haible  <bruno@clisp.org>
73442
73443         New module mbschr.
73444         * modules/mbschr: New file.
73445         * lib/mbschr.c: New file.
73446         * lib/string_.h (strchr): Add a conditional link warning.
73447         (mbschr): New declaration.
73448         * m4/mbschr.m4: New file.
73449         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
73450         GNULIB_MBSCHR.
73451         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
73452         * MODULES.html.sh (Internationalization functions): Add mbschr.
73453
73454 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
73455
73456         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
73457
73458         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
73459
73460 2007-02-04  Bruno Haible  <bruno@clisp.org>
73461
73462         New module description section 'configure.ac-early'.
73463         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
73464         (func_get_autoconf_early_snippet): New function.
73465         (func_import, func_create_testdir): Use it. Remove special cases for
73466         modules 'extensions' and 'lock'.
73467         * modules/extensions (configure.ac-early): Require
73468         gl_USE_SYSTEM_EXTENSIONS.
73469         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
73470
73471 2007-02-04  Bruno Haible  <bruno@clisp.org>
73472
73473         Make use of gcj-4.3's -fsource and -ftarget option.
73474         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
73475         and if so try the options -fsource and -ftarget.
73476         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
73477         source_version, ftarget_option, target_version arguments.
73478         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
73479         (is_envjavac_oldgcj_14_14_usable): Renamed from
73480         is_envjavac_gcj_14_14_usable.
73481         (is_envjavac_oldgcj_14_13_usable): Renamed from
73482         is_envjavac_gcj_14_13_usable.
73483         (is_gcj_present): Update.
73484         (is_gcj_43, is_gcj43_usable): New functions.
73485         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
73486         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
73487         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
73488         try the options -fsource and -ftarget.
73489
73490 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
73491
73492         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
73493         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
73494         larger value.
73495
73496 2007-02-03  Jim Meyering  <jim@meyering.net>
73497
73498         Give tools a better chance to allocate space for very large buffers.
73499         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
73500
73501         Make pwd and readlink work also when run with an unreadable parent dir
73502         on systems with openat support.
73503         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
73504         provided getcwd function, even when we have openat support.
73505         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
73506
73507 2007-02-02  Bruno Haible  <bruno@clisp.org>
73508
73509         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
73510         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
73511         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
73512         portability problems if one of these functions is only used on specific
73513         platforms.
73514         Reported by Paul Eggert.
73515
73516 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
73517
73518         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
73519         is causing more trouble than it's curing.
73520         * lib/regex_internal.h (__mempcpy): Remove.
73521         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
73522         (and make the code a tad smaller to boot).
73523         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
73524
73525 2007-02-02  Jim Meyering  <jim@meyering.net>
73526
73527         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
73528         section, not in the Makefile.am: one.
73529
73530 2007-02-02  Eric Blake  <ebb9@byu.net>
73531
73532         * lib/strchrnul.c: Always include config.h first.
73533
73534         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
73535         gnulib strstr is not necessary here.
73536
73537 2007-02-02  Simon Josefsson  <simon@josefsson.org>
73538
73539         * m4/socklen.m4: Fix typo.
73540
73541 2007-02-02  Eric Blake  <ebb9@byu.net>
73542
73543         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
73544         * modules/netinet_in (Makefile.am): Likewise.
73545
73546 2007-02-01  Bruno Haible  <bruno@clisp.org>
73547
73548         * lib/string_.h (GL_LINK_WARNING): New macro.
73549         (strcasecmp, strstr, strcasestr): If provided by the system,
73550         conditionally define as a macro that leads to a warning instead of to
73551         an error.
73552         (strncasecmp): Conditionally define as a macro that leads to a warning.
73553
73554 2007-02-01  Karl Berry  <karl@gnu.org>
73555
73556         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
73557
73558 2007-02-01  Bruno Haible  <bruno@clisp.org>
73559
73560         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
73561         renamings.
73562
73563 2007-02-01  Eric Blake  <ebb9@byu.net>
73564
73565         * modules/regex (Depends-on): Revert dependence on mempcpy.
73566         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
73567         module's definition of mempcpy.
73568         Reported by Paul Eggert.
73569
73570 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
73571
73572         * lib/string_.h: If the gnulib module XYZ is not present, undefine
73573         the symbol XYZ before redefining it.  This fixes a problem with
73574         programs that don't use XYZ, when compiled on systems that define
73575         XYZ to something else.
73576
73577 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
73578
73579         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
73580         occurs when "mkdir -m foo" creates a setgid directory that is (1)
73581         writeable to group or other and (2) is intended to have a special
73582         mode bit that is set or cleared.  In such a case, the directory
73583         should be neither group- nor other-writeable until the special
73584         mode bits are right.
73585
73586 2007-01-31  Eric Blake  <ebb9@byu.net>
73587
73588         * modules/mountlist (Depends-on): Add strstr.
73589
73590         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
73591         bug.
73592         * modules/string (Makefile.am): Remove redundant replacement.
73593         * modules/regex (Depends-on): Add mempcpy.
73594
73595 2007-01-31  Bruno Haible  <bruno@clisp.org>
73596
73597         New module description field 'Link'.
73598         * gnulib-tool (func_usage): Document --extract-link-directive.
73599         (sed_extract_prog): Recognize 'Link' directive.
73600         (func_get_link_directive): New function.
73601         (func_import): Show summary of link directives.
73602         Handle --extract-link-directive option.
73603         * modules/acl (Link): New section.
73604         * modules/clock-time (Link): New section.
73605         * modules/euidaccess (Link): New section.
73606         * modules/gettext (Link): New section.
73607         * modules/iconv (Link): New section.
73608         * modules/lock (Link): New section.
73609         * modules/nanosleep (Link): New section.
73610         * modules/readline (Link): New section.
73611
73612 2007-01-27  Bruno Haible  <bruno@clisp.org>
73613
73614         Enforce the use of gnulib modules for unportable <string.h> functions.
73615         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
73616         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
73617         (gl_HEADER_STRING_H_BODY): Require it.
73618         * lib/string_.h: If the gnulib module XYZ is not present, redefine
73619         the symbol XYZ to one that gives a link error.
73620         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
73621         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
73622         * modules/mempcpy (configure.ac): Likewise.
73623         * modules/memrchr (configure.ac): Likewise.
73624         * modules/stpcpy (configure.ac): Likewise.
73625         * modules/stpncpy (configure.ac): Likewise.
73626         * modules/strcase (configure.ac): Likewise.
73627         * modules/strcasestr (configure.ac): Likewise.
73628         * modules/strchrnul (configure.ac): Likewise.
73629         * modules/strdup (configure.ac): Likewise.
73630         * modules/strndup (configure.ac): Likewise.
73631         * modules/strnlen (configure.ac): Likewise.
73632         * modules/strpbrk (configure.ac): Likewise.
73633         * modules/strsep (configure.ac): Likewise.
73634         * modules/strstr (configure.ac): Likewise.
73635         * modules/strtok_r (configure.ac): Likewise.
73636
73637 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
73638
73639         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
73640
73641 2007-01-30  Jim Meyering  <jim@meyering.net>
73642
73643         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
73644
73645 2007-01-29  Bruno Haible  <bruno@clisp.org>
73646
73647         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
73648         * lib/execute.c: Likewise.
73649         * lib/pipe.c: Likewise.
73650         * lib/printf-args.h: Likewise.
73651         * lib/printf-args.c: Likewise.
73652         * lib/printf-parse.c: Likewise.
73653         * lib/vasnprintf.c: Likewise.
73654
73655 2007-01-29  Eric Blake  <ebb9@byu.net>
73656
73657         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
73658         declaration.
73659
73660 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
73661
73662         * lib/strptime.h (strptime): Use 'restrict' for args where
73663         POSIX requires this.
73664         * lib/strptime.c (strptime): Likewise.
73665         Change license notice from LGPL to GPL, since gnulib-tool will
73666         change this as needed.
73667         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
73668         defined.
73669         Include "strptime.h" first, to check interface.
73670         Do not #undef _LIBC and _NL_CURRENT.
73671         Do not include <stdlib.h>; no longer needed.
73672         Include "time_r.h" and declare ptime_locale_status
73673         only if _LIBC is not defined.
73674         (__P): Remove unused macro.
73675         (match_string): Bring back glibc version, but use it only if _LIBC
73676         is defined.
73677         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
73678         Remove unnecessary assertion and abort() call.
73679         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
73680         * m4/strptime.m4: Fix serial number comment.
73681         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
73682         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
73683         (Depends-on): Add time_r.
73684
73685 2007-01-29  Bruno Haible  <bruno@clisp.org>
73686
73687         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
73688         strptime.
73689         * modules/strptime (Depends-on): Add stdbool.
73690         * lib/strptime.h: Include <time.h> always. Add comments.
73691
73692 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
73693
73694         * modules/strptime: New file.
73695         * lib/strptime.h: New file.
73696         * lib/strptime.c: New file.
73697         * m4/strptime.m4: New file.
73698
73699 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
73700
73701         * MODULES.html.sh: New module mpsort.
73702         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
73703
73704         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
73705         a circularity problem with HP-UX ia64 reported by Bob Proulx in
73706         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
73707         All uses changed.
73708         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
73709         All uses changed.
73710         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
73711         to _Restrict_.
73712         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
73713         the parameter matches the prototype.
73714
73715 2007-01-28  Jim Meyering  <jim@meyering.net>
73716
73717         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
73718         sys/time.h here, reverting that part of the previous patch:
73719         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
73720
73721 2007-01-28  Bruno Haible  <bruno@clisp.org>
73722
73723         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
73724         value of $(SYS_TIME_H).
73725         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
73726         remove it conditionally, too. [added by Jim Meyering]
73727         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
73728         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
73729         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
73730         GETTIMEOFDAY_REPLACEMENT to 1.
73731
73732 2007-01-28  Bruno Haible  <bruno@clisp.org>
73733
73734         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
73735         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
73736         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
73737         Set UNISTD_H instead of UNISTD_H2.
73738         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
73739
73740 2007-01-28  Bruno Haible  <bruno@clisp.org>
73741
73742         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
73743         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
73744
73745 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73746
73747         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
73748         (func_create_testdir): Ensure C locale for `grep' and `tr'
73749         character ranges.
73750         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
73751         ACLOCAL_AMFLAGS parsing state machine.
73752
73753 2007-01-27  Bruno Haible  <bruno@clisp.org>
73754
73755         * modules/unistr/base: Update.
73756
73757 2007-01-27  Bruno Haible  <bruno@clisp.org>
73758
73759         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
73760         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
73761         * modules/unistr/u32-mbtouc-unsafe: Renamed from
73762         modules/unistr/u32-mbtouc.
73763         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
73764         * lib/unistr.h: Update.
73765         * lib/linebreak.c: Update.
73766         * modules/unistr/u32-mbtouc: Renamed from
73767         modules/unistr/u32-mbtouc-safe.
73768         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
73769         * lib/unistr.h: Update.
73770         * lib/unistr/u32-to-u8.c: Update.
73771         * lib/unistr/u32-to-u16.c: Update.
73772
73773 2007-01-27  Bruno Haible  <bruno@clisp.org>
73774
73775         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
73776         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
73777         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
73778         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
73779         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
73780         * modules/unistr/u16-mbtouc-unsafe: Renamed from
73781         modules/unistr/u16-mbtouc.
73782         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
73783         * lib/unistr.h: Update.
73784         * lib/linebreak.c: Update.
73785         * modules/linebreak: Update.
73786         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
73787         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
73788         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
73789         * modules/unistr/u16-mbtouc: Renamed from
73790         modules/unistr/u16-mbtouc-safe.
73791         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
73792         * lib/unistr.h: Update.
73793         * lib/unistr/u16-to-u8.c: Update.
73794         * modules/unistr/u16-to-u8: Update.
73795         * lib/unistr/u16-to-u32.c: Update.
73796         * modules/unistr/u16-to-u32: Update.
73797
73798 2007-01-27  Bruno Haible  <bruno@clisp.org>
73799
73800         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
73801         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
73802         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
73803         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
73804         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
73805         * modules/unistr/u8-mbtouc-unsafe: Renamed from
73806         modules/unistr/u8-mbtouc.
73807         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
73808         * lib/unistr.h: Update.
73809         * lib/striconveh.c: Update.
73810         * modules/striconveh: Update.
73811         * lib/linebreak.c: Update.
73812         * modules/linebreak: Update.
73813         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
73814         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
73815         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
73816         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
73817         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
73818         * lib/unistr.h: Update.
73819         * lib/striconveh.c: Update.
73820         * modules/striconveh: Update.
73821         * lib/unistr/u8-to-u16.c: Update.
73822         * modules/unistr/u8-to-u16: Update.
73823         * lib/unistr/u8-to-u32.c: Update.
73824         * modules/unistr/u8-to-u32: Update.
73825
73826 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73827
73828         Sync from Libtool.
73829         * lib/argz.c: Do not include strings.h nor memory.h, include
73830         string.h unconditionally.  Patch by Simon Josefsson.
73831
73832 2007-01-27  Bruno Haible  <bruno@clisp.org>
73833
73834         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
73835         from gl_HEADER_STRING_H_BODY.
73836         (gl_HEADER_STRING_H_BODY): Require it.
73837         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
73838         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
73839         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
73840         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
73841         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
73842         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
73843         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
73844         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
73845         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
73846         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
73847         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
73848         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
73849         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
73850         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
73851         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
73852
73853 2007-01-27  Bruno Haible  <bruno@clisp.org>
73854
73855         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
73856         check_PROGRAMS into noinst_PROGRAMS.
73857         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
73858         check_PROGRAMS in this case.
73859         (func_import): Set for_test to false.
73860         (func_create_testdir): Set for_test to true.
73861
73862 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
73863             Bruno Haible  <bruno@clisp.org>
73864
73865         * modules/strcasestr (Files): Remove lib/strcasestr.h.
73866         (Depends-on): Add string.
73867         (Includes): Use <string.h> instead of strcasestr.h.
73868         * modules/string (Makefile.am): Also substitute the value of
73869         REPLACE_STRCASESTR.
73870         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
73871         assume strcasestr is declared in <string.h> not <strings.h>. Also
73872         set REPLACE_STRCASESTR.
73873         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
73874         REPLACE_STRCASESTR.
73875         * lib/strcasestr.h: Remove file.
73876         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
73877         * lib/string_.h (strcasestr): New declaration.
73878
73879 2007-01-27  Bruno Haible  <bruno@clisp.org>
73880
73881         * lib/string_.h: Use 'extern'.
73882
73883 2007-01-27  Jim Meyering  <jim@meyering.net>
73884
73885         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
73886         of set-but-not-used local, "q".
73887
73888         * lib/mempcpy.c: Include <config.h> before <string.h>.
73889         This fixes a compilation error on HP-UX, due to the system's
73890         "restrict"-using mempcpy prototype.
73891
73892 2007-01-26  Bruno Haible  <bruno@clisp.org>
73893
73894         Small optimization.
73895         * lib/javacomp.c: Include c-strstr.h.
73896          (is_envjavac_gcj): Use c_strstr instead of strstr.
73897         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
73898
73899 2007-01-26  Bruno Haible  <bruno@clisp.org>
73900
73901         * MODULES.html.sh (Unicode string functions): Add the new modules.
73902
73903         * modules/uniconv/u32-strconv-to-locale: New file.
73904         * lib/uniconv/u32-strconv-to-locale.c: New file.
73905
73906         * modules/uniconv/u16-strconv-to-locale: New file.
73907         * lib/uniconv/u16-strconv-to-locale.c: New file.
73908
73909         * modules/uniconv/u8-strconv-to-locale: New file.
73910         * lib/uniconv/u8-strconv-to-locale.c: New file.
73911
73912         * modules/uniconv/u32-strconv-from-locale: New file.
73913         * lib/uniconv/u32-strconv-from-locale.c: New file.
73914
73915         * modules/uniconv/u16-strconv-from-locale: New file.
73916         * lib/uniconv/u16-strconv-from-locale.c: New file.
73917
73918         * modules/uniconv/u8-strconv-from-locale: New file.
73919         * lib/uniconv/u8-strconv-from-locale.c: New file.
73920
73921         * modules/uniconv/u32-strconv-to-enc: New file.
73922         * lib/uniconv/u32-strconv-to-enc.c: New file.
73923         * modules/uniconv/u32-strconv-to-enc-tests: New file.
73924         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
73925
73926         * modules/uniconv/u16-strconv-to-enc: New file.
73927         * lib/uniconv/u16-strconv-to-enc.c: New file.
73928         * lib/uniconv/u-strconv-to-enc.h: New file.
73929         * modules/uniconv/u16-strconv-to-enc-tests: New file.
73930         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
73931
73932         * modules/uniconv/u8-strconv-to-enc: New file.
73933         * lib/uniconv/u8-strconv-to-enc.c: New file.
73934         * modules/uniconv/u8-strconv-to-enc-tests: New file.
73935         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
73936
73937         * modules/uniconv/u32-strconv-from-enc: New file.
73938         * lib/uniconv/u32-strconv-from-enc.c: New file.
73939         * modules/uniconv/u32-strconv-from-enc-tests: New file.
73940         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
73941
73942         * modules/uniconv/u16-strconv-from-enc: New file.
73943         * lib/uniconv/u16-strconv-from-enc.c: New file.
73944         * modules/uniconv/u16-strconv-from-enc-tests: New file.
73945         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
73946
73947         * modules/uniconv/u8-strconv-from-enc: New file.
73948         * lib/uniconv/u8-strconv-from-enc.c: New file.
73949         * lib/uniconv/u-strconv-from-enc.h: New file.
73950         * modules/uniconv/u8-strconv-from-enc-tests: New file.
73951         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
73952
73953         * modules/uniconv/u32-conv-from-enc: New file.
73954         * lib/uniconv/u32-conv-from-enc.c: New file.
73955         * modules/uniconv/u32-conv-from-enc-tests: New file.
73956         * tests/uniconv/test-u32-conv-from-enc.c: New file.
73957
73958         * modules/uniconv/u16-conv-from-enc: New file.
73959         * lib/uniconv/u16-conv-from-enc.c: New file.
73960         * lib/uniconv/u-conv-from-enc.h: New file.
73961         * modules/uniconv/u16-conv-from-enc-tests: New file.
73962         * tests/uniconv/test-u16-conv-from-enc.c: New file.
73963
73964         * modules/uniconv/u8-conv-from-enc: New file.
73965         * lib/uniconv/u8-conv-from-enc.c: New file.
73966         * modules/uniconv/u8-conv-from-enc-tests: New file.
73967         * tests/uniconv/test-u8-conv-from-enc.c: New file.
73968
73969         * modules/uniconv/base: New file.
73970         * lib/uniconv.h: New file.
73971
73972 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
73973
73974         * doc/gnulib-tool.texi (Initial import): Update to match current
73975         behavior with strdup module.
73976         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
73977         * lib/memmem.h: Remove; all uses removed.  This is now done
73978         by <string.h>.
73979         * lib/mempcpy.h: Likewise.
73980         * lib/memrchr.h: Likewise.
73981         * lib/stpcpy.h: Likewise.
73982         * lib/stpncpy.h: Likewise.
73983         * lib/strcase.h: Likewise.
73984         * lib/strchrnul.h: Likewise.
73985         * lib/strdup.h: Likewise.
73986         * lib/strndup.h: Likewise.
73987         * lib/strnlen.h: Likewise.
73988         * lib/strpbrk.h: Likewise.
73989         * lib/strsep.h: Likewise.
73990         * lib/strstr.h: Likewise.
73991         * lib/strtok_r.h: Likewise.
73992         * lib/string_.h: New file.
73993         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
73994         Rely on <string.h> instead.
73995         * lib/canon-host.c: Likewise.
73996         * lib/chdir-long.c: Likewise.
73997         * lib/concatpath.c: Likewise.
73998         * lib/exclude.c: Likewise.
73999         * lib/fchdir.c: Likewise.
74000         * lib/getaddrinfo.c: Likewise.
74001         * lib/getcwd.c: Likewise.
74002         * lib/getsubopt.c: Likewise.
74003         * lib/glob.c: Likewise.
74004         * lib/hard-locale.c: Likewise.
74005         * lib/iconvme.c: Likewise.
74006         * lib/javacomp.c: Likewise.
74007         * lib/mempcpy.c: Likewise.
74008         * lib/memrchr.c: Likewise.
74009         * lib/regex_internal.h: Likewise.
74010         * lib/stpncpy.c: Likewise.
74011         * lib/strcasecmp.c: Likewise.
74012         * lib/strchrnul.c: Likewise.
74013         * lib/strdup.c: Likewise.
74014         * lib/striconv.c: Likewise.
74015         * lib/striconveh.c: Likewise.
74016         * lib/striconveha.c: Likewise.
74017         * lib/strncasecmp.c: Likewise.
74018         * lib/strndup.c: Likewise.
74019         * lib/strnlen.c: Likewise.
74020         * lib/strsep.c: Likewise.
74021         * lib/strstr.c: Likewise.
74022         * lib/strtok_r.c: Likewise.
74023         * lib/userspec.c: Likewise.
74024         * lib/w32spawn.h: Likewise.
74025         * lib/xstrndup.c: Likewise.
74026         * lib/mountlist.c (strstr): Remove decl.
74027         * m4/string_h.m4: New file.
74028         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
74029         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
74030         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
74031         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
74032         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
74033         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
74034         Set REPLACE_STRCASECMP if necessary.
74035         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
74036         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
74037         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
74038         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
74039         HAVE_DECL_STRDUP if necessary.
74040         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
74041         since gl_FUNC_STRNDUP does that now.
74042         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
74043         Check for decl here...
74044         (gl_PREREQ_STRNLEN): ... not here.
74045         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
74046         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
74047         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
74048         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
74049         necessary.
74050         * modules/string: New file.
74051         * modules/memmem (Files): Remove special-purpose include file.
74052         (Depends-on): Add string.
74053         (Include): Include <string.h>, not the removed file.
74054         * modules/mempcpy: Likewise.
74055         * modules/memrchr: Likewise.
74056         * modules/stpcpy: Likewise.
74057         * modules/stpncpy: Likewise.
74058         * modules/strcase: Likewise.
74059         * modules/strchrnul: Likewise.
74060         * modules/strdup: Likewise.
74061         * modules/strndup: Likewise.
74062         * modules/strnlen: Likewise.
74063         * modules/strpbrk: Likewise.
74064         * modules/strsep: Likewise.
74065         * modules/strstr: Likewise.
74066         * modules/strtok_r: Likewise.
74067         * tests/test-dirname.c: Don't include "strdup.h", since
74068         <string.h> now suffices.
74069         * tests/test-memmem.c: Don't include "memmem.h", since
74070         <string.h> now suffices.
74071
74072 2007-01-25  Bruno Haible  <bruno@clisp.org>
74073
74074         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
74075         *resultp is 0.
74076
74077         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
74078         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
74079         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
74080         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
74081
74082         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
74083         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
74084         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
74085         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
74086         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
74087         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
74088
74089 2007-01-24  Bruno Haible  <bruno@clisp.org>
74090
74091         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
74092         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
74093         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
74094         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
74095         gl_FUNC_FTS_CORE.
74096         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
74097         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
74098         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
74099         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
74100         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
74101         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
74102         gl_FUNC_FCHOWNAT.
74103         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
74104         gl_FUNC_STRFTIME.
74105         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
74106         Reported by Ralf Wildenhues.
74107
74108 2007-01-24  Bruno Haible  <bruno@clisp.org>
74109
74110         Drop AC_REQUIRE calls that are redundant with the module dependencies.
74111         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
74112         gl_GETADDRINFO.
74113         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
74114         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
74115         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
74116
74117 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
74118
74119         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
74120         Don't use 'exit'; just return from 'main'.
74121         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
74122
74123         * lib/fnmatch_.h: Readjust white space and comments to match
74124         glibc, to avoid spurious diffs.
74125
74126 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
74127
74128         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
74129         2004-12-01 change by Jakub Jelinek, since this code won't compile
74130         if !LIBC.  Problem reported by Bob Proulx.
74131
74132 2007-01-23  Bruno Haible  <bruno@clisp.org>
74133
74134         * lib/striconveh.c: Include c-strcaseeq.h.
74135         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
74136         * modules/striconveh (Depends-on): Add c-strcaseeq.
74137
74138 2007-01-23  Bruno Haible  <bruno@clisp.org>
74139
74140         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
74141
74142         * modules/c-strcaseeq: New file.
74143         * lib/c-strcaseeq.h: New file.
74144
74145         * modules/streq: New file.
74146         * lib/streq.h: New file.
74147
74148 2007-01-23  Bruno Haible  <bruno@clisp.org>
74149
74150         * modules/striconveha-tests: New file.
74151         * tests/test-striconveha.c: New file.
74152
74153         * lib/striconveha.h: Include <stdbool.h>.
74154         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
74155         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
74156         (mem_iconveha_notranslit): Renamed from mem_iconveha.
74157         (mem_iconveha): New function.
74158         (str_iconveha_notranslit): Renamed from str_iconveha.
74159         (str_iconveha): New function.
74160         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
74161         c-strcase.
74162
74163 2007-01-23  Bruno Haible  <bruno@clisp.org>
74164
74165         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
74166         encodings without forgiving before trying any encoding with handler.
74167         (str_iconveha): Try all encodings without forgiving before trying any
74168         encoding with handler.
74169
74170 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
74171
74172         Import the following changes from libc.
74173
74174         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
74175
74176         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
74177
74178         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
74179
74180         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
74181         normal_bracket label.
74182
74183         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
74184
74185         [BZ #361]
74186         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
74187         to normal_bracket after fetching the next character.
74188
74189 2007-01-22  Bruno Haible  <bruno@clisp.org>
74190
74191         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
74192         argument.
74193         * lib/striconveh.c (iconv_carefully_1): New function.
74194         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
74195         argument.
74196         (str_cd_iconveh): Update.
74197         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
74198         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
74199         * tests/test-striconveh.c (MAGIC): New macro.
74200         (new_offsets): New function.
74201         (main): Test call with and without offsets.
74202
74203 2007-01-22  Bruno Haible  <bruno@clisp.org>
74204
74205         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
74206         * modules/sys_select (Makefile.am): Likewise.
74207         * modules/sys_socket (Makefile.am): Likewise.
74208         * modules/sys_time (Makefile.am): Likewise.
74209
74210 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
74211
74212         * modules/gettimeofday (License): Change from GPL to LGPL, since
74213         gettimeofday is a library function.
74214
74215 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
74216
74217         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
74218
74219 2007-01-21  Bruno Haible  <bruno@clisp.org>
74220
74221         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
74222
74223 2007-01-21  Bruno Haible  <bruno@clisp.org>
74224
74225         * modules/striconveha: New file.
74226         * lib/striconveha.h: New file.
74227         * lib/striconveha.c: New file.
74228         * MODULES.html.sh (Internationalization functions): Add striconveha.
74229         * lib/striconv.c (str_iconv): Optimize the case of an empty input
74230         string.
74231         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
74232
74233 2007-01-21  Bruno Haible  <bruno@clisp.org>
74234
74235         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
74236         * lib/striconveh.c (str_iconveh): Likewise.
74237
74238 2007-01-21  Bruno Haible  <bruno@clisp.org>
74239
74240         * lib/striconveh.h (mem_iconveh): New declaration.
74241         * lib/striconveh.c (mem_iconveh): New function.
74242         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
74243
74244 2007-01-21  Bruno Haible  <bruno@clisp.org>
74245
74246         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
74247
74248         * lib/striconveh.h (mem_cd_iconveh): Change specification.
74249         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
74250         original result buffer.
74251         (str_cd_iconveh): Update.
74252         * tests/test-striconveh.c (main): Update.
74253
74254         * lib/striconv.h (mem_cd_iconv): Change specification.
74255         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
74256         result buffer.
74257         (str_cd_iconv): Update.
74258         * tests/test-striconv.c (main): Update.
74259
74260 2007-01-21  Bruno Haible  <bruno@clisp.org>
74261
74262         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
74263
74264 2007-01-20  Jim Meyering  <jim@meyering.net>
74265
74266         * lib/userspec.c (parse_with_separator): If a user or group string
74267         starts with "+", skip the corresponding name-to-ID look-up, since
74268         such a look-up must fail: user and group names may not include "+".
74269
74270 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
74271
74272         * lib/poll.c: Include sys/time.h and time.h unconditionally,
74273         since we now assume the sys_time module.
74274         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
74275         check for sys/time.h; no longer needed.
74276         * modules/poll (Depends-on): Depend on sys_time.
74277
74278 2007-01-18  Bruno Haible  <bruno@clisp.org>
74279
74280         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
74281         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
74282
74283         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
74284         gettimeofday.
74285
74286         * tests/test-gettimeofday.c: Include <time.h>.
74287         (dummy): Remove variable.
74288
74289         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
74290         gl_HEADER_SYS_TIME_H.
74291         (gl_HEADER_SYS_TIME_H): New macro.
74292
74293         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
74294         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
74295         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
74296         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
74297         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
74298         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
74299         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
74300         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
74301         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
74302         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
74303         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
74304
74305         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
74306         last change; it caused a compilation error when cross-compiling to
74307         Cygwin.
74308
74309 2007-01-18  Jim Meyering  <jim@meyering.net>
74310
74311         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
74312         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
74313         than the race-prone "test -d sys || mkdir sys".
74314         (configure.ac): Use AC_PROG_MKDIR_P.
74315         * modules/sys_select: Likewise.
74316         * modules/sys_socket: Likewise.
74317         * modules/sys_time: Likewise.
74318
74319 2007-01-18  Eric Blake  <ebb9@byu.net>
74320
74321         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
74322         replace gettimeofday.
74323         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
74324         name, to avoid infinite recursion.
74325
74326 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
74327
74328         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
74329         module sys_time.
74330         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
74331         assume timespec.h defines struct timeval.
74332         * lib/settime.c: Likewise.
74333         * lib/utimens.c: Likewise.
74334         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
74335         since we now assume the gettimeofday module.
74336         * lib/tempname.c (__gen_tempname): Likewise.
74337         * lib/gettimeofday.h: Remove.
74338         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
74339         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
74340         Include <time.h>, for 'time()'.
74341         (localtime_buffer_addr): Also use this workaround if
74342         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
74343         to simplify the uses.  All uses changed.
74344         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
74345         that #undef is inside {}, and 'const' follows type name consistently.
74346         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
74347         (gettimeofday): Do not use the maximum possible value for
74348         tv->tv_usec, since that might break usages other than ls.c.
74349         Instead, we'll leave ls.c alone.  This undoes today's patch
74350         by Bruno.  Add a compile-time warning for 1s-clock resolution;
74351         we've never observed the problem but might as well keep the
74352         canary.
74353         * lib/nanosleep.c: Include timespec.h first, for interface check.
74354         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
74355         now assume the sys_time module.
74356         * lib/tempname.c: Likewise.
74357         * lib/timespec.h: Likewise.
74358         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
74359         needed.
74360         * lib/strftime.c: Likewise.
74361         * lib/timespec.h: Likewise.
74362         * lib/posixtm.c: Include posixtm.h first, for interface check.
74363         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
74364         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
74365         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
74366         * lib/sys_time_.h: New file.
74367         * lib/timespec.h (struct timespec): Use long int, not long.
74368         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
74369         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
74370         Remove obsolescent call to AC_HEADER_TIME.
74371         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
74372         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
74373         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
74374         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
74375         Likewise.
74376         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
74377         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
74378         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
74379         into the sys_time module.  Check for gettimeofday just once.
74380         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
74381         for gettimeofday signature to just check the signature.  Merely
74382         compile it, since linking doesn't test signature.  Improve test for
74383         whether gettimeofday.o is actually needed.
74384         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
74385         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
74386         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
74387         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
74388         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
74389         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
74390         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
74391         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
74392         than worrying about sys/time.h.
74393         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
74394         Don't bother worrying about TIME_WITH_SYS_TIME.
74395         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
74396         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
74397         * m4/sys_time_h.m4: New file.
74398         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
74399         Don't include sys/time.h.  Return from main rather than exiting.
74400         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
74401         all uses changed.
74402         * modules/gethrxtime (Depends-on): Add sys_time.
74403         * modules/gettime (Depends-on): Likewise.
74404         * modules/gettimeofday (Depends-on): Likewise.
74405         * modules/nanosleep (Depends-on): Likewise.
74406         * modules/settime (Depends-on): Likewise.
74407         * modules/tempname (Depends-on): Likewise.
74408         * modules/utimens (Depends-on): Likewise.
74409         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
74410         (Include): Change back to <sys/time.h>.
74411         (Maintainer): Add self.
74412         * modules/sys_time: New file.
74413         * modules/tempname (Depends-on): Add gettimeofday.
74414         * tests/test-gettimeofday.c: Include <sys/time.h>
74415         rather than gettimeofday.h.
74416
74417 2007-01-17  Bruno Haible  <bruno@clisp.org>
74418
74419         * gnulib-tool (func_get_license): Revert last patch. Instead, let
74420         the license default to GPL.
74421         (func_create_testdir): Don't complain if a module is LGPL and its
74422         tests module depends on GPLed modules.
74423
74424 2007-01-17  Bruno Haible  <bruno@clisp.org>
74425
74426         * lib/gettimeofday.c (gettimeofday): Add code for the case
74427         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
74428         maximum possible value for tv->tv_usec, rather than the minimum one.
74429
74430 2005-10-08  Martin Lambers  <marlam@marlam.de>
74431 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
74432 2007-01-16  Bruno Haible  <bruno@clisp.org>
74433
74434         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
74435         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
74436         gl_FUNC_GETTIMEOFDAY.
74437         (Include): Add gettimeofday.h.
74438         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
74439         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
74440         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
74441         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
74442         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
74443         * lib/gettimeofday.h: New file.
74444         * lib/gettimeofday.c: Include <sys/timeb.h>.
74445         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
74446         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
74447         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
74448         fall back on time().
74449
74450         * tests/test-gettimeofday.c: New file.
74451         * modules/gettimeofday-tests: New file.
74452
74453 2007-01-16  Eric Blake  <ebb9@byu.net>
74454
74455         * modules/fnmatch (Depends-on): Depend on wchar.
74456         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
74457         * m4/fnmatch.m4: Likewise.
74458         * modules/mbchar (Makefile.am): Assume <wchar.h>.
74459         * m4/mbchar.m4: Likewise.
74460         * modules/mbswidth (Depends-on): Depend on wchar.
74461         * lib/mbswidth.c: Assume <wchar.h>.
74462         * m4/mbswidth.m4: Likewise.
74463         * modules/quotearg (Depends-on): Depend on wchar.
74464         * lib/quotearg.c: Assume <wchar.h>.
74465         * m4/quotearg.m4: Likewise.
74466         * modules/regex (Depends-on): Depend on wchar.
74467         * lib/regex_internal.h: Assume <wchar.h>.
74468         * m4/regex.m4: Likewise.
74469         * modules/stdint (Depends-on): Depend on wchar.
74470         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
74471         * m4/stdint.m4: Likewise.
74472         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
74473         * modules/strftime (Depends-on): Depend on wchar.
74474         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
74475         * modules/strtol (Depends-on): Depend on wchar.
74476         * lib/strtol.c: Assume <wchar.h>.
74477         * modules/wcwidth (Depends-on): Depend on wchar.
74478         * lib/wcwidth.h: Assume <wchar.h>.
74479         * m4/wcwidth.m4: Likewise.
74480
74481 2007-01-16  Bruno Haible  <bruno@clisp.org>
74482
74483         * modules/csharpexec-script: New, created from...
74484         * modules/csharpexec: ... this.
74485
74486 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
74487
74488         * modules/javaexec-script: New, created from...
74489         * modules/javaexec: ... this.
74490
74491 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
74492
74493         * modules/poll (Dependencies): Add sys_select.
74494
74495 2007-01-15  Jim Meyering  <jim@meyering.net>
74496
74497         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
74498         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
74499         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
74500         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
74501
74502 2007-01-15  Bruno Haible  <bruno@clisp.org>
74503
74504         * modules/striconveh: New file.
74505         * lib/striconveh.h: New file.
74506         * lib/striconveh.c: New file.
74507         * MODULES.html.sh (Internationalization functions): Add striconveh.
74508
74509         * modules/striconveh-tests: New file.
74510         * tests/test-striconveh.c: New file.
74511
74512 2007-01-15  Bruno Haible  <bruno@clisp.org>
74513
74514         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
74515         not from GNU libiconv or GNU libc.
74516
74517 2007-01-15  Bruno Haible  <bruno@clisp.org>
74518
74519         * doc/gnulib-intro.texi (Copyright): Explain the different license
74520         terms for module descriptions, autoconf macros, tests, documentation.
74521
74522 2007-01-14  Bruno Haible  <bruno@clisp.org>
74523
74524         * modules/striconv-tests: New file.
74525         * tests/test-striconv.c: New file.
74526
74527 2007-01-14  Bruno Haible  <bruno@clisp.org>
74528
74529         * modules/iconv-tests: New file.
74530         * tests/test-iconv.c: New file.
74531
74532 2007-01-14  Bruno Haible  <bruno@clisp.org>
74533
74534         * gnulib-tool (func_get_license): For test modules, use the license of
74535         the main module.
74536
74537 2007-01-14  Bruno Haible  <bruno@clisp.org>
74538
74539         * modules/iconv (Include): Clarify that <iconv.h> can only be included
74540         if iconv is found to exist.
74541
74542 2007-01-14  Bruno Haible  <bruno@clisp.org>
74543
74544         * modules/c-ctype-tests: New file.
74545         * tests/test-c-ctype.c: New file.
74546
74547 2007-01-14  Bruno Haible  <bruno@clisp.org>
74548
74549         * modules/binary-io-tests: New file.
74550         * tests/test-binary-io.sh: New file.
74551         * tests/test-binary-io.c: New file.
74552
74553 2007-01-14  Bruno Haible  <bruno@clisp.org>
74554
74555         * modules/array-oset-tests: New file.
74556         * tests/test-array_oset.c: New file.
74557
74558 2007-01-14  Bruno Haible  <bruno@clisp.org>
74559
74560         * modules/array-list-tests: New file.
74561         * tests/test-array_list.c: New file.
74562
74563 2007-01-14  Bruno Haible  <bruno@clisp.org>
74564
74565         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
74566         and make.
74567         Reported by Simon Josefsson in
74568         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
74569
74570 2007-01-14  Bruno Haible  <bruno@clisp.org>
74571
74572         * modules/allocsa-tests: New file.
74573         * tests/test-allocsa.c: New file.
74574
74575 2007-01-14  Bruno Haible  <bruno@clisp.org>
74576
74577         * modules/fchdir (Depends-on): Add absolute-header.
74578         * modules/unistd (Depends-on): Likewise.
74579
74580 2006-12-30  Bruno Haible  <bruno@clisp.org>
74581
74582         * modules/fchdir: New file.
74583         * modules/unistd (Files): Add lib/unistd_.h.
74584         (Makefile.am): Generate unistd.h from unistd_.h.
74585         * lib/fchdir.c: New file.
74586         * lib/dirent_.h: New file.
74587         * lib/unistd_.h: New file.
74588         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
74589         * m4/fchdir.m4: New file.
74590         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
74591         (gl_HEADER_UNISTD): Invoke it.
74592         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
74593         function.
74594         * lib/backupfile.c (opendir, closedir): Undefine.
74595         * lib/chown.c (open, close): Undefine.
74596         * lib/clean-temp.c (open, close): Undefine.
74597         * lib/copy-file.c (open, close): Undefine.
74598         * lib/execute.c (open, close): Undefine.
74599         * lib/fsusage.c (open, close): Undefine.
74600         * lib/gc-gnulib.c (open, close): Undefine.
74601         * lib/getcwd.c (opendir, closedir): Undefine.
74602         * lib/glob.c (opendir, closedir): Undefine.
74603         * lib/javacomp.c (open, close): Undefine.
74604         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
74605         * lib/openat-proc.c (open, close): Undefine.
74606         * lib/pagealign_alloc.c (open, close): Undefine.
74607         * lib/pipe.c (open, close): Undefine.
74608         * lib/progreloc.c (open, close): Undefine.
74609         * lib/savedir.c (opendir, closedir): Undefine.
74610         * lib/utime.c (open, close): Undefine.
74611         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
74612
74613 2007-01-10  Bruno Haible  <bruno@clisp.org>
74614
74615         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
74616
74617 2007-01-12  Eric Blake  <ebb9@byu.net>
74618
74619         Provide a robust <wchar.h>.  Further simplifications are now
74620         possible in other modules, but not included here.
74621         * modules/wchar: New module.
74622         * m4/wchar.m4: New file.
74623         * lib/wchar_.h: Likewise.
74624         * modules/mbchar (Depends-on): Depend on wchar, as the first use
74625         of the new module.
74626         * MODULES.html.sh (Extended multibyte and wide character utilities):
74627         New section.
74628
74629 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
74630
74631         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
74632         to a reasonable default for memory allocation.
74633         (xreadlink): Don't allocate a huge buffer, to work around a buggy
74634         file system that reports garbage st_size values for symlinks.
74635         Problem reported by Liyang Hu.
74636
74637 2007-01-11  Simon Josefsson  <simon@josefsson.org>
74638
74639         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
74640         Emacs .#* auto-save files).
74641
74642 2007-01-11  Bruno Haible  <bruno@clisp.org>
74643
74644         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
74645         directory.
74646
74647 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
74648
74649         Use @...@ consistently in lib/wctype_.h.
74650         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
74651         on it being set to 1 or 0.
74652         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
74653         go back to AC_SUBSTing it.
74654         * modules/wctype (Makefile.am): Undo previous change.
74655
74656 2007-01-10  Eric Blake  <ebb9@byu.net>
74657
74658         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
74659         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
74660         * modules/wctype (Makefile.am): Likewise.
74661         Reported by Chris McGuire.
74662
74663 2007-01-10  Jim Meyering  <jim@meyering.net>
74664
74665         fts.c: a small readability/maintainability improvement
74666         * lib/fts.c (fts_read): Make this code slightly more readable and
74667         maintainable by hoisting the "sp->fts_cur = p" assignments to
74668         immediately follow the statements that set P.  Derived from
74669         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
74670
74671 2007-01-10  Eric Blake  <ebb9@byu.net>
74672
74673         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
74674         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
74675         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
74676         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
74677         Reported by Chris McGuire.
74678
74679 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74680
74681         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
74682         in sed script.
74683
74684 2007-01-09  Bruno Haible  <bruno@clisp.org>
74685
74686         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
74687         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
74688         variables.
74689         (func_module): Use them.
74690
74691 2007-01-09  Bruno Haible  <bruno@clisp.org>
74692
74693         * modules/unistr/base: New file.
74694         * lib/unistr.h: New file.
74695
74696         * modules/unistr/u8-to-u16: New file.
74697         * lib/unistr/u8-to-u16.c: New file.
74698
74699         * modules/unistr/u8-to-u32: New file.
74700         * lib/unistr/u8-to-u32.c: New file.
74701
74702         * modules/unistr/u16-to-u8: New file.
74703         * lib/unistr/u16-to-u8.c: New file.
74704
74705         * modules/unistr/u16-to-u32: New file.
74706         * lib/unistr/u16-to-u32.c: New file.
74707
74708         * modules/unistr/u32-to-u8: New file.
74709         * lib/unistr/u32-to-u8.c: New file.
74710
74711         * modules/unistr/u32-to-u16: New file.
74712         * lib/unistr/u32-to-u16.c: New file.
74713
74714         * modules/unistr/u8-check: New file.
74715         * modules/unistr/u16-check: New file.
74716         * modules/unistr/u32-check: New file.
74717         * lib/unistr/u8-check.c: New file.
74718         * lib/unistr/u16-check.c: New file.
74719         * lib/unistr/u32-check.c: New file.
74720
74721         * modules/unistr/u8-chr: New file.
74722         * modules/unistr/u16-chr: New file.
74723         * modules/unistr/u32-chr: New file.
74724         * lib/unistr/u8-chr.c: New file.
74725         * lib/unistr/u16-chr.c: New file.
74726         * lib/unistr/u32-chr.c: New file.
74727
74728         * modules/unistr/u8-cmp: New file.
74729         * modules/unistr/u16-cmp: New file.
74730         * modules/unistr/u32-cmp: New file.
74731         * lib/unistr/u8-cmp.c: New file.
74732         * lib/unistr/u16-cmp.c: New file.
74733         * lib/unistr/u32-cmp.c: New file.
74734
74735         * modules/unistr/u8-cpy: New file.
74736         * modules/unistr/u16-cpy: New file.
74737         * modules/unistr/u32-cpy: New file.
74738         * lib/unistr/u8-cpy.c: New file.
74739         * lib/unistr/u16-cpy.c: New file.
74740         * lib/unistr/u32-cpy.c: New file.
74741         * lib/unistr/u-cpy.h: New file.
74742
74743         * modules/unistr/u8-cpy-alloc: New file.
74744         * modules/unistr/u16-cpy-alloc: New file.
74745         * modules/unistr/u32-cpy-alloc: New file.
74746         * lib/unistr/u8-cpy-alloc.c: New file.
74747         * lib/unistr/u16-cpy-alloc.c: New file.
74748         * lib/unistr/u32-cpy-alloc.c: New file.
74749         * lib/unistr/u-cpy-alloc.h: New file.
74750
74751         * modules/unistr/u8-endswith: New file.
74752         * modules/unistr/u16-endswith: New file.
74753         * modules/unistr/u32-endswith: New file.
74754         * lib/unistr/u8-endswith.c: New file.
74755         * lib/unistr/u16-endswith.c: New file.
74756         * lib/unistr/u32-endswith.c: New file.
74757         * lib/unistr/u-endswith.h: New file.
74758
74759         * modules/unistr/u8-mblen: New file.
74760         * modules/unistr/u16-mblen: New file.
74761         * modules/unistr/u32-mblen: New file.
74762         * lib/unistr/u8-mblen.c: New file.
74763         * lib/unistr/u16-mblen.c: New file.
74764         * lib/unistr/u32-mblen.c: New file.
74765
74766         * modules/unistr/u8-mbtouc: New file.
74767         * modules/unistr/u16-mbtouc: New file.
74768         * modules/unistr/u32-mbtouc: New file.
74769         * lib/unistr/u8-mbtouc.c: New file.
74770         * lib/unistr/u16-mbtouc.c: New file.
74771         * lib/unistr/u32-mbtouc.c: New file.
74772
74773         * modules/unistr/u8-mbtouc-safe: New file.
74774         * modules/unistr/u16-mbtouc-safe: New file.
74775         * modules/unistr/u32-mbtouc-safe: New file.
74776         * lib/unistr/u8-mbtouc-safe.c: New file.
74777         * lib/unistr/u16-mbtouc-safe.c: New file.
74778         * lib/unistr/u32-mbtouc-safe.c: New file.
74779
74780         * modules/unistr/u8-move: New file.
74781         * modules/unistr/u16-move: New file.
74782         * modules/unistr/u32-move: New file.
74783         * lib/unistr/u8-move.c: New file.
74784         * lib/unistr/u16-move.c: New file.
74785         * lib/unistr/u32-move.c: New file.
74786         * lib/unistr/u-move.h: New file.
74787
74788         * modules/unistr/u8-next: New file.
74789         * modules/unistr/u16-next: New file.
74790         * modules/unistr/u32-next: New file.
74791         * lib/unistr/u8-next.c: New file.
74792         * lib/unistr/u16-next.c: New file.
74793         * lib/unistr/u32-next.c: New file.
74794
74795         * modules/unistr/u8-prev: New file.
74796         * modules/unistr/u16-prev: New file.
74797         * modules/unistr/u32-prev: New file.
74798         * lib/unistr/u8-prev.c: New file.
74799         * lib/unistr/u16-prev.c: New file.
74800         * lib/unistr/u32-prev.c: New file.
74801
74802         * modules/unistr/u8-set: New file.
74803         * modules/unistr/u16-set: New file.
74804         * modules/unistr/u32-set: New file.
74805         * lib/unistr/u8-set.c: New file.
74806         * lib/unistr/u16-set.c: New file.
74807         * lib/unistr/u32-set.c: New file.
74808         * lib/unistr/u-set.h: New file.
74809
74810         * modules/unistr/u8-startswith: New file.
74811         * modules/unistr/u16-startswith: New file.
74812         * modules/unistr/u32-startswith: New file.
74813         * lib/unistr/u8-startswith.c: New file.
74814         * lib/unistr/u16-startswith.c: New file.
74815         * lib/unistr/u32-startswith.c: New file.
74816         * lib/unistr/u-startswith.h: New file.
74817
74818         * modules/unistr/u8-stpcpy: New file.
74819         * modules/unistr/u16-stpcpy: New file.
74820         * modules/unistr/u32-stpcpy: New file.
74821         * lib/unistr/u8-stpcpy.c: New file.
74822         * lib/unistr/u16-stpcpy.c: New file.
74823         * lib/unistr/u32-stpcpy.c: New file.
74824         * lib/unistr/u-stpcpy.h: New file.
74825
74826         * modules/unistr/u8-stpncpy: New file.
74827         * modules/unistr/u16-stpncpy: New file.
74828         * modules/unistr/u32-stpncpy: New file.
74829         * lib/unistr/u8-stpncpy.c: New file.
74830         * lib/unistr/u16-stpncpy.c: New file.
74831         * lib/unistr/u32-stpncpy.c: New file.
74832         * lib/unistr/u-stpncpy.h: New file.
74833
74834         * modules/unistr/u8-strcat: New file.
74835         * modules/unistr/u16-strcat: New file.
74836         * modules/unistr/u32-strcat: New file.
74837         * lib/unistr/u8-strcat.c: New file.
74838         * lib/unistr/u16-strcat.c: New file.
74839         * lib/unistr/u32-strcat.c: New file.
74840         * lib/unistr/u-strcat.h: New file.
74841
74842         * modules/unistr/u8-strchr: New file.
74843         * modules/unistr/u16-strchr: New file.
74844         * modules/unistr/u32-strchr: New file.
74845         * lib/unistr/u8-strchr.c: New file.
74846         * lib/unistr/u16-strchr.c: New file.
74847         * lib/unistr/u32-strchr.c: New file.
74848
74849         * modules/unistr/u8-strcmp: New file.
74850         * modules/unistr/u16-strcmp: New file.
74851         * modules/unistr/u32-strcmp: New file.
74852         * lib/unistr/u8-strcmp.c: New file.
74853         * lib/unistr/u16-strcmp.c: New file.
74854         * lib/unistr/u32-strcmp.c: New file.
74855
74856         * modules/unistr/u8-strcpy: New file.
74857         * modules/unistr/u16-strcpy: New file.
74858         * modules/unistr/u32-strcpy: New file.
74859         * lib/unistr/u8-strcpy.c: New file.
74860         * lib/unistr/u16-strcpy.c: New file.
74861         * lib/unistr/u32-strcpy.c: New file.
74862         * lib/unistr/u-strcpy.h: New file.
74863
74864         * modules/unistr/u8-strcspn: New file.
74865         * modules/unistr/u16-strcspn: New file.
74866         * modules/unistr/u32-strcspn: New file.
74867         * lib/unistr/u8-strcspn.c: New file.
74868         * lib/unistr/u16-strcspn.c: New file.
74869         * lib/unistr/u32-strcspn.c: New file.
74870         * lib/unistr/u-strcspn.h: New file.
74871
74872         * modules/unistr/u8-strdup: New file.
74873         * modules/unistr/u16-strdup: New file.
74874         * modules/unistr/u32-strdup: New file.
74875         * lib/unistr/u8-strdup.c: New file.
74876         * lib/unistr/u16-strdup.c: New file.
74877         * lib/unistr/u32-strdup.c: New file.
74878         * lib/unistr/u-strdup.h: New file.
74879
74880         * modules/unistr/u8-strlen: New file.
74881         * modules/unistr/u16-strlen: New file.
74882         * modules/unistr/u32-strlen: New file.
74883         * lib/unistr/u8-strlen.c: New file.
74884         * lib/unistr/u16-strlen.c: New file.
74885         * lib/unistr/u32-strlen.c: New file.
74886         * lib/unistr/u-strlen.h: New file.
74887
74888         * modules/unistr/u8-strmblen: New file.
74889         * modules/unistr/u16-strmblen: New file.
74890         * modules/unistr/u32-strmblen: New file.
74891         * lib/unistr/u8-strmblen.c: New file.
74892         * lib/unistr/u16-strmblen.c: New file.
74893         * lib/unistr/u32-strmblen.c: New file.
74894
74895         * modules/unistr/u8-strmbtouc: New file.
74896         * modules/unistr/u16-strmbtouc: New file.
74897         * modules/unistr/u32-strmbtouc: New file.
74898         * lib/unistr/u8-strmbtouc.c: New file.
74899         * lib/unistr/u16-strmbtouc.c: New file.
74900         * lib/unistr/u32-strmbtouc.c: New file.
74901
74902         * modules/unistr/u8-strncat: New file.
74903         * modules/unistr/u16-strncat: New file.
74904         * modules/unistr/u32-strncat: New file.
74905         * lib/unistr/u8-strncat.c: New file.
74906         * lib/unistr/u16-strncat.c: New file.
74907         * lib/unistr/u32-strncat.c: New file.
74908         * lib/unistr/u-strncat.h: New file.
74909
74910         * modules/unistr/u8-strncmp: New file.
74911         * modules/unistr/u16-strncmp: New file.
74912         * modules/unistr/u32-strncmp: New file.
74913         * lib/unistr/u8-strncmp.c: New file.
74914         * lib/unistr/u16-strncmp.c: New file.
74915         * lib/unistr/u32-strncmp.c: New file.
74916
74917         * modules/unistr/u8-strncpy: New file.
74918         * modules/unistr/u16-strncpy: New file.
74919         * modules/unistr/u32-strncpy: New file.
74920         * lib/unistr/u8-strncpy.c: New file.
74921         * lib/unistr/u16-strncpy.c: New file.
74922         * lib/unistr/u32-strncpy.c: New file.
74923         * lib/unistr/u-strncpy.h: New file.
74924
74925         * modules/unistr/u8-strnlen: New file.
74926         * modules/unistr/u16-strnlen: New file.
74927         * modules/unistr/u32-strnlen: New file.
74928         * lib/unistr/u8-strnlen.c: New file.
74929         * lib/unistr/u16-strnlen.c: New file.
74930         * lib/unistr/u32-strnlen.c: New file.
74931         * lib/unistr/u-strnlen.h: New file.
74932
74933         * modules/unistr/u8-strpbrk: New file.
74934         * modules/unistr/u16-strpbrk: New file.
74935         * modules/unistr/u32-strpbrk: New file.
74936         * lib/unistr/u8-strpbrk.c: New file.
74937         * lib/unistr/u16-strpbrk.c: New file.
74938         * lib/unistr/u32-strpbrk.c: New file.
74939         * lib/unistr/u-strpbrk.h: New file.
74940
74941         * modules/unistr/u8-strrchr: New file.
74942         * modules/unistr/u16-strrchr: New file.
74943         * modules/unistr/u32-strrchr: New file.
74944         * lib/unistr/u8-strrchr.c: New file.
74945         * lib/unistr/u16-strrchr.c: New file.
74946         * lib/unistr/u32-strrchr.c: New file.
74947
74948         * modules/unistr/u8-strspn: New file.
74949         * modules/unistr/u16-strspn: New file.
74950         * modules/unistr/u32-strspn: New file.
74951         * lib/unistr/u8-strspn.c: New file.
74952         * lib/unistr/u16-strspn.c: New file.
74953         * lib/unistr/u32-strspn.c: New file.
74954         * lib/unistr/u-strspn.h: New file.
74955
74956         * modules/unistr/u8-strstr: New file.
74957         * modules/unistr/u16-strstr: New file.
74958         * modules/unistr/u32-strstr: New file.
74959         * lib/unistr/u8-strstr.c: New file.
74960         * lib/unistr/u16-strstr.c: New file.
74961         * lib/unistr/u32-strstr.c: New file.
74962         * lib/unistr/u-strstr.h: New file.
74963
74964         * modules/unistr/u8-strtok: New file.
74965         * modules/unistr/u16-strtok: New file.
74966         * modules/unistr/u32-strtok: New file.
74967         * lib/unistr/u8-strtok.c: New file.
74968         * lib/unistr/u16-strtok.c: New file.
74969         * lib/unistr/u32-strtok.c: New file.
74970         * lib/unistr/u-strtok.h: New file.
74971
74972         * modules/unistr/u8-uctomb: New file.
74973         * modules/unistr/u16-uctomb: New file.
74974         * modules/unistr/u32-uctomb: New file.
74975         * lib/unistr/u8-uctomb.c: New file.
74976         * lib/unistr/u16-uctomb.c: New file.
74977         * lib/unistr/u32-uctomb.c: New file.
74978
74979         * MODULES.html.sh (Unicode string functions): Add the new modules.
74980
74981 2007-01-08  Bruno Haible  <bruno@clisp.org>
74982
74983         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
74984         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
74985         subdirectories.
74986
74987 2007-01-08  Karl Berry  <karl@gnu.org>
74988
74989         * doc/error.texi: mention that main() fns must set program_name
74990         when progname is used.
74991
74992 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
74993
74994         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
74995         WCTYPE_H is empty, for the benefit of builds from non-distclean
74996         directories.  Problem reported by Eric Blake in
74997         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
74998
74999 2007-01-08  Bruno Haible  <bruno@clisp.org>
75000
75001         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
75002         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
75003         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
75004         PROVIDE_CANONICALIZE_FILENAME_MODE.
75005         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
75006
75007 2007-01-08  Bruno Haible  <bruno@clisp.org>
75008
75009         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
75010         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
75011         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
75012         * lib/fts.c: Likewise.
75013         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
75014
75015 2006-12-25  Bruno Haible  <bruno@clisp.org>
75016
75017         * modules/utf8-ucs4-safe: New file.
75018         * lib/utf8-ucs4-safe.h: New file.
75019         * lib/unistr/utf8-ucs4-safe.c: New file.
75020
75021         * modules/utf16-ucs4-safe: New file.
75022         * lib/utf16-ucs4-safe.h: New file.
75023         * lib/unistr/utf16-ucs4-safe.c: New file.
75024
75025         * MODULES.html.sh (Unicode string functions): Add the new modules.
75026
75027 2007-01-08  Bruno Haible  <bruno@clisp.org>
75028
75029         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
75030         (Depends-on): Add unitypes.
75031         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
75032         (u8_mbtouc_aux): Move out to separate file.
75033         (u8_mbtouc): Use ucs4_t, uint8_t types.
75034         * lib/unistr/utf8-ucs4.c: New file.
75035
75036         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
75037         (Depends-on): Add unitypes.
75038         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
75039         (u16_mbtouc_aux): Move out to separate file.
75040         (u16_mbtouc): Use ucs4_t, uint16_t types.
75041         * lib/unistr/utf16-ucs4.c: New file.
75042
75043         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
75044         (Depends-on): Add unitypes.
75045         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
75046         (u8_uctomb_aux): Move out to separate file.
75047         (u8_uctomb): Use ucs4_t, uint8_t types.
75048         * lib/unistr/ucs4-utf8.c: New file.
75049
75050         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
75051         (Depends-on): Add unitypes.
75052         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
75053         (u16_uctomb_aux): Move out to separate file.
75054         (u16_uctomb): Use ucs4_t, uint16_t types.
75055         * lib/unistr/ucs4-utf16.c: New file.
75056
75057 2006-12-25  Bruno Haible  <bruno@clisp.org>
75058
75059         * modules/unitypes: New file.
75060         * lib/unitypes.h: New file.
75061         * MODULES.html.sh (func_all_modules): New section "Unicode string
75062         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
75063         this section. Add unitypes.
75064
75065 2007-01-08  Bruno Haible  <bruno@clisp.org>
75066
75067         Avoid variable names that conflict with those from libtool.
75068         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
75069         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
75070         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
75071         library_names_spec to acl_library_names_spec, hardcode_* to
75072         acl_hardcode_*.
75073         Reported by Ralf Wildenhues.
75074
75075 2007-01-08  Bruno Haible  <bruno@clisp.org>
75076
75077         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
75078         definition.
75079         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
75080         definition.
75081         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
75082         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
75083         definition.
75084         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
75085         definition.
75086         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
75087         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
75088         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
75089         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
75090         definition.
75091         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
75092         definition.
75093         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
75094         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
75095         GC_USE_<algorithm>.
75096         * lib/gc-libgcrypt.c: Likewise.
75097         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
75098         * modules/gc-arctwo (configure.ac): Likewise.
75099         * modules/gc-des (configure.ac): Likewise.
75100         * modules/gc-hmac-md5 (configure.ac): Likewise.
75101         * modules/gc-hmac-sha1 (configure.ac): Likewise.
75102         * modules/gc-md2 (configure.ac): Likewise.
75103         * modules/gc-md4 (configure.ac): Likewise.
75104         * modules/gc-md5 (configure.ac): Likewise.
75105         * modules/gc-random (configure.ac): Likewise.
75106         * modules/gc-rijndael (configure.ac): Likewise.
75107         * modules/gc-sha1 (configure.ac): Likewise.
75108
75109 2007-01-08  Bruno Haible  <bruno@clisp.org>
75110
75111         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
75112         macro definition.
75113         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
75114         definition.
75115         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
75116         definition.
75117         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
75118         * modules/fcntl-safer (configure.ac): Likewise.
75119         * modules/fopen-safer (configure.ac): Likewise.
75120         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
75121         GNULIB_FWRITEERROR macro definition.
75122
75123 2007-01-08  Bruno Haible  <bruno@clisp.org>
75124
75125         * m4/gnulib-common.m4: New file.
75126         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
75127         (func_get_filelist): Add m4/gnulib-common.m4.
75128
75129 2007-01-08  Bruno Haible  <bruno@clisp.org>
75130
75131         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
75132         command.
75133
75134 2007-01-08  Jim Meyering  <jim@meyering.net>
75135
75136         Use a more robust test for a "can't happen" condition.
75137         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
75138         narrowed the st_size value.  Presuming the "can't happen" condition
75139         is true, that narrowing could conceivably convert an invalid st_size
75140         value into a valid one.  Instead, use a change based on Matthew
75141         Woehlke's original patch.
75142
75143         Slight readability improvement: use an assert-like macro
75144         in place of literal "abort ()" uses.
75145         * lib/fts.c (fts_assert): Define.
75146         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
75147         Use this macro instead of a bare 'abort'.
75148
75149 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
75150
75151         Don't worry about using IRIX 5.3's wctype.h broken definitions;
75152         simply work around them.
75153         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
75154         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
75155         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
75156         declaring.
75157         Don't bother to define as macros, since the standard doesn't require it.
75158         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
75159         longer worry about IRIX 5.3.
75160         (HAVE_WCTYPE_CTMP_BUG): Remove.
75161
75162 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
75163
75164         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
75165         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
75166         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
75167         Problems reported by Georg Schwarz for IRIX 5.3.
75168
75169         * gnulib-tool (autoconf_minversion): Take the maximum version number
75170         found, not the minimum.  Problem reported by James Youngman.
75171
75172 2007-01-03  Karl Berry  <karl@gnu.org>
75173
75174         * doc/error.texi: new file, explaining interaction with progname.
75175         * doc/gnulib.texi: include it.  Update copyright.
75176
75177 2007-01-03  Simon Josefsson  <simon@josefsson.org>
75178
75179         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
75180         AC_CANONICAL_HOST, to improve autobuild outputs.
75181
75182 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
75183             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
75184
75185         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
75186         sockets, server sockets, and other file descriptors.  Count errors
75187         to compute the return value.  Reorder the code a bit to be easier
75188         to follow.  Don't set event bits that were not requested (except
75189         POLLERR and POLLHUP).
75190
75191 2007-01-01  Bruno Haible  <bruno@clisp.org>
75192
75193         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
75194
75195 2007-01-03  Jim Meyering  <jim@meyering.net>
75196
75197         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
75198
75199 2007-01-02  Bruno Haible  <bruno@clisp.org>
75200
75201         * modules/settime (Include): Require timespec.h.
75202         * modules/nanosleep (Include): Likewise.
75203
75204 2007-01-01  Bruno Haible  <bruno@clisp.org>
75205
75206         * gnulib-tool (func_emit_copyright_notice): Bump year.
75207         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
75208
75209 2007-01-01  Bruno Haible  <bruno@clisp.org>
75210
75211         Improve support for OpenBSD.
75212         * build-aux/config.rpath (libname_spec): Export.
75213         (library_names_spec): New variable. Export.
75214         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
75215         library_names_spec from the config.rpath output. Locate shared library
75216         through the name pattern in library_names_spec.
75217
75218 2007-01-01  Eric Blake  <ebb9@byu.net>
75219
75220         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
75221
75222 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
75223
75224         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
75225         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
75226         assume the C locale, and avoid an "eval" that could cause trouble.
75227         Problem with SORT reported by Bob Proulx.
75228
75229         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
75230         Define.  Trivial patch from Henning Nielsen Lund, originally
75231         sent to bug-grep@gnu.org today.
75232
75233 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
75234
75235         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
75236         struct stat.  Problem reported by Henning Nielsen Lund.
75237         * lib/acl.c: Include acl.h first, to check interface.  Don't
75238         bother to include sys/types.h and sys/stat.h again.
75239
75240 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
75241
75242         Import the following change from libc; problem reported by
75243         Sven Verdoolaege.
75244
75245         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
75246
75247         [BZ #1373]
75248         * lib/argp.h: Remove __NTH for __argp_usage inline function.
75249
75250 2006-12-28  Jim Meyering  <jim@meyering.net>
75251
75252         * build-aux/announce-gen: Do not assume that the package
75253         builds any of tar.gz, tar.bz2, and .xdelta files.
75254         Suggestion from Simon Josefsson.
75255
75256 2006-12-28  Simon Josefsson  <simon@josefsson.org>
75257
75258         * modules/announce-gen: New file.
75259
75260 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
75261
75262         * lib/mbchar.h: Just include <wctype.h>; the wctype module
75263         handles its gotchas now.
75264         * lib/mbswidth.c: Likewise.
75265         * lib/wcwidth.h: Likewise.
75266         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
75267         and iswcntrl; the wctype module does this stuff now.
75268         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
75269         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
75270         * modules/mbchar (Depends-on): Add wctype.
75271         * modules/mbswidth (Depends-on): Likewise.
75272         * modules/wcwidth (Depends-on): Likewise.
75273
75274 2006-12-27  Eric Blake  <ebb9@byu.net>
75275
75276         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
75277         module uses more than what <wctype.h> is required to provide.
75278
75279 2006-12-26  Eric Blake  <ebb9@byu.net>
75280
75281         * gnulib-tool (sed_extract_prog): Avoid space-tab.
75282
75283 2006-12-26  Eric Blake  <ebb9@byu.net>
75284
75285         * modules/absolute-header: New module.
75286         * modules/fcntl (Depends-on): Depend on it.
75287         * modules/inttypes (Depends-on): Likewise.
75288         * modules/stdint (Depends-on): Likewise.
75289         * modules/sys_stat (Depends-on): Likewise.
75290         * modules/wctype (Depends-on): Likewise.
75291         * MODULES.html.sh (Support for building libraries and
75292         executables): Document it.
75293
75294 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
75295
75296         * gnulib-tool (SED): Remove, undoing previous change.
75297         The problem was that it broke coreutils on Solaris, because
75298         "sed --posix" leaked into a makefile.
75299         (sed): New alias, if 'alias' and GNU sed.
75300
75301 2006-12-24  Jim Meyering  <jim@meyering.net>
75302
75303         Work around an fchownat bug in glibc-2.4:
75304         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
75305         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
75306         in spite of the -P option.
75307         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
75308         New macros.
75309         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
75310         * modules/openat (Files): Add lib/fchownat.c.
75311         * lib/openat.c (fchownat): Don't define here.  Move to...
75312         * lib/fchownat.c: ...this new file.
75313
75314 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
75315
75316         Fix bug reported by Bruno Haible in
75317         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
75318         where quotearg.c didn't compile on Mac OS X 10.2 because it
75319         lacks <wchar.h> and wint_t.
75320         * lib/wctype_.h (__wctype_wint_t): New type.
75321         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
75322         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
75323         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
75324         Arg is now of type __wctype_wint_t, not wint_t.
75325         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
75326         substitute HAVE_WINT_T.
75327         * modules/wctype (Files): Add m4/wint_t.m4.
75328         (wctype.h): Substitute HAVE_WINT_T.
75329
75330 2006-12-23  Bruno Haible  <bruno@clisp.org>
75331
75332         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
75333
75334 2006-12-23  Bruno Haible  <bruno@clisp.org>
75335
75336         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
75337         S_ISLNK.
75338         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
75339         mingw.
75340
75341 2006-12-22  Bruno Haible  <bruno@clisp.org>
75342
75343         * lib/copy-file.c: Include acl.h.
75344         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
75345         Close the file descriptors only after being done with copy_acl.
75346         * modules/copy-file (Depends-on): Add acl.
75347
75348 2006-12-22  Bruno Haible  <bruno@clisp.org>
75349
75350         * gnulib-tool (SED): New variable.
75351         Use $SED instead of sed everywhere.
75352
75353 2006-12-22  Bruno Haible  <bruno@clisp.org>
75354
75355         * modules/no-c++: New file.
75356         * m4/no-c++.m4: New file.
75357         * MODULES.html.sh (Support for building libraries and executables):
75358         Add no-c++.
75359
75360 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
75361
75362         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
75363         Include <limits.h>, and use its INT_MAX to rewrite the
75364         j loop so that it does not overflow 'int'.  Problem reported by
75365         Ralf Wildenhues in
75366         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
75367         Play it safe by shifting left by 1 rather than multiplying by 2,
75368         as GCC is less likely to optimize this away when the value
75369         is signed (when it assumes overflow leads to undefined behavior).
75370         Also, don't assume time_t uses two's complement.
75371
75372 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
75373
75374         * MODULES.html.sh: New module wctype.
75375         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
75376         * lib/fnmatch.c: Don't bother to include <wchar.h> before
75377         <wctype.h>, since the new wctype module should fix this.
75378         * lib/quotearg.c: Include <wctype.h> unconditionally, since
75379         the wctype module should arrange for it.
75380         * lib/regex_internal.h: Likewise.
75381         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
75382         since the wctype module should handle this now.
75383         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
75384         * modules/fnmatch (Depends-on): Add wctype.
75385         * modules/quotearg (Depends-on): Likewise.
75386         * modules/regex (Depends-on): Likewise.
75387
75388 2006-12-19  Bruno Haible  <bruno@clisp.org>
75389
75390         * lib/strdup.h [C++]: Wrap definitions in extern "C".
75391         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
75392
75393 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75394
75395         * modules/savewd (Depends-on): Fix dependency on fcntl.
75396
75397 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
75398
75399         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
75400         conforms to C99, rather than relying on the user's environment
75401         setting of STDINT_H.
75402
75403 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
75404         and Eric Blake  <ebb9@byu.net>
75405
75406         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
75407         This is more consistent with the other defines here.
75408         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
75409         Port to z/OS.  Problem reported by Paul Gilmartin.
75410         Change local vars to use gl_ prefix rather than ac_.
75411         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
75412         with other defines.
75413         * modules/double-slash-root: New module.
75414         * modules/dirname (Files): Remove m4/double-slash-root.m4.
75415         (Depends-on): Add double-slash-root.
75416         * MODULES.html.sh (File system functions): Mention new module.
75417
75418 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
75419
75420         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
75421         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
75422         This is for the benefit of gzip, which doesn't do i18n.
75423
75424 2006-12-12  Jim Meyering  <jim@meyering.net>
75425
75426         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
75427         Reported by Andreas Schwab <schwab@suse.de>.
75428
75429 2006-12-12  Bruno Haible  <bruno@clisp.org>
75430
75431         Merge these changes.
75432         2006-09-05  Bruno Haible  <bruno@clisp.org>
75433         * lib/iconvme.c (iconv_string): No need to save and restore errno when
75434         iconv_alloc succeeded.
75435         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
75436         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
75437         test for " && dest " at the end - dest is always != NULL there. Call
75438         iconv with 4xNULL arguments initially, to reset the state. Call iconv
75439         with 2xNULL arguments, also to flush the state storage. Handle the
75440         IRIX iconv behaviour. Realloc the final result, to throw away unused
75441         memory.
75442
75443 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
75444
75445         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
75446         and fchmodat unconditionally, since glibc 2.4 has them.
75447         Problem reported by Arkadiusz Miskiewicz.
75448
75449 2006-12-10  Bruno Haible  <bruno@clisp.org>
75450
75451         * gnulib-tool (func_import): Show the include files only for those
75452         modules that are copied and specified.
75453         Reported by Karl Berry.
75454
75455 2006-12-08  Jim Meyering  <jim@meyering.net>
75456
75457         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
75458         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
75459
75460         * build-aux/announce-gen: Add two new options, both optional:
75461         --bootstrap-tools=TOOL_LIST
75462               a comma-separated list of tools, e.g.,
75463               autoconf,automake,bison,gnulib
75464         --gnulib-snapshot-date=DATE
75465               if gnulib is in the bootstrap tool list,
75466               then report this as the snapshot date.
75467               If not specified, use the current date/time.
75468               If you specify a date here, be sure it's UTC.
75469
75470 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75471
75472         * tests/test-argp-2.sh: Fix test to match actual output.
75473         (func_compare): Fix sed script to be portable.
75474
75475 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
75476
75477         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
75478         workaround for this case.  It is not autoconfigured now; offhand
75479         it's hard to see how to autoconfigure it.
75480
75481 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
75482
75483         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
75484         a directory that is about to be chowned.  Such a directory's
75485         initial file permissions should permit the owner only and this
75486         should not be changed until after the chown, since the group and
75487         other bits would be incorrect if they granted permission before
75488         the chown.
75489
75490         Fix porting problem for iswctype reported by Georg Schwarz in:
75491         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
75492         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
75493         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
75494         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
75495         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
75496
75497 2006-12-03  Jim Meyering  <jim@meyering.net>
75498
75499         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
75500         p->fts_statp may not yet be defined.
75501         (fts_read): Instead, set it in the caller, once p->fts_statp is
75502         sure to be defined, and corresponds to a top-level directory.
75503         This bug made du -x fail.  Here's the coreutils test case:
75504         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
75505         Reported by Mike Frysinger.
75506
75507 2006-12-01  Jim Meyering  <jim@meyering.net>
75508
75509         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
75510         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
75511         Reported by Simon Josefsson.
75512
75513 2006-11-30  Jim Meyering  <jim@meyering.net>
75514
75515         * m4/warning.m4: Use the all-permissive copyright notice
75516         recommended by RMS (rather than LGPL).
75517         * m4/vararrays.m4: Likewise.
75518         * m4/flexmember.m4: Likewise.
75519
75520 2006-11-29  Bruno Haible  <bruno@clisp.org>
75521
75522         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
75523         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
75524         using +=.
75525         Reported by Simon Josefsson <simon@josefsson.org>.
75526
75527 2006-11-28  James Youngman <jay@gnu.org>
75528
75529         * README: Advise users that they might find the bug-gnulib@gnu.org
75530         and autotools-announce@gnu.org mailing lists useful.
75531
75532 2006-11-28  Bruno Haible  <bruno@clisp.org>
75533
75534         * m4/ptrdiff_max.m4: Remove file.
75535
75536 2006-11-21  Bruno Haible  <bruno@clisp.org>
75537
75538         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
75539         _AC_COMPUTE_INT.
75540         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
75541         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
75542         _AC_COMPUTE_INT.
75543         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
75544         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
75545         _AC_COMPUTE_INT.
75546         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
75547
75548 2006-11-28  Jim Meyering  <jim@meyering.net>
75549
75550         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
75551         warning from "gcc -Wshadow" about shadowing the builtin.
75552
75553 2006-11-27  Bruno Haible  <bruno@clisp.org>
75554
75555         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
75556         _AC_COMPUTE_INT.
75557         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
75558
75559 2006-11-27  Bruno Haible  <bruno@clisp.org>
75560             Paul Eggert  <eggert@cs.ucla.edu>
75561
75562         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
75563
75564 2006-11-26  Bruno Haible  <bruno@clisp.org>
75565
75566         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
75567         noinst_LTLIBRARIES.
75568
75569 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
75570             Bruno Haible  <bruno@clisp.org>
75571
75572         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
75573         if compiling with "gcc -ansi".
75574
75575 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
75576
75577         Fix some incompatibilities with gcc -ansi -pedantic.
75578         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
75579         if compiling pedantically with GCC, unless it's C99 or later.
75580         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
75581         it mishandles gcc -ansi -pedantic as well.
75582         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
75583         if gcc -pedantic.
75584         * lib/regexec.c (check_node_accept_bytes): Don't use auto
75585         initializers for struct if -pedantic, unless it's C99 or later.
75586
75587 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
75588
75589         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
75590         Don't close an fd more than once. Identical atimes indicate
75591         success, not failure.
75592
75593 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
75594
75595         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
75596
75597 2006-11-23  Jim Meyering  <jim@meyering.net>
75598
75599         * build-aux/announce-gen: New file.  From coreutils.
75600
75601 2006-11-22  Jim Meyering  <jim@meyering.net>
75602
75603         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
75604         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
75605         (fts_read): Use a temporary to narrow the overused st_size member
75606         before using it in a switch statement.  Reported by Matthew Woehlke.
75607
75608         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
75609         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
75610
75611 2006-11-20  Bruno Haible  <bruno@clisp.org>
75612
75613         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
75614         changequote instead of pairs of brackets.
75615         Reported by Andreas Schwab <schwab@suse.de>.
75616
75617 2006-11-21  Jim Meyering  <jim@meyering.net>
75618
75619         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
75620         so as to remain compatible with older compilers.
75621         Patch from Michael Deutschmann.
75622
75623 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
75624
75625         * MODULES.html.sh (File system functions): Add openat.
75626
75627         * lib/openat.h (rpl_fstatat): New macro, if
75628         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
75629         (fstatat): Define to rpl_fstatat under the same conditions,
75630         unless COMPILING_FSTATAT.
75631         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
75632         seems to have the bug.
75633         * lib/fstatat.c: New file.
75634         * modules/openat (Files): Add it.
75635
75636 2006-11-20  Bruno Haible  <bruno@clisp.org>
75637
75638         * Makefile: New file.
75639
75640 2006-11-20  Jim Meyering  <jim@meyering.net>
75641
75642         The beginnings of syntax-related checks for gnulib.
75643         * lib/Makefile: New file.
75644         * lib/t-idcache: New script.  Ensure that the two halves of
75645         idcache.c stay in sync.
75646
75647         * lib/idcache.c: Adjust comments in user- and group- portions to
75648         be more accurate, and to be consistent with one another.
75649
75650 2006-11-20  Jim Meyering  <jim@meyering.net>
75651
75652         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
75653         continue using the flexible array member (thus, this module performs
75654         half as many malloc calls), with the addition that...
75655         (getgroup, getuser): Consistently record a non-match via an empty
75656         "name" string, and map an empty string match to a NULL return value.
75657         * modules/idcache (Depends-on): Re-add flexmember.
75658
75659         * lib/idcache.c (getuser): Remove all uses of the register keyword.
75660         (getuidbyname, getgroup, getgidbyname): Likewise.
75661
75662         Use cleaner syntax: NULL rather than 0.
75663         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
75664
75665 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
75666
75667         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
75668         It mishandled the case where the group was missing.
75669         Problem reported by Greg Schafer.
75670         * modules/idcache: Likewise.
75671
75672 2006-11-18  Jim Meyering  <jim@meyering.net>
75673
75674         * check-module (%exempt_header): Add exception for some
75675         conditionally-included headers.
75676
75677         * modules/i-ring (Depends-on): Add verify.
75678         (License): Change to LGPL.
75679
75680 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
75681
75682         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
75683         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
75684         and inttostr.h.  Use snprintf rather than uinttostr, so that
75685         LGPLed code doesn't depend on GPLed.
75686
75687 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
75688
75689         * modules/inline (License): Change from GPL to LGPL.
75690
75691 2006-11-17  Jim Meyering  <jim@meyering.net>
75692
75693         * modules/d-type (License): Switch to LGPL.
75694
75695 2006-11-15  Bruno Haible  <bruno@clisp.org>
75696
75697         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
75698
75699 2006-11-15  Eric Blake  <ebb9@byu.net>
75700
75701         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
75702         the module dependency.
75703
75704 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
75705             Bruno Haible  <bruno@clisp.org>
75706
75707         * gnulib-tool (func_create_testdir): Add license consistency check.
75708
75709 2006-11-15  Eric Blake  <ebb9@byu.net>
75710
75711         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
75712         random "(cached)" in configure output.
75713
75714 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75715
75716         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
75717         test for conforming inttypes.h is both announced and cached.
75718
75719         * MODULES.html.sh (seen_modules, seen_files): New variables.
75720         (func_module): Rewrite to use a few less gnulib-tool and sed
75721         invocations.  Avoid a couple of quadratic algorithms for ...
75722         (missed_modules, missed_files): ... these, with ...
75723         (func_append, func_tmpdir): ... these new functions, from
75724         gnulib-tool.  Analogously, install traps for cleanup.
75725
75726         * tests/test-gc.c (main): Remove unused variables.
75727         * tests/test-read-file.c: Include stdlib.h, for 'free'.
75728
75729 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
75730
75731         * modules/inttostr (License): Change to LGPL.
75732
75733 2006-11-14  Eric Blake  <ebb9@byu.net>
75734
75735         * modules/tempname (License): Change to LGPL.
75736
75737 2006-11-14  Eric Blake  <ebb9@byu.net>
75738
75739         * doc/functions.texi (Function Portability): *printf functions on
75740         Cygwin now understand all POSIX size specifiers.
75741
75742 2006-11-14  Bruno Haible  <bruno@clisp.org>
75743
75744         * modules/c-ctype (License): Change to LGPL.
75745
75746 2006-11-12  Bruno Haible  <bruno@clisp.org>
75747
75748         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
75749         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
75750         for GNOME libraries, for which the include files are installed in
75751         subdirectories of $prefix/include.
75752
75753 2006-11-12  Bruno Haible  <bruno@clisp.org>
75754
75755         * m4/lib-link.m4: Require at least autoconf-2.54.
75756         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
75757         name to underscores for the --with option.
75758
75759 2006-11-13  Bruno Haible  <bruno@clisp.org>
75760
75761         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
75762         the tests directory.
75763         Reported by Ralf Wildenhues.
75764
75765 2006-11-13  Bruno Haible  <bruno@clisp.org>
75766
75767         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
75768         (func_emit_initmacro_end): Undo the override here.
75769         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
75770         Works around the famous automake error in coreutils.
75771
75772 2006-11-13  Eric Blake  <ebb9@byu.net>
75773
75774         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
75775         element, not its node.
75776
75777 2006-11-12  Bruno Haible  <bruno@clisp.org>
75778
75779         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
75780         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
75781
75782 2006-11-12  Bruno Haible  <bruno@clisp.org>
75783
75784         * gnulib-tool: New option --local-symlink.
75785         (func_usage): Document it.
75786         (lsymbolic): New variable.
75787         (func_import, func_create_testdir): If --symlink was not specified,
75788         test whether --local-symlink was specified and the file comes from
75789         the local_gnulib_dir.
75790
75791 2006-11-12  Bruno Haible  <bruno@clisp.org>
75792
75793         * gnulib-tool (func_ln): New function.
75794         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
75795
75796 2006-11-12  Bruno Haible  <bruno@clisp.org>
75797
75798         Finish support for source files in subdirectories.
75799         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
75800         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
75801         AUTOMAKE_OPTIONS.
75802         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
75803
75804 2006-11-12  Bruno Haible  <bruno@clisp.org>
75805
75806         * gnulib-tool (func_get_automake_snippet): Synthesize also an
75807         EXTRA_lib_SOURCES augmentation.
75808         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
75809
75810 2006-11-12  Jim Meyering  <jim@meyering.net>
75811
75812         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
75813         file descriptors.  This also averts a failure on systems with
75814         native openat support when a traversed directory lacks "x" access.
75815         * lib/fts_.h: Include "i-ring.h"
75816         (struct FTS) [fts_fd_ring]: New member.
75817         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
75818         (FCHDIR): Add parentheses.
75819         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
75820         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
75821         When descending, rather than simply closing the previous
75822         fts_cwd_fd value, push that file descriptor onto the ring.
75823         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
75824         (fts_open): Initialize the new fd_ring member.
75825         (fts_close): Clear the ring.
75826         (fts_safe_changedir): When possible, use our new fd_ring to skip
75827         the diropen and fstat and dev/ino comparison that would normally
75828         accompany a virtual `chdir ("..")'.
75829
75830         * modules/fts (Depends-on): Add i-ring.
75831         * modules/i-ring: New module.
75832         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
75833         * m4/i-ring.m4: New file.
75834
75835 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75836
75837         * gnulib-tool (func_create_testdir): Fix replacement of
75838         `build-aux' in configure.ac.  Run autotools in gltests
75839         subdirectory.
75840         (func_create_testdir, func_create_megatestdir, test): There is
75841         no need for '--force' in most autotool invocations in a new
75842         tree.  Actually fail the whole test if any of the tools, or the
75843         configure or make stages fail.
75844
75845         Sync from Automake.
75846         * build-aux/gnupload: Revert last change.  Add pointer to upload
75847         instructions of the GNU Maintenance Instructions.
75848         Suggestion by Karl Berry.
75849
75850 2006-11-10  Jim Meyering  <jim@meyering.net>
75851
75852         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
75853
75854 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
75855
75856         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
75857         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
75858         (bind_textdomain_codeset) [! ENABLE_NLS]:
75859         Evaluate all the arguments.  That way, callers get compatible behavior
75860         if the arguments have side effects.  Also, it avoids some GCC
75861         diagnostics in some cases; Joel E. Denny reported problems when Bison
75862         was configured with --enable-gcc-warnigs.
75863
75864 2006-11-10  Jim Meyering  <jim@meyering.net>
75865
75866         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
75867         relevant options in CFLAGS (like -O, -fno-inline) are taken into
75868         account.
75869
75870 2006-11-10  Jim Meyering  <jim@meyering.net>
75871
75872         * modules/inline: New file/module.
75873         * modules/xalloc (Files): Remove m4/inline.m4.
75874         (Depends-on): Add inline, instead.
75875         * modules/oset: Likewise.
75876         * modules/list: Likewise.
75877
75878 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
75879
75880         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
75881         Problem reported by Matthew Woehlke.
75882
75883 2006-11-09  Bruno Haible  <bruno@clisp.org>
75884
75885         * lib/tempname.c (gen_tempname): Remove variant that invokes
75886         __gen_tempname.
75887         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
75888         __gen_tempname.
75889
75890 2006-11-08  Bruno Haible  <bruno@clisp.org>
75891
75892         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
75893         to 'yes' instead of 'cross-compiling'.
75894
75895 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
75896
75897         * lib/quotearg.h (quotearg_free): New decl.
75898         * lib/quotearg.c (quotearg_free): New function.
75899         (slot0, nslots, slotvec0, slotvec):
75900         Now file-scope so that quotearg_free can get at them.
75901
75902 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75903
75904         Sync from Automake.
75905         * build-aux/gnupload: Add missing 'gnu' to example URL.
75906         Report by Karl Berry.
75907
75908 2006-11-08  Bruno Haible  <bruno@clisp.org>
75909
75910         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
75911         Suggested by Paul Eggert.
75912
75913 2006-11-08  Jim Meyering  <jim@meyering.net>
75914
75915         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
75916         It's already included if !_LIBC.
75917         (fts_safe_changedir): Add a comment.
75918
75919 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
75920
75921         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
75922         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
75923         Matthew Woehlke.
75924
75925         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
75926         definitions up, to avoid colliding with change below.
75927         (static_inline) [HAVE_INLINE]: New macro.
75928         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
75929         Provide extern decls when !HAVE_INLINE.  Do not define unless
75930         static_inline is defined, either by us or by xmalloc.c.  Use
75931         static_inline rather than static inline.
75932         (XCALLOC): Optimize sizeof(T) = 1 case.
75933         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
75934
75935 2006-11-07  Bruno Haible  <bruno@clisp.org>
75936
75937         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
75938         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
75939         AC_C_INLINE.
75940         * modules/xalloc (Files): Add m4/inline.m4.
75941
75942 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75943
75944         * README: Fix typo.
75945         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
75946         (Miscellanous Notes): ...from this.
75947
75948 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
75949
75950         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
75951         Mention that offsetof should be used instead of sizeof.
75952         From Bruno Haible.
75953
75954 2006-11-07  Bruno Haible  <bruno@clisp.org>
75955
75956         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
75957
75958 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
75959
75960         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
75961         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
75962         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
75963         (gl_tree_add_before, gl_tree_add_after):
75964         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
75965         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
75966         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
75967         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
75968         (gl_linked_add_after, gl_linked_add_at): Likewise.
75969         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
75970         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
75971         (gl_tree_add_before, gl_tree_add_after): Likewise.
75972         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
75973         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
75974         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
75975
75976 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75977
75978         * lib/gl_oset.h: Use C comment style, not C++ comment style.
75979
75980 2006-11-06  Bruno Haible  <bruno@clisp.org>
75981
75982         * m4/inline.m4: New file.
75983         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
75984         * modules/list (Files): Add m4/inline.m4.
75985         * modules/oset (Files): Likewise.
75986
75987 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
75988
75989         * lib/idcache.c: Include <stddef.h>, for offsetof.
75990         (struct userid.name): Change from char * to a flexible array member.
75991         All uses changed.
75992         * modules/idcache (Depends-on): Add flexmember.
75993
75994         * MODULES.html.sh (Core language properties): New module flexmember.
75995         * modules/flexmember, m4/flexmember.m4: New files.
75996
75997         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
75998         inline functions that are identical with the old xnmalloc_inline,
75999         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
76000         that we can avoid some unnecessary integer multiplications and
76001         divisions in the common case where the element size is known at
76002         compile time.
76003         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
76004         needed.
76005         (xnboundedmalloc): Remove.
76006         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
76007         arguments, for consistency with rest of this header.
76008         (xcharalloc): Rewrite using XNMALLOC.
76009         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
76010         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
76011         versions have been moved to lib/xalloc.h and renamed to be the
76012         non-*_inline versions.
76013         (xmalloc, xrealloc): Implement without reference to the xnmalloc
76014         and xnrealloc functions, since those functions are now inline and
76015         now call us.
76016         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
76017         renaming described above.
76018         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
76019         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
76020         captures the dependency in AC_C_INLINE.
76021
76022         New module canonicalize-lgpl, proposed by Charles Wilson in
76023         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
76024         with a few small changes afterwards.
76025         * MODULES.html.sh (File system functions): New module
76026         canonicalize-lgpl.
76027         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
76028         and canonicalize_file_name.
76029         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
76030         * modules/canonicalize-lgpl: New files.
76031
76032 2006-11-05  Bruno Haible  <bruno@clisp.org>
76033
76034         * gnulib-tool (func_import, func_create_testdir): Create directories
76035         also for files in subdirectories of lib/.
76036
76037 2006-11-05  Bruno Haible  <bruno@clisp.org>
76038
76039         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
76040         ANSI C compliant.
76041
76042 2006-11-03  Bruno Haible  <bruno@clisp.org>
76043
76044         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
76045         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
76046         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
76047         (xnboundedmalloc): New inline function.
76048         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
76049         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
76050         xmalloc.
76051         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
76052         xmalloc.
76053         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
76054         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
76055         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
76056         xmalloc.
76057         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
76058         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
76059         xmalloc.
76060         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
76061         gl_tree_add_after): Use XMALLOC instead of xmalloc.
76062         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
76063         xmalloc.
76064         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
76065         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
76066         gl_tree_add_after): Use XMALLOC instead of xmalloc.
76067         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
76068         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
76069         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
76070         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
76071
76072 2006-11-03  Bruno Haible  <bruno@clisp.org>
76073
76074         * lib/c-ctype.h [C++]: Define functions without name mangling.
76075         * lib/fwriteerror.h [C++]: Likewise.
76076         * lib/gcd.h [C++]: Likewise.
76077         * lib/linebreak.h [C++]: Likewise.
76078
76079 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
76080
76081         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
76082         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
76083         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
76084         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
76085         Check for functions and headers just once.
76086         Check for declaration of canonicalize_file_name.
76087         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
76088
76089 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
76090
76091         * gnulib-tool (func_import): Fix typo in actioncmd.
76092
76093 2006-11-02  Bruno Haible  <bruno@clisp.org>
76094
76095         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
76096         newline sequence in the Makefile.am snippet as a space, like "make"
76097         does.
76098         Reported by Roger Persson <perrog@gmail.com>.
76099
76100 2006-11-01  Bruno Haible  <bruno@clisp.org>
76101
76102         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
76103         already declared in <string.h>.
76104         * lib/strcase.h (strncasecmp): Don't declare it if yes.
76105
76106 2006-11-01  Bruno Haible  <bruno@clisp.org>
76107
76108         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
76109         * lib/strcase.h: Include <string.h>.
76110         (strcasecmp): Define to rpl_strcasecmp here.
76111
76112 2006-11-01  Bruno Haible  <bruno@clisp.org>
76113
76114         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
76115
76116 2006-11-01  Eric Blake  <ebb9@byu.net>
76117
76118         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
76119
76120         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
76121
76122 2006-10-29  Bruno Haible  <bruno@clisp.org>
76123
76124         Make it compile in C++ mode.
76125         * lib/full-write.c (full_rw): Add a cast.
76126
76127 2006-11-01  Bruno Haible  <bruno@clisp.org>
76128
76129         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
76130         be POSIX compliant.
76131         Reported by Roger Persson <perrog@gmail.com>.
76132
76133 2006-11-01  Eric Blake  <ebb9@byu.net>
76134
76135         * lib/getopt_.h: Fix comments.
76136
76137 2006-10-31  Eric Blake  <ebb9@byu.net>
76138
76139         * modules/tmpdir (Depends-on): Add sys_stat.
76140         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
76141         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
76142         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
76143         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
76144         tempname.
76145
76146 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
76147
76148         Avoid some C++ diagnostics reported by Bruno Haible.
76149         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
76150         xmalloc.
76151         (quotearg_alloc): Use xcharalloc rather than xmalloc.
76152         (struct slotvec): Move to top level.
76153         (quotearg_n_options): Rewrite to avoid xmalloc.
76154         * lib/xalloc.h (xcharalloc): New function.
76155         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
76156         [defined __cplusplus]: Add function template that provides result
76157         type propagation.  This part of the change is from Bruno Haible.
76158
76159 2006-10-29  Bruno Haible  <bruno@clisp.org>
76160
76161         Make it compile in C++ mode.
76162         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
76163         * lib/strnlen1.c (strnlen1): Cast memchr result.
76164         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
76165         * lib/clean-temp.c (string_equals, string_hash): Add casts.
76166         (create_temp_dir): Rename local variable 'template'.
76167         (compile_csharp_using_sscli): Add cast.
76168         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
76169         * lib/findprog.c (find_in_path): Likewise.
76170         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
76171         * lib/wait-process.c (register_slave_subprocess): Likewise.
76172
76173 2006-10-22  Bruno Haible  <bruno@clisp.org>
76174
76175         * modules/tsearch: New file.
76176         * lib/tsearch.h: New file.
76177         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
76178         * m4/tsearch.m4: New file.
76179         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
76180
76181 2006-10-29  Eric Blake  <ebb9@byu.net>
76182
76183         * lib/arcfour.c: Assume config.h.
76184         * lib/arctwo.c: Likewise.
76185         * lib/base64.c: Likewise.
76186         * lib/check-version.c: Likewise.
76187         * lib/crc.c: Likewise.
76188         * lib/des.c: Likewise.
76189         * lib/gc-gnulib.c: Likewise.
76190         * lib/gc-libgcrypt.c: Likewise.
76191         * lib/gc-pbkdf2-sha1.c: Likewise.
76192         * lib/getaddrinfo.c: Likewise.
76193         * lib/getdelim.c: Likewise.
76194         * lib/getline.c: Likewise.
76195         * lib/hmac-md5.c: Likewise.
76196         * lib/hmac-sha1.c: Likewise.
76197         * lib/iconvme.c: Likewise.
76198         * lib/md2.c: Likewise.
76199         * lib/md4.c: Likewise.
76200         * lib/memxor.c: Likewise.
76201         * lib/read-file.c: Likewise.
76202         * lib/readline.c: Likewise.
76203         * lib/rijndael-alg-fst.c: Likewise.
76204         * lib/rijndael-api-fst.c: Likewise.
76205         * lib/xgetdomainname.c: Likewise.
76206
76207 2006-10-28  Eric Blake  <ebb9@byu.net>
76208
76209         * lib/xstrndup.c: Assume config.h.
76210
76211 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
76212
76213         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
76214         stat-macros.h is now for our own macros, whereas stat_h is for
76215         macros in the <sys/stat.h> name space.
76216         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
76217         (STAT_MACROS_H): Remove.
76218         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
76219         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
76220         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
76221         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
76222         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
76223         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
76224         Move these macros to ...
76225         * lib/stat_.h: here.  Don't include stat-macros.h.
76226         * lib/canonicalize.c: Don't include stat-macros.h.
76227         * lib/chown.c: Likewise.
76228         * lib/euidaccess.c: Likewise.
76229         * lib/file-type.c: Likewise.
76230         * lib/filemode.c: Likewise.
76231         * lib/glob.c: Likewise.
76232         * lib/isapipe.c: Likewise.
76233         * lib/lchown.c: Likewise.
76234         * lib/lstat.c: Likewise.
76235         * lib/mkdir-p.c: Likewise.
76236         * lib/rmdir.c: Likewise.
76237         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
76238         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
76239         unless mkdir isn't declared, to speed up 'configure'.
76240         Always create sys/stat.h, since it's unlikely any real sys/stat.h
76241         would define all the S_* symbols.
76242         * modules/canonicalize (Depends-on):
76243         Depend on sys_stat, not stat-macros.
76244         * modules/chown: Likewise.
76245         * modules/euidaccess: Likewise.
76246         * modules/filemode: Likewise.
76247         * modules/file-type: Likewise.
76248         * modules/glob: Likewise.
76249         * modules/isapipe: Likewise.
76250         * modules/lchown: Likewise.
76251         * modules/lstat: Likewise.
76252         * modules/mkancesdirs: Likewise.
76253         * modules/rmdir: Likewise.
76254         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
76255         * modules/modechange: Likewise.
76256         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
76257         (configure.ac): Remove gl_STAT_MACROS.
76258         * modules/sys_stat (Depends-on): Remove stat-macros.
76259
76260 2006-10-27  Bruno Haible  <bruno@clisp.org>
76261
76262         * m4/signed.m4: Remove file.
76263         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
76264         invocation.
76265         * modules/vasnprintf (Files): Remove m4/signed.m4.
76266
76267 2006-10-27  Bruno Haible  <bruno@clisp.org>
76268
76269         Update to GNU gettext 0.16.
76270         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
76271         m4/inttypes-h.m4, m4/signed.m4.
76272         * m4/gettext.m4: Update to GNU gettext 0.16.
76273         * m4/intl.m4: New file, from GNU gettext.
76274         * m4/intldir.m4: New file, from GNU gettext.
76275         * config/srclist.txt: Update
76276
76277 2006-10-27  Eric Blake  <ebb9@byu.net>
76278
76279         * MODULES.html.sh: Document tempname.
76280         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
76281         dependencies.
76282         (Files): Move lib/tempname.c...
76283         * modules/tempname: ...to this new module.
76284         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
76285         (gl_PREREQ_TEMPNAME): Move...
76286         * m4/tempname.m4: ...to this new file.
76287         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
76288         * modules/sys_stat (Depends-on): Add stat-macros.
76289         * lib/stat_.h (includes): Pick up stat macros.
76290         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
76291         if stat macros are broken.
76292         * lib/tempname.c (includes): No need to include "stat-macros.h".
76293         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
76294         (direxists, __path_search) [!_LIBC]: Don't compile these in
76295         gnulib; the tmpdir module covers that.
76296         * lib/tempname.h: New file.
76297
76298 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
76299
76300         * COPYING: Explain how gnulib-tool converts licence headers.
76301         Almost all wording by Eric Blake.
76302
76303 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
76304
76305         * lib/mbchar.h (is_basic_table): Make read-only.
76306         * lib/mbchar.c (is_basic_table): Likewise.
76307         Reported by John Darrington.
76308
76309 2006-10-25  Bruno Haible  <bruno@clisp.org>
76310
76311         * lib/progname.h (set_program_name): Undefine before defining.
76312
76313 2006-10-25  Bruno Haible  <bruno@clisp.org>
76314
76315         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
76316         false for non-gcc C++ compilers.
76317         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
76318
76319 2006-10-24  Bruno Haible  <bruno@clisp.org>
76320
76321         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
76322         iconv implementations like Irix iconv.
76323
76324 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
76325
76326         * modules/vararrays: New file.
76327         * m4/vararrays.m4: New file, taken from diffutils.
76328         * MODULES.html.sh: New module vararrays.
76329
76330 2006-10-24  Karl Berry  <karl@gnu.org>
76331
76332         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
76333         Don't call GNU Unix.
76334
76335 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76336
76337         * users.txt: Add Libtool.
76338
76339         Sync from Libtool:
76340
76341         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
76342
76343         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
76344         to gnulib's policy of including config.h unconditionally.
76345
76346 2006-10-24  Bruno Haible  <bruno@clisp.org>
76347
76348         * modules/wcwidth (Files): Add m4/wint_t.m4.
76349         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
76350         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
76351
76352 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
76353
76354         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
76355         to pacify GCC with some -W flags enabled.  Problem reported by
76356         Bruno Haible.
76357
76358 2006-10-24  Jim Meyering  <jim@meyering.net>
76359
76360         * MODULES.html.sh: Remove uinttostr.  It's not a module.
76361         Reported by Karl Berry.
76362
76363 2006-10-23  Bruno Haible  <bruno@clisp.org>
76364
76365         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
76366
76367 2006-10-24  Bruno Haible  <bruno@clisp.org>
76368
76369         * lib/gl_list.h: Use C comment style, not C++ comment style.
76370
76371 2006-10-23  Eric Blake  <ebb9@byu.net>
76372
76373         * lib/getaddrinfo.c (includes): Add missing include.
76374
76375 2006-10-23  Bruno Haible  <bruno@clisp.org>
76376             Paul Eggert  <eggert@cs.ucla.edu>
76377
76378         Ability to rename obstack_free.
76379         * lib/obstack.h (__obstack_free): New macro. Declare instead of
76380         obstack_free.
76381         (obstack_free): Invoke the __obstack_free macro.
76382         * lib/obstack.c (obstack_free): Use __obstack_free macro.
76383
76384 2006-10-23  Bruno Haible  <bruno@clisp.org>
76385             Paul Eggert  <eggert@cs.ucla.edu>
76386
76387         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
76388         __argc, __argv from the declaration. (They are defined as macros on
76389         mingw.)
76390
76391 2006-10-22  Bruno Haible  <bruno@clisp.org>
76392
76393         * doc/gnulib-intro.texi: New file.
76394         * doc/gnulib.texi: Include it.
76395
76396 2006-10-21  Bruno Haible  <bruno@clisp.org>
76397
76398         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
76399         "Introduction", "Miscellanous Notes", "Particular Modules".
76400
76401 2006-10-21  Bruno Haible  <bruno@clisp.org>
76402
76403         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
76404         Change mostlyclean-local rule to avoid sh syntax error from bash
76405         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
76406
76407 2006-10-23  Jim Meyering  <jim@meyering.net>
76408
76409         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
76410         in place of snprintf.
76411
76412         * modules/inttostr (Files): Add lib/uinttostr.c.
76413         * lib/uinttostr.c (inttostr): New file/function.
76414         * lib/inttostr.h (uinttostr): Declare.
76415         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
76416         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
76417         Add uinttostr.
76418         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
76419
76420 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
76421
76422         * lib/canonicalize.c (ELOOP): Define if not already defined.
76423         Problem reported by Bruno Haible in
76424         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
76425
76426 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
76427
76428         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
76429         Problem reported by Perry Smith and Ville Laurikari.
76430
76431         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
76432         uses.
76433
76434 2006-10-19  Bruno Haible  <bruno@clisp.org>
76435
76436         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
76437         for mingw.
76438
76439 2006-10-19  Bruno Haible  <bruno@clisp.org>
76440
76441         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
76442         Needed for mingw.
76443
76444 2006-10-19  Bruno Haible  <bruno@clisp.org>
76445
76446         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
76447
76448 2006-10-19  Bruno Haible  <bruno@clisp.org>
76449
76450         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
76451         it.
76452
76453 2006-10-19  Bruno Haible  <bruno@clisp.org>
76454
76455         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
76456         invocation.
76457
76458 2006-10-19  Bruno Haible  <bruno@clisp.org>
76459
76460         * gnulib-tool (func_create_testdir): Don't include ftruncate and
76461         mountlist by default.
76462
76463 2006-10-16  Bruno Haible  <bruno@clisp.org>
76464
76465         * lib/c-strstr.c: Include c-strstr.h.
76466
76467 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
76468
76469         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
76470         in a slash.
76471
76472 2006-10-18  Bruno Haible  <bruno@clisp.org>
76473
76474         * lib/lock.h [C++]: Wrap definitions in extern "C".
76475
76476 2006-10-18  Bruno Haible  <bruno@clisp.org>
76477
76478         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
76479         gl_LIBOBJS list.
76480
76481 2006-10-18  Bruno Haible  <bruno@clisp.org>
76482
76483         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
76484
76485 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
76486
76487         * lib/xstrtol.h: Include gettext.h.
76488         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
76489         Problem reported by Eric Blake.
76490         * modules/xstrtol (Depends-on): Add gettext-h.
76491
76492 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
76493
76494         * lib/strftime.c (advance): New macro.
76495         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
76496         incomplete type, so you can't add 0 to it.  Problem and patch
76497         reported by Eelco Dolstra for dietlibc.
76498
76499 2006-10-18  Jim Meyering  <jim@meyering.net>
76500
76501         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
76502         type for a local, and rename it: s/up/user_proc/.
76503
76504 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
76505
76506         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
76507         READ_UTMP_USER_PROCESS.
76508         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
76509
76510 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
76511
76512         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
76513         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
76514
76515 2006-10-17  Eric Blake  <ebb9@byu.net>
76516
76517         * lib/sigprocmask.c (sigprocmask): Fix typo.
76518
76519         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
76520
76521         * modules/clean-temp (Makefile.am): Don't add to make output...
76522         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
76523         config.h.
76524
76525 2006-10-17  Bruno Haible  <bruno@clisp.org>
76526
76527         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
76528         differently if DEFAULT_TEXT_DOMAIN is set.
76529
76530 2006-10-16  Bruno Haible  <bruno@clisp.org>
76531
76532         * lib/clean-temp.c: Include fwriteerror.h.
76533
76534 2006-10-16  Bruno Haible  <bruno@clisp.org>
76535
76536         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
76537
76538 2006-10-16  Bruno Haible  <bruno@clisp.org>
76539
76540         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
76541         * lib/sigprocmask.h: Include <sys/types.h>.
76542         (sigset_t): Use the system's definition if present.
76543
76544 2006-10-17  Eric Blake  <ebb9@byu.net>
76545
76546         * lib/xvasprintf.c (includes): Assume config.h.
76547         * lib/xasprintf.c (includes): Likewise.
76548
76549 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
76550
76551         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
76552         at least as wide as intmax_t.
76553
76554 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
76555
76556         (Imported from Automake.)
76557         * build-aux/gnupload: Update to version 1.1 of directive file.
76558
76559 2006-10-16  Eric Blake  <ebb9@byu.net>
76560
76561         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
76562         match Automake 1.10a.
76563
76564 2006-10-14  Bruno Haible  <bruno@clisp.org>
76565
76566         * modules/sigprocmask: New file.
76567         * lib/sigprocmask.h: New file.
76568         * lib/sigprocmask.c: New file.
76569         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
76570         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
76571         request sigprocmask.o.
76572         (gl_PREREQ_SIGPROCMASK): New macro.
76573         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
76574         (Depends-on): Add sigprocmask.
76575         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
76576         gt_SIGNALBLOCKING. Test for 'raise' only once.
76577         * lib/fatal-signal.c: Include sigprocmask.h.
76578         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
76579         unblock_fatal_signals): Define always.
76580         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
76581         sigprocmask.
76582
76583 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
76584
76585         Sync from Automake.
76586         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
76587         which incorrectly sets the mode of an existing destination
76588         directory.  In some cases the unpatched install-sh could do the
76589         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
76590         system.  We hope this is rare in practice, but it's clearly worth
76591         fixing.  Problem reported by Alex Unleashed in
76592         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
76593         Also, don't bother to check for -m bugs unless we're using -m;
76594         suggested by Stepan Kasal.
76595
76596 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76597
76598         Sync from Automake.
76599         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
76600         `-c' flag, so they appear at the same position as in %FASTDEP%
76601         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
76602         which ignores unknown options only after the first non-option.
76603         Bug report against M4 by Nelson H. F. Beebe.
76604
76605 2006-10-13  Jim Meyering  <jim@meyering.net>
76606
76607         Fix a bug in yesterday's change.
76608         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
76609         p->fts_statp->st_dev would be used uninitialized.
76610         Ensures that we always call fts_stat on the very first entry.
76611         Miklos Szeredi reported that find -xdev stopped working.
76612
76613 2006-10-12  Bruno Haible  <bruno@clisp.org>
76614
76615         * gnulib-tool (func_get_automake_snippet): Append an automatically
76616         computed EXTRA_DIST augmentation.
76617         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
76618         * modules/alloca-opt (Makefile.am): Likewise.
76619         * modules/allocsa (Makefile.am): Likewise.
76620         * modules/arcfour (Makefile.am): Likewise.
76621         * modules/arctwo (Makefile.am): Likewise.
76622         * modules/argmatch (Makefile.am): Likewise.
76623         * modules/argz (Makefile.am): Likewise.
76624         * modules/atexit (Makefile.am): Likewise.
76625         * modules/backupfile (Makefile.am): Likewise.
76626         * modules/byteswap (Makefile.am): Likewise.
76627         * modules/c-strtod (Makefile.am): Likewise.
76628         * modules/c-strtold (Makefile.am): Likewise.
76629         * modules/calloc (Makefile.am): Likewise.
76630         * modules/canon-host (Makefile.am): Likewise.
76631         * modules/canonicalize (Makefile.am): Likewise.
76632         * modules/chdir-long (Makefile.am): Likewise.
76633         * modules/chdir-safer (Makefile.am): Likewise.
76634         * modules/check-version (Makefile.am): Likewise.
76635         * modules/chown (Makefile.am): Likewise.
76636         * modules/cloexec (Makefile.am): Likewise.
76637         * modules/close-stream (Makefile.am): Likewise.
76638         * modules/closeout (Makefile.am): Likewise.
76639         * modules/crc (Makefile.am): Likewise.
76640         * modules/csharpexec (Makefile.am): Likewise.
76641         * modules/cycle-check (Makefile.am): Likewise.
76642         * modules/des (Makefile.am): Likewise.
76643         * modules/dev-ino (Makefile.am): Likewise.
76644         * modules/dirfd (Makefile.am): Likewise.
76645         * modules/dirname (Makefile.am): Likewise.
76646         * modules/dup2 (Makefile.am): Likewise.
76647         * modules/eealloc (Makefile.am): Likewise.
76648         * modules/error (Makefile.am): Likewise.
76649         * modules/euidaccess (Makefile.am): Likewise.
76650         * modules/exclude (Makefile.am): Likewise.
76651         * modules/exitfail (Makefile.am): Likewise.
76652         * modules/fcntl-safer (Makefile.am): Likewise.
76653         * modules/fcntl (Makefile.am): Likewise.
76654         * modules/file-type (Makefile.am): Likewise.
76655         * modules/fileblocks (Makefile.am): Likewise.
76656         * modules/filemode (Makefile.am): Likewise.
76657         * modules/filenamecat (Makefile.am): Likewise.
76658         * modules/fnmatch (Makefile.am): Likewise.
76659         * modules/fopen-safer (Makefile.am): Likewise.
76660         * modules/fpending (Makefile.am): Likewise.
76661         * modules/fprintftime (Makefile.am): Likewise.
76662         * modules/free (Makefile.am): Likewise.
76663         * modules/fsusage (Makefile.am): Likewise.
76664         * modules/ftruncate (Makefile.am): Likewise.
76665         * modules/fts (Makefile.am): Likewise.
76666         * modules/gc-arcfour (Makefile.am): Likewise.
76667         * modules/gc-des (Makefile.am): Likewise.
76668         * modules/gc-hmac-md5 (Makefile.am): Likewise.
76669         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
76670         * modules/gc-md4 (Makefile.am): Likewise.
76671         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
76672         * modules/gc-sha1 (Makefile.am): Likewise.
76673         * modules/gc (Makefile.am): Likewise.
76674         * modules/getaddrinfo (Makefile.am): Likewise.
76675         * modules/getcwd (Makefile.am): Likewise.
76676         * modules/getdelim (Makefile.am): Likewise.
76677         * modules/getdomainname (Makefile.am): Likewise.
76678         * modules/getgroups (Makefile.am): Likewise.
76679         * modules/gethostname (Makefile.am): Likewise.
76680         * modules/gethrxtime (Makefile.am): Likewise.
76681         * modules/getline (Makefile.am): Likewise.
76682         * modules/getloadavg (Makefile.am): Likewise.
76683         * modules/getlogin_r (Makefile.am): Likewise.
76684         * modules/getndelim2 (Makefile.am): Likewise.
76685         * modules/getopt (Makefile.am): Likewise.
76686         * modules/getpagesize (Makefile.am): Likewise.
76687         * modules/getpass-gnu (Makefile.am): Likewise.
76688         * modules/getpass (Makefile.am): Likewise.
76689         * modules/getsubopt (Makefile.am): Likewise.
76690         * modules/gettime (Makefile.am): Likewise.
76691         * modules/gettimeofday (Makefile.am): Likewise.
76692         * modules/getugroups (Makefile.am): Likewise.
76693         * modules/getusershell (Makefile.am): Likewise.
76694         * modules/glob (Makefile.am): Likewise.
76695         * modules/group-member (Makefile.am): Likewise.
76696         * modules/hard-locale (Makefile.am): Likewise.
76697         * modules/hash (Makefile.am): Likewise.
76698         * modules/hmac-md5 (Makefile.am): Likewise.
76699         * modules/hmac-sha1 (Makefile.am): Likewise.
76700         * modules/human (Makefile.am): Likewise.
76701         * modules/idcache (Makefile.am): Likewise.
76702         * modules/imaxabs (Makefile.am): Likewise.
76703         * modules/imaxdiv (Makefile.am): Likewise.
76704         * modules/inet_ntop (Makefile.am): Likewise.
76705         * modules/inet_pton (Makefile.am): Likewise.
76706         * modules/intprops (Makefile.am): Likewise.
76707         * modules/inttostr (Makefile.am): Likewise.
76708         * modules/inttypes (Makefile.am): Likewise.
76709         * modules/isapipe (Makefile.am): Likewise.
76710         * modules/javaversion (Makefile.am): Likewise.
76711         * modules/lchmod (Makefile.am): Likewise.
76712         * modules/lchown (Makefile.am): Likewise.
76713         * modules/localcharset (Makefile.am): Likewise.
76714         * modules/long-options (Makefile.am): Likewise.
76715         * modules/lstat (Makefile.am): Likewise.
76716         * modules/malloc (Makefile.am): Likewise.
76717         * modules/mathl (Makefile.am): Likewise.
76718         * modules/mbchar (Makefile.am): Likewise.
76719         * modules/md2 (Makefile.am): Likewise.
76720         * modules/md4 (Makefile.am): Likewise.
76721         * modules/md5 (Makefile.am): Likewise.
76722         * modules/memcasecmp (Makefile.am): Likewise.
76723         * modules/memchr (Makefile.am): Likewise.
76724         * modules/memcmp (Makefile.am): Likewise.
76725         * modules/memcoll (Makefile.am): Likewise.
76726         * modules/memcpy (Makefile.am): Likewise.
76727         * modules/memmem (Makefile.am): Likewise.
76728         * modules/memmove (Makefile.am): Likewise.
76729         * modules/mempcpy (Makefile.am): Likewise.
76730         * modules/memrchr (Makefile.am): Likewise.
76731         * modules/memset (Makefile.am): Likewise.
76732         * modules/memxor (Makefile.am): Likewise.
76733         * modules/mkancesdirs (Makefile.am): Likewise.
76734         * modules/mkdir-p (Makefile.am): Likewise.
76735         * modules/mkdir (Makefile.am): Likewise.
76736         * modules/mkdtemp (Makefile.am): Likewise.
76737         * modules/mkstemp (Makefile.am): Likewise.
76738         * modules/mktime (Makefile.am): Likewise.
76739         * modules/modechange (Makefile.am): Likewise.
76740         * modules/mountlist (Makefile.am): Likewise.
76741         * modules/nanosleep (Makefile.am): Likewise.
76742         * modules/obstack (Makefile.am): Likewise.
76743         * modules/openat (Makefile.am): Likewise.
76744         * modules/pagealign_alloc (Makefile.am): Likewise.
76745         * modules/pathmax (Makefile.am): Likewise.
76746         * modules/physmem (Makefile.am): Likewise.
76747         * modules/poll (Makefile.am): Likewise.
76748         * modules/posixtm (Makefile.am): Likewise.
76749         * modules/posixver (Makefile.am): Likewise.
76750         * modules/putenv (Makefile.am): Likewise.
76751         * modules/quote (Makefile.am): Likewise.
76752         * modules/quotearg (Makefile.am): Likewise.
76753         * modules/raise (Makefile.am): Likewise.
76754         * modules/read-file (Makefile.am): Likewise.
76755         * modules/readline (Makefile.am): Likewise.
76756         * modules/readlink (Makefile.am): Likewise.
76757         * modules/readtokens (Makefile.am): Likewise.
76758         * modules/readutmp (Makefile.am): Likewise.
76759         * modules/realloc (Makefile.am): Likewise.
76760         * modules/regex (Makefile.am): Likewise.
76761         * modules/rename-dest-slash (Makefile.am): Likewise.
76762         * modules/rename (Makefile.am): Likewise.
76763         * modules/rijndael (Makefile.am): Likewise.
76764         * modules/rmdir (Makefile.am): Likewise.
76765         * modules/rpmatch (Makefile.am): Likewise.
76766         * modules/safe-read (Makefile.am): Likewise.
76767         * modules/safe-write (Makefile.am): Likewise.
76768         * modules/same-inode (Makefile.am): Likewise.
76769         * modules/same (Makefile.am): Likewise.
76770         * modules/save-cwd (Makefile.am): Likewise.
76771         * modules/savedir (Makefile.am): Likewise.
76772         * modules/setenv (Makefile.am): Likewise.
76773         * modules/settime (Makefile.am): Likewise.
76774         * modules/sha1 (Makefile.am): Likewise.
76775         * modules/sig2str (Makefile.am): Likewise.
76776         * modules/snprintf (Makefile.am): Likewise.
76777         * modules/stat-macros (Makefile.am): Likewise.
76778         * modules/stat-time (Makefile.am): Likewise.
76779         * modules/stdbool (Makefile.am): Likewise.
76780         * modules/stdint (Makefile.am): Likewise.
76781         * modules/stdlib-safer (Makefile.am): Likewise.
76782         * modules/stpcpy (Makefile.am): Likewise.
76783         * modules/stpncpy (Makefile.am): Likewise.
76784         * modules/strcase (Makefile.am): Likewise.
76785         * modules/strcasestr (Makefile.am): Likewise.
76786         * modules/strchrnul (Makefile.am): Likewise.
76787         * modules/strcspn (Makefile.am): Likewise.
76788         * modules/strdup (Makefile.am): Likewise.
76789         * modules/strerror (Makefile.am): Likewise.
76790         * modules/strftime (Makefile.am): Likewise.
76791         * modules/strndup (Makefile.am): Likewise.
76792         * modules/strnlen (Makefile.am): Likewise.
76793         * modules/strpbrk (Makefile.am): Likewise.
76794         * modules/strsep (Makefile.am): Likewise.
76795         * modules/strstr (Makefile.am): Likewise.
76796         * modules/strtod (Makefile.am): Likewise.
76797         * modules/strtoimax (Makefile.am): Likewise.
76798         * modules/strtok_r (Makefile.am): Likewise.
76799         * modules/strtol (Makefile.am): Likewise.
76800         * modules/strtoll (Makefile.am): Likewise.
76801         * modules/strtoul (Makefile.am): Likewise.
76802         * modules/strtoull (Makefile.am): Likewise.
76803         * modules/strtoumax (Makefile.am): Likewise.
76804         * modules/strverscmp (Makefile.am): Likewise.
76805         * modules/sys_socket (Makefile.am): Likewise.
76806         * modules/sys_stat (Makefile.am): Likewise.
76807         * modules/sysexits (Makefile.am): Likewise.
76808         * modules/time_r (Makefile.am): Likewise.
76809         * modules/timegm (Makefile.am): Likewise.
76810         * modules/timespec (Makefile.am): Likewise.
76811         * modules/tmpfile-safer (Makefile.am): Likewise.
76812         * modules/trim (Makefile.am): Likewise.
76813         * modules/unistd-safer (Makefile.am): Likewise.
76814         * modules/unlinkdir (Makefile.am): Likewise.
76815         * modules/unlocked-io (Makefile.am): Likewise.
76816         * modules/userspec (Makefile.am): Likewise.
76817         * modules/utime (Makefile.am): Likewise.
76818         * modules/utimecmp (Makefile.am): Likewise.
76819         * modules/utimens (Makefile.am): Likewise.
76820         * modules/vasnprintf (Makefile.am): Likewise.
76821         * modules/vasprintf (Makefile.am): Likewise.
76822         * modules/vsnprintf (Makefile.am): Likewise.
76823         * modules/xalloc (Makefile.am): Likewise.
76824         * modules/xgetcwd (Makefile.am): Likewise.
76825         * modules/xnanosleep (Makefile.am): Likewise.
76826         * modules/xreadlink (Makefile.am): Likewise.
76827         * modules/xstrtod (Makefile.am): Likewise.
76828         * modules/xstrtol (Makefile.am): Likewise.
76829         * modules/xstrtold (Makefile.am): Likewise.
76830         * modules/yesno (Makefile.am): Likewise.
76831         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
76832
76833 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
76834
76835         * modules/error (Makefile.am): Distribute files through
76836         EXTRA_DIST, not lib_SOURCES.
76837
76838 2006-10-12  Eric Blake  <ebb9@byu.net>
76839
76840         * modules/error (Makefile.am): Distribute files in /lib.
76841         * modules/obstack (Makefile.am): Likewise.
76842
76843 2006-10-12  Bruno Haible  <bruno@clisp.org>
76844
76845         * modules/acl (Makefile.am): Distribute all files in lib/ through
76846         EXTRA_DIST.
76847         * modules/arcfour (Makefile.am): Likewise.
76848         * modules/arctwo (Makefile.am): Likewise.
76849         * modules/argmatch (Makefile.am): Likewise.
76850         * modules/argz (Makefile.am): Likewise.
76851         * modules/atexit (Makefile.am): Likewise.
76852         * modules/backupfile (Makefile.am): Likewise.
76853         * modules/c-strtod (Makefile.am): Likewise.
76854         * modules/c-strtold (Makefile.am): Likewise.
76855         * modules/calloc (Makefile.am): Likewise.
76856         * modules/canon-host (Makefile.am): Likewise.
76857         * modules/canonicalize (Makefile.am): Likewise.
76858         * modules/chdir-long (Makefile.am): Likewise.
76859         * modules/chdir-safer (Makefile.am): Likewise.
76860         * modules/check-version (Makefile.am): Likewise.
76861         * modules/chown (Makefile.am): Likewise.
76862         * modules/cloexec (Makefile.am): Likewise.
76863         * modules/close-stream (Makefile.am): Likewise.
76864         * modules/closeout (Makefile.am): Likewise.
76865         * modules/crc (Makefile.am): Likewise.
76866         * modules/cycle-check (Makefile.am): Likewise.
76867         * modules/des (Makefile.am): Likewise.
76868         * modules/dirfd (Makefile.am): Likewise.
76869         * modules/dirname (Makefile.am): Likewise.
76870         * modules/dup2 (Makefile.am): Likewise.
76871         * modules/euidaccess (Makefile.am): Likewise.
76872         * modules/exclude (Makefile.am): Likewise.
76873         * modules/exitfail (Makefile.am): Likewise.
76874         * modules/fcntl-safer (Makefile.am): Likewise.
76875         * modules/file-type (Makefile.am): Likewise.
76876         * modules/fileblocks (Makefile.am): Likewise.
76877         * modules/filemode (Makefile.am): Likewise.
76878         * modules/filenamecat (Makefile.am): Likewise.
76879         * modules/fnmatch (Makefile.am): Likewise.
76880         * modules/fopen-safer (Makefile.am): Likewise.
76881         * modules/fpending (Makefile.am): Likewise.
76882         * modules/fprintftime (Makefile.am): Likewise.
76883         * modules/free (Makefile.am): Likewise.
76884         * modules/fsusage (Makefile.am): Likewise.
76885         * modules/ftruncate (Makefile.am): Likewise.
76886         * modules/fts (Makefile.am): Likewise.
76887         * modules/gc (Makefile.am): Likewise.
76888         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
76889         * modules/getaddrinfo (Makefile.am): Likewise.
76890         * modules/getcwd (Makefile.am): Likewise.
76891         * modules/getdelim (Makefile.am): Likewise.
76892         * modules/getdomainname (Makefile.am): Likewise.
76893         * modules/getgroups (Makefile.am): Likewise.
76894         * modules/gethostname (Makefile.am): Likewise.
76895         * modules/gethrxtime (Makefile.am): Likewise.
76896         * modules/getline (Makefile.am): Likewise.
76897         * modules/getloadavg (Makefile.am): Likewise.
76898         * modules/getlogin_r (Makefile.am): Likewise.
76899         * modules/getopt (Makefile.am): Likewise.
76900         * modules/getpass (Makefile.am): Likewise.
76901         * modules/getpass-gnu (Makefile.am): Likewise.
76902         * modules/getsubopt (Makefile.am): Likewise.
76903         * modules/gettime (Makefile.am): Likewise.
76904         * modules/gettimeofday (Makefile.am): Likewise.
76905         * modules/getugroups (Makefile.am): Likewise.
76906         * modules/getusershell (Makefile.am): Likewise.
76907         * modules/glob (Makefile.am): Likewise.
76908         * modules/group-member (Makefile.am): Likewise.
76909         * modules/hard-locale (Makefile.am): Likewise.
76910         * modules/hash (Makefile.am): Likewise.
76911         * modules/hmac-md5 (Makefile.am): Likewise.
76912         * modules/hmac-sha1 (Makefile.am): Likewise.
76913         * modules/human (Makefile.am): Likewise.
76914         * modules/idcache (Makefile.am): Likewise.
76915         * modules/imaxabs (Makefile.am): Likewise.
76916         * modules/imaxdiv (Makefile.am): Likewise.
76917         * modules/inet_ntop (Makefile.am): Likewise.
76918         * modules/inet_pton (Makefile.am): Likewise.
76919         * modules/inttostr (Makefile.am): Likewise.
76920         * modules/isapipe (Makefile.am): Likewise.
76921         * modules/lchown (Makefile.am): Likewise.
76922         * modules/long-options (Makefile.am): Likewise.
76923         * modules/lstat (Makefile.am): Likewise.
76924         * modules/malloc (Makefile.am): Likewise.
76925         * modules/mathl (Makefile.am): Likewise.
76926         * modules/mbchar (Makefile.am): Likewise.
76927         * modules/md2 (Makefile.am): Likewise.
76928         * modules/md4 (Makefile.am): Likewise.
76929         * modules/md5 (Makefile.am): Likewise.
76930         * modules/memcasecmp (Makefile.am): Likewise.
76931         * modules/memchr (Makefile.am): Likewise.
76932         * modules/memcmp (Makefile.am): Likewise.
76933         * modules/memcoll (Makefile.am): Likewise.
76934         * modules/memcpy (Makefile.am): Likewise.
76935         * modules/memmem (Makefile.am): Likewise.
76936         * modules/memmove (Makefile.am): Likewise.
76937         * modules/mempcpy (Makefile.am): Likewise.
76938         * modules/memrchr (Makefile.am): Likewise.
76939         * modules/memset (Makefile.am): Likewise.
76940         * modules/memxor (Makefile.am): Likewise.
76941         * modules/mkancesdirs (Makefile.am): Likewise.
76942         * modules/mkdir (Makefile.am): Likewise.
76943         * modules/mkdir-p (Makefile.am): Likewise.
76944         * modules/mkdtemp (Makefile.am): Likewise.
76945         * modules/mkstemp (Makefile.am): Likewise.
76946         * modules/mktime (Makefile.am): Likewise.
76947         * modules/modechange (Makefile.am): Likewise.
76948         * modules/mountlist (Makefile.am): Likewise.
76949         * modules/nanosleep (Makefile.am): Likewise.
76950         * modules/openat (Makefile.am): Likewise.
76951         * modules/pagealign_alloc (Makefile.am): Likewise.
76952         * modules/physmem (Makefile.am): Likewise.
76953         * modules/poll (Makefile.am): Likewise.
76954         * modules/posixtm (Makefile.am): Likewise.
76955         * modules/posixver (Makefile.am): Likewise.
76956         * modules/putenv (Makefile.am): Likewise.
76957         * modules/quote (Makefile.am): Likewise.
76958         * modules/quotearg (Makefile.am): Likewise.
76959         * modules/raise (Makefile.am): Likewise.
76960         * modules/read-file (Makefile.am): Likewise.
76961         * modules/readline (Makefile.am): Likewise.
76962         * modules/readlink (Makefile.am): Likewise.
76963         * modules/readtokens (Makefile.am): Likewise.
76964         * modules/readutmp (Makefile.am): Likewise.
76965         * modules/realloc (Makefile.am): Likewise.
76966         * modules/regex (Makefile.am): Likewise.
76967         * modules/rename (Makefile.am): Likewise.
76968         * modules/rename-dest-slash (Makefile.am): Likewise.
76969         * modules/rijndael (Makefile.am): Likewise.
76970         * modules/rmdir (Makefile.am): Likewise.
76971         * modules/rpmatch (Makefile.am): Likewise.
76972         * modules/safe-read (Makefile.am): Likewise.
76973         * modules/safe-write (Makefile.am): Likewise.
76974         * modules/same (Makefile.am): Likewise.
76975         * modules/save-cwd (Makefile.am): Likewise.
76976         * modules/savedir (Makefile.am): Likewise.
76977         * modules/setenv (Makefile.am): Likewise.
76978         * modules/settime (Makefile.am): Likewise.
76979         * modules/sha1 (Makefile.am): Likewise.
76980         * modules/sig2str (Makefile.am): Likewise.
76981         * modules/snprintf (Makefile.am): Likewise.
76982         * modules/stdlib-safer (Makefile.am): Likewise.
76983         * modules/stpcpy (Makefile.am): Likewise.
76984         * modules/stpncpy (Makefile.am): Likewise.
76985         * modules/strcase (Makefile.am): Likewise.
76986         * modules/strcasestr (Makefile.am): Likewise.
76987         * modules/strchrnul (Makefile.am): Likewise.
76988         * modules/strcspn (Makefile.am): Likewise.
76989         * modules/strdup (Makefile.am): Likewise.
76990         * modules/strerror (Makefile.am): Likewise.
76991         * modules/strftime (Makefile.am): Likewise.
76992         * modules/strndup (Makefile.am): Likewise.
76993         * modules/strnlen (Makefile.am): Likewise.
76994         * modules/strpbrk (Makefile.am): Likewise.
76995         * modules/strsep (Makefile.am): Likewise.
76996         * modules/strstr (Makefile.am): Likewise.
76997         * modules/strtod (Makefile.am): Likewise.
76998         * modules/strtoimax (Makefile.am): Likewise.
76999         * modules/strtok_r (Makefile.am): Likewise.
77000         * modules/strtol (Makefile.am): Likewise.
77001         * modules/strtoll (Makefile.am): Likewise.
77002         * modules/strtoul (Makefile.am): Likewise.
77003         * modules/strtoull (Makefile.am): Likewise.
77004         * modules/strtoumax (Makefile.am): Likewise.
77005         * modules/strverscmp (Makefile.am): Likewise.
77006         * modules/time_r (Makefile.am): Likewise.
77007         * modules/timegm (Makefile.am): Likewise.
77008         * modules/tmpfile-safer (Makefile.am): Likewise.
77009         * modules/unistd-safer (Makefile.am): Likewise.
77010         * modules/unlinkdir (Makefile.am): Likewise.
77011         * modules/userspec (Makefile.am): Likewise.
77012         * modules/utime (Makefile.am): Likewise.
77013         * modules/utimecmp (Makefile.am): Likewise.
77014         * modules/utimens (Makefile.am): Likewise.
77015         * modules/vasnprintf (Makefile.am): Likewise.
77016         * modules/vasprintf (Makefile.am): Likewise.
77017         * modules/vsnprintf (Makefile.am): Likewise.
77018         * modules/xalloc (Makefile.am): Likewise.
77019         * modules/xgetcwd (Makefile.am): Likewise.
77020         * modules/xnanosleep (Makefile.am): Likewise.
77021         * modules/xreadlink (Makefile.am): Likewise.
77022         * modules/xstrtod (Makefile.am): Likewise.
77023         * modules/xstrtol (Makefile.am): Likewise.
77024         * modules/xstrtold (Makefile.am): Likewise.
77025         * modules/yesno (Makefile.am): Likewise.
77026
77027 2006-10-12  Jim Meyering  <jim@meyering.net>
77028
77029         * m4/getloadavg.m4: Revert the change below.
77030
77031         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
77032         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
77033         fail with a symlink, which is what coreutils' ./bootstrap now
77034         creates by default.
77035
77036 2006-10-12  Bruno Haible  <bruno@clisp.org>
77037
77038         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
77039         mingw.
77040         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
77041         MSVC and mingw explicitly.
77042
77043 2006-10-11  Simon Josefsson  <jas@extundo.com>
77044             Bruno Haible  <bruno@clisp.org>
77045
77046         Add support for multiple gnulib-tool invocations in the scope of a
77047         single configure.ac file.
77048         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
77049         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
77050         with the same contents as the _LIBADD variable.
77051         (func_emit_initmacro_start, func_emit_initmacro_end,
77052         func_emit_initmacro_done): New functions.
77053         (func_import, func_create_testdir): Invoke them. Allow the identifiers
77054         gl_LIBOBJS and gl_LTLIBOBJS.
77055
77056 2006-10-11  Bruno Haible  <bruno@clisp.org>
77057
77058         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
77059         (func_create_testdir): Don't create po/Makefile.am, don't invoke
77060         autoreconf. Instead, invoke autopoint explicitly but move back the
77061         *.m4 files from gnulib.
77062
77063 2006-10-11  Bruno Haible  <bruno@clisp.org>
77064
77065         * gnulib-tool (func_usage): Make module names after --create-testdir
77066         optional.
77067         (func_create_testdir): If no module was specified, use nearly all
77068         modules.
77069
77070 2006-10-12  Jim Meyering  <jim@meyering.net>
77071
77072         Big performance improvement for fts-based tools that use FTS_NOSTAT.
77073         Avoid spurious inode-mismatch problems on non-POSIX file systems.
77074         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
77075         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
77076         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
77077         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
77078         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
77079         (fts_set_stat_required): New function.
77080         (fts_open): Defer the calls to fts_stat, if possible or requested.
77081         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
77082         into fts_stat itself.
77083         (fts_read): Perform any required (deferred) fts_stat call.
77084         (fts_build): Likewise, for the directory we're about to open and read.
77085         In the readdir loop, carefully decide whether each entry will require
77086         an eventual call to fts_stat, using dirent.d_type info if available.
77087         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
77088         a command line argument into this function.  Update all callers.
77089         Map a return value of FTS_DOT to FTS_D for a command line argument.
77090         * modules/fts (Depends-on): Add d-type.  Alphabetize.
77091         Thanks to Miklos Szeredi for his tenacity and for the initial
77092         bug report about "find" failing on a FUSE-based file system.
77093
77094         * lib/fts.c (fts_open): Use consistent indentation.
77095
77096 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
77097
77098         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
77099         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
77100         reported by Jim Meyering.  All uses of cache variables renamed
77101         to match Autoconf's.
77102         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
77103         the other one.
77104
77105         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
77106         Fix misspelling in diagnostic.
77107
77108 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
77109
77110         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
77111         defined.  Problem reported by Matthew Woehlke.
77112
77113         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
77114         Add support for Tandem NonStop R series.
77115         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
77116         Use new macro.
77117
77118         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
77119         (has_trailing_slash): Omit size arg; all callers changed.
77120         Omit 'inline', since it doesn't help performance and we'd
77121         need to configure it.
77122         Don't count //, ///, etc. as having a trailing slash.
77123         As a side effect, this removes a C99ism reported by Matthew Woehlke.
77124         (rpl_rename_dest_slash): On failure, use rename's errno rather
77125         than (in some cases) an incorrect or junk errno.
77126         Simplify code by removing need to compute length; this does
77127         cause it to make two passes instead of one over the file name,
77128         but it's worth it.
77129
77130         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
77131         change, since Autoconf's version may no longer be appropriate now
77132         that we are using CVS Autoconf's version.  Add support for Tandem.
77133
77134 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
77135             Bruno Haible  <bruno@clisp.org>
77136
77137         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
77138         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
77139         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
77140         gl_AC_TYPE_LONG_LONG.
77141
77142         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
77143         instead of HAVE_LONG_LONG.
77144         * lib/printf-args.c (printf_fetchargs): Likewise.
77145         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
77146         * lib/vasnprintf.c (VASNPRINTF): Likewise.
77147         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
77148         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
77149         gl_AC_TYPE_LONG_LONG.
77150
77151 2006-10-11  Bruno Haible  <bruno@clisp.org>
77152
77153         * m4/longlong.m4: Add comments.
77154         * m4/ulonglong.m4: Likewise.
77155
77156 2006-10-10  Bruno Haible  <bruno@clisp.org>
77157
77158         Make it possible to #define stpcpy, strdup to aliases.
77159         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
77160         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
77161
77162 2006-10-10  Bruno Haible  <bruno@clisp.org>
77163
77164         Make it possible to #define gcd to an alias.
77165         * lib/gcd.c: Include config.h.
77166
77167 2006-10-10  Bruno Haible  <bruno@clisp.org>
77168
77169         Make it possible to #define c_isascii to an alias.
77170         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
77171         defined. Undefine the macros before defining them, to avoid gcc
77172         warnings.
77173         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
77174         define NO_C_CTYPE_MACROS early.
77175
77176 2006-10-10  Bruno Haible  <bruno@clisp.org>
77177
77178         Make it possible to #define set_program_name to an alias.
77179         * lib/progname.c: Don't undefine set_program_name; instead, undefine
77180         ENABLE_RELOCATABLE early.
77181
77182 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
77183
77184         Port to Tandem NSK OSS, which has 64-bit signed int but at most
77185         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
77186         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
77187         More generally, don't assume that 64-bit signed int is available
77188         if unsigned int is, and vice versa.
77189         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
77190         unsigned symbols, not on their signed counterparts.
77191         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
77192         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
77193         (UINT64_C, UINTMAX_C):
77194         Likewise.
77195         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
77196         unsigned counterparts.
77197         (Have_long_long, Unsigned): New macros.
77198         (Int): Renamed from INT.
77199         (strtoimax): Use the new macros.
77200         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
77201         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
77202         * modules/inttypes (inttypes.h): Substitute
77203         HAVE_UNSIGNED_LONG_LONG_INT.
77204         * modules/stdint (stdint.h): Likewise.
77205         (Files): Add m4/ulonglong.m4.
77206
77207 2006-10-10  Bruno Haible  <bruno@clisp.org>
77208
77209         Fix a gcc -Wshadow warning.
77210         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
77211         to 'bucket'.
77212         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
77213         gl_linked_indexof_from_to): Likewise.
77214         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
77215         Likewise.
77216         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
77217         Likewise.
77218         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
77219         Reported by Eric Blake.
77220
77221 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
77222
77223         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
77224         for NetBSD.  Problem reported by Bruno Haible.
77225
77226 2006-10-09  Jim Meyering  <jim@meyering.net>
77227
77228         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
77229         Patch from Bruno Haible.
77230
77231 2006-10-09  Jim Meyering  <jim@meyering.net>
77232
77233         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
77234         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
77235         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
77236
77237 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
77238
77239         Don't include <config.h> twice; this doesn't work in some cases,
77240         e.g., when config.h has "#define intmax_t long long int" and
77241         we include <config.h>, <inttypes.h>, <config.h> in that order.
77242         Problem reported by Matthew Woehlke in:
77243         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
77244         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
77245         * lib/fts-cycle.c: Don't include config.h.
77246         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
77247         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
77248         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
77249         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
77250         inttypes.h.
77251         * lib/xstrtoumax.c: Likewise.
77252         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
77253         __strtol and the like, so that this module is more like its siblings.
77254         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
77255         Remove; no longer needed now that we assume gnulib inttypes.h.
77256
77257 2006-10-08  Bruno Haible  <bruno@clisp.org>
77258
77259         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
77260         option.
77261
77262 2006-10-07  Jim Meyering  <jim@meyering.net>
77263
77264         * modules/inttypes (inttypes.h): Revert what seems to have been
77265         an inadvertent part of today's change: use "|", not "/" in the
77266         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
77267
77268 2006-10-07  Bruno Haible  <bruno@clisp.org>
77269
77270         * modules/sublist: New file.
77271
77272 2006-10-07  Bruno Haible  <bruno@clisp.org>
77273
77274         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
77275         * modules/argz (argz.h): Likewise.
77276         * modules/arpa_inet (arpa/inet.h): Likewise.
77277         * modules/byteswap (byteswap.h): Likewise.
77278         * modules/configmake (configmake.h): Likewise.
77279         * modules/fcntl (fcntl.h): Likewise.
77280         * modules/fnmatch (fnmatch.h): Likewise.
77281         * modules/getopt (getopt.h): Likewise.
77282         * modules/glob (glob.h): Likewise.
77283         * modules/inttypes (inttypes.h): Likewise.
77284         * modules/netinet_in (netinet/in.h): Likewise.
77285         * modules/poll (poll.h): Likewise.
77286         * modules/stdbool (stdbool.h): Likewise.
77287         * modules/stdint (stdint.h): Likewise.
77288         * modules/sys_select (sys/select.h): Likewise.
77289         * modules/sys_socket (sys/socket.h): Likewise.
77290         * modules/sys_stat (sys/stat.h): Likewise.
77291         * modules/sysexits (sysexits.h): Likewise.
77292         * modules/unistd (unistd.h): Likewise.
77293         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
77294         Add a "DO NOT EDIT" comment to the generated file.
77295         (func_import): Likewise for gnulib-comp.m4.
77296
77297 2006-10-07  Bruno Haible  <bruno@clisp.org>
77298
77299         * lib/gl_sublist.h: New file.
77300         * lib/gl_sublist.c: New file.
77301
77302 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
77303
77304         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
77305         name (relative to the original working directory) and the file
77306         name component (relative to the temporary working directory).  All
77307         callers changed.
77308         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
77309         * lib/mkdir-p.c (make_dir_parents): Likewise.
77310         * lib/mkdir-p.h (make_dir_parents): Likewise.
77311
77312 2006-10-06  Eric Blake  <ebb9@byu.net>
77313
77314         Define several macros for use by the clean-temp module.
77315         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
77316         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
77317         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
77318
77319         * lib/clean-temp.h (close_stream_temp): New declaration.
77320         * lib/clean-temp.c (includes): Pull in headers according to what
77321         other modules are in use.
77322         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
77323
77324 2006-10-06  Bruno Haible  <bruno@clisp.org>
77325
77326         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
77327         instead of fopen, fwriteerror.
77328
77329 2006-10-06  Bruno Haible  <bruno@clisp.org>
77330
77331         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
77332         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
77333         int.
77334         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
77335         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
77336         Return an error indicator.
77337         Suggested by Eric Blake.
77338
77339 2006-10-06  Bruno Haible  <bruno@clisp.org>
77340
77341         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
77342         Reported by Eric Blake.
77343
77344 2006-10-06  Bruno Haible  <bruno@clisp.org>
77345
77346         * modules/closeout (Description): Mention stderr too.
77347
77348 2006-10-06  Bruno Haible  <bruno@clisp.org>
77349         and Paul Eggert  <eggert@cs.ucla.edu>
77350
77351         * lib/closeout.c (close_stdout): Also close stderr.
77352         * lib/closeout.h: Update comment.
77353
77354 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
77355
77356         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
77357         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
77358         * lib/dirchownmod.c: Include lchown.h.
77359         * lib/lchown.c: Don't include files that lchown.h now includes.
77360         Don't declare chown, since lchown.h now does that.
77361         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
77362         (lchown): Define to rpl_chown if lchown is declared but
77363         does not exist.  Declare using a prototype if lchown is not
77364         declared.  Add a copyright notice.
77365         * lib/mkstemp.h: Include <unistd.h>.
77366         * lib/openat.c: Include lchown.h.
77367
77368         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
77369         we now test for that separately.
77370         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
77371         rather than O_NOFOLLOW, when testing whether it's possible to
77372         avoid a race condition reliably.
77373         * lib/savewd.c (savewd_chdir): Likewise.
77374
77375         Remove macros that are no longer needed now that stdint.h is
77376         reliable.
77377         * lib/fsusage.c (UINTMAX_MAX): Remove.
77378         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
77379         * lib/utimecmp.c (SIZE_MAX): Remove.
77380
77381         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
77382
77383         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
77384         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
77385         O_NOATIME works.
77386
77387 2006-10-05  Bruno Haible  <bruno@clisp.org>
77388
77389         * lib/gl_list.h (gl_sortedlist_search_from_to,
77390         gl_sortedlist_indexof_from_to): New declarations.
77391         (gl_list_implementation): New fields sortedlist_search_from_to,
77392         sortedlist_indexof_from_to.
77393         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
77394         inline functions.
77395         * lib/gl_list.c (gl_sortedlist_search_from_to,
77396         gl_sortedlist_indexof_from_to): New functions.
77397         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
77398         function.
77399         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
77400         (gl_array_sortedlist_search_from_to): New function.
77401         (gl_array_list_implementation): Update.
77402         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
77403         function.
77404         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
77405         (gl_carray_sortedlist_search_from_to): New function.
77406         (gl_carray_list_implementation): Update.
77407         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
77408         gl_linked_sortedlist_indexof_from_to): New functions.
77409         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
77410         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
77411         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
77412         gl_tree_sortedlist_indexof_from_to): New functions.
77413         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
77414         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
77415         Update.
77416         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
77417         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
77418         Update.
77419
77420 2006-10-05  Bruno Haible  <bruno@clisp.org>
77421
77422         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
77423         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
77424         (struct gl_list_implementation): Add fields search_from_to,
77425         indexof_from_to. Remove fields search, indexof.
77426         (gl_list_search): Use the search_from_to method.
77427         (gl_list_search_from, gl_list_search_from_to): New functions.
77428         (gl_list_indexof): Use the indexof_from_to method.
77429         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
77430         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
77431         (gl_list_search_from, gl_list_search_from_to): New functions.
77432         (gl_list_indexof): Use the indexof_from_to method.
77433         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
77434         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
77435         gl_array_indexof. Add start_index, end_index arguments.
77436         (gl_array_search_from_to): Renamed from gl_array_search. Add
77437         start_index, end_index arguments.
77438         (gl_array_remove, gl_array_list_implementation): Update.
77439         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
77440         gl_carray_indexof. Add start_index, end_index arguments.
77441         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
77442         start_index, end_index arguments.
77443         (gl_carray_remove, gl_carray_list_implementation): Update.
77444         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
77445         gl_linked_search. Add start_index, end_index arguments.
77446         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
77447         start_index, end_index arguments.
77448         (gl_linked_remove): Update.
77449         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
77450         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
77451         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
77452         field to 'size_t'.
77453         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
77454         gl_tree_search. Add start_index, end_index arguments.
77455         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
77456         start_index, end_index arguments.
77457         (gl_tree_remove): Update.
77458         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
77459         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
77460         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
77461         function.
77462         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
77463         gl_tree_search. Add start_index, end_index arguments.
77464         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
77465         start_index, end_index arguments.
77466         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
77467         Update.
77468         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
77469
77470 2006-10-05  Bruno Haible  <bruno@clisp.org>
77471
77472         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
77473
77474         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
77475         fwriteerror_temp): New declarations.
77476         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
77477         (descriptors): New variable.
77478         (cleanup): First, close the descriptors.
77479         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
77480         fclose_temp, fwriteerror_temp): New functions.
77481
77482 2006-10-04  Jim Meyering  <jim@meyering.net>
77483
77484         * lib/fts.c (fts_open): Tiny comment change.
77485
77486 2006-10-04  Bruno Haible  <bruno@clisp.org>
77487
77488         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
77489         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
77490         gl_LOCK_BODY.
77491         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
77492         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
77493         gl_LOCK_EARLY_BODY.
77494         (gl_LOCK): Require gl_LOCK_BODY.
77495
77496 2006-10-04  Bruno Haible  <bruno@clisp.org>
77497
77498         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
77499         (gl_oset_search_atleast): New declaration.
77500         (struct gl_oset_implementation): Add field 'search_atleast'.
77501         (gl_oset_search_atleast): New inline function.
77502         * lib/gl_oset.c (gl_oset_search_atleast): New function.
77503         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
77504         (gl_array_oset_implementation): Update.
77505         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
77506         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
77507         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
77508
77509 2006-10-04  Bruno Haible  <bruno@clisp.org>
77510
77511         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
77512
77513 2006-10-03  Bruno Haible  <bruno@clisp.org>
77514
77515         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
77516         from gl_avltreehash_list_implementation.
77517
77518 2006-10-03  Bruno Haible  <bruno@clisp.org>
77519
77520         * lib/gl_oset.c (gl_oset_add): Fix return type.
77521
77522 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
77523
77524         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
77525
77526 2006-10-02  Eric Blake  <ebb9@byu.net>
77527
77528         * modules/strnlen (Depends-on): Add extensions.
77529
77530 2006-10-02  Eric Blake  <ebb9@byu.net>
77531
77532         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
77533         definition in 2.60+.
77534
77535 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
77536
77537         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
77538         checks.
77539
77540 2006-10-02  Bruno Haible  <bruno@clisp.org>
77541
77542         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
77543         to the AUTOMAKE_OPTIONS.
77544         Reported by Jim Meyering.
77545
77546 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
77547
77548         Work around bug in Solaris 10 /proc file system:
77549         /proc/self/fd/NNN/.. isn't the parent directory of
77550         the directory whose file descriptor is NNN.  This needs to
77551         be worked around at run time, not compile time, since a
77552         program might be built on Solaris 8, where things work, and
77553         run on Solaris 10.
77554         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
77555         to use the following interface instead:
77556         (OPENAT_BUFFER_SIZE): New macro.
77557         (openat_proc_name): New function.
77558         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
77559         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
77560         Likewise.
77561         * lib/openat-proc.c: New file.
77562         * modules/openat (Files): Add lib/openat-proc.c.
77563         (Depends-on): Add same-inode, stdbool.
77564         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
77565
77566 2006-09-29  Bruno Haible  <bruno@clisp.org>
77567
77568         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
77569         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
77570         argument. Set stdout_closed before testing for ferror, not after.
77571         (fwriteerror, fwriteerror_no_ebadf): New functions.
77572
77573 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77574
77575         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
77576
77577 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
77578
77579         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
77580         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
77581
77582 2006-09-28  Jim Meyering  <jim@meyering.net>
77583
77584         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
77585         Include <unistd.h>.
77586
77587 2006-09-28  Bruno Haible  <bruno@clisp.org>
77588
77589         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
77590         * modules/linkedhash-list (Depends-on): Likewise.
77591         * modules/rbtreehash-list (Depends-on): Likewise.
77592
77593 2006-09-28  Bruno Haible  <bruno@clisp.org>
77594
77595         * lib/strndup.h: Simplify the redefinition of strndup.
77596         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
77597         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
77598
77599 2006-09-28  Bruno Haible  <bruno@clisp.org>
77600
77601         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
77602         * lib/gl_linkedhash_list.c: Likewise.
77603         * lib/gl_rbtreehash_list.c: Likewise.
77604
77605 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
77606
77607         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
77608         getaddrinfo.
77609
77610         * lib/__fpending.h: Don't include <stdio_ext.h> unless
77611         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
77612         it causes <stdio_ext.h> to cause a compile-time error.
77613         Problem reported by Nelson H. F. Beebe.
77614         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
77615         of HAVE_DECL___PENDING.
77616
77617         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
77618         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
77619         declaration.
77620
77621 2006-09-27  Jim Meyering  <jim@meyering.net>
77622
77623         This file could end up with a definition for a function
77624         named __strndup, rather than rpl_strndup on a system with
77625         incomplete weak_alias support.
77626         * lib/strndup.c (strndup): Rename from __strndup.
77627         Remove #defines that used to map __strndup to strndup.
77628         Don't use K&R prototypes.
77629         Remove LIBC-related code, since this file is not sync'd with glibc.
77630         * lib/strndup.h: Revamp, accordingly.
77631         * m4/strndup.m4: Modernize.
77632
77633 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
77634
77635         * modules/savewd (Depends-on): Add 'raise'.
77636         * lib/savewd.c: Include <signal.h>, for 'raise'.
77637
77638 2006-09-26  Jim Meyering  <jim@meyering.net>
77639
77640         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
77641         when we detect Darwin 8.7.0's acl_get_file bug.
77642         Rearrange to perform the new (below) run-test while $LIBS
77643         contains any acl-related library.  Set USE_ACL at the end.
77644         (gl_ACL_GET_FILE): New function.
77645
77646 2006-09-26  Eric Blake  <ebb9@byu.net>
77647
77648         * lib/verror.c: Include <config.h> unconditionally.
77649
77650 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
77651
77652         * modules/clock-time (Maintainer): Add self.
77653         * modules/getlogin_r (Depends-on): Add extensions.
77654
77655 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77656
77657         * modules/clock-time: New module.
77658         * modules/nanosleep (Depends-on): Add clock-time.
77659         * modules/gethrxtime (Depends-on): Likewise.
77660         * modules/gettime (Depends-on): Likewise.
77661         * modules/settime (Depends-on): Likewise.
77662
77663         * modules/fts-lgpl: Depend on openat.
77664         * modules/mkancesdirs: Depend on savewd.
77665         * modules/mkdir-p: Likewise.
77666
77667 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77668
77669         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
77670
77671         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
77672         `gl_have_arbitrary_file_name_length_limit' to
77673         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
77674         actually works between configure runs.
77675
77676 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77677             Bruno Haible  <bruno@clisp.org>
77678
77679         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
77680
77681 2006-09-25  Jim Meyering  <jim@meyering.net>
77682
77683         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
77684         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
77685
77686 2006-09-25  Eric Blake  <ebb9@byu.net>
77687
77688         * gnulib-tool (func_import, func_create_testdir): Fix typos in
77689         exec's in 2006-09-18 patch when shuffling fds.
77690
77691 2006-09-25  Bruno Haible  <bruno@clisp.org>
77692
77693         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
77694         Reported by Jim Meyering.
77695
77696 2006-09-24  Jim Meyering  <jim@meyering.net>
77697
77698         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
77699         compare a pointer against a literal "0".  That caused failures with
77700         at least HP-UX's hpcc.
77701
77702 2006-09-22  Simon Josefsson  <jas@extundo.com>
77703
77704         * modules/gc-sha1:
77705         * modules/gc-md4:
77706         * modules/gc-hmac-sha1:
77707         * modules/gc-hmac-md5:
77708         * modules/gc-des:
77709         * modules/gc-arcfour: Distribute more files.
77710
77711 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77712
77713         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
77714         (gl_linked_iterator_from_to): Initialize struct completely.
77715         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
77716         (gl_tree_iterator_from_to): Likewise
77717         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
77718         * lib/gl_array_list.c [lint] (gl_array_iterator)
77719         (gl_array_iterator_from_to): Likewise.
77720         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
77721         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
77722         (gl_carray_iterator_from_to): Likewise.
77723
77724         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
77725         * lib/md4.c (md4_process_block): Remove unused variable.
77726         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
77727         parentheses for clarity.
77728
77729 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77730
77731         * modules/bison-i18n (Depends-on): Add gettext.
77732
77733 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77734
77735         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
77736         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
77737         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
77738         also add missing comma that caused broken test.
77739         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
77740         stdlib.h, for `abort'.
77741         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
77742         variables.
77743         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
77744         include unistd.h if present, for `rmdir'.
77745         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
77746         variables.
77747         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
77748         in the process include standard headers for prototypes.
77749         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
77750         gets declared on GNU/Linux.
77751         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
77752         unistd.h, for `rmdir'.
77753         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
77754
77755         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
77756         always true.
77757         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
77758
77759         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
77760
77761 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77762
77763         * gnulib-tool (func_version): Create output all at once.  This
77764         may help avoid triggering unnecessary SIGPIPEs, and at any
77765         rate it doesn't hurt.
77766
77767 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77768             Bruno Haible  <bruno@clisp.org>
77769
77770         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
77771         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
77772         * m4/signed.m4 (bh_C_SIGNED): Likewise.
77773
77774         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
77775         (gl_FUNC_VASPRINTF): Invoke it.
77776
77777 2006-09-22  Bruno Haible  <bruno@clisp.org>
77778
77779         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
77780         getloadavg.c as first argument.
77781
77782 2006-09-22  Bruno Haible  <bruno@clisp.org>
77783
77784         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
77785         at the beginning of the gl_INIT macro.
77786         * modules/getloadavg (configure.ac): Pass $gl_source_base to
77787         gl_GETLOADAVG.
77788
77789 2006-09-22  Bruno Haible  <bruno@clisp.org>
77790
77791         * gnulib-tool (func_create_megatestdir): Don't include the config-h
77792         module.
77793         Suggested by Ralf Wildenhues.
77794
77795 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
77796
77797         Import this patch from libc:
77798
77799         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
77800
77801         * lib/regex_internal.c (re_string_reconstruct): Handle
77802         offset < pstr->valid_raw_len && pstr->offsets_needed case.
77803         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
77804         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
77805         re_string_context_at.
77806
77807         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
77808         now requires it.
77809         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
77810         gl_REGEX now does it for us.
77811         (gl_REGEX): Add test taken from
77812         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
77813
77814         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
77815         Check that large offsets work.  Modernize Autoconf usages.
77816         Prefer "yes" to mean a good thing rather than a bad.
77817         Don't put "#define mkstemp" in config.h, as this might interfere
77818         with standard system headers that "#define mkstemp mkstemp64".
77819
77820         * modules/mkstemp (Depends-on): Add extensions, so that
77821         mkstemp is visible on some platforms.
77822         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
77823         (Include): Change to "mkstemp.h" from <stdlib.h>.
77824         (Files): Add mkstemp.h.
77825
77826         * lib/mkstemp.h: New file, since some standard headers
77827         #define mkstemp.
77828         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
77829         Include "mkstemp.h".
77830         Make the _LIBC code resemble glibc original more,
77831         e.g., use K&R style.
77832         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
77833         (mkstemp): Remove, since mkstemp.h does this for us.
77834         * lib/stdlib--.h: Include mkstemp.h.
77835
77836         Import this patch from libc:
77837
77838         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
77839
77840         * lib/tempname.c (__gen_tempname): Change attempts_min
77841         into a macro.  Use preprocessor to decide how to initialize
77842         attempts [Coverity CID 67].
77843
77844 2006-09-20  Bruno Haible  <bruno@clisp.org>
77845
77846         * lib/mkdtemp.c: Import from libc.
77847         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
77848                 * sysdeps/posix/tempname.c (__gen_tempname): Change
77849                 attempts_min into a macro.  Use preprocessor to decide how to
77850                 initialize attempts [Coverity CID 67].
77851         2001-11-27  Paul Eggert  <eggert@twinsun.com>
77852                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
77853                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
77854
77855 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77856
77857         * gnulib-tool (func_exit): New function, to allow to pass the
77858         exit status portably through the trap.  Use everywhere.
77859         (--help, --version): Signal a write error.
77860         (trap): catch SIGPIPE, for write errors.
77861         Exit at the end of the trap, with the correct exit status.
77862
77863 2006-09-19  Karl Berry  <karl@gnu.org>
77864
77865         * doc/gnulib.texi: note about the license texinfo files.
77866
77867 2006-09-19  Eric Blake  <ebb9@byu.net>
77868
77869         * gnulib-tool: Avoid space-tab.
77870
77871 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
77872
77873         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
77874         that prevented coreutils 6.1 from building.  Problem reported
77875         by Petter Reinholdtsen.
77876
77877 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
77878
77879         * gnulib-tool (avoidlist): Fix typo that broke options like
77880         --avoid=lock that are used by coreutils bootstrap.
77881
77882 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
77883
77884         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
77885         more systematically.
77886
77887 2006-09-18  Jim Meyering  <jim@meyering.net>
77888
77889         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
77890
77891 2006-09-18  Bruno Haible  <bruno@clisp.org>
77892
77893         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
77894
77895 2006-09-18  Bruno Haible  <bruno@clisp.org>
77896
77897         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
77898         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
77899         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
77900         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
77901         * m4/gettext.m4: Require autoconf >= 2.52.
77902         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
77903         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
77904         of gl_cv_header_inttypes_h.
77905
77906 2006-09-18  Bruno Haible  <bruno@clisp.org>
77907
77908         * lib/javaversion.c: Include configmake.h.
77909
77910 2006-09-18  Bruno Haible  <bruno@clisp.org>
77911
77912         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
77913         avoid that the while loops be executed in a subshell.
77914
77915 2006-09-18  Bruno Haible  <bruno@clisp.org>
77916
77917         * MODULES.html.sh (func_module): Break long lines.
77918         Suggested by Bruce Korb <bkorb@gnu.org>.
77919
77920 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77921
77922         Speed up by a factor of 1.12.
77923         * gnulib-tool (nl): New variable.
77924         (func_import): Rewrite include directive extraction to only read each
77925         directive once.
77926
77927 2006-09-17  Bruno Haible  <bruno@clisp.org>
77928
77929         * modules/javaversion (Makefile.am): Remove DEFS setting.
77930         (Depends-on): Add configmake, for PKGDATADIR definition.
77931
77932 2006-09-17  Bruno Haible  <bruno@clisp.org>
77933
77934         * gnulib-tool (func_create_testdir): Rewrite all files at once.
77935
77936 2006-09-17  Bruno Haible  <bruno@clisp.org>
77937
77938         * gnulib-tool (func_append): New function, stolen from libtool.m4.
77939         (func_modules_transitive_closure, func_modules_add_dummy,
77940         func_modules_to_filelist, func_import, func_create_testdir,
77941         func_create_megatestdir, ...): Use it wherever possible.
77942         Suggested by Ralf Wildenhues.
77943
77944 2006-09-16  Karl Berry  <karl@gnu.org>
77945
77946         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
77947         to avoid sectioning errors.
77948         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
77949         [ifinfo]: blank line after @center-ed titles.
77950         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
77951         Spell FSF address consistently with others.
77952         (These changes approved by rms.)
77953
77954 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77955
77956         Speed up by a factor of 1.61.
77957         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
77958         already checked module names again.
77959
77960 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77961
77962         Speed up by a factor of 1.13.
77963         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
77964         for new_files, and the input to func_add_or_update.
77965
77966 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77967
77968         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
77969         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
77970
77971 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
77972
77973         * modules/mkancesdirs (Depends-on): Add fcntl.
77974         * modules/savewd: New file.
77975         * MODULES.html.sh (File system functions): Add savewd.
77976
77977         * modules/configmake (Makefile.am): Add support for the
77978         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
77979
77980 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
77981
77982         * m4/savewd.m4: New file.
77983
77984 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
77985
77986         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
77987         (dirchownmod): New arg FD.  All callers changed.
77988         Use FD rather than opening the directory ourself, as opening is
77989         now the caller's responsibility.
77990         * lib/dirchownmod.h: Likewise.
77991         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
77992         hosts that require <sys/types.h> before <sys/stat.h>.  Include
77993         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
77994         (test_dir): Remove.
77995         (mkancesdirs): Return length of prefix of FILE that has already
77996         been made, or -2 if there is a child doing the work.  Redo
77997         algorithm so that it is O(N) rather than O(N**2).  Optimize away
77998         ".", and treat ".." specially since it might stray back into
77999         already-created areas.  Use a subprocess if necessary.  New arg
78000         WD; all users changed.  MAKE_DIR function should now return 1
78001         if it creates a directory that is not readable.  Return -2 if
78002         a child process is spun off.
78003         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
78004         Adjust signature to match code.
78005         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
78006         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
78007         all users changed.
78008         * lib/savewd.c, lib/savewd.h: New files.
78009
78010 2006-09-15  Jim Meyering  <jim@meyering.net>
78011
78012         * modules/rename-dest-slash: New module.
78013         * MODULES.html.sh (posix_compat): Add it here.
78014
78015         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
78016
78017 2006-09-15  Jim Meyering  <jim@meyering.net>
78018
78019         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
78020         file.
78021
78022         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
78023
78024 2006-09-15  Jim Meyering  <jim@meyering.net>
78025
78026         * lib/rename-dest-slash.c (has_trailing_slash): Use
78027         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
78028         (rpl_rename_dest_slash): Perform the cheaper trailing slash
78029         test before testing whether SRC is a directory.
78030         Suggestions from Bruno Haible.
78031
78032         Avoid a warning about an unused variable.
78033         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
78034         into the #ifdef block where it's used.
78035
78036         * lib/rename-dest-slash.c: New file.
78037
78038 2006-09-14  Bruno Haible  <bruno@clisp.org>
78039
78040         * lib/allocsa.c: Include <config.h> unconditionally.
78041         * lib/asnprintf.c: Likewise.
78042         * lib/asprintf.c: Likewise.
78043         * lib/c-strcasecmp.c: Likewise.
78044         * lib/c-strcasestr.c: Likewise.
78045         * lib/c-strncasecmp.c: Likewise.
78046         * lib/c-strstr.c: Likewise.
78047         * lib/classpath.c: Likewise.
78048         * lib/clean-temp.c: Likewise.
78049         * lib/concatpath.c: Likewise.
78050         * lib/copy-file.c: Likewise.
78051         * lib/csharpcomp.c: Likewise.
78052         * lib/csharpexec.c: Likewise.
78053         * lib/execute.c: Likewise.
78054         * lib/fatal-signal.c: Likewise.
78055         * lib/findprog.c: Likewise.
78056         * lib/fwriteerror.c: Likewise.
78057         * lib/gl_array_list.c: Likewise.
78058         * lib/gl_array_oset.c: Likewise.
78059         * lib/gl_avltree_list.c: Likewise.
78060         * lib/gl_avltree_oset.c: Likewise.
78061         * lib/gl_avltreehash_list.c: Likewise.
78062         * lib/gl_carray_list.c: Likewise.
78063         * lib/gl_linked_list.c: Likewise.
78064         * lib/gl_linkedhash_list.c: Likewise.
78065         * lib/gl_list.c: Likewise.
78066         * lib/gl_oset.c: Likewise.
78067         * lib/gl_rbtree_list.c: Likewise.
78068         * lib/gl_rbtree_oset.c: Likewise.
78069         * lib/gl_rbtreehash_list.c: Likewise.
78070         * lib/imaxabs.c: Likewise.
78071         * lib/imaxdiv.c: Likewise.
78072         * lib/javacomp.c: Likewise.
78073         * lib/javaexec.c: Likewise.
78074         * lib/javaversion.c: Likewise.
78075         * lib/linebreak.c: Likewise.
78076         * lib/localcharset.c: Likewise.
78077         * lib/lock.c: Likewise.
78078         * lib/mbchar.c: Likewise.
78079         * lib/mbswidth.c: Likewise.
78080         * lib/mkdtemp.c: Likewise.
78081         * lib/pipe.c: Likewise.
78082         * lib/printf-args.c: Likewise.
78083         * lib/printf-parse.c: Likewise.
78084         * lib/progname.c: Likewise.
78085         * lib/progreloc.c: Likewise.
78086         * lib/readlink.c: Likewise.
78087         * lib/sh-quote.c: Likewise.
78088         * lib/stpcpy.c: Likewise.
78089         * lib/stpncpy.c: Likewise.
78090         * lib/strcasecmp.c: Likewise.
78091         * lib/strcasestr.c: Likewise.
78092         * lib/strcspn.c: Likewise.
78093         * lib/striconv.c: Likewise.
78094         * lib/strncasecmp.c: Likewise.
78095         * lib/strnlen1.c: Likewise.
78096         * lib/strstr.c: Likewise.
78097         * lib/strtok_r.c: Likewise.
78098         * lib/tls.c: Likewise.
78099         * lib/tmpdir.c: Likewise.
78100         * lib/unicodeio.c: Likewise.
78101         * lib/unsetenv.c: Likewise.
78102         * lib/vasnprintf.c: Likewise.
78103         * lib/vasprintf.c: Likewise.
78104         * lib/wait-process.c: Likewise.
78105         * lib/xallocsa.c: Likewise.
78106         * lib/xsetenv.c: Likewise.
78107         * lib/xstriconv.c: Likewise.
78108
78109 2006-09-13  Simon Josefsson  <jas@extundo.com>
78110
78111         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
78112         that internally, suggested by Ralf Wildenhues
78113         <Ralf.Wildenhues@gmx.de>.
78114
78115 2006-09-13  Simon Josefsson  <jas@extundo.com>
78116
78117         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
78118         @LIBOBJS@.
78119         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
78120
78121 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
78122
78123         * lib/_fpending.c: Include <config.h> unconditionally, since we no
78124         longer worry about uses that don't define HAVE_CONFIG_H.
78125         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
78126         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
78127         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
78128         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
78129         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
78130         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
78131         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
78132         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
78133         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
78134         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
78135         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
78136         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
78137         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
78138         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
78139         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
78140         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
78141         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
78142         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
78143         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
78144         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
78145         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
78146         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
78147         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
78148         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
78149         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
78150         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
78151         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
78152         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
78153         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
78154         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
78155         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
78156         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
78157         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
78158         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
78159         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
78160         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
78161         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
78162         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
78163         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
78164         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
78165         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
78166         Likewise.
78167
78168 2006-09-13  Eric Blake  <ebb9@byu.net>
78169
78170         * lib/getopt.c: Fix typo in last commit.
78171
78172 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
78173
78174         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
78175         dgettext.
78176
78177 2006-09-12  Jim Meyering  <jim@meyering.net>
78178
78179         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
78180         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
78181         Reported by Nelson H. F. Beebe.
78182
78183 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
78184
78185         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
78186         program_invocation_name and program_invocation_short_name are
78187         initialized.
78188         * lib/argp-namefrob.h: Move declarations of program_invocation_name
78189         and program_invocation_short_name to argp.h, so they are visible
78190         to user programs.
78191         * lib/argp.h: Likewise
78192
78193 2006-09-10  Bruno Haible  <bruno@clisp.org>
78194
78195         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
78196         m4/inttypes_h.m4, m4/uintmax_t.m4.
78197
78198 2006-09-10  Bruno Haible  <bruno@clisp.org>
78199
78200         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
78201         gl_AC_TYPE_UINTMAX_T.
78202
78203 2006-09-10  Bruno Haible  <bruno@clisp.org>
78204
78205         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
78206
78207 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
78208
78209         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
78210         convention.  Text proposed by Bruno Haible.
78211         (struct argp_option): Document the use of N_() wrappers.
78212
78213         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
78214         '\v', and translate the two parts separately, instead of feeding
78215         the whole string to gettext.  This allows to exclude
78216         '\v' from the strings visible to the translator by writing doc
78217         strings as N_("..") "\v" N_("..").
78218
78219 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
78220
78221         * config/srclist.txt: Undo latest change; the bug was fixed.
78222
78223 2006-09-09  Bruno Haible  <bruno@clisp.org>
78224
78225         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
78226         assignments if building a library without libtool.
78227         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
78228         in func_emit_lib_Makefile_am.
78229         (func_import): When building a static library libfoo.a, arrange to
78230         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
78231         (func_create_testdir): Likewise.
78232         * modules/gc (configure.ac, Makefile.am): If building statically,
78233         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
78234         * modules/iconvme (configure.ac, Makefile.am): Likewise.
78235         * modules/striconv (configure.ac, Makefile.am): Likewise.
78236         Based on a suggestion by Ralf Wildenhues.
78237
78238 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
78239
78240         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
78241         Check for unistd.h too, since Autoconf doesn't assume POSIX.
78242         Also:
78243
78244         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
78245         Add year_2050_test to catch glibc bug 2821
78246         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
78247
78248         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
78249         Prefer #ifdef to #if.
78250
78251         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
78252         Return from 'main' instead of calling 'exit'.
78253
78254 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
78255
78256         * lib/mktime.c (guess_time_tm): Fix bug where mktime
78257         returned the maximum time_t value rather than (time_t) -1.
78258         Problem originally reported by William Bardwell
78259         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
78260
78261         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
78262         Moved to here ...
78263         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
78264         ... from here.
78265
78266 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
78267
78268         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
78269         2821 is fixed.
78270
78271 2006-09-08  Jim Meyering  <jim@meyering.net>
78272
78273         Don't make generated files read-only.  That would bother too many
78274         people.  However, do retain the ability to work when targets are
78275         read-only: remove the destination and temporary files before writing
78276         them (when generated via sed or echo), or by using the -f option for
78277         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
78278         * modules/alloca-opt, modules/argz, modules/arpa_inet:
78279         * modules/byteswap, modules/configmake, modules/fcntl:
78280         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
78281         * modules/localcharset, modules/netinet_in, modules/poll:
78282         * modules/stdbool, modules/stdint, modules/sys_select:
78283         * modules/sys_socket, modules/sys_stat, modules/sysexits:
78284
78285 2006-09-08  Jim Meyering  <jim@meyering.net>
78286
78287         Avoid new build failure on FreeBSD 6.0.
78288         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
78289         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
78290         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
78291
78292 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78293
78294         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
78295
78296 2006-09-07  Jim Meyering  <jim@meyering.net>
78297
78298         Fix global typo in last change: use chmod u-w, not chmod u-x.
78299         Spotted by Paul Eggert and Bruce Korb.
78300         * modules/alloca-opt, modules/argz, modules/arpa_inet:
78301         * modules/byteswap, modules/configmake, modules/fcntl:
78302         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
78303         * modules/localcharset, modules/netinet_in, modules/poll:
78304         * modules/stdbool, modules/stdint, modules/sys_select:
78305         * modules/sys_socket, modules/sys_stat, modules/sysexits:
78306
78307 2006-09-06  Jim Meyering  <jim@meyering.net>
78308
78309         Make generated files be read-only.
78310         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
78311         Ensure that each generated file is now read-only.
78312         * modules/argz: Likewise.
78313         * modules/arpa_inet: Likewise.
78314         * modules/byteswap: Likewise.
78315         * modules/configmake: Likewise.
78316         * modules/fcntl: Likewise.
78317         * modules/fnmatch: Likewise.
78318         * modules/getopt: Likewise.
78319         * modules/glob: Likewise.
78320         * modules/inttypes: Likewise.
78321         * modules/netinet_in: Likewise.
78322         * modules/poll: Likewise.
78323         * modules/stdbool: Likewise.
78324         * modules/stdint: Likewise.
78325         * modules/sys_select: Likewise.
78326         * modules/sys_socket: Likewise.
78327         * modules/sys_stat: Likewise.
78328         * modules/sysexits: Likewise.
78329         * modules/localcharset: Same as above, but continue using temporary
78330         file named "t-$@" (why different?) rather than the "$@-t" used
78331         everywhere else.
78332
78333         * modules/sysexits (Makefile.am): Replace literal occurrences
78334         of "sysexit.h" more readable, and more consistent, "$@".
78335
78336 2006-09-06  Bruno Haible  <bruno@clisp.org>
78337
78338         * modules/striconv: New file.
78339         * modules/xstriconv: New file.
78340         * MODULES.html.sh (Internationalization functions): Add striconv,
78341         xstriconv.
78342
78343 2006-09-06  Bruno Haible  <bruno@clisp.org>
78344
78345         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
78346         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
78347         not using libtool correctly.
78348
78349 2006-09-06  Bruno Haible  <bruno@clisp.org>
78350
78351         * lib/striconv.h: New file.
78352         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
78353         iconvstring.c.
78354         * lib/xstriconv.h: New file.
78355         * lib/xstriconv.c: New file.
78356
78357 2006-09-06  Bruno Haible  <bruno@clisp.org>
78358
78359         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
78360         lib_..._LDFLAGS.
78361
78362 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78363
78364         * lib/argz_.h: Sync from Libtool.
78365
78366         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
78367                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
78368
78369         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
78370
78371 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
78372
78373         * modules/trim: New file.
78374
78375 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
78376
78377         * lib/trim.h: New file.
78378         * lib/trim.c: New file.
78379
78380 2006-09-05  Bruno Haible  <bruno@clisp.org>
78381
78382         * MODULES.html.sh (String handling): Add trim.
78383
78384 2006-09-04  Karl Berry  <karl@gnu.org>
78385
78386         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
78387         until next release.
78388
78389 2006-09-03  Bruno Haible  <bruno@clisp.org>
78390
78391         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
78392         correctly.
78393
78394 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
78395
78396         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
78397         not gl_GETLOADAVG.  Omit unneeded semicolons.
78398         Problems reported by Ralf Wildenhues in
78399         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
78400         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
78401         at the end, which is the usual gnulib style.
78402
78403         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
78404         of doing all the work ourselves.
78405         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
78406         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
78407
78408 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
78409
78410         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
78411         Problem reported by Ralf Wildenhues in
78412         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
78413
78414         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
78415         HAVE_STRUCT_STATFS_F_FSTYPENAME.
78416
78417 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
78418
78419         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
78420         yesterday's patch by changing test -n to test -z.
78421
78422 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
78423
78424         * modules/getloadavg (Files): Add m4/getloadavg.m4.
78425         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
78426         the former is now obsolescent.
78427
78428         * modules/chdir-long (Depends-on): Add fcntl.
78429
78430 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
78431
78432         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
78433         obsolescent, and programs should use gnulib instead.
78434         * m4/getloadavg.m4: New file, with contents taken from Autoconf
78435         but with prefixes changed.
78436
78437 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
78438
78439         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
78440         or stdbool.h, because they might not exist while configuring.
78441
78442         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
78443         Don't include unistd.h or limits.h; not needed, since chdir-long.h
78444         does that for us.
78445         (O_DIRECTORY): Remove.
78446
78447 2006-08-31  Eric Blake  <ebb9@byu.net>
78448
78449         * gnulib-tool: Don't let emacs change spaces to TAB.
78450
78451 2006-08-31  Bruno Haible  <bruno@clisp.org>
78452
78453         * gnulib-tool: When calling func_import more than once, do it in a
78454         subshell.
78455         Reported by Eric Blake <ebb9@byu.net>.
78456
78457 2006-08-31  Bruno Haible  <bruno@clisp.org>
78458
78459         * gnulib-tool (nl): Remove variable.
78460         (sed_transform_lib_file): Use more robust test for config-h module.
78461         (func_import): Fix typo in 2006-08-25 patch.
78462
78463 2006-08-31  Bruno Haible  <bruno@clisp.org>
78464
78465         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
78466         specified, augment Makefile.am variables instead of assigning them.
78467
78468 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
78469
78470         Work around a bug in both the Linux and SunOS 64-bit kernels:
78471         nanosleep mishandles sleeps for longer than 2**31 seconds.
78472         Problem reported by Frank v Waveren in
78473         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
78474         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
78475         Check for nanosleep bug.
78476         (LIB_NANOSLEEP): Append clock_gettime library if needed.
78477
78478 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
78479
78480         Work around a bug in both the Linux and SunOS 64-bit kernels:
78481         nanosleep mishandles sleeps for longer than 2**31 seconds.
78482         Problem reported by Frank v Waveren in
78483         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
78484         * lib/nanosleep.c (BILLION): New constant.
78485         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
78486         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
78487         implementation.
78488
78489 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
78490
78491         * modules/nanosleep (Depends-on): Add gettime.
78492
78493 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
78494         and Simon Josefsson  <jas@extundo.com>
78495         and Oskar Liljeblad  <oskar@osk.mine.nu>
78496
78497         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
78498         * gnulib-tool (func_import): New license type 'unmodifiable license
78499         text'.
78500         * modules/fdl: Use it.  Longer description.
78501         * module/gpl, module/lgpl: New files.
78502
78503 2006-08-30  Jim Meyering  <jim@meyering.net>
78504
78505         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
78506         shadowing the parameter.
78507
78508 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78509
78510         Sync from Libtool:
78511
78512         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78513
78514         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
78515         sharing with gnulib.  Report by Eric Blake.
78516
78517 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
78518
78519         * modules/isapipe: New file.
78520         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
78521
78522 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
78523
78524         * modules/configmake (Makefile.am): Add a comment, and omit
78525         the CONFIGMAKE_ prefix from generated macro names.  Suggested
78526         by Bruno Haible.
78527
78528 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
78529
78530         * m4/isapipe.m4: New file.
78531
78532 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
78533
78534         * lib/isapipe.c, lib/isapipe.h: New files.
78535
78536 2006-08-29  Jim Meyering  <jim@meyering.net>
78537
78538         * modules/configmake (Makefile.am): Make configmake.h depend on
78539         Makefile.  Otherwise, a stale configmake.h could hang around.
78540
78541 2006-08-29  Eric Blake  <ebb9@byu.net>
78542
78543         * lib/error.c (error_at_line, print_errno_message): Match libc, after
78544         resolution of upstream bug 3044.
78545
78546 2006-08-29  Bruno Haible  <bruno@clisp.org>
78547
78548         * modules/localcharset (Depends-on): Add configmake.
78549         (Makefile.am): Remove setting of LIBDIR through DEFS.
78550
78551 2006-08-29  Bruno Haible  <bruno@clisp.org>
78552
78553         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
78554         defined.
78555
78556 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
78557
78558         * modules/fcntl: New file.
78559         * modules/chdir-safer (Depends-on): Add fcntl.
78560         * modules/fts: Likewise.
78561         * modules/mkdir-p: Likewise.
78562
78563         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
78564         This undoes the most recent change, since we're now addressing the
78565         problem in a different way.
78566
78567         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
78568         into output, since the output might be called Makefile.am even
78569         if $makefile_name is something different.
78570         (func_import): Use $makefile_am rather than
78571         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
78572         empty.
78573
78574         * modules/inttypes (Files): Add m4/inttypes-h.m4.
78575
78576 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
78577
78578         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
78579         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
78580         recent change to stdint.m4, since we're now addressing the problem in a
78581         different way.
78582
78583 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
78584
78585         * m4/fcntl_h.m4: New file.
78586
78587 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
78588
78589         * lib/fcntl_.h: New file.
78590         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
78591         the fcntl module.
78592         * lib/dirchownmod.c: Likewise.
78593         * lib/fts.c: Likewise.
78594
78595         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
78596         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
78597         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
78598         just before including <inttypes.h>, to avoid circular inclusion.
78599
78600 2006-08-28  Jim Meyering  <jim@meyering.net>
78601
78602         * doc/visibility.texi: Actually read and correct the grammar of the
78603         sentence affected by yesterday's change.
78604
78605 2006-08-28  Eric Blake  <ebb9@byu.net>
78606
78607         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
78608         needs wrapper.
78609
78610 2006-08-28  Eric Blake  <ebb9@byu.net>
78611
78612         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
78613
78614 2006-08-28  Eric Blake  <ebb9@byu.net>
78615
78616         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
78617
78618 2006-08-28  Bruno Haible  <bruno@clisp.org>
78619
78620         * modules/c-strstr: New file, from GNU gettext.
78621         * MODULES.html.sh (String handling): Add c-strstr.
78622
78623 2006-08-28  Bruno Haible  <bruno@clisp.org>
78624
78625         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
78626         macros.
78627         Reported by Eric Blake.
78628
78629 2006-08-28  Bruno Haible  <bruno@clisp.org>
78630
78631         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
78632         (VASNPRINTF): Return a string of length > INT_MAX without failing.
78633         * lib/vasprintf.c: Include errno.h, limits.h.
78634         (EOVERFLOW): New fallback definition.
78635         (vasprintf): Test here whether the string length is > INT_MAX.
78636         * lib/vsnprintf.c: Include errno.h, limits.h.
78637         (EOVERFLOW): New fallback definition.
78638         (vsnprintf): Fix bug when generated string was too long for the buffer.
78639         Test here whether the string length is > INT_MAX.
78640
78641 2006-08-28  Bruno Haible  <bruno@clisp.org>
78642
78643         * lib/inttypes_.h (SCNX*): Remove definitions.
78644         Reported by Eric Blake.
78645
78646 2006-08-28  Bruno Haible  <bruno@clisp.org>
78647
78648         * lib/c-strstr.h: New file, from GNU gettext.
78649         * lib/c-strstr.c: New file, from GNU gettext.
78650
78651 2006-08-28  Bruno Haible  <bruno@clisp.org>
78652
78653         * gnulib-tool: Reorder some statements.
78654
78655 2006-08-28  Bruno Haible  <bruno@clisp.org>
78656
78657         * gnulib-tool: New option --makefile-name.
78658         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
78659         $makefile_name.
78660         (func_import): Write $makefile_name to the cache file, and read it from
78661         there unless explicitly specified. Use $makefile_name as file name
78662         instead of Makefile.am. Adjust the recommendations accordingly.
78663
78664 2006-08-28  Bruno Haible  <bruno@clisp.org>
78665
78666         * gnulib-tool (func_verify_module): Check against misapplying patch.
78667
78668 2006-08-28  Bruno Haible  <bruno@clisp.org>
78669
78670         * gnulib-tool (func_relativize, func_relconcat): New functions.
78671         Give an error if --local-dir is given with --update.
78672         Remove trailing slashes from $local_gnulib_dir.
78673         (func_import): Store the relativized $local_gnulib_dir in
78674         gnulib-cache.m4, and read it from there if not specified explicitly.
78675
78676 2006-08-28  Bruno Haible  <bruno@clisp.org>
78677
78678         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
78679         is the current directory. Respect also $local_gnulib_dir.
78680
78681 2006-08-28  Bruno Haible  <bruno@clisp.org>
78682             Simon Josefsson  <jas@extundo.com>
78683
78684         BeOS portability.
78685         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
78686
78687 2006-08-27  Jim Meyering  <jim@meyering.net>
78688
78689         * doc/visibility.texi: Remove duplicate word: "pointer".
78690
78691 2006-08-26  Bruno Haible  <bruno@clisp.org>
78692
78693         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
78694         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
78695         (Makefile.am): Create inttypes.h from inttypes_.h.
78696         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
78697
78698         * modules/imaxabs: New file.
78699
78700         * modules/imaxdiv: New file.
78701
78702 2006-08-26  Bruno Haible  <bruno@clisp.org>
78703
78704         * m4/inttypes.m4: New file.
78705         * m4/_inttypes_h.m4: Remove file.
78706         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
78707         PRI_MACROS_BROKEN.
78708         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
78709
78710         * m4/imaxabs.m4: New file.
78711
78712         * m4/imaxdiv.m4: New file.
78713
78714 2006-08-26  Bruno Haible  <bruno@clisp.org>
78715
78716         * lib/inttypes_.h: New file.
78717         * lib/inttypes.h: Remove file.
78718         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
78719
78720         * lib/imaxabs.c: New file.
78721
78722         * lib/imaxdiv.c: New file.
78723
78724 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
78725
78726         New config-h module, so that "make" output needn't be cluttered
78727         by -DHAVE_CONFIG_H.
78728         * MODULES.html.sh (Support for building libraries and executables):
78729         Add config-h.
78730         * modules/config-h: New file.
78731         * gnulib-tool (nl, sed_transform_lib_file): New vars.
78732         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
78733         the config-h module is used.
78734
78735         New configmake module, so that "make" output needn't be cluttered
78736         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
78737         * MODULES.html.sh (Support for building libraries and executables):
78738         Add configmake.
78739         * modules/configmake: New file.
78740
78741 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
78742
78743         * m4/config-h.m4: New file.
78744
78745 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
78746
78747         * config/srclist.txt: Add elisp-comp.
78748
78749 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
78750
78751         * MODULES.html.sh (Support for building libraries and executables):
78752         Add elisp-comp.
78753         * build-aux/elisp-comp: New file.
78754         * modules/elisp-comp: New file.
78755
78756 2006-08-24  Bruno Haible  <bruno@clisp.org>
78757
78758         * gnulib-tool (func_create_testdir): Use non-default values of
78759         sourcebase and m4base.
78760
78761 2006-08-24  Bruno Haible  <bruno@clisp.org>
78762
78763         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
78764         HTML structure.
78765
78766 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
78767
78768         * modules/openat (Depends-on): Add lchown.
78769
78770 2006-08-23  Bruno Haible  <bruno@clisp.org>
78771
78772         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
78773         of gl_LOCK_EARLY instead of gl_LOCK.
78774
78775 2006-08-23  Bruno Haible  <bruno@clisp.org>
78776
78777         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
78778         on OSF/1 to no.
78779         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
78780
78781 2006-08-23  Bruno Haible  <bruno@clisp.org>
78782
78783         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
78784         as unusable.
78785
78786         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
78787         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
78788         (gl_LOCK): New macro.
78789
78790 2006-08-22  Simon Josefsson  <jas@extundo.com>
78791
78792         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
78793         to md5 module.
78794
78795 2006-08-22  Simon Josefsson  <jas@extundo.com>
78796
78797         * MODULES.html.sh: Add "Support for maintaining and release
78798         projects".
78799
78800         * build-aux/gnupload: New file, from coreutils.
78801
78802 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
78803
78804         Avoid the need for AC_LIBSOURCES in m4 macros.
78805         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
78806         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
78807         * modules/check-version (EXTRA_DIST): Add check-version.h.
78808         * modules/crc (EXTRA_DIST): Add crc.h.
78809         * modules/des (EXTRA_DIST): Add des.h.
78810         * modules/gc (EXTRA_DIST): Add gc.h.
78811         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
78812         * modules/getline (EXTRA_DIST): Add getline.h.
78813         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
78814         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
78815         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
78816         * modules/md2 (EXTRA_DIST): Add md2.h.
78817         * modules/md4 (EXTRA_DIST): Add md4.h.
78818         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
78819         * modules/read-file (EXTRA_DIST): Add read-file.h.
78820         * modules/readline (EXTRA_DIST): Add readline.h.
78821         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
78822         rijndael-api-fst.h.
78823
78824 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
78825
78826         * m4/rijndael.m4 (gl_ARCFOUR):
78827         * m4/arctwo.m4 (gl_ARCTWO):
78828         * m4/check-version.m4 (gl_CHECK_VERSION):
78829         * m4/crc.m4 (gl_CRC):
78830         * m4/des.m4 (gl_DES):
78831         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
78832         * m4/gc.m4 (gl_GC):
78833         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
78834         * m4/getline.m4 (gl_FUNC_GETLINE):
78835         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
78836         * m4/hmac-md5.m4 (gl_HMAC_MD5):
78837         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
78838         * m4/md2.m4 (gl_MD2):
78839         * m4/md4.m4 (gl_MD4):
78840         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
78841         * m4/read-file.m4 (gl_FUNC_READ_FILE):
78842         * m4/readline.m4 (gl_FUNC_READLINE):
78843         * m4/rijndael.m4 (gl_RIJNDAEL):
78844         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
78845         to get the necessary .h files and whatnot.
78846
78847 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
78848
78849         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
78850         gnulib rather than the other way around.
78851         * config/srclistvars.sh (COREUTILS): Remove.
78852
78853 2006-08-22  Jim Meyering  <jim@meyering.net>
78854
78855         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
78856
78857         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
78858
78859 2006-08-22  Eric Blake  <ebb9@byu.net>
78860
78861         * modules/regexprops-generic: New file.
78862         * MODULES.html.sh (Support for building documentation): List it.
78863
78864 2006-08-22  Eric Blake  <ebb9@byu.net>
78865
78866         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
78867         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
78868         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
78869         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
78870
78871 2006-08-22  Bruno Haible  <bruno@clisp.org>
78872
78873         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
78874         and lib_LTLIBRARIES like the other lib_* variables.
78875
78876 2006-08-22  Bruno Haible  <bruno@clisp.org>
78877
78878         * build-aux/x-to-1.in: New file, from GNU gettext.
78879
78880 2006-08-22  Bruno Haible  <bruno@clisp.org>
78881
78882         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
78883         <utmpx.h> exists.
78884
78885 2006-08-22  Bruno Haible  <bruno@clisp.org>
78886
78887         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
78888         <utmpx.h> exists.
78889
78890 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
78891
78892         BeOS portability.
78893         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
78894         exist.
78895         Problem reported by Bruno Haible.
78896
78897 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
78898
78899         Avoid the need for AC_LIBSOURCES in m4 macros.
78900         * modules/acl (EXTRA_DIST): Add acl.h.
78901         * modules/argmatch (Files): Add m4/argmatch.m4.
78902         (configure.ac): Add gl_ARGMATCH.
78903         (EXTRA_DIST): Renamed from lib_SOURCES, for
78904         consistency with the other modules.  Remove argmatch.c.
78905         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
78906         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
78907         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
78908         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
78909         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
78910         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
78911         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
78912         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
78913         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
78914         * modules/closeout (EXTRA_DIST): Add closeout.h.
78915         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
78916         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
78917         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
78918         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
78919         dirname.h; remove basename.c and stripslash.c.
78920         * modules/exclude (EXTRA_DIST): Add exclude.h.
78921         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
78922         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
78923         * modules/file-type (EXTRA_DIST): Add file-type.h.
78924         * modules/filemode (EXTRA_DIST): Add filemode.h.
78925         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
78926         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
78927         * modules/fpending (EXTRA_DIST): Add __fpending.h.
78928         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
78929         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
78930         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
78931         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
78932         * modules/getdate (EXTRA_DIST): Add getdate.c.
78933         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
78934         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
78935         * modules/getpass (EXTRA_DIST): Add getpass.h.
78936         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
78937         * modules/group-member (EXTRA_DIST): Add group-member.h.
78938         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
78939         * modules/hash (EXTRA_DIST): Add hash.h.
78940         * modules/human (EXTRA_DIST): Add human.h.
78941         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
78942         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
78943         * modules/lchown (EXTRA_DIST): Add lchown.h.
78944         * modules/long-options (EXTRA_DIST): Add long-options.h.
78945         * modules/lstat (EXTRA_DIST): Add lstat.h.
78946         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
78947         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
78948         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
78949         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
78950         * modules/memxor (EXTRA_DIST): Add memxor.h.
78951         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
78952         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
78953         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
78954         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
78955         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
78956         * modules/physmem (EXTRA_DIST): Add physmem.h.
78957         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
78958         * modules/posixver (EXTRA_DIST): Add posixver.h.
78959         * modules/quote (EXTRA_DIST): Add quote.h.
78960         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
78961         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
78962         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
78963         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
78964         regex_internal.h regexec.c.
78965         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
78966         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
78967         * modules/same (EXTRA_DIST): Add same.h.
78968         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
78969         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
78970         * modules/savedir (EXTRA_DIST): Add savedir.h.
78971         * modules/sha1 (EXTRA_DIST): Add sha1.h.
78972         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
78973         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
78974         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
78975         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
78976         * modules/strdup (EXTRA_DIST): Add strdup.h.
78977         * modules/strftime (EXTRA_DIST): Add strftime.h.
78978         * modules/strndup (EXTRA_DIST): Add strndup.h.
78979         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
78980         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
78981         * modules/time_r (EXTRA_DIST): Add time_r.h.
78982         * modules/timespec (EXTRA_DIST): Add timespec.h.
78983         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
78984         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
78985         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
78986         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
78987         * modules/userspec (EXTRA_DIST): Add userspec.h.
78988         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
78989         * modules/utimens (EXTRA_DIST): Add utimens.h.
78990         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
78991         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
78992         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
78993         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
78994         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
78995         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
78996         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
78997         * modules/yesno (EXTRA_DIST): Add yesno.h.
78998
78999 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
79000
79001         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
79002
79003         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
79004         * m4/dev-ino.m4, same-inode.m4: Remove.
79005
79006         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
79007         * m4/acl.m4 (AC_FUNC_ACL):
79008         * m4/backupfile.m4 (gl_BACKUPFILE):
79009         * m4/c-strtod.m4 (gl_C99_STRTOLD):
79010         * m4/canon-host.m4 (gl_CANON_HOST):
79011         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
79012         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
79013         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
79014         * m4/cloexec.m4 (gl_CLOEXEC):
79015         * m4/close-stream.m4 (gl_CLOSE_STREAM):
79016         * m4/closeout.m4 (gl_CLOSEOUT):
79017         * m4/dirfd.m4 (gl_FUNC_DIRFD):
79018         * m4/dirname.m4 (gl_DIRNAME):
79019         * m4/exclude.m4 (gl_EXCLUDE):
79020         * m4/exitfail.m4 (gl_EXITFAIL):
79021         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
79022         * m4/file-type.m4 (gl_FILE_TYPE):
79023         * m4/filemode.m4 (gl_FILEMODE):
79024         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
79025         * m4/fpending.m4 (gl_FUNC_FPENDING):
79026         * m4/fprintftime.m4 (gl_FPRINTFTIME):
79027         * m4/fts.m4 (gl_FUNC_FTS):
79028         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
79029         * m4/getdate.m4 (gl_GETDATE):
79030         * m4/gethrxtime.m4 (gl_GETHRXTIME):
79031         * m4/getpagesize.m4 (gl_GETPAGESIZE):
79032         * m4/getpass.m4 (gl_FUNC_GETPASS):
79033         * m4/gettime.m4 (gl_GETTIME):
79034         * m4/getugroups.m4 (gl_GETUGROUPS):
79035         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
79036         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
79037         * m4/hard-locale.m4 (gl_HARD_LOCALE):
79038         * m4/hash.m4 (gl_HASH):
79039         * m4/idcache.m4 (gl_IDCACHE):
79040         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
79041         * m4/lchown.m4 (gl_FUNC_LCHOWN):
79042         * m4/long-options.m4 (gl_LONG_OPTIONS):
79043         * m4/lstat.m4 (gl_FUNC_LSTAT):
79044         * m4/md5.m4 (gl_MD5):
79045         * m4/memcasecmp.m4 (gl_MEMCASECMP):
79046         * m4/memcoll.m4 (gl_MEMCOLL):
79047         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
79048         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
79049         * m4/memxor.m4 (gl_MEMXOR):
79050         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
79051         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
79052         * m4/modechange.m4 (gl_MODECHANGE):
79053         * m4/mountlist.m4 (gl_MOUNTLIST):
79054         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
79055         * m4/openat.m4 (gl_FUNC_OPENAT):
79056         * m4/pathmax.m4 (gl_PATHMAX):
79057         * m4/physmem.m4 (gl_PHYSMEM):
79058         * m4/posixtm.m4 (gl_POSIXTM):
79059         * m4/posixver.m4 (gl_POSIXVER):
79060         * m4/quote.m4 (gl_QUOTE):
79061         * m4/quotearg.m4 (gl_QUOTEARG):
79062         * m4/readtokens.m4 (gl_READTOKENS):
79063         * m4/readutmp.m4 (gl_READUTMP):
79064         * m4/regex.m4 (gl_REGEX):
79065         * m4/safe-read.m4 (gl_SAFE_READ):
79066         * m4/safe-write.m4 (gl_SAFE_WRITE):
79067         * m4/same.m4 (gl_SAME):
79068         * m4/save-cwd.m4 (gl_SAVE_CWD):
79069         * m4/savedir.m4 (gl_SAVEDIR):
79070         * m4/settime.m4 (gl_SETTIME):
79071         * m4/sha1.m4 (gl_SHA1):
79072         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
79073         * m4/stat-macros.m4 (gl_STAT_MACROS):
79074         * m4/stat-time.m4 (gl_STAT_TIME):
79075         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
79076         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
79077         * m4/strdup.m4 (gl_FUNC_STRDUP):
79078         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
79079         * m4/strndup.m4 (gl_FUNC_STRNDUP):
79080         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
79081         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
79082         * m4/time_r.m4 (gl_TIME_R):
79083         * m4/timespec.m4 (gl_TIMESPEC):
79084         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
79085         * m4/unlinkdir.m4 (gl_UNLINKDIR):
79086         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
79087         * m4/userspec.m4 (gl_USERSPEC):
79088         * m4/utimecmp.m4 (gl_UTIMECMP):
79089         * m4/utimens.m4 (gl_UTIMENS):
79090         * m4/xalloc.m4 (gl_XALLOC):
79091         * m4/xgetcwd.m4 (gl_XGETCWD):
79092         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
79093         * m4/xreadlink.m4 (gl_XREADLINK):
79094         * m4/xstrtod.m4 (gl_XSTRTOD):
79095         * m4/yesno.m4 (gl_YESNO):
79096         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
79097         to get the necessary .h files and whatnot.
79098
79099 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
79100             Bruno Haible  <bruno@clisp.org>
79101
79102         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
79103         /bin/sh understanding of '!' conditional negation.
79104
79105 2006-08-21  Jim Meyering  <jim@meyering.net>
79106
79107         * modules/openat (Depends-on): Really alphabetize.
79108
79109         * modules/acl (Depends-on): Add error and quote.
79110
79111         * check-module (find_included_lib_files): Add at-func.c to the
79112         ok-to-include-more-than-once white list.
79113
79114         * modules/openat (Depends-on): Add lstat.  Alphabetize.
79115
79116 2006-08-21  Bruno Haible  <bruno@clisp.org>
79117
79118         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
79119         Emit a pkgdata_DATA variable only if some snippets add contents to it.
79120         Reported by Martin Lambers <marlam@marlam.de>.
79121
79122 2006-08-21  Bruno Haible  <bruno@clisp.org>
79123
79124         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
79125         specify an installation location, don't emit a noinst_LIBRARIES or
79126         noinst_LTLIBRARIES assignment.
79127
79128 2006-08-21  Bruno Haible  <bruno@clisp.org>
79129
79130         BeOS portability.
79131         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
79132         BeOS has mbrtowc() but no <wctype.h>.
79133
79134 2006-08-21  Bruno Haible  <bruno@clisp.org>
79135
79136         BeOS portability.
79137         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
79138         exist.
79139
79140 2006-08-21  Bruno Haible  <bruno@clisp.org>
79141
79142         BeOS portability.
79143         * lib/mbchar.h: Include <wctype.h> only if it exists.
79144
79145 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
79146
79147         Remove files that are no longer needed by their respective modules.
79148         * m4/obstack.m4: Remove.
79149         * m4/strerror_r.m4: Remove.
79150         * m4/uint32_t.m4: Remove.
79151         * m4/uintptr_t.m4: Remove.
79152         * m4/ullong_max.m4: Remove.
79153         * m4/xstrtoimax.m4: Remove.
79154         * m4/xstrtoumax.m4: Remove.
79155
79156         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
79157         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
79158         dependencies now capture this.
79159
79160         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
79161         Do not use AC_LIBSOURCES, since gnulib modules now do this.
79162         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
79163         * m4/human.m4 (gl_HUMAN): Likewise.
79164         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
79165         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
79166
79167         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
79168
79169         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
79170         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
79171         stdint.
79172         * m4/human.m4 (gl_HUMAN): Likewise.
79173         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
79174         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
79175         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
79176         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
79177         * m4/xstrtol (gl_XSTRTOL): Likewise.
79178
79179         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
79180         AC_TYPE_LONG_LONG_INT.
79181         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
79182         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
79183         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
79184         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
79185
79186         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
79187         on stdbool.
79188
79189         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
79190         (gl_PREREQ_XSTRTOUL): Remove.
79191
79192         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
79193
79194         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
79195         mode.
79196
79197 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
79198
79199         Add and change modules to make it easier for coreutils to use
79200         gnulib-tool.
79201         * modules/backupfile (Files): Remove m4/d-ino.m4.
79202         (Depends-on): Add d-ino.
79203         * modules/cycle-check (Depends-on): Add stdint.
79204         (lib_SOURCES): Add cycle-check.h.
79205         * modules/d-ino: New module.
79206         * modules/d-type: New module.
79207         * modules/error (Files): Remove m4/strerror_r.m4.
79208         * modules/filemode (Files): Add m4/st_dm_mode.m4.
79209         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
79210         m4/inttypes_h.m4, m4/uintmax_t.m4.
79211         (Depends-on): Add stdint.
79212         (lib_SOURCES): Add fsusage.h.
79213         * modules/getcwd (Files): Remove d-ino.m4.
79214         (Depends-on): Add d-ino.
79215         * modules/getndelim2 (Depends-on): Add stdint.
79216         * modules/glob (Files): Remove m4/d-type.m4.
79217         (Depends-on): Add d-type.
79218         * modules/host-os: New module.
79219         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
79220         m4/inttypes_h.m4, m4/uintmax_t.m4.
79221         * Depends-on: Add stdint.
79222         (lib_SOURCES): Add human.h.
79223         * modules/inttostr (Files): Remove m4/intmax_t.m4,
79224         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
79225         m4/uintmax_t.m4, m4/ulonglong.m4.
79226         (Depends-on): Add stdint.
79227         (EXTRA_DIST): Add inttostr.h.
79228         * modules/lchmod: New module.
79229         * modules/link-follow: New module.
79230         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
79231         (Depends-on): Add lchmod.
79232         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
79233         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
79234         (Depends-on): Add stdint.
79235         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
79236         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
79237         (Depends-on): Add stdint.
79238         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
79239         * modules/perl: New module.
79240         * modules/regex (Depends-on): Add stdint.
79241         * modules/rmdir-errno: New module.
79242         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
79243         m4/intmax_t.m4.
79244         (Depends-on): Add stdint.
79245         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
79246         m4/uintmax_t.m4.
79247         (Depends-on): Add stdint.
79248         * modules/unlink-busy: New module.
79249         * modules/utimecmp (Depends-on): Add stdint.
79250         * modules/uptime: New module.
79251         * modules/winsz-ioctl: New module.
79252         * modules/winsz-termios: New module.
79253         * modules/xnanosleep (Depends-on): Add nanosleep.
79254         * modules/ullong_max: Remove.
79255         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
79256         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
79257         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
79258         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
79259         (Depends-on): Add inttypes.
79260         (lib_SOURCES): Add xstrtol.h.
79261         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
79262         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
79263         * MODULES.html.sh: Move 'assert' into the assert section.
79264         Move 'dummy' into the linking section.
79265         Remove ullong_max.
79266         Add section for compatibility checks for POSIX:2001 functions,
79267         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
79268         winsz-ioctl, and winsz-termios into it.
79269         Add lchmod.
79270         Add top-level Misc section and put host-os, perl, and uptime
79271         into it.
79272
79273 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
79274
79275         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
79276         now assume the stdint module.  Do not include inttypes.h.
79277         * lib/fsusage.h: Likewise.
79278         * lib/getndelim2.c: Likewise.
79279         * lib/human.h: Likewise.
79280         * lib/inttostr.h: Likewise.
79281         * lib/obstack.c: Likewise.
79282         * lib/regex_internal.h: Likewise.
79283         * lib/tempname.c: Likewise.
79284         * lib/utimecmp.c: Likewise.
79285         * lib/xstrtol.h: Likewise.
79286
79287         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
79288
79289         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
79290         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
79291         * lib/xtime.h: Likewise.
79292
79293 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
79294
79295         * modules/openat (Files): Add lib/fchmodat.c.
79296         Fixes problem reported by Jay Youngman.
79297
79298 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
79299
79300         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
79301         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
79302
79303 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
79304             Bruno Haible  <bruno@clisp.org>
79305
79306         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
79307         and is a script that invokes bison. Tighten the code. Add comments.
79308
79309 2006-08-18  Jim Meyering  <jim@meyering.net>
79310
79311         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
79312         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
79313         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
79314         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
79315
79316 2006-08-18  Bruno Haible  <bruno@clisp.org>
79317
79318         * modules/bison-i18n: New file.
79319         * MODULES.html.sh (Internationalization functions): Add it.
79320
79321 2006-08-18  Bruno Haible  <bruno@clisp.org>
79322
79323         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
79324         sys/statvfs.h. When getmntinfo was found, check its declaration and
79325         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
79326
79327 2006-08-18  Bruno Haible  <bruno@clisp.org>
79328
79329         * m4/bison-i18n.m4: New file, from bison.
79330
79331 2006-08-18  Bruno Haible  <bruno@clisp.org>
79332
79333         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
79334         (ME_DUMMY): Treat "kernfs" as a dummy.
79335         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
79336
79337 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
79338
79339         Update from coreutils.
79340
79341         2006-08-15  Jim Meyering  <jim@meyering.net>
79342
79343         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
79344
79345         2006-01-17  Jim Meyering  <jim@meyering.net>
79346
79347         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
79348
79349         2006-01-11  Jim Meyering  <jim@meyering.net>
79350
79351         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
79352         Check for the lchmod function.
79353
79354 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
79355
79356         Update from coreutils.
79357
79358         * lib/__fpending.h: Add copyright notice.
79359         * lib/fprintftime.h: Likewise.
79360         * lib/savedir.c: Use (C) in copyright notice.
79361         * lib/savedir.h: Likewise.
79362
79363         2006-08-15  Jim Meyering  <jim@meyering.net>
79364
79365         * lib/at-func.c: New file, with the logic of all emulated at-functions.
79366         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
79367         in support of the EXPECTED_ERRNO macro.
79368         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
79369         definitions.  Instead, define the appropriate symbols and include
79370         "at-func.c".
79371         * lib/mkdirat.c (mkdirat): Likewise.
79372         * lib/fchmodat.c (fchmodat): Likewise.
79373         (ENOSYS): Remove definition.
79374         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
79375         it.  Don't include "unistd--.h" -- it wasn't ever used.
79376
79377         2006-01-17  Jim Meyering  <jim@meyering.net>
79378
79379         Rewrite fts.c not to change the current working directory,
79380         by using openat, fstatat, fdopendir, etc..
79381
79382         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
79383         (HAVE_OPENAT_SUPPORT): Define.
79384         [_LIBC] (fchdir): Don't undef or define; no longer used.
79385         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
79386         Now, this `function' always succeeds, and consumes its file descriptor
79387         parameter -- so callers must not close such FDs.  Update callers.
79388         (diropen_fd, opendirat, cwd_advance_fd): New functions.
79389         (diropen): Add parameter, SP.  Adjust all callers.
79390         Implement using diropen_fd, rather than open.
79391         (fts_open): Initialize new member, fts_cwd_fd.
79392         Remove fts_rft-setting code.
79393         (fts_close): Close fts_cwd_fd, if necessary.
79394         (__opendir2): Define in terms of opendir or opendirat,
79395         depending on whether the FST_NOCHDIR flag is set.
79396         (fts_build): Since fts_safe_changedir consumes its FD, and since
79397         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
79398         and close the dup'd file descriptor upon failure.
79399         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
79400         (fts_safe_changedir): Tweak semantics to reflect that this function
79401         now calls cwd_advance_fd and hence consumes its FD argument.
79402         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
79403         [struct FTS] (fts_rft): Remove now-unused member.
79404         [struct FTS] (fts_cycle.state): Improve comment.
79405
79406         * lib/openat.c (openat_needs_fchdir): New function.
79407         * lib/openat.h (openat_needs_fchdir): Declare it.
79408
79409 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
79410
79411         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
79412         Problem and fix reported by Pádraig Brady in
79413         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
79414
79415 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
79416
79417         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
79418
79419 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
79420
79421         * lib/memcoll.c (memcoll): Optimize for the common case where the
79422         arguments are bytewise equal.
79423
79424 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
79425
79426         * doc/regexprops-generic.texi: Add a copyright notice.
79427
79428 2006-08-15  Bruno Haible  <bruno@clisp.org>
79429
79430         * modules/tmpdir (License): Change to LGPL.
79431
79432 2006-08-15  Bruno Haible  <bruno@clisp.org>
79433
79434         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
79435         module.
79436
79437 2006-08-14  Simon Josefsson  <jas@extundo.com>
79438
79439         * config/srclist.txt: Add gnupload.
79440
79441 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
79442
79443         Change copyright notice from LGPL 2 to GPL 2, since that's the
79444         standard form used in the gnulib repository.
79445         * tests/test-lock.c: Likewise.
79446         * tests/test-stdint.c: Likewise.
79447         * tests/test-tls.c: Likewise.
79448
79449         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
79450         prelude-manager.  User shorter URLs for GNU projects, without '?'.
79451         Add copyright notice.
79452
79453         * check-module: Add copyright notice.  Output a copyright
79454         notice if "--version" is specified.
79455         * modules/COPYING: New file.
79456         * tests/test-getaddrinfo.c: Add copyright notice.
79457         * tests/test-verify.c: Likewise.
79458
79459 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
79460
79461         Change copyright notice from LGPL 2 to GPL 2, since that's the
79462         standard form used in the gnulib repository.
79463         * lib/lock.c: LGPL -> GPL.
79464         * lib/lock.h: Likewise.
79465         * lib/strnlen1.c: Likewise.
79466         * lib/strnlen1.h: Likewise.
79467         * lib/tls.c: Likewise.
79468         * lib/tls.h: Likewise.
79469         * lib/tmpdir.c: Likewise.
79470
79471         * lib/TODO: Remove; this belongs only in coreutils.
79472
79473 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
79474
79475         Add copyright notices to long-enough files that lack them, since
79476         otherwise the files aren't clearly free.  Use the same notice that
79477         getdate.texi already uses.
79478         * doc/alloca-opt.texi: Add copyright notice.
79479         * doc/alloca.texi: Likewise.
79480         * doc/ctime.texi: Likewise.
79481         * doc/functions.texi: Likewise.
79482         * doc/gcd.texi: Likewise.
79483         * doc/gnulib-tool.texi: Likewise.
79484         * doc/inet_ntoa.texi: Likewise.
79485         * doc/visibility.texi: Likewise.
79486
79487         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
79488         * doc/quote.texi: Add copyright notice.
79489
79490         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
79491         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
79492         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
79493         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
79494         is now obsolete, and give a pointer to the Sun list.
79495         Add copyright notice.
79496
79497 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
79498
79499         * config/srclistvars.sh: Add copyright notice.
79500
79501 2006-08-14  Eric Blake  <ebb9@byu.net>
79502
79503         Import the following change from libc:
79504
79505         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
79506
79507         Upstream bug 2997.
79508         * lib/misc/error.c: Add space between program name and message if file
79509         name is missing.
79510
79511 2006-08-12  Karl Berry  <karl@gnu.org>
79512
79513         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
79514         remove, these originate in gnulib now.
79515
79516 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79517
79518         * doc/Makefile (standards.info standards.html standards.dvi):
79519         Also depend on make-stds.texi.
79520
79521 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
79522
79523         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
79524         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
79525
79526         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
79527         in wchar_t.  Problem reported by Eric Blake.
79528
79529         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
79530         LEN is smaller than SIZE.  Suggested by Bruno Haible.
79531         Also, help the compiler to keep LEN in a register.
79532
79533 2006-08-11  Eric Blake  <ebb9@byu.net>
79534
79535         * users.txt: Sort.  Add tar.
79536
79537 2006-08-11  Bruno Haible  <bruno@clisp.org>
79538
79539         * users.txt: New file.
79540
79541 2006-08-11  Bruno Haible  <bruno@clisp.org>
79542
79543         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
79544         before <wchar.h>. Needed for OSF/1 and BSD/OS.
79545
79546 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
79547
79548         * modules/snprintf (Depends-on): Remove minmax.
79549         (Maintainer): Add self and Bruno.
79550
79551 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
79552
79553         * lib/.cppi-disable: Add snprintf.h, socket_.h.
79554         * lib/snprintf.c: Include <errno.h> and <limits.h>.
79555         (EOVERFLOW): Define if the system does not.
79556         Do not include "minmax.h"; it wasn't used.
79557         (snprintf): Don't assume size_t promotes to an unsigned type.
79558         Fix bug when generated string was too long for the buffer: the
79559         buffer's contents are supposed to be the initial prefix of the
79560         output.  Don't assume vasnprintf returns EOVERFLOW if the size
79561         exceeds INT_MAX; do the check ourselves.
79562
79563         Import the following changes from libc:
79564
79565         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
79566
79567         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
79568         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
79569         set wc to the byte which couldn't be converted.
79570         (re_string_reconstruct): Don't clear valid_raw_len before calling
79571         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
79572         tip_context using re_string_context_at.
79573
79574         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
79575
79576         * lib/posix/regex.h: g++ still cannot handled [restrict].
79577
79578         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
79579
79580         * lib/posix/regex.h: Remove special handling for VMS.
79581
79582 2006-08-10  Jim Meyering  <jim@meyering.net>
79583
79584         * modules/same-inode: New module.
79585         * modules/dev-ino: New module.
79586         * modules/cycle-check: Depend on these modules, rather than simply
79587         including their .h files.
79588         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
79589         required via m4/cycle-check.m4.
79590         * modules/same: Depend on new same-inode module, rather than
79591         including same-inode.h.
79592         * modules/chdir-safer: New file.
79593
79594         * modules/chown (Depends-on): Add stat-macros.
79595
79596 2006-08-10  Jim Meyering  <jim@meyering.net>
79597
79598         * m4/cycle-check.m4: New file.
79599         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
79600         * m4/dev-ino.m4, m4/same-inode.m4: New files.
79601
79602 2006-08-10  Eric Blake  <ebb9@byu.net>
79603
79604         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
79605         in from original proposal.
79606
79607 2006-08-10  Eric Blake  <ebb9@byu.net>
79608         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
79609
79610         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
79611         namespace.
79612
79613 2006-08-10  Bruno Haible  <bruno@clisp.org>
79614
79615         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
79616         as well.
79617
79618 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
79619
79620         Sync from coreutils.
79621
79622         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
79623
79624         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
79625         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
79626
79627 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
79628
79629         * modules/restrict: Remove; no longer needed now that we assume
79630         Autoconf 2.59 or later.
79631         * MODULES.html.sh: Remove 'restrict'.
79632         * modules/argp (Depends-on): Remove 'restrict'.
79633         * modules/base64 (Depends-on): Likewise.
79634         * modules/gc (Depends-on): Likewise.
79635         * modules/getaddrinfo (Depends-on): Likewise.
79636         * modules/glob (Depends-on): Likewise.
79637         * modules/inet_ntop (Depends-on): Likewise.
79638         * modules/inet_pton (Depends-on): Likewise.
79639         * modules/memxor (Depends-on): Likewise.
79640         * modules/regex (Depends-on): Likewise.
79641         * modules/strtok_r (Depends-on): Likewise.
79642         * modules/time_r (Depends-on): Likewise.
79643
79644 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
79645
79646         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
79647         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
79648         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
79649         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
79650         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
79651         * m4/memxor.m4 (gl_MEMXOR): Likewise.
79652         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
79653         gl_C_RESTRICT replaced by AC_C_RESTRICT.
79654
79655         Merge from coreutils.
79656         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
79657         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
79658         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
79659         * m4/time_r.m4 (gl_TIME_R): Likewise.
79660
79661 2006-08-09  Karl Berry  <karl@gnu.org>
79662
79663         * config/srclist.txt: no more gettext-tools, per Bruno.
79664
79665 2006-08-08  Eric Blake  <ebb9@byu.net>
79666
79667         * modules/verror: New module.
79668         * MODULES.html.sh: Document it.
79669
79670 2006-08-08  Eric Blake  <ebb9@byu.net>
79671
79672         * lib/verror.h, lib/verror.c: New files.
79673
79674 2006-08-08  Eric Blake  <ebb9@byu.net>
79675
79676         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
79677         verror_at_line output complies with GNU Coding Standards even when
79678         file is NULL.
79679
79680 2006-08-07  Bruno Haible  <bruno@clisp.org>
79681
79682         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
79683         versions of AIX.
79684         Reported by Ralf Wildenhues.
79685
79686 2006-08-07  Bruno Haible  <bruno@clisp.org>
79687
79688         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
79689         in an AC_DEFUN. Needed so that the autoconf snippets can use
79690         AC_REQUIRE.
79691
79692 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79693
79694         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
79695         Initialize pkgdata_DATA.
79696         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
79697         overriding it.
79698
79699 2006-08-06  Eric Blake  <ebb9@byu.net>
79700
79701         * lib/error.h: Fold in some upstream changes from glibc.
79702         * lib/error.c: Likewise.
79703
79704 2006-08-04  Bruno Haible  <bruno@clisp.org>
79705
79706         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
79707         Make the mostlyclean-local rule depend on mostlyclean-generic.
79708         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
79709
79710 2006-07-31  Bruno Haible  <bruno@clisp.org>
79711
79712         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
79713         <stdlib.h>, <string.h>.
79714
79715 2006-07-30  Bruno Haible  <bruno@clisp.org>
79716
79717         * modules/readlink (License): Change to LGPL.
79718
79719 2006-07-30  Bruno Haible  <bruno@clisp.org>
79720
79721         * modules/javaversion (Makefile.am): Distribute javaversion.java and
79722         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
79723         set PKGDATADIR to point to it.
79724
79725 2006-07-30  Bruno Haible  <bruno@clisp.org>
79726
79727         * modules/csharpexec (configure.ac): Comment out macro invocation.
79728         * modules/javaexec (configure.ac): Likewise.
79729         * modules/javacomp-script (configure.ac): Likewise.
79730
79731         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
79732
79733 2006-07-30  Bruno Haible  <bruno@clisp.org>
79734
79735         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
79736         linked-list.
79737
79738 2006-07-30  Bruno Haible  <bruno@clisp.org>
79739
79740         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
79741
79742 2006-07-30  Bruno Haible  <bruno@clisp.org>
79743
79744         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
79745         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
79746         get removed.
79747
79748 2006-07-29  Bruno Haible  <bruno@clisp.org>
79749
79750         Make it possible for gnulib-tool to work with locally modified or
79751         augmented gnulib repositories.
79752         * gnulib-tool (func_usage): Document --local-dir option.
79753         (local_gnulib_dir): New variable.
79754         Handle --local-dir option.
79755         (func_lookup_file): New function.
79756         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
79757         (func_get_description, func_get_filelist, func_get_description,
79758         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
79759         func_get_automake_snippet, func_get_include_directive,
79760         func_get_license, func_get_maintainer): Use func_lookup_file.
79761         (func_import, func_create_testdir): Use func_lookup_file.
79762
79763 2006-07-29  Bruno Haible  <bruno@clisp.org>
79764
79765         * modules/setenv (Depends-on): Add unistd.
79766
79767 2006-07-29  Bruno Haible  <bruno@clisp.org>
79768
79769         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
79770
79771 2006-07-29  Bruno Haible  <bruno@clisp.org>
79772
79773         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
79774
79775 2006-07-29  Bruno Haible  <bruno@clisp.org>
79776
79777         * gnulib-tool (import, update): If there is no Makefile.am, look at
79778         aclocal.m4, instead of bailing out.
79779
79780 2006-07-29  Bruno Haible  <bruno@clisp.org>
79781
79782         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
79783         Categorize the options by when they are useful.
79784
79785 2006-07-29  Bruno Haible  <bruno@clisp.org>
79786
79787         * gnulib-tool (func_usage): Document option --no-libtool.
79788         Handle option --no-libtool.
79789         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
79790         for changed semantics of $libtool variable.
79791         (func_import): Likewise. If libtool is not used, show this through
79792         an option --no-libtool.
79793         (func_create_testdir): Update.
79794
79795 2006-07-29  Bruno Haible  <bruno@clisp.org>
79796
79797         * gnulib-tool (func_import): Extend error message about missing
79798         --doc-base.
79799
79800 2006-07-29  Bruno Haible  <bruno@clisp.org>
79801
79802         * gnulib-tool (func_import): Don't create the $docbase directory if
79803         there is no file to store there.
79804
79805 2006-07-29  Bruno Haible  <bruno@clisp.org>
79806
79807         * gnulib-tool (autoconf_minversion): If a --dir option is given and
79808         relevant, look for configure.ac there, not in the current directory.
79809         Also use a simple search for AC_PREREQ, not "autoconf --trace".
79810
79811 2006-07-29  Bruno Haible  <bruno@clisp.org>
79812
79813         * gnulib-tool (SORT): New variable.
79814         (func_usage): Undocument --assume-autoconf option.
79815         Remove --assume-autoconf option handling.
79816         (autoconf_minversion): Determine from the contents of configure.ac.
79817         (func_import): Remove autoconf_minversion handling.
79818         Suggested by Eric Blake.
79819
79820 2006-07-29  Bruno Haible  <bruno@clisp.org>
79821
79822         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
79823
79824 2006-07-29  Bruno Haible  <bruno@clisp.org>
79825
79826         * config/srclist.txt (*setenv.[ch]): Remove rules.
79827
79828 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
79829
79830         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
79831
79832 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
79833
79834         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
79835         arpa/inet.h.
79836
79837 2006-07-28  Simon Josefsson  <jas@extundo.com>
79838
79839         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
79840         * modules/inet_pton (Depends-on): Likewise.
79841
79842 2006-07-28  Simon Josefsson  <jas@extundo.com>
79843
79844         * m4/netinet_in_h.m4: New file.
79845
79846 2006-07-28  Simon Josefsson  <jas@extundo.com>
79847
79848         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
79849         #include's.
79850
79851 2006-07-28  Simon Josefsson  <jas@extundo.com>
79852
79853         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
79854         #include's.
79855
79856 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
79857
79858         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
79859         setgid on directories only if they set these bits.
79860         * lib/modechange.h: Remove obsolete comment about masks.
79861
79862 2006-07-28  Eric Blake  <ebb9@byu.net>
79863
79864         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
79865         macro expansion.
79866
79867 2006-07-28  Bruno Haible  <bruno@clisp.org>
79868
79869         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
79870
79871 2006-07-28  Bruno Haible  <bruno@clisp.org>
79872
79873         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
79874
79875 2006-07-28  Bruno Haible  <bruno@clisp.org>
79876
79877         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
79878         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
79879         Define fallbacks.
79880         Avoids link error on FreeBSD 4.x.
79881         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
79882
79883         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
79884         encoding.
79885         * lib/mbswidth.c (iswcntrl): Likewise.
79886
79887 2006-07-27  Bruno Haible  <bruno@clisp.org>
79888
79889         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
79890         test.
79891
79892 2006-07-27  Bruno Haible  <bruno@clisp.org>
79893
79894         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
79895         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
79896         defined.
79897
79898 2006-07-26  Eric Blake  <ebb9@byu.net>
79899
79900         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
79901
79902 2006-07-26  Eric Blake  <ebb9@byu.net>
79903
79904         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
79905         like mingw that lack mkstemp.
79906         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
79907         avoid compilation warning on mingw.
79908
79909 2006-07-26  Bruno Haible  <bruno@clisp.org>
79910
79911         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
79912         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
79913         INT_FAST*_MIN, INTPTR_MIN.
79914
79915 2006-07-25  Bruno Haible  <bruno@clisp.org>
79916
79917         * modules/version-etc (Depends-on): Add stdarg.
79918
79919 2006-07-25  Bruno Haible  <bruno@clisp.org>
79920
79921         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
79922         complex commands.
79923
79924 2006-07-25  Bruno Haible  <bruno@clisp.org>
79925
79926         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
79927         defined in <stdarg.h> or config.h.
79928
79929 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
79930
79931         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
79932         (gl_STDIO_SAFER): Remove.
79933
79934 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
79935
79936         * MODULES.html.sh (File stream based Input/Output):
79937         Add fopen-safer, tmpfile-safer; remove stdio-safer.
79938         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
79939         * modules/fopen-safer, modules/tmpfile-safer: New files.
79940         * modules/stdio-safer: Remove.
79941
79942 2006-07-24  Bruno Haible  <bruno@clisp.org>
79943
79944         * modules/tmpdir: New file.
79945         * MODULES.html.sh (File system functions): Add it.
79946
79947 2006-07-24  Bruno Haible  <bruno@clisp.org>
79948
79949         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
79950         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
79951
79952 2006-07-24  Bruno Haible  <bruno@clisp.org>
79953
79954         * modules/clean-temp: New file.
79955
79956 2006-07-24  Bruno Haible  <bruno@clisp.org>
79957
79958         * m4/tmpdir.m4: New file, from GNU gettext.
79959
79960 2006-07-24  Bruno Haible  <bruno@clisp.org>
79961
79962         * lib/tmpdir.h: New file, from GNU gettext.
79963         * lib/tmpdir.c: New file, from GNU gettext.
79964
79965 2006-07-24  Bruno Haible  <bruno@clisp.org>
79966
79967         * lib/clean-temp.h: New file, from GNU gettext.
79968         * lib/clean-temp.c: New file, from GNU gettext.
79969
79970 2006-07-23  Eric Blake  <ebb9@byu.net>
79971
79972         * modules/stdio-safer (Files): Add tmpfile-safer.c.
79973         (Depends-on): Add binary-io.
79974
79975 2006-07-23  Eric Blake  <ebb9@byu.net>
79976
79977         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
79978
79979 2006-07-23  Eric Blake  <ebb9@byu.net>
79980
79981         * lib/tmpfile-safer.c: New file.
79982         * lib/stdio-safer.h (fopen_safer): Add prototype.
79983         * lib/stdio--.h (tmpfile): Make safer.
79984
79985 2006-07-23  Bruno Haible  <bruno@clisp.org>
79986
79987         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
79988         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
79989         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
79990         gl_linked_remove_at): Use it.
79991
79992 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
79993         and Simon Josefsson <jas@extundo.com>
79994
79995         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
79996
79997         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
79998
79999 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
80000
80001         * modules/close-stream: New file.
80002         * modules/closeout (Description): Make it clear that it exits
80003         with a diagnostic on error.
80004         (Depends-on): Add close-stream.  Remove fpending, stdbool.
80005         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
80006
80007 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
80008
80009         * m4/close-stream.m4: New file.
80010
80011 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
80012
80013         * lib/close-stream.c, lib/close-stream.h: New files.
80014
80015 2006-07-22  Bruno Haible  <bruno@clisp.org>
80016
80017         Merge from GNU gettext 0.15.
80018
80019         2006-05-01  Bruno Haible  <bruno@clisp.org>
80020
80021                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
80022
80023         2006-07-22  Bruno Haible  <bruno@clisp.org>
80024
80025                 * modules/javaversion: New file.
80026                 * MODULES.html.sh (Java): Add javaversion.
80027
80028         2006-03-12  Bruno Haible  <bruno@clisp.org>
80029
80030                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
80031
80032         2005-12-04  Bruno Haible  <bruno@clisp.org>
80033
80034                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
80035                 (untested).
80036
80037         2006-06-21  Bruno Haible  <bruno@clisp.org>
80038
80039                 Avoid warnings from recent versions of mcs.
80040                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
80041                 -o, -L, -r any more. Use options documented since mcs-1.0
80042                 instead. Similarly for -g.
80043
80044         2005-12-04  Bruno Haible  <bruno@clisp.org>
80045
80046                 * build-aux/csharpcomp.sh.in: Suffix for resources is
80047                 .resources, not .resource.
80048
80049         2005-07-09  Bruno Haible  <bruno@clisp.org>
80050
80051                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
80052                 add a .dll suffix.
80053                 Reported by Mark Junker <mjscod@gmx.de>.
80054
80055         2006-07-22  Bruno Haible  <bruno@clisp.org>
80056
80057                 * modules/gettext: Upgrade to gettext-0.15.
80058                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
80059                 m4/visibility.m4.
80060                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
80061
80062 2006-07-22  Bruno Haible  <bruno@clisp.org>
80063
80064         Merge from GNU gettext 0.15.
80065
80066         2006-03-25  Bruno Haible  <bruno@clisp.org>
80067
80068                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
80069
80070         2006-07-21  Bruno Haible  <bruno@clisp.org>
80071
80072                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
80073                 "1.1".
80074
80075         2006-05-09  Bruno Haible  <bruno@clisp.org>
80076
80077                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
80078                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
80079                 for the conftestver execution.
80080
80081         2006-05-01  Bruno Haible  <bruno@clisp.org>
80082
80083                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
80084                 optional target-version argument. Verify that the compiler
80085                 groks source of the specified source-version, or add -source
80086                 option as necessary. Verify that the compiler produces
80087                 bytecode in the specified target-version, or add -target and
80088                 -source options as necessary. Make the result of the test
80089                 available as variable CONF_JAVAC. Also log error output in
80090                 config.log.
80091
80092         2006-03-11  Bruno Haible  <bruno@clisp.org>
80093
80094                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
80095
80096         2006-05-09  Bruno Haible  <bruno@clisp.org>
80097
80098                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
80099                 CLASSPATH_SEPARATOR to a semicolon.
80100
80101         2006-03-12  Bruno Haible  <bruno@clisp.org>
80102
80103                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
80104                 available as variable CONF_JAVA, for subsequent autoconf
80105                 tests. Also log error output in config.log.
80106
80107         2006-07-19  Bruno Haible  <bruno@clisp.org>
80108
80109                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
80110                 that getline works on glibc2 systems. Needed to avoid trouble
80111                 in relocatable.c.
80112                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
80113
80114         2005-12-04  Bruno Haible  <bruno@clisp.org>
80115
80116                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
80117                 launcher (untested).
80118
80119         2005-12-04  Bruno Haible  <bruno@clisp.org>
80120
80121                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
80122
80123         2006-07-22  Bruno Haible  <bruno@clisp.org>
80124
80125                 * gettext.m4: Update from GNU gettext-0.15.
80126                 * nls.m4: Likewise.
80127                 * po.m4: Likewise.
80128                 * inttypes-pri.m4: Likewise.
80129                 * inttypes-h.m4: Renamed from inttypes.m4.
80130                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
80131
80132 2006-07-22  Bruno Haible  <bruno@clisp.org>
80133
80134         Merge from GNU gettext 0.15.
80135
80136         2005-07-05  Bruno Haible  <bruno@clisp.org>
80137
80138                 * printf-args.c (printf_fetchargs): Work around broken
80139                 definition of wint_t on mingw.
80140
80141         2005-02-12  Bruno Haible  <bruno@clisp.org>
80142
80143                 * xallocsa.h: Add extern "C" for C++.
80144
80145         2006-05-17  Bruno Haible  <bruno@clisp.org>
80146
80147                 Cygwin portability.
80148                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
80149
80150         2006-04-30  Bruno Haible  <bruno@clisp.org>
80151
80152                 * progreloc.c: Include <mach-o/dyld.h> if available.
80153                 (find_executable): Use _NSGetExecutablePath when possible.
80154
80155         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
80156
80157                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
80158                 function.
80159
80160         2005-12-29  Bruno Haible  <bruno@clisp.org>
80161
80162                 * progreloc.c (set_program_name_and_installdir): Fix
80163                 compilation error.
80164
80165         2005-12-04  Bruno Haible  <bruno@clisp.org>
80166
80167                 Cygwin portability.
80168                 * progreloc.c: Include <windows.h> also on Cygwin.
80169                 (find_executable): Add support for Cygwin.
80170                 (set_program_name_and_installdir): Handle also platforms with
80171                 nonempty EXEEXT.
80172
80173         2006-07-11  Bruno Haible  <bruno@clisp.org>
80174
80175                 * javacomp.c: Fix a comment.
80176                 Reported by Jim Meyering.
80177
80178         2006-04-30  Bruno Haible  <bruno@clisp.org>
80179
80180                 * javacomp.h (compile_java_class): Add source_version,
80181                 target_version arguments.
80182                 * javacomp.c: Rewritten to choose only a compiler that
80183                 respects the specified source_version and target_version.
80184
80185         2006-06-27  Bruno Haible  <bruno@clisp.org>
80186
80187                 Assume correct S_ISDIR macro.
80188                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
80189
80190         2006-07-22  Bruno Haible  <bruno@clisp.org>
80191
80192                 * javaversion.h: New file, from GNU gettext.
80193                 * javaversion.c: New file, from GNU gettext.
80194                 * javaversion.java: New file, from GNU gettext.
80195                 * javaversion.class: New file, from GNU gettext.
80196
80197         2006-05-17  Bruno Haible  <bruno@clisp.org>
80198
80199                 Cygwin portability.
80200                 * javaexec.c (execute_java_class): Test for jview program
80201                 also on Cygwin.
80202
80203         2006-04-09  Bruno Haible  <bruno@clisp.org>
80204
80205                 * fatal-signal.c: Don't include string.h.
80206                 (at_fatal_signal): Use a copying loop instead of memcpy.
80207
80208         2005-12-04  Bruno Haible  <bruno@clisp.org>
80209
80210                 * csharpexec.c: Add support for 'clix' launcher (untested).
80211                 (execute_csharp_using_sscli): New function.
80212                 (execute_csharp_program): Call it.
80213
80214         2006-06-21  Bruno Haible  <bruno@clisp.org>
80215
80216                 Avoid warnings from recent versions of mcs.
80217                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
80218                 -o, -L, -r any more. Use options documented since mcs-1.0
80219                 instead. Similarly for -g.
80220
80221         2005-07-09  Bruno Haible  <bruno@clisp.org>
80222
80223                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
80224                 add a .dll suffix.
80225                 Reported by Mark Junker <mjscod@gmx.de>.
80226
80227         2006-06-17  Bruno Haible  <bruno@clisp.org>
80228
80229                 * config.charset: Update for NetBSD 3.0.
80230
80231         2006-05-17  Bruno Haible  <bruno@clisp.org>
80232
80233                 Cygwin portability.
80234                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
80235
80236         2006-05-16  Bruno Haible  <bruno@clisp.org>
80237
80238                 * localcharset.c [CYGWIN]: Include <windows.h>.
80239                 (get_charset_aliases): For Cygwin, return the same CPxxx
80240                 aliases list as under WIN32.
80241                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
80242                 the environment variables. Fall back to GetACP().
80243
80244         2006-04-05  Bruno Haible  <bruno@clisp.org>
80245
80246                 * config.charset: Update Juan Manuel Guerrero's address.
80247
80248         2005-02-12  Bruno Haible  <bruno@clisp.org>
80249
80250                 * allocsa.h: Add extern "C" for C++.
80251
80252         2005-02-10  Bruno Haible  <bruno@clisp.org>
80253
80254                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
80255                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
80256
80257         2006-07-22  Bruno Haible  <bruno@clisp.org>
80258
80259                 * gettext.h: Update to GNU gettext-0.15.
80260
80261 2006-07-22  Bruno Haible  <bruno@clisp.org>
80262
80263         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
80264         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
80265         lib-prefix.m4, longdouble.m4, ssize_t.m4.
80266
80267 2006-07-21  Eric Blake  <ebb9@byu.net>
80268
80269         * modules/stdlib-safer: New file.
80270         * MODULES.html.sh (File stream based Input/Output): Add
80271         stdlib-safer.
80272
80273 2006-07-21  Eric Blake  <ebb9@byu.net>
80274
80275         * lib/stdlib-safer.h: New file from coreutils, required by
80276         stdlib--.h.
80277
80278 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
80279
80280         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
80281
80282 2006-07-20  Bruno Haible  <bruno@clisp.org>
80283
80284         * gnulib-tool: Recognize new option --assume-autoconf.
80285         (autoconf_minversion): New variable.
80286         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
80287
80288 2006-07-20  Bruno Haible  <bruno@clisp.org>
80289
80290         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
80291
80292 2006-07-19  Derek R. Price  <derek@ximbiot.com>
80293
80294         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
80295         Reindent and repaginate.
80296
80297 2006-07-19  Derek Price  <derek@ximbiot.com>
80298
80299         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
80300         Correct grammar.
80301
80302 2006-07-17  Bruno Haible  <bruno@clisp.org>
80303
80304         * modules/list: New file.
80305         * modules/array-list: New file.
80306         * modules/carray-list, modules/carray-list-tests: New files.
80307         * modules/linked-list, modules/linked-list-tests: New files.
80308         * modules/avltree-list, modules/avltree-list-tests: New files.
80309         * modules/rbtree-list, modules/rbtree-list-tests: New files.
80310         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
80311         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
80312         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
80313         * modules/oset: New file.
80314         * modules/array-oset: New file.
80315         * modules/avltree-oset, modules/avltree-oset-tests: New files.
80316         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
80317         * tests/test-carray_list.c: New file.
80318         * tests/test-linked_list.c: New file.
80319         * tests/test-avltree_list.c: New file.
80320         * tests/test-rbtree_list.c: New file.
80321         * tests/test-linkedhash_list.c: New file.
80322         * tests/test-avltreehash_list.c: New file.
80323         * tests/test-rbtreehash_list.c: New file.
80324         * tests/test-avltree_oset.c: New file.
80325         * tests/test-rbtree_oset.c: New file.
80326         * MODULES.html.sh (Container data structures): New section.
80327
80328 2006-07-17  Bruno Haible  <bruno@clisp.org>
80329
80330         * m4/gl_list.m4: New file.
80331
80332 2006-07-17  Bruno Haible  <bruno@clisp.org>
80333
80334         * lib/gl_list.h: New file.
80335         * lib/gl_list.c: New file.
80336         * lib/gl_array_list.h: New file.
80337         * lib/gl_array_list.c: New file.
80338         * lib/gl_carray_list.h: New file.
80339         * lib/gl_carray_list.c: New file.
80340         * lib/gl_linked_list.h: New file.
80341         * lib/gl_linked_list.c: New file.
80342         * lib/gl_anylinked_list1.h: New file.
80343         * lib/gl_anylinked_list2.h: New file.
80344         * lib/gl_avltree_list.h: New file.
80345         * lib/gl_avltree_list.c: New file.
80346         * lib/gl_anyavltree_list1.h: New file.
80347         * lib/gl_anyavltree_list2.h: New file.
80348         * lib/gl_rbtree_list.h: New file.
80349         * lib/gl_rbtree_list.c: New file.
80350         * lib/gl_anyrbtree_list1.h: New file.
80351         * lib/gl_anyrbtree_list2.h: New file.
80352         * lib/gl_anytree_list1.h: New file.
80353         * lib/gl_anytree_list2.h: New file.
80354         * lib/gl_linkedhash_list.h: New file.
80355         * lib/gl_linkedhash_list.c: New file.
80356         * lib/gl_anyhash_list1.h: New file.
80357         * lib/gl_anyhash_list2.h: New file.
80358         * lib/gl_avltreehash_list.h: New file.
80359         * lib/gl_avltreehash_list.c: New file.
80360         * lib/gl_rbtreehash_list.h: New file.
80361         * lib/gl_rbtreehash_list.c: New file.
80362         * lib/gl_anytreehash_list1.h: New file.
80363         * lib/gl_anytreehash_list2.h: New file.
80364
80365         * lib/gl_oset.h: New file.
80366         * lib/gl_oset.c: New file.
80367         * lib/gl_array_oset.h: New file.
80368         * lib/gl_array_oset.c: New file.
80369         * lib/gl_avltree_oset.h: New file.
80370         * lib/gl_avltree_oset.c: New file.
80371         * lib/gl_rbtree_oset.h: New file.
80372         * lib/gl_rbtree_oset.c: New file.
80373         * lib/gl_anytree_oset.h: New file.
80374
80375 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
80376
80377         * m4/mkancesdirs.m4: New file.
80378         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
80379         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
80380         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
80381         it.
80382
80383 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
80384
80385         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
80386         * lib/mkancesdirs.h: New files.
80387         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
80388         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
80389         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
80390         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
80391         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
80392         callers changed.  Revamp internals significantly, by not
80393         attempting to create directories that are temporarily more
80394         permissive than the final results.  Do not attempt to use
80395         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
80396         This removes some race conditions, fixes some bugs, and simplifies
80397         things.  Use new dirchownmod function to do owner and mode changes.
80398         * lib/mkdir-p.h: Likewise.
80399         * lib/modechange.c (octal_to_mode): New function.
80400         (struct mode_change): New member mentioned.
80401         (make_node_op_equals): New arg mentioned.  All callers changed.
80402         (mode_compile): Keep track of which mode bits the user has explicitly
80403         mentioned.
80404         (mode_adjust): New arg DIR, so that we implement the X op correctly.
80405         New arg PMODE_BITS, to keep track of which mode bits the user
80406         mentioned; it treats S_ISUID and S_ISGID speciall.
80407         All callers changed.
80408         * lib/modechange.h: Likewise.
80409
80410 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
80411
80412         * MODULES.html.sh: Add mkancestors.
80413         * modules/mkancesdirs: New module.
80414         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
80415         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
80416         The chdir-safer and afs files are now orphans; I'll remove them
80417         unless someone speaks up.
80418         Add lib/dirchownmod.c, lib/dirchownmod.h.
80419         (Depends-on): Remove alloca, chown, save-cwd, dirname.
80420         Add lchown, mkancesdirs.
80421         (Maintainer): Add self.
80422
80423 2006-07-15  Karl Berry  <karl@gnu.org>
80424
80425         * gnulib-tool: help message wording/arrangement.
80426
80427 2006-07-14  Simon Josefsson  <jas@extundo.com>
80428
80429         * doc/gnulib.texi (Libtool and Windows): New section.
80430
80431 2006-07-12  Simon Josefsson  <jas@extundo.com>
80432
80433         * modules/gendocs (License): Fix license, approved by Karl.
80434
80435 2006-07-12  Eric Blake  <ebb9@byu.net>
80436
80437         * MODULES.html.sh: Add gendocs.
80438
80439 2006-07-11  Eric Blake  <ebb9@byu.net>
80440
80441         * modules/fdl: New module, to install doc/fdl.texi.
80442         * MODULES.html.sh: Add new section for documentation modules.
80443         * gnulib-tool: Avoid space-tab.
80444         (--doc-base): New option, to manage files from doc.
80445
80446 2006-07-11  Eric Blake  <ebb9@byu.net>
80447
80448         * m4/absolute-header.m4: Fix comments to match recent change.
80449
80450 2006-07-11  Eric Blake  <ebb9@byu.net>
80451
80452         * gnulib-tool: List --doc-base before --tests-base.
80453
80454 2006-07-11  Derek R. Price  <derek@ximbiot.com>
80455
80456         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
80457
80458 2006-07-11  Bruno Haible  <bruno@clisp.org>
80459
80460         * README: Mention where to put documentation.
80461
80462 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80463
80464         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
80465
80466 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
80467
80468         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
80469         to stdint.m4.
80470
80471 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
80472
80473         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
80474         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
80475         "no/such/file/stdint.h" when there is no such file, so that
80476         the resulting C code can be parsed by dodgy compilers.
80477         Problems reported by Bob Proulx.
80478
80479 2006-07-10  Derek R. Price  <derek@ximbiot.com>
80480
80481         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
80482         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
80483         macros into the GNU _D_EXACT_NAMLEN.
80484         * lib/savedir.c:  Likewise.
80485         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
80486
80487 2006-07-10  Derek R. Price  <derek@ximbiot.com>
80488         and Paul Eggert  <eggert@cs.ucla.edu>
80489
80490         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
80491         * m4/savedir.m4:
80492         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
80493         macros into the GNU _D_EXACT_NAMLEN.
80494
80495 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
80496
80497         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
80498         around the absolute name, to work around a problem with the HP-UX
80499         11.23 native C compiler, reported by Bob Proulx.
80500
80501 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
80502
80503         * doc/maintain.texi, make-stds.texi: Sync from
80504         <http://savannah.gnu.org/projects/gnustandards>.
80505
80506 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
80507
80508         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
80509
80510 2006-07-09  Jim Meyering  <jim@meyering.net>
80511
80512         * m4/glob.m4: Remove a doubled word in a comment.
80513
80514 2006-07-09  Jim Meyering  <jim@meyering.net>
80515
80516         * lib/argp-pv.c: Remove a doubled word in a comment.
80517         * lib/check-version.c (check_version): Likewise.
80518         * lib/javacomp.c (compile_java_class): Likewise.
80519
80520 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
80521
80522         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
80523         for the benefit of people using Autoconf 2.60.  If you want to
80524         support older Autoconf versions you can copy m4/onceonly_2_57.m4
80525         (or m4/onceonly.m4, if pre-2.57) manually.
80526
80527 2006-07-08  Jim Meyering  <jim@meyering.net>
80528
80529         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
80530         comment.
80531         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
80532         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
80533         comment.
80534
80535 2006-07-08  Jim Meyering  <jim@meyering.net>
80536
80537         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
80538
80539 2006-07-07  Simon Josefsson  <jas@extundo.com>
80540
80541         * tests/test-crc.c: Change expected crc value, the test vector
80542         were probably computed using the old broken crc.c?
80543
80544 2006-07-06  Simon Josefsson  <jas@extundo.com>
80545
80546         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
80547         now the canonical place for the M4 file).
80548
80549         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
80550         from the sys_socket dependency now.
80551
80552         * modules/inet_pton (Files): Ditto.
80553
80554         * modules/inet_ntop (Files): Ditto.
80555
80556 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
80557
80558         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
80559         not gl_PREREQ_GETUSERSHELL.
80560
80561 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80562
80563         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
80564         with only one argument, for Autoconf 2.60.
80565         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
80566         expand to nothing, so add a shell command to avoid syntax error.
80567         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
80568
80569 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80570
80571         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
80572
80573 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
80574
80575         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
80576         no longer needed.  Check for isblank decl.
80577         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
80578         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
80579         of existence.
80580
80581 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
80582
80583         * lib/getloadavg.c: Use __VMS, not VMS.
80584         * lib/getopt.c: Likewise.
80585         * lib/getpagesize.h: Likewise.
80586         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
80587         and probably does not work.
80588
80589 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
80590
80591         * lib/.cppi-disable: Add wcwidth.
80592         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
80593         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
80594         (ISGRAPH): Remove.  All uses changed to isgraph.
80595         (FOLD) [!defined _LIBC]: Remove special case.
80596         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
80597         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
80598         HAVE_ISBLANK.
80599         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
80600         case.
80601
80602 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
80603
80604         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
80605         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
80606         brackets.  Other minor changes to suppress some compiler
80607         warnings.
80608
80609 2006-07-06  Derek R. Price  <derek@ximbiot.com>
80610         and Paul Eggert  <eggert@cs.ucla.edu>
80611
80612         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
80613         of invoking obsolescent AC_HEADER_DIRENT macro.
80614         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
80615         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
80616         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
80617         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
80618         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
80619         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
80620         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
80621         * m4/readdir.m4: Remove; no longer needed.
80622
80623 2006-07-06  Derek R. Price  <derek@ximbiot.com>
80624         and Paul Eggert  <eggert@cs.ucla.edu>
80625
80626         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
80627         Don't worry about this obsolete case any more.
80628         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
80629         directories.
80630         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
80631         worry about this obsolete case any more.
80632         * lib/fts.c: Likewise.
80633         * lib/getcwd.c: Likewise.
80634         * lib/glob.h: Likewise.
80635         * lib/savedir.c: Likewise.
80636
80637 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
80638
80639         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
80640         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
80641         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
80642         needed.
80643         All uses removed.
80644         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
80645         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
80646         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
80647         needed.
80648         * m4/getdate.m4 (gl_GETDATE): Likewise.
80649         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
80650         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
80651         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
80652         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
80653         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
80654         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
80655         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
80656         needed.
80657
80658 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
80659
80660         * lib/memcasecmp.c: Include <limits.h>.
80661         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
80662         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
80663         Don't assume isdigit succeeds only on '0' through '9'.
80664
80665 2006-07-05  Eric Blake  <ebb9@byu.net>
80666
80667         * modules/getaddrinfo (Depends-on): Add snprintf.
80668
80669 2006-07-05  Eric Blake  <ebb9@byu.net>
80670
80671         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
80672         to avoid 'header present but could not be compiled' on cygwin.
80673
80674 2006-07-05  Eric Blake  <ebb9@byu.net>
80675
80676         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
80677         missing from netdb.h.
80678         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
80679
80680 2006-07-05  Derek R. Price  <derek@ximbiot.com>
80681
80682         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
80683         no longer needed.
80684         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
80685         * m4/getdate.m4 (gl_GETDATE): Likewise.
80686         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
80687         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
80688         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
80689         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
80690         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
80691
80692 2006-07-05  Derek R. Price  <derek@ximbiot.com>
80693
80694         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
80695         All uses of is_space replaced by isspace.
80696         * lib/exit.h: Don't talk about STDC_HEADERS.
80697         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
80698         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
80699         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
80700         replaced by isprint etc.
80701         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
80702         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
80703         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
80704         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
80705         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
80706         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
80707
80708 2006-07-05  Bruno Haible  <bruno@clisp.org>
80709
80710         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
80711         the function exists, before testing against AIX.
80712         Reported by Martin Lambers <marlam@marlam.de>.
80713
80714 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
80715
80716         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
80717         From Mark D. Baushke.
80718
80719 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
80720
80721         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
80722         to the absolute name, not just one, to bypass Sun C 5.8's
80723         "warning: #include of /usr/include/... may be non-portable".
80724
80725 2006-07-04  Eric Blake  <ebb9@byu.net>
80726
80727         * modules/dirname-tests: New test module.
80728         * tests/test-dirname.c: New file, replacing dirname.c
80729         TEST_DIRNAME section that was recently deleted.
80730
80731 2006-07-04  Bruno Haible  <bruno@clisp.org>
80732
80733         Assume ANSI C header files and <ctype.h> functions.
80734         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
80735         (mbsnwidth): Use isprint, iscntrl instead.
80736
80737 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
80738
80739         Merge from coreutils.
80740         * MODULES.html.sh: Add xstrtold.
80741         * modules/xstrtold: New file.
80742         * modules/cycle-check (Files): Add lib/same-inode.h.
80743         * modules/dirname (Files): Add m4/double-slash-root.m4.
80744         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
80745         * modules/mkdir-p (Files): Add lib/same-inode.h.
80746         * modules/same (Files): Add lib/same-inode.h.
80747
80748 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
80749
80750         * m4/absolute-header.m4: Renamed from full-header-path.m4.
80751         This is to keep the terminology clean; POSIX talks about
80752         "absolute pathnames", not "full pathnames", but the GNU
80753         Coding Standards say to use "path" for something else;
80754         so use "absolute" to keep both sides happy.
80755         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
80756         Set gl_absolute_header, not gl_full_header_path.
80757         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
80758         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
80759         All uses changed.
80760
80761         Merge from coreutils.
80762
80763         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
80764
80765         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
80766         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
80767         want to require the building of c-strtod.o.
80768         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
80769         needs -lm directly.
80770         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
80771
80772         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
80773
80774         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
80775         --as-needed option if available.  Problem reported by Albert Chin in
80776         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
80777         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
80778         cc merely issues a bunch of annoying warnings for --as-needed
80779         (this problem was reported by Bob Proulx).  Also, try linking with
80780         -lm to detect a bug in binutils 2.16 (this problem was reported
80781         by Ralf Wildenhues).
80782
80783         2006-06-18  Jim Meyering  <jim@meyering.net>
80784
80785         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
80786         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
80787         macro.
80788         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
80789         also check for glibc-2.4's abort-inducing bug.
80790
80791         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
80792         Low-probability clean-up should be to use rmdir to get rid of
80793         the just-created directory, not unlink.
80794
80795         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
80796         configure fail, and request a bug report to inform us about it.
80797         Add a comment that, barring reports to the contrary, in 2007 we'll
80798         assume ftruncate is universally available.
80799
80800         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
80801
80802         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
80803
80804         2006-03-12  Jim Meyering  <jim@meyering.net>
80805
80806         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
80807         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
80808         * m4/same.m4 (gl_SAME): Likewise.
80809         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
80810
80811         2006-03-11  Eric Blake  <ebb9@byu.net>
80812
80813         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
80814         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
80815         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
80816         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
80817
80818 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
80819
80820         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
80821         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
80822         reported by Mark D. Baushke, one in
80823         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
80824
80825         Merge from coreutils.
80826
80827         * lib/.cppi-disable: Add stdint_.h.
80828         * lib/.cvsignore: Add stdint.h.
80829
80830         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
80831
80832         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
80833         both double and long double versions.
80834         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
80835         * lib/xstrtold.c: New file.
80836         * lib/xstrtod.h (xstrtold): New decl.
80837
80838         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
80839
80840         * lib/filemode.c (setst): Remove.
80841         (strmode): Rewrite to avoid setst.  This makes the code shorter,
80842         (arguably) clearer, and the generated code is a bit smaller on my
80843         Debian GNU/Linux stable x86 host.
80844
80845         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
80846
80847         * lib/filemode.c: Include "filemode.h" first, to test the interface.
80848         Assume that filemode.h includes sys/types.h and sys/stat.h.
80849         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
80850         (ftypelet): Reorder to put common cases first, for efficiency.
80851         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
80852         to do 'M'.
80853         (strmode): Renamed from mode_string, and now stores 12 bytes instead
80854         of 10, for compatibility with FreeBSD.  All callers changed.
80855         (filemodestring): Now stores 12 bytes instead of 10, and sets file
80856         types that can't be deduced solely from st_mode.  First arg is now a
80857         const pointer.
80858         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
80859         (strmode): Renamed from mode_string.
80860         (filemodestring): New decl.
80861         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
80862         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
80863         needed.
80864         (S_ISPORT, S_ISWHT): New macros, if not already defined.
80865
80866         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
80867
80868         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
80869         fsusage.h now does that.  Include fsusage.h first, to test interface.
80870         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
80871         at most one method (the old code could have generated decls that
80872         didn't conform to C89, not that this was ever exercised).
80873         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
80874
80875         2006-03-19  Jim Meyering  <jim@meyering.net>
80876
80877         Work even in a chroot where d_ino values for entries in "/"
80878         don't match the stat.st_ino values for the same names.
80879         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
80880         number, iterate through all entries again, using lstat instead.
80881         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
80882         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
80883
80884         * lib/getcwd.c (__getcwd): Clarify a comment.
80885         Use memcpy in place of a call to strcpy.
80886
80887         2006-03-12  Jim Meyering  <jim@meyering.net>
80888
80889         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
80890         matches that of the current directory (which we're about to chdir ".."
80891         out of), then save the dev-ino of the parent, instead.
80892
80893         * lib/same-inode.h (SAME_INODE): New file/macro.
80894         * lib/chdir-safer.c (SAME_INODE): Remove definition.
80895         Include "same-inode.h", instead.
80896         * lib/same.c: Likewise.
80897         * lib/cycle-check.h: Include "same-inode.h".
80898         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
80899         * lib/cycle-check.c (SAME_INODE): Remove definition.
80900         * lib/root-dev-ino.h: Include "same-inode.h".
80901
80902         2006-03-11  Eric Blake  <ebb9@byu.net>
80903
80904         * lib/same.c (same_name): s/base_name/last_component/
80905         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
80906         * lib/filenamecat.c (file_name_concat): Likewise.
80907
80908         2006-03-11  Eric Blake  <ebb9@byu.net>,
80909                     Paul Eggert  <eggert@cs.ucla.edu>
80910
80911         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
80912         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
80913         drive prefix.
80914         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
80915         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
80916         (last_component): New method.
80917         * lib/dirname.c (dir_len): Determine when drive letters need a
80918         subsequent slash.  Preserve // when it is special.
80919         (dir_name): Don't append dot when drive letter is absolute.
80920         [TEST_DIRNAME]: Move into a full-blown gnulib test.
80921         * lib/basename.c (base_name): New semantics - malloc the result.
80922         Preserve // when it is special.  Preserve relative files that look
80923         like drive letters.
80924         (base_len): Preserve // when it is special.
80925         (last_component): New method, similar to old base_name semantics.
80926         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
80927         base_name.  Strip redundant slashes from ///.
80928
80929 2006-07-03  Jim Meyering  <jim@meyering.net>
80930
80931         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
80932         macro is used before the first cycle_check call.
80933
80934 2006-07-03  Eric Blake  <ebb9@byu.net>
80935
80936         * modules/dirname (Depends-on): Add xstrndup.
80937
80938 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
80939
80940         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
80941         test cases, so that config.log is a bit easier to follow.
80942
80943 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
80944
80945         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
80946         both are 64 bits, since this seems to be the tradition, and this
80947         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
80948         we ever run into a host that prefers long long to long in this
80949         case, we'll need another configure-time test.  Problem reported by
80950         Jim Meyering.
80951
80952 2006-07-02  Eric Blake  <ebb9@byu.net>
80953
80954         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
80955
80956 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
80957
80958         * modules/inttypes (Depends-on): No longer depends on stdint.
80959         * modules/stdint (Description): Say more about assumptions.
80960         Say that the fast types might differ.  Say macros are used.
80961         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
80962         (Makefile.am): Revise list of substituted symbols to match
80963         new stdint.m4.
80964         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
80965         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
80966         * tests/test-stdint.c (verify_same_types)
80967         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
80968         the code conforms to C99/C89.
80969         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
80970         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
80971
80972 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
80973
80974         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
80975         but fix a bug, by requiring at least 64 bits.
80976         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
80977         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
80978         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
80979         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
80980
80981         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
80982         changes.  Make 2.59 a prerequisite.  Check and substitute for
80983         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
80984         inttypes.h.  Do not use special include files; just use the
80985         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
80986         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
80987         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
80988         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
80989         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
80990         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
80991         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
80992         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
80993         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
80994         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
80995         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
80996         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
80997         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
80998         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
80999         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
81000         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
81001         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
81002         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
81003         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
81004         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
81005         WINT_MAX.  Check for C99 conformance more strictly, by detecting
81006         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
81007         not check for things that C99 does not require, e.g., int8_t.  If
81008         a test isn't needed unless <stdint.h> isn't working, and is
81009         unlikely to be needed for any other reason, then don't do it
81010         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
81011         size_t, since we assume C89 freestanding at least.  Do not check
81012         for sig_atomic_t, wchar_t, or wint_t, since the code now does
81013         the right thing even if the types are not defined.  Instead use:
81014         (gl_STDINT_TYPE_PROPERTIES): New macro.
81015         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
81016         testing whether <sys/types.h> clashes, as Autoconf does this for
81017         us now.  All uses removed.
81018         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
81019         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
81020         (gl_CHECK_TYPE_SAME):
81021         Remove; no longer needed.
81022         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
81023         exists, since we'll return 0 anyway in that case.
81024         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
81025
81026 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
81027
81028         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
81029         possible collision with system files.
81030         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
81031         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
81032         WCHAR_MIN and WCHAR_MAX in this case.
81033         (<stddef.h>): Do not include; no longer needed.
81034         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
81035         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
81036         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
81037         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
81038         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
81039         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
81040         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
81041         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
81042         !defined(__c99))]: Include in this case too, since it's harmless
81043         now.
81044         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
81045         dangerous to do so.
81046         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
81047         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
81048         (_STDINT_MIN, _STDINT_MAX): New macros.
81049         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
81050         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
81051         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
81052         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
81053         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
81054         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
81055         macros, not typedefs; this simplifies things quite a bit.
81056         Use long int for all types narrower than int64_t.
81057         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
81058         Define in terms of long long int or int64_t or long int,
81059         not int64_t or int32_t.  This saves some compile-time testing.
81060         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
81061         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
81062         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
81063         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
81064         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
81065         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
81066         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
81067         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
81068         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
81069         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
81070         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
81071         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
81072         undef any previous version and define our own version, for
81073         simplicity and consistency with the new macros for types.
81074         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
81075         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
81076         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
81077         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
81078         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
81079         @WINT_T_SUFFIX@ to keep things simple here.
81080         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
81081         Simplify by assuming typical 8/16/32/64 host, since we're
81082         already doing that elsewhere anyway.
81083         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
81084         and assume long long int is 64 bits if available.  This
81085         speeds up 'configure'.
81086
81087 2006-07-01  Eric Blake  <ebb9@byu.net>
81088
81089         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
81090         Reported by Andreas Buening.
81091
81092 2006-07-01  Eric Blake  <ebb9@byu.net>
81093
81094         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
81095
81096 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
81097
81098         * lib/getaddrinfo.c: fixed typo
81099
81100 2006-06-29  Jim Meyering  <jim@meyering.net>
81101
81102         * modules/strftime (Maintainer): Add my name, since with the
81103         FPRINTFTIME changes strftime.c has forked from glibc.
81104
81105 2006-06-29  Eric Blake  <ebb9@byu.net>
81106
81107         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
81108
81109 2006-06-29  Eric Blake  <ebb9@byu.net>
81110
81111         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
81112
81113 2006-06-29  Eric Blake  <ebb9@byu.net>
81114
81115         * lib/stat_.h: New file.
81116
81117 2006-06-29  Eric Blake  <ebb9@byu.net>
81118
81119         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
81120         unused static function.
81121
81122 2006-06-29  Eric Blake  <ebb9@byu.net>
81123
81124         * doc/functions.texi (Function Portability): Document missing lstat
81125         on mingw.
81126
81127 2006-06-29  Eric Blake  <ebb9@byu.net>
81128
81129         * MODULES.html.sh: Add sys_stat.
81130         * modules/sys_stat: New module.
81131         * modules/mkstemp (Depends-on): Add sys_stat.
81132
81133 2006-06-29  Derek R. Price  <derek@ximbiot.com>
81134
81135         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
81136
81137 2006-06-29  Derek R. Price  <derek@ximbiot.com>
81138
81139         * m4/c-bs-a.m4: Removed.
81140
81141 2006-06-29  Derek R. Price  <derek@ximbiot.com>
81142
81143         * lib/strftime.c: Assume strftime() exists.
81144
81145 2006-06-29  Derek Price  <derek@ximbiot.com>
81146
81147         * modules/c-bs-a: Removed - \a is C89.
81148         * MODULES.html.sh: Remove c-bs-a.
81149
81150 2006-06-29  Bruno Haible  <bruno@clisp.org>
81151
81152         * modules/wcwidth (License): Change to LGPL.
81153
81154 2006-06-28  Simon Josefsson  <jas@extundo.com>
81155
81156         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
81157         on _WIN32.
81158
81159         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
81160         getnameinfo.
81161
81162 2006-06-28  Simon Josefsson  <jas@extundo.com>
81163
81164         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
81165
81166 2006-06-28  Simon Josefsson  <jas@extundo.com>
81167
81168         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
81169         functions there.  It will succeed on Windows XP, but on Windows
81170         2000 and (presumably) earlier, it will fail, and use the internal
81171         re-implementation.
81172         (use_win32_p): New function.
81173         (getaddrinfo): Use strtoul on servname, to support numeric ports.
81174         Support AI_NUMERICSERV to disable getservbyname.
81175         (getnameinfo): New function, only supports
81176         NI_NUMERICHOST|NI_NUMERICSERV for now.
81177
81178         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
81179         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
81180         getnameinfo.
81181
81182 2006-06-28  Eric Blake  <ebb9@byu.net>
81183
81184         * modules/wcwidth: New file.
81185         * modules/mbchar (Depends-on): Add wcwidth.
81186         * modules/mbswidth (Depends-on): Add wcwidth.
81187         * MODULES.html.sh: Add wcwidth.
81188
81189 2006-06-28  Eric Blake  <ebb9@byu.net>
81190
81191         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
81192         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
81193
81194 2006-06-28  Eric Blake  <ebb9@byu.net>
81195
81196         * lib/xvasprintf.h: Fix comments.
81197
81198 2006-06-28  Eric Blake  <ebb9@byu.net>
81199
81200         * lib/mbchar.h (wcwidth): Include wcwidth.h.
81201         * lib/mbswidth.c (wcwidth): Move from here...
81202         * lib/wcwidth.h: ...to this new file.
81203
81204 2006-06-28  Derek R. Price  <derek@ximbiot.com>
81205
81206         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
81207
81208         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
81209         it's obsolete.
81210         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
81211
81212 2006-06-28  Derek R. Price  <derek@ximbiot.com>
81213
81214         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
81215         Autoconf 2.60 says this stuff was obsolete.
81216
81217 2006-06-28  Bruno Haible  <bruno@clisp.org>
81218
81219         * modules/wcwidth (Files): Add m4/wchar_t.m4.
81220
81221 2006-06-28  Bruno Haible  <bruno@clisp.org>
81222
81223         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
81224         gt_TYPE_WCHAR_T.
81225
81226 2006-06-28  Bruno Haible  <bruno@clisp.org>
81227
81228         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
81229         declaration for wcwidth.
81230         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctype.h>.
81231
81232 2006-06-28  Bruno Haible  <bruno@clisp.org>
81233
81234         * lib/mkdtemp.c [MINGW]: Include <io.h>.
81235         (mkdir): Define using _mkdir.
81236
81237 2006-06-28  Bruno Haible  <bruno@clisp.org>
81238
81239         * lib/getaddrinfo.h: Fix POSIX URL.
81240         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
81241         _WIN32.
81242         (use_win32_p): Make static.
81243         (getaddrinfo): Reject service name if it is empty or does not consist
81244         solely of decimal digits, or if its value is > 65535.
81245         (getnameinfo): Remove useless casts.
81246
81247 2006-06-27  Simon Josefsson  <jas@extundo.com>
81248
81249         * modules/sys_select: New file, suggested by Bruno Haible, Paul
81250         Eggert and Martin Lambers.
81251
81252 2006-06-27  Simon Josefsson  <jas@extundo.com>
81253
81254         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
81255         Eggert and Martin Lambers.
81256
81257 2006-06-27  Bruno Haible  <bruno@clisp.org>
81258
81259         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
81260         result to 0, not to empty.
81261         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
81262
81263 2006-06-27  Bruno Haible  <bruno@clisp.org>
81264
81265         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
81266
81267 2006-06-26  Simon Josefsson  <jas@extundo.com>
81268
81269         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
81270         present.
81271
81272 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
81273
81274         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
81275         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
81276         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
81277
81278 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
81279
81280         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
81281
81282 2006-06-26  Bruno Haible  <bruno@clisp.org>
81283
81284         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
81285
81286 2006-06-26  Bruno Haible  <bruno@clisp.org>
81287
81288         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
81289
81290 2006-06-26  Bruno Haible  <bruno@clisp.org>
81291
81292         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
81293         SGI C compiler in pre-C99 mode.
81294         Suggested by Mark D. Baushke and Larry Jones.
81295
81296 2006-06-26  Bruno Haible  <bruno@clisp.org>
81297
81298         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
81299         WCHAR_MAX.
81300         Reported by Mark D. Baushke and Larry Jones.
81301
81302 2006-06-26  Bruno Haible  <bruno@clisp.org>
81303
81304         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
81305         in pre-C99 mode.
81306         Suggested by Mark D. Baushke and Larry Jones.
81307
81308 2006-06-23  Simon Josefsson  <jas@extundo.com>
81309             Bruno Haible  <bruno@clisp.org>
81310
81311         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
81312         Emit mostlyclean-local rule.
81313         (func_emit_tests_Makefile_am): Likewise.
81314         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
81315
81316 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
81317
81318         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
81319
81320 2006-06-23  Bruno Haible  <bruno@clisp.org>
81321
81322         * tests/test-stdint.c: Update to match ISO C 99 Technical
81323         Corrigendum 1.
81324
81325 2006-06-23  Bruno Haible  <bruno@clisp.org>
81326
81327         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
81328
81329 2006-06-23  Bruno Haible  <bruno@clisp.org>
81330
81331         * lib/stdint_.h: Treat IRIX like OpenBSD.
81332
81333 2006-06-23  Bruno Haible  <bruno@clisp.org>
81334
81335         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
81336         ISO C 99 Technical Corrigendum 1.
81337
81338 2006-06-22  Simon Josefsson  <jas@extundo.com>
81339
81340         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
81341         MinGW.
81342
81343 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
81344
81345         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
81346         needed.  Some compiler complained about some of them.  Problem reported
81347         by Larry Jones in
81348         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
81349
81350 2006-06-21  Simon Josefsson  <jas@extundo.com>
81351
81352         * tests/test-getaddrinfo.c: New file.
81353
81354         * modules/getaddrinfo-tests: New file.
81355
81356         * MODULES.html.sh: Add inet_pton.
81357
81358         * modules/inet_pton: New file.
81359
81360 2006-06-21  Simon Josefsson  <jas@extundo.com>
81361
81362         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
81363         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
81364         of using the (limited) gnulib implementation on Windows XP.
81365
81366         * m4/inet_pton.m4: New file.
81367
81368 2006-06-21  Simon Josefsson  <jas@extundo.com>
81369
81370         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
81371         variable.
81372
81373         * lib/socket_.h: Don't define WINVER.
81374
81375         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
81376         slightly modified to work in gnulib.
81377
81378 2006-06-21  Simon Josefsson  <jas@extundo.com>
81379
81380         * doc/gnulib.texi (Windows sockets): Add.
81381
81382 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
81383
81384         * lib/read-file.c (fread_file): Start with buffer allocation of
81385         0 bytes rather than 1 byte; this simplifies the code.
81386         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
81387         code to free buffer and save/restore errno.
81388         (internal_read_file): Remove unused local.
81389
81390 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
81391
81392         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
81393         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
81394         Problem reported by Denis Excoffier in
81395         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
81396
81397 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
81398
81399         * modules/sys_socket, modules/socklen: Include sys/types since
81400         FreeBSD 4.x's sys/socket.h needs it.
81401
81402 2006-06-19  Simon Josefsson  <jas@extundo.com>
81403
81404         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
81405
81406 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
81407
81408         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
81409
81410 2006-06-19  Bruno Haible  <bruno@clisp.org>
81411
81412         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
81413         and FULL_PATH_INTTYPES_H in angle brackets.
81414         Reported by Mark D. Baushke <mdb@gnu.org>.
81415
81416 2006-06-17  Eric Blake  <ebb9@byu.net>
81417
81418         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
81419         errno.
81420
81421 2006-06-17  Bruno Haible  <bruno@clisp.org>
81422
81423         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
81424         <sys/inttypes.h>.
81425
81426 2006-06-17  Bruno Haible  <bruno@clisp.org>
81427
81428         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
81429         whether errno is declared. Assume <errno.h> declares errno.
81430
81431 2006-06-17  Bruno Haible  <bruno@clisp.org>
81432
81433         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
81434
81435 2006-06-17  Bruno Haible  <bruno@clisp.org>
81436
81437         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
81438         problem on Solaris 2.5.1.
81439
81440 2006-06-16  Eric Blake  <ebb9@byu.net>
81441
81442         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
81443         * lib/unicodeio.c [!defined errno]: Likewise.
81444         * lib/strtol.c [!defined errno]: Likewise.
81445         * lib/strtod.c [!defined errno]: Likewise.
81446
81447 2006-06-15  Eric Blake  <ebb9@byu.net>
81448
81449         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
81450
81451 2006-06-15  Eric Blake  <ebb9@byu.net>
81452
81453         * config/srclist.txt (ssize_t.m4): Lose sync.
81454
81455 2006-06-15  Bruno Haible  <bruno@clisp.org>
81456
81457         * modules/stdint (Files): Include m4/full-header-path.m4,
81458         m4/size_max.m4, m4/wchar_t.m4.
81459         (Makefile.am): Many more substitutions.
81460         * modules/stdint-tests: New file.
81461         * tests/test-stdint.c: New file.
81462
81463 2006-06-15  Bruno Haible  <bruno@clisp.org>
81464
81465         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
81466         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
81467         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
81468         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
81469         gl_CHECK_TYPE_SAME): New macros.
81470
81471 2006-06-15  Bruno Haible  <bruno@clisp.org>
81472
81473         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
81474
81475 2006-06-15  Bruno Haible  <bruno@clisp.org>
81476
81477         * lib/stdint_.h: Rewritten to be fully auto-configured.
81478         Fixes bug on HP-UX/IA64.
81479
81480 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
81481
81482         * lib/getdate.y (__attribute__): Don't define if already defined.
81483         Problem reported by Larry Jones.
81484         * lib/utimens.c (__attribute__): Likewise.
81485
81486 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
81487
81488         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
81489         reported by Andreas Schwab.
81490
81491 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81492             Bruno Haible  <bruno@clisp.org>
81493
81494         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
81495         check for the declaration of strnlen and a run test that exposes the
81496         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
81497         rpl_strndup.
81498
81499 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81500             Bruno Haible  <bruno@clisp.org>
81501
81502         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
81503
81504 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81505
81506         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
81507         compile test, for Tru64 4.0D.
81508
81509 2006-05-28  Karl Berry  <karl@gnu.org>
81510
81511         * config/srclist.txt (printf-args.c): lose sync.
81512
81513 2006-05-26  Martin Lambers  <marlam@marlam.de>
81514
81515         * lib/getpass.c: Updates the test for the native W32 API, and adds
81516         missing includes, thus fixing compilation warnings.
81517
81518 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
81519
81520         * lib/exclude.c (exclude_fnmatch): New function.
81521         (excluded_file_name): Call exclude_fnmatch.
81522         * lib/exclude.h (excluded_file_name): New prototype
81523
81524 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
81525
81526         * lib/tempname.c (small_open, large_open): New macros.
81527         (__open, __open64) [!_LIBC]: Remove.
81528         (__gen_tempname): Use small_open and large_open instead of __open
81529         and __open64.  This fixes a portability bug on HP-UX 11.11i
81530         reported by Simon Wing-Tang in
81531         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
81532
81533 2006-05-24  Bruno Haible  <bruno@clisp.org>
81534
81535         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
81536         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
81537         Reported by Thorsten Maerz <torte@netztorte.de> via
81538         Aaron Stone <aaron@serendipity.cx>.
81539
81540 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
81541
81542         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
81543         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
81544         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
81545         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
81546         not really conditional on the cache.
81547         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
81548
81549 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
81550
81551         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
81552         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
81553         (my_usleep): Don't mishandle maximum value.
81554
81555 2006-05-19  Jim Meyering  <jim@meyering.net>
81556
81557         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
81558
81559 2006-05-17  Bruno Haible  <bruno@clisp.org>
81560
81561         Cygwin portability.
81562         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
81563
81564 2006-05-17  Bruno Haible  <bruno@clisp.org>
81565
81566         * lib/stdint_.h: Fix recognition of Cygwin.
81567
81568 2006-05-15  Bruno Haible  <bruno@clisp.org>
81569
81570         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
81571         on libtool patch by Ralf Wildenhues.
81572
81573 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
81574
81575         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
81576         test for C99 conformance; (bool) 0.5 is an integer constant
81577         expression, but (bool) -0.5 is not.  Problem reported by Fedor
81578         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
81579
81580 2006-05-11  Simon Josefsson  <jas@extundo.com>
81581
81582         * m4/xvasprintf.m4: Fix obvious typo.
81583
81584 2006-05-11  Jim Meyering  <jim@meyering.net>
81585
81586         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
81587         James Lemley.
81588
81589 2006-05-10  Simon Josefsson  <jas@extundo.com>
81590
81591         * lib/md4.c: Typo fix, update copyright years.
81592         (K1, K2): Don't use L because it turn computations into 64-bit on
81593         64-bit platforms.
81594
81595 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
81596
81597         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
81598         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
81599         unwanted sign propagation, e.g., on hosts with 64-bit int.
81600         There still are some problems with reeelly weird theoretical hosts
81601         (e.g., 33-bit int) but it's not worth worrying about now.
81602         * lib/sha1.c (rol): Likewise.
81603         (K1, K2, K3, K4): Remove unnecessary L suffix.
81604
81605 2006-05-10  Bruno Haible  <bruno@clisp.org>
81606
81607         * lib/des.c: Cast to avoid warnings.
81608
81609 2006-05-09  Bruno Haible  <bruno@clisp.org>
81610
81611         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
81612         (Depends-on): Depend also on xsize, stdarg.
81613         (configure.ac): Add gl_XVASPRINTF.
81614
81615 2006-05-09  Bruno Haible  <bruno@clisp.org>
81616
81617         * m4/xvasprintf.m4: New file.
81618
81619 2006-05-09  Bruno Haible  <bruno@clisp.org>
81620
81621         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
81622         (EOVERFLOW): Define fallback value.
81623         (xstrcat): New function.
81624         (xvasprintf): Recognize the special case of a string concatenation.
81625
81626 2006-05-08  Eric Blake  <ebb9@byu.net>
81627
81628         * gnulib-tool (func_version): Base copyright year on CVS date.
81629         (func_emit_copyright_notice): New function.
81630         (func_emit_lib_Makefile_am): Use it.
81631         (func_emit_tests_Makefile_am): Likewise.
81632         (func_import): Likewise.
81633
81634 2006-05-08  Bruno Haible  <bruno@clisp.org>
81635
81636         * modules/stdarg: New file.
81637         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
81638
81639 2006-05-08  Bruno Haible  <bruno@clisp.org>
81640
81641         * m4/stdarg.m4: New file, from GNU gettext.
81642
81643 2006-05-08  Bruno Haible  <bruno@clisp.org>
81644
81645         * config/srclist.txt (build-aux/config.rpath): different from latest
81646         release.
81647
81648 2006-05-08  Bruno Haible  <bruno@clisp.org>
81649
81650         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
81651
81652 2006-05-05  Jim Meyering  <jim@meyering.net>
81653
81654         * m4/warning.m4: New file, derived from bison's file by the same name.
81655
81656 2006-05-03  Bruno Haible  <bruno@clisp.org>
81657
81658         * lib/stdint_.h: Shorter URL.
81659         * lib/inttypes.h: Likewise.
81660
81661 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
81662
81663         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
81664
81665 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
81666
81667         * lib/verify.h: Document the internals better.  Most of this change
81668         was written by Bruno Haible.
81669
81670 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
81671
81672         * doc/verify.texi: New file, partly based on a proposal by
81673         Bruno Haible.
81674
81675 2006-05-02  Bruno Haible  <bruno@clisp.org>
81676
81677         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
81678         test from here...
81679         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
81680
81681 2006-04-29  Bruno Haible  <bruno@clisp.org>
81682
81683         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
81684         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
81685
81686 2006-04-29  Bruno Haible  <bruno@clisp.org>
81687
81688         * gnulib-tool: Make --update option actually work.
81689
81690 2006-04-29  Bruno Haible  <bruno@clisp.org>
81691
81692         * doc/gcd.texi: New file.
81693         * doc/gnulib.texi: Include it.
81694
81695 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
81696
81697         * lib/getdate.y (get_date): When adding relative date, start with the
81698         initial time, not with the result of the first mktime call.
81699
81700 2006-04-25  Bruno Haible  <bruno@clisp.org>
81701
81702         * gnulib-tool (func_import): Output the include directives in three
81703         blocks, sorted separately.
81704         Reported by Ben Pfaff <blp@cs.stanford.edu>.
81705
81706 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
81707
81708         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
81709         to define main with arguments, for C++.  Reported by Eric Blake.
81710         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
81711         Prefer 'int main ()' to 'int main (void)', for C++.
81712         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
81713         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
81714         for 'main', for C99 and C++.
81715
81716 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
81717
81718         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
81719         Don't assume that exit status -1 is valid.
81720         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
81721         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
81722         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
81723         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
81724         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
81725         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
81726         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
81727         functions can be used without declaring them, or that you can
81728         exit with status -1.
81729         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
81730
81731 2006-04-24  Karl Berry  <karl@gnu.org>
81732
81733         * config/srclist.txt (longdouble.m4): sync lost.
81734
81735 2006-04-24  Eric Blake  <ebb9@byu.net>
81736
81737         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
81738
81739 2006-04-24  Bruno Haible  <bruno@clisp.org>
81740
81741         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
81742         poll() implementation in AIX.
81743         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
81744
81745 2006-04-24  Bruno Haible  <bruno@clisp.org>
81746
81747         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
81748         assigned exactly once.
81749
81750 2006-04-23  Claudio Fontana  <claudio@gnu.org>
81751             Bruno Haible  <bruno@clisp.org>
81752
81753         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
81754         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
81755         for AM_CPPFLAGS.
81756
81757 2006-04-23  Bruno Haible  <bruno@clisp.org>
81758
81759         * modules/copy-file: Depend on unistd.
81760         * modules/execute: Likewise.
81761         * modules/fatal-signal: Likewise.
81762         * modules/findprog: Likewise.
81763         * modules/mkdtemp : Likewise.
81764         * modules/pipe: Likewise.
81765         * modules/wait-process: Likewise.
81766
81767 2006-04-23  Bruno Haible  <bruno@clisp.org>
81768
81769         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
81770         condition was already detected.
81771         Reported by Ben Pfaff <blp@cs.stanford.edu>.
81772
81773 2006-04-23  Bruno Haible  <bruno@clisp.org>
81774
81775         * lib/copy-file.c: Include <unistd.h> unconditionally.
81776         * lib/execute.c: Likewise.
81777         * lib/fatal-signal.c: Likewise.
81778         * lib/findprog.c: Likewise.
81779         * lib/mkdtemp.c: Likewise.
81780         * lib/pipe.h: Likewise.
81781         * lib/pipe.c: Likewise.
81782         * lib/wait-process.h: Likewise.
81783
81784 2006-04-23  Bruno Haible  <bruno@clisp.org>
81785
81786         * gnulib-tool (func_usage): Fix --import description. Document
81787         --update.
81788         (func_import): Create temporary file in a temporary directory, if
81789         --dry-run is specified. Silence errors from 'grep' when there are no
81790         m4 files in $m4dir.
81791         (func_create_testdir): Silence errors from 'grep' when there are no
81792         m4 files in $m4dir.
81793         Reported by Karl Berry <karl@freefriends.org>.
81794
81795 2006-04-20  Bruno Haible  <bruno@clisp.org>
81796
81797         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
81798         one argument, so that the code will be portable to Autoconf 2.60.
81799         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
81800         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
81801         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
81802
81803 2006-04-19  Derek Price  <derek@ximbiot.com>
81804             Eric Blake  <ebb9@byu.net>
81805
81806         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
81807         rather than "/full/path.h".  Update comment to match.  Shorten &
81808         generalize m4_translit call via AS_TR_CPP.
81809
81810 2006-04-19  Derek Price  <derek@ximbiot.com>
81811             Eric Blake  <ebb9@byu.net>
81812
81813         * lib/inttypes.h: Correct grammar in comment.
81814
81815 2006-04-18  Derek Price  <derek@ximbiot.com>
81816             Paul Eggert  <eggert@cs.ucla.edu>
81817
81818         * modules/inttypes: New file.
81819         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
81820
81821 2006-04-18  Derek Price  <derek@ximbiot.com>
81822             Paul Eggert  <eggert@cs.ucla.edu>
81823
81824         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
81825         New files.
81826
81827 2006-04-18  Derek Price  <derek@ximbiot.com>
81828             Paul Eggert  <eggert@cs.ucla.edu>
81829
81830         * lib/inttypes.h: New file.
81831         * lib/strtoimax.c: Assume <inttypes.h>.
81832
81833 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
81834
81835         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
81836         isn't mounted.  Problem reported by Kir Kolyshkin.
81837
81838 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
81839
81840         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
81841         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
81842         Derek R. Price.
81843         * lib/regex.h (RE_DUP_MAX): Update comment to match current
81844         implementation.
81845
81846 2006-04-12  Eric Blake  <ebb9@byu.net>
81847
81848         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
81849         is now done automatically by the corresponding Autoconf macro.
81850
81851 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
81852
81853         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
81854         time_r.h.
81855
81856 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
81857
81858         Merge regex changes from libc, removing some of our
81859         POSIX-conformance changes that were rejected and redoing them in a
81860         less-intrusive way.
81861
81862         * lib/regcomp.c (re_compile_internal, init_dfa):
81863         Length arg is now size_t, not Idx.  All uses changed.
81864         (peek_token): Forward decl now says internal_function.
81865         (__re_error_msgid, __re_error_msgid_idx):
81866         Now static rather than extern with attribute_hidden.
81867         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
81868         For some reason libc prefers K&R style defns for external functions.
81869         (regerror) [!defined _LIBC]: Likewise.
81870         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
81871         (seek_collating_symbol_entry, lookup_collation_sequence_value):
81872         (build_range_exp, build_collating_symbol):
81873         Use K&R-style defn.
81874         (re_compile_fastmap): Use '\0' to memset, not 0.
81875         (utf8_sb_map): Make the calculations more obvious.
81876         (init_dfa, parse_bracket_exp, build_charclass_op):
81877         Call calloc and cast result, as glibc does.
81878         (init_word_char, fetch_token, peek_token, peek_token_bracket):
81879         (build_range_exp, build_collating_symbol):
81880         Now internal functions.
81881
81882         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
81883
81884         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
81885         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
81886         Don't depend on VMS; depend on __VMS instead, for POSIX
81887         namespace cleanness.
81888         (regoff_t): Define to ssize_t, not long int.
81889
81890         Remove the REG_ macros named below.  Instead, make the old names
81891         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
81892         __USE_GNU_REGEX.
81893         (REG_BACKSLASH_ESCAPE_IN_LISTS):
81894         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
81895         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
81896         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
81897         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
81898         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
81899         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
81900         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
81901         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
81902         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
81903         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
81904         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
81905         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
81906         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
81907         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
81908         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
81909         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
81910         (REG_NREGS):
81911         Remove.  All uses replaced by the old RE_* names.
81912         (RE_BACKSLASH_ESCAPE_IN_LISTS):
81913         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
81914         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
81915         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
81916         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
81917         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
81918         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
81919         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
81920         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
81921         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
81922         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
81923         Don't bother having these macros be independent of each others'
81924         values, since they no longer exist in the POSIX name space.
81925
81926         Rename the following member names back to their old names,
81927         unless !__USE_GNU_REGEX.  All uses changed back.
81928         (buffer): Renamed from re_buffer.
81929         (allocated): Renamed from re_allocated.
81930         (used): Renamed from re_used.
81931         (syntax): Renamed from re_syntax.
81932         (fastmap): Renamed from re_fastmap.
81933         (translate): Renamed from re_translate.
81934         (can_be_null): Renamed from re_can_be_null.
81935         (regs_allocated): Renamed from re_regs_allocated.
81936         (fastmap_accurate): Renamed from re_fastmap_accurate.
81937         (no_sub): Renamed from re_no_sub.
81938         (not_bol): Renamed from re_not_bol.
81939         (not_eol): Renamed from re_not_eol.
81940         (newline_anchor): Renamed from re_newline_anchor.
81941         (num_regs): Renamed from rm_num_regs.
81942         (start): Renamed from rm_start.
81943         (end): Renamed from rm_end.
81944
81945         (free_state): Move up a bit.
81946
81947         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
81948         #define to be empty.
81949         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
81950         when that is what is intended.
81951         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
81952         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
81953         (MAX): New macro.
81954         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
81955         All uses changed back to re_malloc, etc.  It's now the caller's
81956         responsibility to check for overflow; all callers changed.
81957         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
81958         (re_x2nrealloc): Remove.
81959         (free_state): Remove decl.
81960
81961         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
81962         (re_set_registers, re_exec):
81963         Use K&R-style defn.
81964
81965         2006-01-31  Roland McGrath  <roland@redhat.com>
81966
81967         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
81968         Reported by Mike Frysinger <vapier@gentoo.org>.
81969
81970         2006-01-15  Andreas Jaeger  <aj@suse.de>
81971
81972         [BZ #1950]
81973         * lib/regex_internal.c (re_string_reconstruct): Adjust for
81974         build_wcs_upper_buffer change.
81975         (build_wcs_upper_buffer): Change return type.
81976
81977         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
81978
81979         * lib/regex_internal.h: Include <stdint.h> if available.
81980
81981         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
81982
81983         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
81984
81985         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
81986
81987         * lib/regcomp.c: Adjust for changed secondary hash function.
81988
81989         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
81990
81991         * lib/regex.h: Pretty printing.
81992         Clean up namespace a bit.
81993
81994         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
81995
81996         * lib/regexec.c (update_cur_sifted_state, check_arrival,
81997         check_arrival_add_next_nodes): Avoid using uninitialized variable.
81998
81999         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
82000                     Ulrich Drepper  <drepper@redhat.com>
82001
82002         [BZ #1302]
82003         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
82004         changed.
82005         (bitset_word_t): Renamed from bitset_word.  All uses changed.
82006
82007         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
82008
82009         [BZ #281]
82010         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
82011         * lib/regcomp.c: Remove unnecessary uses of
82012         unsigned RE_TRANSLATE_TYPE.
82013         * lib/regex_internal.h: Likewise.
82014         * lib/regex_internal.c: Likewise.
82015         * lib/regexec.c: Likewise.
82016         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
82017
82018         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
82019
82020         * lib/regexec.c (find_recover_state): Remove unnecessary
82021         initialization.
82022         (transit_state_bkref): Make DFA a const pointer.
82023         (get_subexp): Likewise.
82024         (check_arrival): Likewise.
82025         (update_cur_sifted_state): Likewise.
82026         (re_search_internal): Likewise.
82027         (prune_impossible_nodes): Likewise.
82028         (acquire_init_state_context): Likewise.
82029         (proceed_next_node): Likewise.
82030         (set_regs): Likewise.
82031         (free_fail_stack_return): Likewise.
82032         (check_arrival_expand_ecl): Mark DFA parameter as const.
82033         (check_arrival_expand_ecl_sub): Likewise.
82034         (check_subexp_limits): Likewise.
82035         (sub_epsilon_src_nodes):  Likewise.
82036         (add_epsilon_src_nodes):  Likewise.
82037         (merge_state_array): Likewise.
82038         (update_regs): Likewise.
82039         (build_trtable): Likewise.
82040         (sift_states_backward): Mark MCTX parameter as const.
82041         (build_sifted_states): Likewise.
82042         (update_cur_sifted_state): Likewise.
82043         (sift_states_mkref): Likewise.
82044         (check_arrival_expand_ecl): Mark eclosure as const.
82045         (check_dst_limits_calc_pos_1): Likewise.
82046         * lib/regex_internal.h (re_match_context_t): Make dfa a const
82047         pointer.
82048
82049         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
82050
82051         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
82052         (transit_state_sb): Likewise.
82053         (transit_state_mb): Likewise.
82054         (sift_states_iter_mb): Likewise.
82055         (check_arrival_add_next_nodes): Likewise.
82056         (check_node_accept_bytes): Change first parameter to pointer-to-const.
82057         [_LIBC] (re_search_2_stub): Use mempcpy.
82058
82059         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
82060         mbrtowc for very simple UTF-8 case.
82061
82062         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
82063         a pointer-to-const.
82064         (re_acquire_state_context): Likewise.
82065         * lib/regex_internal.h: Adjust prototypes.
82066
82067         * lib/regex.c: Prevent using C++ compilers.
82068
82069         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
82070         (re_acquire_state_context): Likewise.
82071
82072 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
82073
82074         * modules/regex (Depends-on): Add ssize_t.
82075
82076 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
82077
82078         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
82079         translation table.
82080
82081 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
82082
82083         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
82084
82085 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
82086             Bruno Haible  <bruno@clisp.org>
82087
82088         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
82089         <sys/types.h> and <inttypes.h>.
82090
82091 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
82092
82093         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
82094         `__error_t_defined', so argp.h will not typedef the former.
82095
82096 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
82097
82098         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
82099         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
82100         glibc names.  Even if glibc is changed to conform to POSIX, the
82101         traditional names will be available anyway, since regex depends on
82102         the extensions module.  Also, fix a longstanding typo in the
82103         implementation of Spencer ERE test #75 from grep 2.3.  Problems
82104         reported by Emanuele Giaquinta.  Also, change sense of cached
82105         variable, so that the message makes sense.
82106
82107 2006-03-24  Simon Josefsson  <jas@extundo.com>
82108
82109         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
82110         including some doc fixes.
82111         (base64_encode_alloc): Fix +1 bug on allocation failures.
82112
82113 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
82114
82115         * lib/base64.c (base64_encode): Do not read past end of array with
82116         unsanitized input on systems with CHAR_BIT > 8.
82117
82118 2006-03-24  Eric Blake  <ebb9@byu.net>
82119
82120         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
82121
82122 2006-03-22  Karl Berry  <karl@gnu.org>
82123
82124         * config/srclist.txt (*setenv.[ch]): get from coreutils.
82125         * config/srclistvars.sh (COREUTILS): new var.
82126
82127 2006-03-17  Jim Meyering  <jim@meyering.net>
82128
82129         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
82130         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
82131
82132 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
82133
82134         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
82135         no longer needs it.  Instead, check that regoff_t is as least
82136         as wide as ptrdiff_t.
82137
82138         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
82139         so that our regex.h stays compatible with the installed regex.
82140         This is helpful for installers who configure --without-included-regex.
82141         Problem reported by Emanuele Giaquinta.
82142
82143 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
82144
82145         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
82146         Typedef to long int, not to off_, as POSIX will likely change
82147         in that direction.
82148
82149 2006-03-15  Eric Blake  <ebb9@byu.net>
82150
82151         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
82152
82153 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
82154
82155         * lib/argp-help.c (validate_uparams): Fix typo
82156         * lib/argp-parse.c (argp_default_options): Consistently begin help
82157         messages with a lowercase letter.
82158
82159 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
82160
82161         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
82162         overrun buffers and shouldn't be used (much as gets shouldn't be
82163         used).
82164         * lib/time_r.c (asctime_r, ctime_r): Likewise.
82165
82166 2006-03-08  Simon Josefsson  <jas@extundo.com>
82167
82168         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
82169         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
82170
82171 2006-03-08  Simon Josefsson  <jas@extundo.com>
82172
82173         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
82174         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
82175
82176 2006-03-08  Simon Josefsson  <jas@extundo.com>
82177
82178         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
82179         signal that configure disabled the device.
82180
82181 2006-03-08  Simon Josefsson  <jas@extundo.com>
82182
82183         * build-aux/maint.mk: Fix refresh-po, to handle no translated
82184         languages.
82185
82186 2006-03-07  Simon Josefsson  <jas@extundo.com>
82187
82188         * modules/getopt (Depends-on): Add unistd.
82189
82190         * modules/unistd: New file.
82191
82192 2006-03-07  Simon Josefsson  <jas@extundo.com>
82193
82194         * modules/gc-random: New file.
82195
82196 2006-03-07  Simon Josefsson  <jas@extundo.com>
82197
82198         * m4/unistd_h.m4: New file.
82199
82200 2006-03-07  Simon Josefsson  <jas@extundo.com>
82201
82202         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
82203         test to be side-effect free by storing the result in the cache
82204         variable gl_cv_lib_readline, and moving the assignment of
82205         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
82206         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
82207
82208 2006-03-07  Simon Josefsson  <jas@extundo.com>
82209
82210         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
82211         error on missing devices (the functions will return an error).
82212
82213         * m4/gc.m4: Move random stuff to gc-random.m4
82214
82215 2006-03-07  Simon Josefsson  <jas@extundo.com>
82216
82217         * lib/unistd_.h: New file.
82218
82219 2006-03-07  Simon Josefsson  <jas@extundo.com>
82220
82221         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
82222
82223 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
82224
82225         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
82226         Problem reported by Juan Manuel Guerrero.
82227
82228 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
82229
82230         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
82231         the unistd module.
82232         * lib/getlogin_r.c: Likewise.
82233         * lib/getlogin_r.h: Likewise.
82234         * lib/glob.c: Likewise.
82235         * lib/pagealign_alloc.c: Likewise.
82236         * lib/unistd_.h: Remove; no longer needed.
82237
82238 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
82239
82240         * MODULES.html.sh (Support for systems lacking POSIX:2001):
82241         Add unistd.
82242         * modules/c-stack (Depends-on): Add unistd.
82243         * modules/getlogin_r: Likewise.
82244         * modules/glob: Likewise.
82245         * modules/pagealign_alloc: Likewise.
82246         * modules/unistd (Files): Remove lib/unistd_.h.
82247         (EXTRA_DIST): Remove.
82248         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
82249         need unistd_.h.
82250         (MOSTLYCLEANFILES): Remove unistd.h-t.
82251
82252 2006-03-03  Simon Josefsson  <jas@extundo.com>
82253
82254         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
82255
82256 2006-03-03  Simon Josefsson  <jas@extundo.com>
82257
82258         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
82259         libidn and bison.
82260
82261 2006-03-03  Simon Josefsson  <jas@extundo.com>
82262
82263         * build-aux/maint.mk: Add indent target.
82264
82265 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
82266
82267         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
82268         our replacement poll.h in any case, to avoid a differing
82269         declaration from a system header.  Seen on AIX.
82270
82271 2006-03-01  Simon Josefsson  <jas@extundo.com>
82272
82273         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
82274         <kasal@ucw.cz>.
82275
82276 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
82277
82278         * modules/gettime (Depends-on): Add extensions module.
82279         * modules/nanosleep (Depends-on): Likewise.
82280         * modules/settime (Depends-on): Likewise.
82281
82282 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
82283
82284         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
82285         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
82286         pedantically.
82287         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
82288         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
82289
82290         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
82291         not "==".  Reported by Ralf Wildenhues.
82292
82293 2006-03-01  Karl Berry  <karl@gnu.org>
82294
82295         * doc/Copyright/request-*: new files, synced from gnuorg.
82296
82297 2006-03-01  Karl Berry  <karl@gnu.org>
82298
82299         * config/srclist.txt (Copyright/*): new entries.
82300
82301 2006-02-28  Simon Josefsson  <jas@extundo.com>
82302
82303         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
82304
82305 2006-02-27  Simon Josefsson  <jas@extundo.com>
82306
82307         * lib/base64.h: Indent #define's.  From Jim Meyering
82308         <jim@meyering.net>.
82309
82310 2006-02-27  Jim Meyering  <jim@meyering.net>
82311
82312         Revert the change of 2006-02-24, so these files can continue
82313         to be sync'd from gettext.
82314         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
82315         of `config.h'.
82316
82317 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
82318
82319         * modules/intprops: New file.
82320         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
82321         Add intprops.
82322         * modules/getloadavg (Files): Remove lib/intprops.h.
82323         (Depends-on): Add intprops.
82324         * modules/human: Likewise.
82325         * modules/inttostr: Likewise.
82326         * modules/openat: Likewise.
82327         * modules/sig2str: Likewise.
82328         * modules/userspec: Likewise.
82329         * modules/utimecmp: Likewise.
82330         * modules/xnanosleep: Likewise.
82331         * modules/xstrtol: Likewise.
82332
82333 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
82334
82335         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
82336         * modules/lock-tests (TESTS): Use $(EXEEXT).
82337         * modules/tls-tests: Likewise.
82338         * modules/argp-tests: Likewise.
82339         (check_PROGRAMS): New var, replacing...
82340         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
82341
82342 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
82343
82344         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
82345         `config.h'.
82346
82347 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
82348
82349         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
82350
82351 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
82352
82353         Sync from coreutils.
82354         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
82355         gl_CHDIR_SAFER.
82356
82357 2006-02-22  Jim Meyering  <jim@meyering.net>
82358
82359         Sync from coreutils.
82360         * m4/chdir-safer.m4: New file.
82361
82362 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
82363
82364         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
82365         AT_FDCWD exceeds INT_MAX.
82366         * lib/openat.h (AT_FDCWD): Likewise.
82367
82368 2006-02-17  Eric Blake  <address@hidden>
82369
82370         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
82371
82372 2006-02-16  Simon Josefsson  <jas@extundo.com>
82373
82374         * modules/getaddrinfo (Depends-on): Add sys_socket.
82375
82376 2006-02-15  Simon Josefsson  <jas@extundo.com>
82377
82378         * build-aux/maint.mk: Add dsyntax-check rule.
82379
82380 2006-02-15  Eric Blake  <ebb9@byu.net>
82381
82382         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
82383         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
82384         'present but cannot compile' warnings on cygwin.
82385         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
82386         use ws2tcpip.h if sys/socket.h works.
82387         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
82388         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
82389
82390 2006-02-14  Simon Josefsson  <jas@extundo.com>
82391
82392         * modules/maintainer-makefile (Files): Rename.
82393
82394         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
82395         and (the local) Makefile.cfg to maint-cfg.mk.
82396
82397         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
82398         to the latter.
82399
82400         * modules/maintainer-makefile: New module.
82401
82402         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
82403         severaly stripped to make it possible to build it up from scratch
82404         with reliable tests.
82405
82406         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
82407         fixes to permit overriding the default actions when configure and
82408         makefile are not available.
82409
82410 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
82411
82412         Sync from coreutils.
82413         * modules/lstat (Depends-on): Don't depend on xalloc.
82414         (License): Change from GPL to LGPL, since this is now simply a
82415         replacement for a libc function.
82416
82417 2006-02-14  Jim Meyering  <jim@meyering.net>
82418
82419         Sync from coreutils.
82420
82421         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
82422         failure on deficient systems, and simplify gnulib lgpl dependencies.
82423         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
82424         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
82425
82426         * lib/xalloc-die.c: Remove unused definition of N_.
82427
82428 2006-02-14  Jim Meyering  <jim@meyering.net>
82429
82430         Sync from coreutils.
82431         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
82432         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
82433         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
82434         double-quote uses of that variable, to accommodate the rare case in
82435         which getmntent is available in none of the libraries checked.  This
82436         happens at least on FreeBSD 5.0.
82437
82438 2006-02-13  Simon Josefsson  <jas@extundo.com>
82439
82440         * gnulib-tool (Usage): Fix --import, from
82441         karl@freefriends.org (Karl Berry).
82442
82443 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
82444
82445         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
82446
82447 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
82448
82449         * lib/argp-namefrob.h: Restore changes accidentally lost during the
82450         "autoupdate" on 2005-12-12.
82451
82452 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
82453
82454         * modules/closeout (Depends-on): Remove atexit.
82455
82456 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
82457
82458         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
82459         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
82460
82461 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
82462
82463         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
82464         __EXTENSIONS__ if this causes compilation to fail.  Problem
82465         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
82466         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
82467
82468 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
82469
82470         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
82471         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
82472         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
82473         All uses changed.
82474
82475 2006-01-26  Simon Josefsson  <jas@extundo.com>
82476
82477         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
82478         prototype is visible on mingw32.
82479
82480         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
82481         for mingw32.
82482
82483         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
82484         mingw32).
82485
82486 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
82487
82488         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
82489         attempt to open for write; this always fails, at least on POSIX
82490         hosts.  This reinstates the 2006-01-09 change, which was
82491         inadvertently removed.
82492
82493 2006-01-26  Bruno Haible  <bruno@clisp.org>
82494
82495         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
82496         Reported by Paul Eggert.
82497
82498 2006-01-26  Bruno Haible  <bruno@clisp.org>
82499             Paul Eggert  <eggert@cs.ucla.edu>
82500
82501         * lib/stdbool_.h (_Bool)
82502         [(! (defined __cplusplus || defined __BEOS__)
82503           && !defined __GNUC__
82504           && !(defined __HP_cc || defined __xlc__
82505                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
82506                || defined __sgi))]:
82507         #define to signed char in these cases too; this simplifies
82508         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
82509         etc., separately) and makes it more conservative.
82510
82511 2006-01-25  Simon Josefsson  <jas@extundo.com>
82512
82513         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
82514         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
82515         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
82516
82517 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
82518
82519         * lib/argp-namefrob.h: Bugfix. Remove stray #
82520
82521 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
82522
82523         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
82524         so that we test the test.
82525         Check for yet another HP-UX cc bug involving *bool |= bool.
82526
82527 2006-01-25  Karl Berry  <karl@gnu.org>
82528
82529         * config/srclist.txt (vasnprintf.c): sync lost.
82530
82531 2006-01-25  Jim Meyering  <jim@meyering.net>
82532
82533         Sync from the stable (b5) branch of coreutils:
82534
82535         * lib/fts.c (fts_children): Don't let close() clobber errno from
82536         failed fchdir().
82537
82538         * lib/fts.c (fts_stat): When following a symlink-to-directory,
82539         don't necessarily interpret stat-fails+lstat-succeeds as indicating
82540         a dangling symlink.  That can also happen at least for ELOOP.
82541         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
82542         FYI, this bug predates the inclusion of fts.c in coreutils.
82543
82544         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
82545         in their own block, so pre-c99 compilers don't object.
82546
82547         Avoid the double-free (first in fts_read, second in fts_close) that
82548         would occur when an `active' directory is made inaccessible (e.g.,
82549         via chmod a-x) during a traversal.
82550         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
82551         before returning.  Reproduce this failure by
82552         mkdir -p a/b; cd a; chmod a-x . b
82553         Reported by Stavros Passas.
82554
82555 2006-01-25  Jim Meyering  <jim@meyering.net>
82556
82557         * lib/fileblocks.c: Remove more useless parentheses.
82558         * lib/readutmp.h: Likewise.
82559
82560 2006-01-25  Bruno Haible  <bruno@clisp.org>
82561
82562         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
82563         warnings.
82564         Reported by Paul Eggert.
82565
82566 2006-01-25  Bruno Haible  <bruno@clisp.org>
82567
82568         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
82569         rid of a trap command. For Solaris sh.
82570         Reported by Mark D. Baushke <mdb@gnu.org>.
82571
82572 2006-01-24  Simon Josefsson  <jas@extundo.com>
82573
82574         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
82575         Bruno.
82576
82577 2006-01-24  Karl Berry  <karl@gnu.org>
82578
82579         * config/srclist.txt (argp-namefrob.h): sync lost.
82580
82581 2006-01-24  Jim Meyering  <jim@meyering.net>
82582
82583         * modules/openat (Files): Add lib/intprops.h.
82584         From Mark D. Baushke.
82585
82586 2006-01-24  Jim Meyering  <jim@meyering.net>
82587
82588         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
82589         Reported by Mark D. Baushke.
82590
82591 2006-01-24  Jim Meyering  <jim@meyering.net>
82592
82593         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
82594
82595 2006-01-24  Bruno Haible  <bruno@clisp.org>
82596
82597         * modules/strnlen (Maintainer): Change from glibc to all.
82598
82599 2006-01-24  Bruno Haible  <bruno@clisp.org>
82600
82601         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
82602         Patch by Paul Eggert.
82603
82604 2006-01-24  Bruno Haible  <bruno@clisp.org>
82605
82606         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
82607         already has it.
82608         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
82609         2005-11-26.
82610
82611         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
82612         'signed char' to avoid problems with the built-in _Bool type.
82613         Reported by Paul Eggert on 2005-11-26.
82614
82615 2006-01-24  Bruno Haible  <bruno@clisp.org>
82616
82617         * gnulib-tool (func_import): Avoid constructing complicated sed
82618         expressions inside backquote.
82619         Report and solution by Mark D. Baushke <mdb@gnu.org>.
82620
82621 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
82622
82623         These changes imported from libc.
82624         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
82625         test and two separate function calls.
82626         * lib/strndup.c (__strndup): Add libc_hidden_def.
82627
82628 2006-01-23  Simon Josefsson  <jas@extundo.com>
82629
82630         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
82631         Remove the test_*_SOURCES variable: automake infers it by default.
82632         * modules/tls-tests: Likewise.
82633
82634 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
82635
82636         Work around porting bugs reported by Dieter in
82637         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
82638         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
82639         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
82640         Include "getopt.h" first, to check interface.
82641         (getenv): Declare only if defined HAVE_DECL_GETENV &&
82642         !HAVE_DECL_GETENV.
82643         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
82644         (__strndup): Revert to K&R-style function dfns, the glibc style.
82645         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
82646         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
82647         Include strnlen.h first, to get prototype properly.
82648         (strnlen): Renamed from __strnlen.
82649         Remove weak alias.
82650
82651 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
82652
82653         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
82654
82655 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
82656
82657         * config/srclist.txt: Adjust to reflect glibc reorganization.
82658         This affects only comments.
82659
82660 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
82661
82662          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
82663          Reported by Bruce Korb <bkorb@gnu.org>.
82664
82665 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
82666
82667         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
82668         to pacify gcc -Wswitch-default.
82669
82670 2006-01-22  Bruno Haible  <bruno@clisp.org>
82671
82672         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
82673         temporary buffer for sprintf, take into account the precision also
82674         for 'd', 'i', 'u', 'o', 'x', 'X'.
82675
82676 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
82677
82678         * modules/argp-tests: New module
82679         * tests/test-argp.c: New file
82680         * tests/test-argp-2.sh: New file
82681
82682 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
82683
82684         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
82685         (__argp_base_name): Removed
82686         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
82687         typo.
82688         (__argp_base_name): Provide macro definition or extern declaration
82689         depending on the configuration
82690
82691 2006-01-20  Simon Josefsson  <jas@extundo.com>
82692
82693         * modules/inet_ntop (Depends-on): Depend on sys_socket.
82694
82695 2006-01-20  Simon Josefsson  <jas@extundo.com>
82696
82697         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
82698
82699 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
82700
82701         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
82702         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
82703         Suggested by Bruno Haible.
82704
82705 2006-01-20  Karl Berry  <karl@gnu.org>
82706
82707         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
82708         until changes propagate, I guess.
82709
82710 2006-01-19  Simon Josefsson  <jas@extundo.com>
82711
82712         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
82713
82714 2006-01-19  Simon Josefsson  <jas@extundo.com>
82715
82716         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
82717
82718 2006-01-19  Simon Josefsson  <jas@extundo.com>
82719
82720         * gnulib-tool: Set check_PROGRAMS.
82721
82722         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
82723         modules/des-tests, modules/gc-arcfour-tests,
82724         modules/gc-arctwo-tests, modules/gc-des-tests,
82725         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
82726         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
82727         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
82728         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
82729         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
82730         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
82731         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
82732         test_*_SOURCES.
82733
82734 2006-01-18  Simon Josefsson  <jas@extundo.com>
82735
82736         * modules/socklen (Depends-on): Depend on sys_socket.
82737
82738 2006-01-18  Simon Josefsson  <jas@extundo.com>
82739
82740         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
82741         modules/des-tests, modules/gc-arcfour-tests,
82742         modules/gc-arctwo-tests, modules/gc-des-tests,
82743         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
82744         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
82745         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
82746         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
82747         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
82748         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
82749         $(EXEEXT) to automake TESTS variable, for mingw32.
82750
82751 2006-01-17  Simon Josefsson  <jas@extundo.com>
82752
82753         * modules/socklen (Include): Need sys/socket.h.
82754
82755 2006-01-17  Bruno Haible  <bruno@clisp.org>
82756
82757         * modules/ssize_t (Include): Add <sys/types.h>.
82758
82759 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
82760
82761         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
82762         it's not portable and it doesn't work with cross-compiles.
82763         Problem reported by Bruno Haible.  Fix missing-$ typo in
82764         'test "gl_cv_ignore_unused_libraries" ...' that prevented
82765         -zignore from being used with Sun's C compiler.
82766
82767 2006-01-12  Simon Josefsson  <jas@extundo.com>
82768
82769         * lib/base64.c: Fix warning, reported by Bruno Haible
82770         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
82771
82772 2006-01-12  Bruno Haible  <bruno@clisp.org>
82773
82774         * modules/ldd: New file.
82775         * build-aux/ldd.sh.in: New file.
82776         * MODULES.html.sh (Support for building libraries and executables): Add
82777         ldd.
82778
82779 2006-01-12  Bruno Haible  <bruno@clisp.org>
82780
82781         * m4/ldd.m4: New file.
82782
82783 2006-01-12  Bruno Haible  <bruno@clisp.org>
82784
82785         * gnulib-tool (func_import, func_create_testdir): Don't go into an
82786         endless loop while replacing $auxdir with build-aux.
82787
82788 2006-01-11  Simon Josefsson  <jas@extundo.com>
82789
82790         * lib/stdint_.h (SIZE_MAX): Add missing (.
82791
82792 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
82793
82794         Sync from coreutils.
82795         * lib/md5.c: Fix commentary typos.
82796         (alignof, UNALIGNED_P): No need for a GCC-specific version.
82797         * lib/md5.h (__attribute__): Remove; unused.
82798         * lib/sha1.c: Fix commentary to match md5 better.
82799         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
82800         so that we don't need to worry about alignment.  All uses changed.
82801         This merges the 2005-10-28 md5 change into sha1.
82802
82803 2006-01-11  Jim Meyering  <jim@meyering.net>
82804
82805         Sync from coreutils.
82806         * lib/md5.c (OP): Fix spacing.
82807
82808 2006-01-11  Bruno Haible  <bruno@clisp.org>
82809
82810         Ensure automatic ordering between gl_LOCK and gl_ARGP.
82811         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
82812         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
82813
82814 2006-01-11  Bruno Haible  <bruno@clisp.org>
82815
82816         Ensure automatic ordering between gl_LOCK and gl_ARGP.
82817         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
82818         the "early" section as well.
82819
82820 2006-01-11  Bruno Haible  <bruno@clisp.org>
82821
82822         Avoid "ar: no archive members specified" error on MacOS X.
82823         * gnulib-tool (func_modules_add_dummy): New function.
82824         (func_import, func_create_testdir): Invoke it.
82825
82826 2006-01-11  Bruno Haible  <bruno@clisp.org>
82827
82828         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
82829         with $auxdir in AC_CONFIG_FILES statements.
82830
82831 2006-01-11  Bruno Haible  <bruno@clisp.org>
82832
82833         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
82834         Initialize also noinst_HEADERS to empty.
82835
82836 2006-01-11  Bruno Haible  <bruno@clisp.org>
82837
82838         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
82839         variables.
82840         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
82841         autoreconf.
82842
82843 2006-01-11  Bruno Haible  <bruno@clisp.org>
82844
82845         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
82846         overridable by the user.
82847         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
82848
82849 2006-01-10  Simon Josefsson  <jas@extundo.com>
82850
82851         * modules/sys_socket: New file.
82852
82853 2006-01-10  Simon Josefsson  <jas@extundo.com>
82854
82855         * m4/sys_socket_h.m4: New file.
82856
82857 2006-01-10  Simon Josefsson  <jas@extundo.com>
82858
82859         * lib/socket_.h: New file.
82860
82861 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
82862
82863         * modules/readutmp (Maintainer): Add myself.
82864
82865 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
82866
82867         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
82868         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
82869         People who are still concerned with buggy memcmp implementations
82870         can invoke gl_FUNC_MEMCMP themselves.
82871
82872 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
82873
82874         * lib/regex_internal.h (BITSET_WORD_BITS):
82875         Work around a bug in 64-bit PGC (before version 6.1-2), where the
82876         preprocessor mishandles large unsigned values as if they were signed.
82877         Problem reported by Claudio Fontana in
82878         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
82879
82880 2006-01-10  Jim Meyering  <jim@meyering.net>
82881
82882         Avoid the double-free (first in fts_read, second in fts_close) that
82883         would occur when an `active' directory is made inaccessible (e.g.,
82884         via chmod a-x) during a traversal.
82885         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
82886         before returning.  Reproduce this failure by
82887         mkdir -p a/b; cd a; chmod a-x . b
82888         Reported by Stavros Passas.
82889
82890         Sync from coreutils.
82891         * lib/sha1.c: Tweak grammar in a comment.
82892
82893 2006-01-10  Jim Meyering  <jim@meyering.net>
82894
82895         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
82896         Patch by Joerg Sonnenberger.
82897
82898 2006-01-10  Bruno Haible  <bruno@clisp.org>
82899
82900         * modules/readutmp: Depend on module free.
82901         * modules/strtok_r: Depend on module restrict.
82902
82903 2006-01-10  Bruno Haible  <bruno@clisp.org>
82904
82905         * modules/gettext (configure.ac): Add an invocation of
82906         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
82907
82908 2006-01-10  Bruno Haible  <bruno@clisp.org>
82909
82910         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
82911         Reported by Werner Lemberg <wl@gnu.org>.
82912
82913 2006-01-10  Bruno Haible  <bruno@clisp.org>
82914
82915         * lib/localcharset.c: Update from GNU gettext.
82916
82917 2006-01-10  Bruno Haible  <bruno@clisp.org>
82918
82919         * lib/argp.h (__const): Remove macro. Use const instead.
82920         * lib/argp-fmtstream.h (__const): Likewise.
82921         * lib/glob_.h (__const): Remove macro.
82922         * lib/glob-libc.h: Use const instead of __const.
82923
82924 2006-01-10  Bruno Haible  <bruno@clisp.org>
82925
82926         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
82927         variable.
82928         Needed to avoid an automake error regarding the 'gettext' module.
82929
82930 2006-01-09  Simon Josefsson  <jas@extundo.com>
82931
82932         * modules/inet_ntop (Depends-on): Add restrict.
82933
82934 2006-01-09  Simon Josefsson  <jas@extundo.com>
82935
82936         * modules/gc-rijndael-tests (License): Put under LGPL.
82937
82938         * modules/gc-des-tests (License): Likewise.
82939
82940         * modules/gc-arcfour-tests (License): Likewise.
82941
82942         * modules/gc-arctwo-tests (License): Likewise.
82943
82944         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
82945
82946         * modules/gc-hmac-sha1-tests (Files): Likewise.
82947
82948         * modules/gc-hmac-md5-tests (License): Likewise.
82949
82950         * modules/gc-sha1-tests (License): Likewise.
82951
82952         * modules/gc-md5-tests (License): Likewise.
82953
82954         * modules/gc-md4-tests (License): Likewise.
82955
82956         * modules/gc-md2-tests (License): Likewise.
82957
82958         * modules/gc-tests (License): Likewise.
82959
82960         * modules/des-tests (License): Likewise.
82961
82962         * modules/md4-tests (License): Likewise.
82963
82964         * modules/md2-tests (License): Likewise.
82965
82966 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
82967
82968         Sync from coreutils:
82969
82970         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
82971         * modules/lib-ignore: New file.
82972         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
82973         chdir-safer.m4, lchmod.m4.
82974         * modules/openat: Add mkdirat.c, openat-priv.h.
82975
82976 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
82977
82978         Sync from coreutils.
82979         * m4/lib-ignore.m4: New file.
82980         * m4/lchmod.m4: New file.
82981
82982 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
82983
82984         Sync from coreutils.
82985         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
82986         for write access: POSIX says that must fail.
82987         * lib/fts.c (diropen): Likewise.
82988         * lib/save-cwd.c (save_cwd): Likewise.
82989         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
82990         well, for minor improvements on hosts that lack O_DIRECTORY.
82991         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
82992         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
82993         Fall back on chown if open failed with EACCES.
82994
82995         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
82996         Report an error at compile-time if only a 1-second nominal clock
82997         resolution is found.
82998
82999         * lib/lchmod.h: New file.
83000         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
83001         (make_dir_parents): Use lchown rather than chown, and
83002         lchmod rather than chmod.
83003
83004         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
83005         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
83006         "proc" reported by n0dalus.
83007
83008         * lib/mountlist.c: Include <limits.h>.
83009         (dev_from_mount_options)
83010         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
83011         New function.  It no longer assumes "dev=" has the System V meaning
83012         on Linux (since it doesn't).  It also parses "dev=" more carefully.
83013         (read_file_system_list)
83014         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
83015         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
83016         dev= in that case.
83017
83018         * lib/posixtm.h (PDS_PRE_2000): New macro.
83019         * lib/posixtm.c (year): Arg is now syntax_bits rather than
83020         allow_century.  All usages changed.  Reject dates outside the range
83021         1969-1999 if PDS_PRE_2000 is used.
83022
83023 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
83024
83025         Sync from coreutils.
83026         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
83027         (Time of day items): Mention the possibility of leap seconds.
83028         Problem reported by Dr. David Alan Gilbert.
83029
83030 2006-01-09  Jim Meyering  <jim@meyering.net>
83031
83032         Sync from coreutils.
83033
83034         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
83035
83036         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
83037
83038         * lib/modechange.c (mode_compile): Reject an invalid mode string
83039         that starts with an octal digit.  From Andreas Gruenbacher.
83040
83041         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
83042         and dup to open_safer and dup_safer, respectively.
83043         (openat_permissive): Fix typo in comment.
83044
83045         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
83046         "gettext.h"; either no longer needed or are guaranteed by openat.h.
83047         (_): Remove; no longer needed.
83048         (openat): Renamed from rpl_openat; no need for rpl_openat
83049         since openat.h renames openat for us.
83050         Replace most of the body with a call to openat_permissive,
83051         to avoid duplicate code.
83052         Port to (probably hypothetical) environments were mode_t is
83053         wider than int.
83054         (openat_permissive): Require mode arg, so that we can check
83055         types better.  Put it just after flags.  Change cwd failure
83056         indicator from pointer-to-bool to pointer-to-errno-value.
83057         All callers changed.
83058         Invoke openat_save_fail and/or openat_restore_fail if
83059         cwd_errno is null, so that openat can call us.
83060         (openat_permissive, fdopendir, fstatat, unlinkat):
83061         Simplify errno handling to avoid some duplicate code,
83062         as it's OK to set errno on success.
83063         * lib/openat.h: Revamp code so that function macros depend on
83064         __OPENAT_PREFIX only, not also on AT_FDCWD.
83065         (openat_ro): Remove.  Caller changed to use openat_permissive.
83066         (openat_permissive): Now a macro, if not a function.
83067         (openat_restore_fail, openat_save_fail): Now always functions,
83068         since mkdirat needs them even if __OPENAT_PREFIX is defined.
83069
83070         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
83071         and openat.c.
83072         * lib/mkdirat.c: Include openat-priv.h.
83073         Remove definitions of macros defined therein.
83074         * lib/openat.c: Likewise.
83075
83076         * lib/mkdirat.c (mkdirat): New file and function.
83077         * lib/openat.h (mkdirat): Declare.
83078
83079         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
83080
83081         * lib/openat.h (openat_permissive): Declare.
83082         (openat_ro): Define.
83083
83084         * lib/openat.c (EXPECTED_ERRNO): New macro.
83085         (openat_permissive): New function -- used in remove.c rewrite.
83086         (all functions): Set errno just before returning, only if there
83087         was an actual failure.
83088         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
83089
83090         Emulate openat-family functions using Linux's procfs, if possible.
83091         Idea and some code based on Ulrich Drepper's glibc changes.
83092
83093         * lib/openat.c: (BUILD_PROC_NAME): New macro.
83094         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
83095         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
83096         before falling back on save_cwd and restore_cwd.
83097         (fdopendir, fstatat, unlinkat): Likewise.
83098
83099         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
83100         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
83101
83102         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
83103         as second argument to va_arg.  Otherwise, some versions of gcc
83104         warn that `if this code is reached, the program will abort'.
83105
83106 2006-01-09  Jim Meyering  <jim@meyering.net>
83107
83108         Sync from coreutils.
83109         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
83110         Require openat-priv.h.
83111
83112 2006-01-09  Bruno Haible  <bruno@clisp.org>
83113
83114         * modules/strnlen (Include): Use strnlen.h.
83115
83116 2006-01-09  Bruno Haible  <bruno@clisp.org>
83117
83118         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
83119
83120 2006-01-09  Bruno Haible  <bruno@clisp.org>
83121
83122         * lib/sysexit_.h (EX_OK): New macro.
83123         Suggested by Martin Lambers <marlam@marlam.de>.
83124
83125 2006-01-09  Bruno Haible  <bruno@clisp.org>
83126
83127         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
83128         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
83129
83130 2006-01-09  Bruno Haible  <bruno@clisp.org>
83131
83132         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
83133         numbers.
83134
83135 2006-01-09  Bruno Haible  <bruno@clisp.org>
83136
83137         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
83138         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
83139         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
83140         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
83141
83142 2006-01-09  Bruno Haible  <bruno@clisp.org>
83143
83144         * build-aux/javacomp.sh.in: New file, moved from lib/.
83145         * modules/javacomp-script (Files): Update.
83146         (configure.ac): Add AC_CONFIG_FILES invocation.
83147         (EXTRA_DIST): Remove variable.
83148
83149         * build-aux/javaexec.sh.in: New file, moved from lib/.
83150         * modules/javaexec (Files): Update.
83151         (configure.ac): Add AC_CONFIG_FILES invocation.
83152         (EXTRA_DIST): Remove javaexec.sh.in.
83153
83154         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
83155         * modules/csharpcomp-script (Files): Update.
83156         (configure.ac): Add AC_CONFIG_FILES invocation.
83157         (EXTRA_DIST): Remove variable.
83158
83159         * build-aux/csharpexec.sh.in: New file, moved from lib/.
83160         * modules/csharpexec (Files): Update.
83161         (configure.ac): Add AC_CONFIG_FILES invocation.
83162         (EXTRA_DIST): Remove csharpexec.sh.in.
83163
83164 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
83165
83166         Sync from coreutils.
83167
83168         Add POSIX ACL support
83169         * lib/acl.h (copy_acl, set_acl): Add declarations.
83170         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
83171         systems other than Linux.
83172         (chmod_or_fchmod): New function: use fchmod when possible,
83173         and chmod otherwise.
83174         (file_has_acl): Add a POSIX ACL implementation, with a
83175         Linux-specific subcase.
83176         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
83177         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
83178         acls are unsupported.
83179         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
83180         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
83181         are unsupported.
83182
83183 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
83184
83185         Sync from coreutils.
83186         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
83187
83188 2006-01-07  Bruno Haible  <bruno@clisp.org>
83189
83190         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
83191         gl_EARLY.
83192
83193 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
83194
83195         * lib/strftime.c (tzname): Don't declare if it is already #defined.
83196         Problem reported for Mingw by Mark Junker.
83197
83198 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
83199
83200         * README: Gnulib normally doesn't generate a tarball.
83201
83202 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
83203
83204         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
83205         long int, not int, for nanosecond counts, so that people who are
83206         used to POSIX struct timespec won't be surprised.  Reported by Jim
83207         Meyering.
83208
83209 2005-12-28  Bruno Haible  <bruno@clisp.org>
83210
83211         * build-aux/config.rpath: Update from GNU gettext.
83212
83213 2005-12-16  Jim Meyering  <jim@meyering.net>
83214
83215         * modules/fprintftime: New module.
83216         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
83217
83218 2005-12-16  Jim Meyering  <jim@meyering.net>
83219
83220         * m4/fprintftime.m4: New file.
83221
83222 2005-12-16  Jim Meyering  <jim@meyering.net>
83223
83224         * lib/fprintftime.c, lib/fprintftime.h: New files.
83225
83226 2005-12-15  Simon Josefsson  <jas@extundo.com>
83227
83228         * modules/socklen (configure.ac): Fix M4 macro name, to align with
83229         new m4/socklen.m4.
83230
83231 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
83232
83233         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
83234         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
83235
83236 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
83237
83238         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
83239         * lib/argp-help.c (fill_in_uparams): Check if the constructed
83240         struct uparams is valid. Fall back to the default values if it is
83241         not.
83242
83243 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
83244
83245         * modules/argp (Files): Add argp-pin.c
83246         (Depends-on): dirname
83247         (lib_SOURCES): Add argp-pin.c
83248
83249 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
83250
83251         * m4/argp.m4:  Check if program_invocation_name and
83252         program_invocation_short_name are declared and define appropriate
83253         macros if they are not.
83254
83255 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
83256
83257         * lib/argp-help.c (__argp_base_name): New function
83258         (__argp_short_program_name): Rewrite using __argp_base_name
83259         * lib/argp-namefrob.h: Define program_invocation_name and
83260         program_invocation_short_name if requested
83261         (__argp_base_name): Add prototype
83262         * lib/argp-parse.c (argp_def): Use gettext wrappers
83263         (argp_default_parser): Use __argp_base_name
83264         * lib/argp-pin.c: New file. Defines program_invocation_name and
83265         program_invocation_short_name on systems that lack them.
83266
83267 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
83268
83269         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
83270         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
83271         porting problem reported by Georg Schwarz in
83272         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
83273
83274 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
83275
83276         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
83277         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
83278         porting problem reported by Georg Schwarz in
83279         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
83280
83281 2005-12-05  Bruno Haible  <bruno@clisp.org>
83282
83283         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
83284         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
83285         Reported by Mark Junker <mjscod@gmx.de>.
83286
83287 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
83288
83289         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
83290         Use implementation from Albert Chin, with some
83291         comments/corrections by Stepan Kasal and myself.
83292
83293 2005-12-02  Bruno Haible  <bruno@clisp.org>
83294
83295         * gnulib-tool (func_import): Accept GPLed build tool modules when
83296         --lgpl is given.
83297         * modules/csharpcomp-script: New file.
83298         * modules/csharpcomp: Depend on it.
83299         * modules/javacomp-script: New file.
83300         * modules/javacomp: Depend on it.
83301         Suggested by Simon Josefsson.
83302
83303 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
83304
83305         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
83306         statement, to work around an HP-UX 10.20 compiler bug reported by
83307         Peter O'Gorman.
83308
83309 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
83310
83311         * modules/savedir (Depends-on): Add openat.
83312
83313 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
83314
83315         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
83316         (uintmax_t) [defined uintmax_t]: Do not declare.
83317         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
83318         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
83319         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
83320         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
83321         sake of portability to weird hosts that C allows (though we don't
83322         know of any practical examples).
83323
83324         * lib/savedir.h (fdsavedir): New decl.
83325         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
83326         contains most of the former guts of savedir.
83327         (savedir): Use savedirstream.
83328         Include "openat.h".
83329
83330 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
83331
83332         * modules/obstack (Files): Add m4/ulonglong.m4.
83333         Problem reported by Davide Angelocola.
83334
83335 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
83336
83337         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
83338         coreutils no longer futzes with rounding modes.
83339
83340 2005-11-14  Jim Meyering  <jim@meyering.net>
83341
83342         * lib/mkstemp-safer.c: Include <config.h>, required for possible
83343         replacement of mkstemp.
83344
83345 2005-11-10  Simon Josefsson  <jas@extundo.com>
83346
83347         * lib/readline.c: Remove EOL.
83348
83349 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
83350
83351         * modules/gethrxtime (Depends-on): Add gettime.
83352
83353 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
83354
83355         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
83356         or gettimeofday; no longer needed.
83357
83358 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
83359
83360         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
83361         time business.
83362         (gethrxtime) [! (HAVE_NANOUPTIME
83363         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
83364         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
83365         our own approximation.
83366
83367 2005-11-08  Eric Blake  <ebb9@byu.net>
83368
83369         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
83370
83371 2005-11-08  Eric Blake  <ebb9@byu.net>
83372
83373         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
83374
83375 2005-11-04  Bruno Haible  <bruno@clisp.org>
83376
83377         * gnulib-tool: Implement --update mode.
83378
83379 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
83380
83381         Fix porting problem reported by Theodoros V. Kalamatianos.
83382         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
83383         Don't assume that futimes failing means we must fail.
83384
83385 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
83386
83387         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
83388         variables to suggest the intended function of the PATH_MAX check.
83389
83390 2005-10-30  Kean Johnston  <jkj@sco.com>
83391
83392         Trivial changes to support SCO systems.
83393         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
83394         as PATH_MAX.
83395         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
83396         where __ptr is null when no I/O is pending.
83397
83398 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
83399
83400         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
83401         leave errno alone.  Problem reported by Dmitry V. Levin.
83402
83403 2005-10-28  Simon Josefsson  <jas@extundo.com>
83404
83405         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
83406         Test more.
83407
83408         * tests/test-gc-md2.c, tests/test-md2.c: New files.
83409
83410         * modules/md2, modules/md2-tests: New files.
83411
83412 2005-10-28  Simon Josefsson  <jas@extundo.com>
83413
83414         * m4/inet_ntop.m4: More tests.
83415
83416         * m4/gc-md2.m4, md2.m4: New file.
83417
83418 2005-10-28  Simon Josefsson  <jas@extundo.com>
83419
83420         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
83421         "restrict" keywords, as per POSIX.  Protect the function
83422         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
83423         Don't use K&R prototypes.  Check the sprintf return values.
83424         Re-define EAFNOSUPPORT if not present.  Indent.
83425
83426         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
83427         suggested by Bruno Haible <bruno@clisp.org>.
83428
83429         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
83430
83431         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
83432
83433         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
83434         libgcrypt).
83435
83436         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
83437
83438         * lib/md2.h, lib/md2.c: New files.
83439
83440 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
83441
83442         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
83443         errno alone.  Problem reported by Frederic Jolliton.
83444
83445 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
83446
83447         * modules/verify (License): Change from GPL to LGPL.  This is a
83448         tiny module and there are apparently near-equivalents that are
83449         under the BSD license.
83450
83451 2005-10-24  Simon Josefsson  <jas@extundo.com>
83452
83453         * modules/sha1: Relicense to LGPL.
83454
83455 2005-10-24  Simon Josefsson  <jas@extundo.com>
83456
83457         * lib/md4.h: Shrink buffer size, now that we changed the type.
83458
83459 2005-10-23  Simon Josefsson  <jas@extundo.com>
83460
83461         * gnulib-tool (func_import): Fix --tests-base.
83462
83463 2005-10-22  Simon Josefsson  <jas@extundo.com>
83464
83465         * modules/arcfour (Depends-on): Need stdint.
83466
83467 2005-10-22  Simon Josefsson  <jas@extundo.com>
83468
83469         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
83470         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
83471
83472 2005-10-22  Simon Josefsson  <jas@extundo.com>
83473
83474         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
83475         suggested by Bruno Haible <bruno@clisp.org>.
83476
83477 2005-10-22  Simon Josefsson  <jas@extundo.com>
83478
83479         * lib/crc.h: Include stddef.h, for size_t.
83480
83481 2005-10-22  Simon Josefsson  <jas@extundo.com>
83482
83483         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
83484         arcfour_context struct (simplify test vector testing in GNU
83485         Shishi).
83486
83487 2005-10-21  Simon Josefsson  <jas@extundo.com>
83488
83489         * modules/des, modules/des-tests: New files.
83490
83491         * modules/gc-des, modules/gc-des-tests: New files.
83492
83493         * tests/test-des.c, tests/test-gc-des.c: New file.
83494
83495 2005-10-21  Simon Josefsson  <jas@extundo.com>
83496
83497         * modules/arctwo, modules/arctwo-tests: New files.
83498
83499         * tests/test-arctwo.c: New file.
83500
83501         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
83502
83503         * tests/test-gc-arctwo.c: New file.
83504
83505 2005-10-21  Simon Josefsson  <jas@extundo.com>
83506
83507         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
83508         Bruno Haible <bruno@clisp.org>.
83509
83510         * m4/gc-des.m4: New file.
83511
83512 2005-10-21  Simon Josefsson  <jas@extundo.com>
83513
83514         * m4/arctwo.m4: New file.
83515
83516         * m4/gc-arctwo.m4: New file.
83517
83518 2005-10-21  Simon Josefsson  <jas@extundo.com>
83519
83520         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
83521         block.
83522
83523 2005-10-21  Simon Josefsson  <jas@extundo.com>
83524
83525         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
83526         <bruno@clisp.org>.
83527
83528         * lib/hmac-sha1.c (hmac_sha1): Likewise.
83529
83530         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
83531         Bruno Haible <bruno@clisp.org>.
83532
83533         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
83534         <bruno@clisp.org>.
83535
83536 2005-10-21  Simon Josefsson  <jas@extundo.com>
83537
83538         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
83539
83540 2005-10-21  Simon Josefsson  <jas@extundo.com>
83541
83542         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
83543
83544 2005-10-21  Simon Josefsson  <jas@extundo.com>
83545
83546         * lib/des.h, lib/des.c: New files.
83547
83548         * lib/gc-gnulib.c: Support DES.c
83549
83550 2005-10-21  Simon Josefsson  <jas@extundo.com>
83551
83552         * lib/arctwo.h, lib/arctwo.c: New files.
83553
83554         * lib/gc-gnulib.c: Support ARCTWO.
83555
83556 2005-10-21  Simon Josefsson  <jas@extundo.com>
83557
83558         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
83559         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
83560
83561 2005-10-21  Simon Josefsson  <jas@extundo.com>
83562
83563         * gnulib-tool (func_import, func_create_testdir): Define automake
83564         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
83565         Makefile.am snippet),
83566         suggested by Bruno Haible <bruno@clisp.org>.
83567
83568         * modules/gc (Makefile.am): Use it.
83569
83570 2005-10-21  Bruno Haible  <bruno@clisp.org>
83571
83572         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
83573         patch.
83574
83575 2005-10-19  Simon Josefsson  <jas@extundo.com>
83576
83577         * tests/test-gc-rijndael.c: New file.
83578
83579         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
83580
83581 2005-10-19  Simon Josefsson  <jas@extundo.com>
83582
83583         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
83584         interface too.
83585
83586 2005-10-19  Simon Josefsson  <jas@extundo.com>
83587
83588         * tests/test-gc-arcfour.c: New file.
83589
83590         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
83591
83592 2005-10-19  Simon Josefsson  <jas@extundo.com>
83593
83594         * modules/gc-md4, modules/gc-md4-tests: New file.
83595
83596         * tests/test-gc-md4.c: New file.
83597
83598 2005-10-19  Simon Josefsson  <jas@extundo.com>
83599
83600         * m4/gc-md4.m4: New file.
83601
83602 2005-10-19  Simon Josefsson  <jas@extundo.com>
83603
83604         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
83605         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
83606         <kasal@ucw.cz>.
83607
83608 2005-10-19  Simon Josefsson  <jas@extundo.com>
83609
83610         * m4/gc-arcfour.m4: New file.
83611
83612         * m4/gc-rijndael.m4: New file.
83613
83614 2005-10-19  Simon Josefsson  <jas@extundo.com>
83615
83616         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
83617
83618 2005-10-19  Simon Josefsson  <jas@extundo.com>
83619
83620         * lib/gc-gnulib.c: Support ARCFOUR.
83621
83622 2005-10-19  Simon Josefsson  <jas@extundo.com>
83623
83624         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
83625         support.
83626
83627         * lib/gc.h: Add ECB enum type.
83628
83629         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
83630
83631 2005-10-18  Simon Josefsson  <jas@extundo.com>
83632
83633         * tests/test-md5.c: New file.
83634
83635         * modules/md5-tests: New file.
83636
83637 2005-10-18  Simon Josefsson  <jas@extundo.com>
83638
83639         * tests/test-md4.c: New file.
83640
83641         * modules/md4, modules/md4-tests: New files.
83642
83643 2005-10-18  Simon Josefsson  <jas@extundo.com>
83644
83645         * m4/md4.m4: New file.
83646
83647 2005-10-18  Simon Josefsson  <jas@extundo.com>
83648
83649         * lib/md4.h, lib/md4.c: New files, based on md5.?.
83650
83651 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
83652
83653         * gnulib-tool (func_create_testdir): Omit the second check whether
83654         BUILT_SOURCES in nonempty.
83655
83656 2005-10-17  Simon Josefsson  <jas@extundo.com>
83657
83658         * tests/test-rijndael.c: New file.
83659
83660 2005-10-17  Simon Josefsson  <jas@extundo.com>
83661
83662         * modules/sha1: Depend on stdint instead of md5.
83663
83664         * modules/md5: Depend on stdint, remove uint32_t.
83665
83666 2005-10-17  Simon Josefsson  <jas@extundo.com>
83667
83668         * modules/gc-sha1-tests: New file.
83669
83670         * tests/test-gc-sha1.c: New file.
83671
83672 2005-10-17  Simon Josefsson  <jas@extundo.com>
83673
83674         * m4/md5.m4: Remove call to uint32_t.m4.
83675
83676 2005-10-17  Simon Josefsson  <jas@extundo.com>
83677
83678         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
83679
83680         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
83681         md5.h.
83682
83683         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
83684
83685         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
83686
83687 2005-10-17  Simon Josefsson  <jas@extundo.com>
83688
83689         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
83690
83691 2005-10-17  Simon Josefsson  <jas@extundo.com>
83692
83693         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
83694
83695 2005-10-17  Simon Josefsson  <jas@extundo.com>
83696
83697         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
83698
83699         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
83700
83701 2005-10-17  Bruno Haible  <bruno@clisp.org>
83702
83703         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
83704         that it can also be used in a test.
83705
83706 2005-10-16  Bruno Haible  <bruno@clisp.org>
83707
83708         * gnulib-tool (func_emit_tests_Makefile_am): Also define
83709         TESTS_ENVIRONMENT, so that individual tests can augment it.
83710
83711         * gnulib-tool (func_create_testdir): Use an intermediate target for
83712         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
83713         macros, like $(ALLOCA_H), which cannot be passed through the command
83714         line.
83715
83716 2005-10-15  Simon Josefsson  <jas@extundo.com>
83717
83718         * modules/rijndael-tests: New file.
83719
83720         * modules/rijndael: New file.
83721
83722 2005-10-15  Simon Josefsson  <jas@extundo.com>
83723
83724         * m4/rijndael.m4: New file.
83725
83726 2005-10-15  Simon Josefsson  <jas@extundo.com>
83727
83728         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
83729
83730         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
83731
83732 2005-10-14  Simon Josefsson  <jas@extundo.com>
83733
83734         * tests/test-arcfour.c: New file.
83735
83736         * modules/arcfour, modules/arcfour-tests: New files.
83737
83738 2005-10-14  Simon Josefsson  <jas@extundo.com>
83739
83740         * m4/arcfour.m4: New file.
83741
83742 2005-10-14  Simon Josefsson  <jas@extundo.com>
83743
83744         * lib/arcfour.h, lib/arcfour.c: New files.
83745
83746 2005-10-14  Roland McGrath  <roland@redhat.com>
83747
83748         Import from libc.  [BZ #1331]
83749         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
83750         macro argument.
83751         Reported by Matej Vela <vela@debian.org>.
83752
83753 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
83754
83755         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
83756         include <wchar.h>; no longer needed.
83757
83758 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
83759
83760         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
83761
83762 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
83763         and  Ulrich Drepper  <drepper@redhat.com>
83764
83765         Import from libc.
83766         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
83767         instead of inline stream orientation test and two separate
83768         function calls.  Pay no attention to USE_IN_LIBIO.
83769
83770 2005-10-13  Simon Josefsson  <jas@extundo.com>
83771
83772         * modules/gc-hmac-md5-tests: New file.
83773
83774         * tests/test-gc-hmac-sha1.c: New file.
83775
83776         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
83777
83778         * modules/gc-hmac-md5-tests: New file.
83779
83780         * tests/test-gc-md5.c: New file.
83781
83782         * modules/gc-md5-tests: New file.
83783
83784 2005-10-13  Simon Josefsson  <jas@extundo.com>
83785
83786         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
83787         Move memory allocation outside of loop.
83788
83789 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
83790
83791         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
83792         intermediate directory is in a read-only file system.  Problem
83793         reported by Eric Blake.
83794
83795 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
83796
83797         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
83798
83799 2005-10-12  Simon Josefsson  <jas@extundo.com>
83800
83801         * tests/test-hmac-sha1.c: New file.
83802
83803         * modules/hmac-sha1-tests: New file.
83804
83805         * modules/hmac-sha1: New file.
83806
83807 2005-10-12  Simon Josefsson  <jas@extundo.com>
83808
83809         * modules/gc-sha1: New file.
83810
83811 2005-10-12  Simon Josefsson  <jas@extundo.com>
83812
83813         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
83814
83815         * tests/test-gc-pbkdf2-sha1.c: New file.
83816
83817 2005-10-12  Simon Josefsson  <jas@extundo.com>
83818
83819         * modules/gc-md5, modules/gc-hmac-md5: New files.
83820
83821         * modules/gc (Files): Remove md5, memxor and hmac files.
83822
83823 2005-10-12  Simon Josefsson  <jas@extundo.com>
83824
83825         * m4/gc-pbkdf2-sha1.m4: New file.
83826
83827         * m4/gc-hmac-sha1.m4: New file.
83828
83829         * m4/gc-sha1: New file.
83830
83831         * m4/hmac-sha1.m4: New file.
83832
83833 2005-10-12  Simon Josefsson  <jas@extundo.com>
83834
83835         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
83836
83837         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
83838
83839 2005-10-12  Simon Josefsson  <jas@extundo.com>
83840
83841         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
83842         suggested by Bruno Haible <bruno@clisp.org>.
83843
83844 2005-10-12  Simon Josefsson  <jas@extundo.com>
83845
83846         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
83847
83848 2005-10-12  Simon Josefsson  <jas@extundo.com>
83849
83850         * lib/gc-pbkdf2-sha1.c: New file.
83851
83852         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
83853
83854 2005-10-12  Simon Josefsson  <jas@extundo.com>
83855
83856         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
83857
83858         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
83859
83860 2005-10-12  Simon Josefsson  <jas@extundo.com>
83861
83862         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
83863         GC_USE_HMAC_MD5, respectively.
83864
83865         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
83866         (gc_md5): Fix typo.
83867
83868         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
83869
83870         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
83871
83872         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
83873
83874 2005-10-12  Bruno Haible  <bruno@clisp.org>
83875
83876         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
83877         Reported by Stepan Kasal <kasal@ucw.cz>.
83878
83879 2005-10-11  Simon Josefsson  <jas@extundo.com>
83880
83881         * tests/test-crc.c: New file.
83882
83883         * modules/crc, modules/crc-tests: New files.
83884
83885 2005-10-11  Simon Josefsson  <jas@extundo.com>
83886
83887         * m4/crc.m4: New file.
83888
83889 2005-10-11  Simon Josefsson  <jas@extundo.com>
83890
83891         * lib/gc.h: Add gc_hash and gc_hash_buffer.
83892
83893         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
83894
83895         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
83896
83897 2005-10-11  Simon Josefsson  <jas@extundo.com>
83898
83899         * lib/crc.h, lib/crc.c: New files.
83900
83901         * lib/gc.h (gc_hash_buffer): Add doc.
83902
83903 2005-10-11  Bruno Haible  <bruno@clisp.org>
83904
83905         * modules/c-strcasestr: New file.
83906         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
83907
83908 2005-10-11  Bruno Haible  <bruno@clisp.org>
83909
83910         * modules/c-strcase: New file.
83911         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
83912
83913 2005-10-11  Bruno Haible  <bruno@clisp.org>
83914
83915         * lib/strcasecmp.c: Include limits.h.
83916         (strcasecmp): Avoid integer overflow on exotic platforms.
83917         * lib/strncasecmp.c: Include limits.h.
83918         (strncasecmp): Avoid integer overflow on exotic platforms.
83919         Reported by Paul Eggert.
83920
83921 2005-10-11  Bruno Haible  <bruno@clisp.org>
83922
83923         * lib/c-strcasestr.h: New file, from GNU gettext.
83924         * lib/c-strcasestr.c: New file, from GNU gettext.
83925
83926 2005-10-11  Bruno Haible  <bruno@clisp.org>
83927
83928         * lib/c-strcase.h: New file, from GNU gettext.
83929         * lib/c-strcasecmp.c: New file, from GNU gettext.
83930         * lib/c-strncasecmp.c: New file, from GNU gettext.
83931
83932 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
83933
83934         * modules/mempcpy (License): GPL -> LGPL.
83935         * modules/strchrnul (License): Likewise.
83936         * modules/sysexits (License): Likewise.
83937
83938 2005-10-08  Simon Josefsson  <jas@extundo.com>
83939
83940         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
83941
83942 2005-10-07  Simon Josefsson  <jas@extundo.com>
83943
83944         * m4/memxor.m4: Remove gl_C_RESTRICT call.
83945
83946 2005-10-06  Simon Josefsson  <jas@extundo.com>
83947
83948         * tests/test-hmac-md5.c: New file.
83949
83950         * modules/hmac-md5-tests: New file.
83951
83952         * modules/hmac-md5: New file.
83953
83954 2005-10-06  Simon Josefsson  <jas@extundo.com>
83955
83956         * m4/hmac-md5.m4: New file.
83957
83958         * m4/memxor.m4: Require gl_C_RESTRICT.
83959
83960 2005-10-06  Simon Josefsson  <jas@extundo.com>
83961
83962         * lib/memxor.c (memxor): Avoid casts and warnings.
83963
83964 2005-10-06  Simon Josefsson  <jas@extundo.com>
83965
83966         * lib/hmac-md5.c: New file.
83967
83968         * lib/hmac.h: New file.
83969
83970 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
83971
83972         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
83973         promotes to int, not unsigned int, to catch the AIX 5.3
83974         compiler bug.
83975
83976 2005-10-05  Simon Josefsson  <jas@extundo.com>
83977
83978         * modules/memxor: New file.
83979
83980         * modules/iconv (Files): Move config.rpath to havelib, it is used
83981         there.
83982
83983         * modules/havelib (Files): Add config.rpath.
83984
83985 2005-10-05  Simon Josefsson  <jas@extundo.com>
83986
83987         * m4/memxor.m4: New file.
83988
83989 2005-10-05  Simon Josefsson  <jas@extundo.com>
83990
83991         * lib/memxor.c (memxor): Fix compiler error.
83992
83993         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
83994         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
83995
83996         * lib/memxor.h, lib/memxor.c: New files.
83997
83998         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
83999         we assume all systems have it, suggested by Jim Meyering
84000         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
84001         any systems lack sys/socket.h; mingw32 is known to lack it, but we
84002         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
84003         same reasons.
84004
84005 2005-10-05  Simon Josefsson  <jas@extundo.com>
84006
84007         * config/srclist.txt: Add glibc bug 1423 for md5.h.
84008
84009 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
84010
84011         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
84012         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
84013         needed, since the source code now assumes these .h files.
84014
84015 2005-10-05  Derek Price  <derek@ximbiot.com>
84016
84017         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
84018
84019 2005-10-05  Bruno Haible  <bruno@clisp.org>
84020
84021         * modules/stdint (License): Change to LGPL.
84022
84023 2005-10-04  Simon Josefsson  <jas@extundo.com>
84024
84025         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
84026         D. Baushke" <mdb@gnu.org>.
84027
84028 2005-10-04  Bruno Haible  <bruno@clisp.org>
84029
84030         * lib/verify.h (verify_true): Provide alternative definition for C++.
84031
84032 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
84033
84034         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
84035         (SSIZE_MAX): New macro, if not already defined.
84036         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
84037         than 2 GiB.
84038
84039 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
84040
84041         Sync from coreutils.
84042         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
84043         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
84044         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
84045         ULLONG_MAX doesn't work with 2.7.2.1.
84046
84047 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
84048
84049         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
84050         From Ben Pfaff.
84051
84052         * modules/exclude (Depends-on): Depend on verify.
84053         * modules/strtoimax (Depends-on): Likewise.
84054         * modules/utimecmp (Depends-on): Likewise.
84055
84056 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
84057
84058         * lib/exclude.c: Include verify.h.
84059         (verify): Remove.  All callers changed to use verify.h's version.
84060         * lib/strtoimax.c: Likewise.
84061         * lib/utimecmp.c: Likewis.e
84062
84063         Sync from coreutils.
84064         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
84065         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
84066         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
84067         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
84068         bother returning ENOSYS if settimeofday or stime fails; just let
84069         them return whatever errno they want to return.
84070         * lib/utimens.c: Include unistd.h, for dup2.
84071         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
84072         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
84073
84074 2005-10-02  Jim Meyering  <jim@meyering.net>
84075
84076         Sync from coreutils.
84077         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
84078         from glibc-2.2.5 that fails for read-only files.
84079
84080 2005-10-02  Jim Meyering  <jim@meyering.net>
84081
84082         Sync from coreutils.
84083         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
84084         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
84085         `#if HAVE_CONFIG_H'.
84086         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
84087         Remove AT_FDCWD test.
84088         Do not consume the fd unless successful.
84089         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
84090         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
84091         block, so that we don't even try to compile it if settimeofday is
84092         available.  This works around a compilation failure on OSF1 V5.1,
84093         due to stime requiring a `long int*' while tv_sec is `int'.
84094
84095 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
84096
84097         Sync from coreutils.
84098         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
84099         against `yes', rather than just testing for nonempty.
84100
84101 2005-10-01  Simon Josefsson  <jas@extundo.com>
84102
84103         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
84104         and Darwin.
84105
84106         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
84107         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
84108         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
84109         freeaddrinfo and gai_strerror are declared by the POSIX headers.
84110         Check if struct addrinfo is declared.
84111
84112 2005-10-01  Simon Josefsson  <jas@extundo.com>
84113
84114         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
84115         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
84116         AI_* and EAI_* definitions.  Protect function declarations.
84117
84118 2005-10-01  Jim Meyering  <jim@meyering.net>
84119
84120         Sync from coreutils.
84121
84122         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
84123         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
84124         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
84125         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
84126         in the inet and nsl libraries.  Required on Solaris 5.7.
84127
84128 2005-10-01  Jim Meyering  <jim@meyering.net>
84129
84130         Sync from coreutils.
84131         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
84132         in the inet and nsl libraries.  Required on Solaris 5.7.
84133
84134 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
84135
84136         * lib/getdelim.c (getdelim): Remove unused variables.
84137
84138 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
84139
84140         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
84141         so that the code works even with ancient cpp.  Portability problem
84142         with GCC 2.7.2.1 reported by Thomas M.Ott.
84143
84144 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
84145
84146         * modules/regex (Depends-on): Add strcase.
84147
84148         * modules/gethostname (Licence): Change from GPL to LGPL, since
84149         gethostname.c is a trivial implementation of a standard library
84150         function.
84151         * modules/poll (License): Change from GPL to LGPL, since it's
84152         derived from LGPL code.
84153
84154 2005-09-27  Jim Meyering  <jim@meyering.net>
84155
84156         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
84157         HAVE_CONFIG_H.
84158
84159         * lib/intprops.h (signed_type_or_expr__): Define.
84160         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
84161         for unsigned types.
84162
84163 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
84164
84165         * lib/verify.h (verify_expr): Remove, replacing with:
84166         (verify_true): New macro that returns true instead of void.
84167         (verify_type__): Remove.
84168         (verify): Use verify_true rather than verify_type__.
84169
84170 2005-09-26  Bruno Haible  <bruno@clisp.org>
84171
84172         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
84173         is necessary.
84174         (lib_SOURCES): Remove mbchar.c.
84175         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
84176         (Files): Add m4/mbrtowc.m4.
84177         * modules/mbiter: Likewise.
84178         * modules/mbuiter: Likewise.
84179
84180 2005-09-26  Bruno Haible  <bruno@clisp.org>
84181
84182         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
84183         compile mbchar.c if they are not both present.
84184         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
84185         * m4/mbiter.m4 (gl_MBITER): Likewise.
84186         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
84187         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
84188         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
84189
84190 2005-09-25  Jim Meyering  <jim@meyering.net>
84191
84192         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
84193         also uses socklen_t.
84194
84195 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
84196
84197         * lib/utimens.c (ENOSYS): Define if not already defined.
84198         (futimens): Support having a null PATH if the file descriptor
84199         is nonnegative.
84200
84201         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
84202         Remove.
84203         (__attribute): Define to empty unless GCC 3.1 or later.
84204         This works around a core dump on OpenBSD 3.4, which has GCC
84205         2.95.3, which dumps core when given __attribute__(()).  It also
84206         simplifies other tests, since we really don't want to bother with
84207         worrying about which ancient version of GCC supported what.
84208         Original problem reported by Yoann Vandoorselaere, with part of
84209         the fix suggested by Derek Price.
84210
84211 2005-09-24  Jim Meyering  <jim@meyering.net>
84212
84213         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
84214         so we can once again use a positive bitfield width of 1 -- now we
84215         don't have to explain why we were using a bitfield width of 2.
84216
84217 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
84218
84219         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
84220         and similarly for the other external symbols.  Problem reported
84221         by James Gallager.
84222
84223         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
84224         bug reported by Jim Meyering.
84225
84226         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
84227         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
84228         not needed, since socklen is a prerequisite module.
84229
84230 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
84231
84232         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
84233         Problem reported by Eric Blake.
84234         (getaddrinfo): Initialize se so that it's not garbage.
84235         Redo internal storage allocation so that it doesn't make unportable
84236         assumptions about alignment.
84237         Fix a memory leak.
84238
84239         * lib/utimens.c (futimens): Use futimesat if available.
84240         Prefer it to futimes since it doesn't have the futimes bug.
84241
84242         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
84243         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
84244         Instead, declare a function that returns a pointer to an array,
84245         and use verify_type__ to declare the size of the array.
84246         Problem and germ of a solution reported by Bruno Haible.
84247         (verify_type__): Use 2, not 1, for bitfield size, to avoid
84248         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
84249
84250 2005-09-23  Jim Meyering  <jim@meyering.net>
84251
84252         Sync from coreutils.
84253         Correct build failure (socklen_t not defined) on at least
84254         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
84255         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
84256
84257 2005-09-23  Jim Meyering  <jim@meyering.net>
84258
84259         * modules/getaddrinfo (Depends-on): Add socklen.
84260
84261 2005-09-23  Bruno Haible  <bruno@clisp.org>
84262
84263         * tests/test-verify.c: New file.
84264
84265 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
84266
84267         Sync from coreutils.
84268
84269         * modules/argmatch (Depends-on): Add verify.
84270         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
84271         unistd-safer.
84272         * modules/save-cwd (Depends-on): Likewise.
84273
84274         * modules/openat (Files): Add lib/openat-die.c.
84275         (Depends-on): Remove error, exitfail.
84276         Add dirname.
84277
84278         * modules/verify: New file.
84279         * MODULES.html.sh (Diagnostics <assert.h>): New section,
84280         with "verify" module.
84281
84282 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
84283
84284         Sync from coreutils.
84285
84286         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
84287         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
84288         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
84289         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
84290         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
84291         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
84292         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
84293         Don't bother checking for string.h, stdlib.h, unistd.h.
84294         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
84295         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
84296         module's job.
84297         * m4/jm-macros.m4 (gl_MACROS): Likewise.
84298         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
84299
84300         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
84301         (gl_GETDATE): Use it.
84302
84303         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
84304
84305 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
84306
84307         Sync from coreutils.
84308
84309         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
84310         stat-time.h.
84311         * lib/argmatch.h: Include verify.h
84312         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
84313         (ARGMATCH_ASSERT): Remove; unused.
84314         * lib/canonicalize.c: Assume STDC_HEADERS.
84315         * lib/exclude.c: Include "strcase.h".
84316         * lib/regex_internal.h [!defined _LIBC]: Likewise.
84317         * lib/getusershell.c: Include stdio--.h rather than stdio.h
84318         and stdio-safer.h.
84319         (getusershell): Call fopen, not fopen_safer.
84320         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
84321         Do not include unistd-safer.h.
84322         (save_cwd): Don't call fd_safer; no longer needed
84323         now that we include fcntl--.h.
84324
84325         * lib/getdate.y (relative_time): New type.
84326         (RELATIVE_TIME_0): New constant.
84327         (parser_control): Use relative_time instead of doing it ourselves.
84328         (%union): Add new relative_time rel member.
84329         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
84330         Now typeless.
84331         (relunit, relunit_snumber): Now of type rel.
84332         (zone, rel, relunit, get_date): Adjust to above changes.
84333
84334         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
84335         Do not include unistd-safer.h.
84336         (getloadavg): Don't call fd_safer; no longer needed
84337         now that we include fcntl--.h.
84338
84339         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
84340         (make_dir_parents): Treat ENOSYS like EEXIST.
84341
84342         Improve quality of diagnostics on restore_cwd failure.
84343         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
84344         (make_dir_parents): Last arg is now int * (for errno), not bool *.
84345         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
84346         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
84347         each time through the loop.  Do not diagnose restore_cwd failure;
84348         that is the caller's job (and perhaps the caller does not care).
84349
84350         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
84351         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
84352         If the file already exists but is not a directory, don't bother
84353         to try to make its parents.
84354         Close potential file descriptor leak if we can't chdir("/") (!).
84355         Don't always return true if chdir($PWD) fails; return true only
84356         if the requested action was done successfully (except for the
84357         chdir($PWD)).
84358         Don't log final directory unless we actually made it.
84359         Refactor to avoid duplicate code to fix up permissions.
84360         Don't attempt to fix up parent permissions if chdir($PWD) fails.
84361
84362         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
84363         to make it a bit faster and (I hope) clearer.
84364         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
84365         Fix bug in formats like %2N.
84366
84367         * lib/verify.h: New file.
84368
84369 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
84370
84371         Sync from coreutils.
84372         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
84373
84374 2005-09-22  Jim Meyering  <jim@meyering.net>
84375
84376         Sync from coreutils.
84377
84378         * m4/lstat.m4 (gl_FUNC_LSTAT):
84379         Use AC_LIBSOURCES to require lstat.c and lstat.h.
84380         Remove obsolete comment.
84381         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
84382         * m4/xstrtod.m4: Likewise.
84383
84384         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
84385
84386 2005-09-22  Jim Meyering  <jim@meyering.net>
84387
84388         Sync from coreutils.
84389
84390         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
84391
84392         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
84393         the .tm_year member, since otherwise gcc-4.0 would now warn about
84394         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
84395
84396         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
84397         order to avoid an unsuppressible warning from gcc on 64-bit systems.
84398
84399         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
84400         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
84401         when run in a time zone for which daylight savings time is in effect
84402         for the starting date.
84403
84404         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
84405         stop us from restricting permissions of just-created absolute-named
84406         directories.
84407         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
84408         to restore initial working directory.
84409         * lib/mkdir-p.c (make_dir_parents): New parameter:
84410         different_working_dir, to tell caller if/when we change the working
84411         directory and are unable to return to the initial one.
84412         * lib/mkdir-p.h (make_dir_parents): Update prototype.
84413         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
84414         `return false'.  This fixes a bug introduced on 2004-07-30.
84415
84416         * lib/openat.c (fdopendir): Be sure to close the supplied
84417         file descriptor before returning.  This makes our replacement
84418         implementation a little closer to Solaris's, where fdopendir
84419         ties the file descriptor to the returned DIR* pointer.
84420         * lib/openat.c (unlinkat): New function.
84421         * lib/openat.h (unlinkat): Add prototype.
84422         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
84423         (openat_restore_fail): Rename from openat_restore_die.
84424         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
84425
84426         Provide an alternative to exiting immediately upon save_cwd or
84427         restore_cwd failure.  Now, an application can arrange e.g.,
84428         to perform a longjump in that case.
84429         * lib/openat.c: Include dirname.h.
84430         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
84431         (rpl_openat, fdopendir, fstatat): Call openat_save_die
84432         and openat_restore_die rather than calling error directly.
84433         Don't include "error.h" or "exitfail.h"; they're no longer needed.
84434
84435         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
84436         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
84437         define.
84438
84439         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
84440         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
84441                             int utc, int nanoseconds);
84442         Background:
84443         date should not have to allocate a megabyte of virtual memory to
84444         handle a format argument like +%1048575T.  When implemented with
84445         strftime, it must allocate such a buffer, use strftime to fill it
84446         in, print it, then free it.
84447         With fprintftime, it simply prints everything and exits.
84448         With no need for memory allocation, that's one fewer way to fail.
84449         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
84450         optional field width, not before, so we accept %9:z, not %:9z.
84451         (my_strftime): Be sure to use L_('x') for literals.
84452
84453         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
84454         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
84455         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
84456         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
84457         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
84458         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
84459         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
84460         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
84461         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
84462         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
84463         * lib/xgethostname.c, lib/xreadlink.c:
84464         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
84465
84466         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
84467         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
84468         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
84469         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
84470         and don't include <sys/file.h>).
84471
84472 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
84473
84474         Sync from coreutils.
84475
84476         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
84477         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
84478         [!LDAV_DONE]: Avoid unused variable warning.
84479
84480 2005-09-21  Bruno Haible  <bruno@clisp.org>
84481
84482         * lib/unicodeio.h (unicode_to_mb): New declaration.
84483
84484 2005-09-20  Derek Price  <derek@ximbiot.com>
84485
84486         * lib/getaddrinfo.c: Don't include <netdb.h> included from
84487         getaddrinfo.h.
84488
84489 2005-09-20  Bruno Haible  <bruno@clisp.org>
84490
84491         * gnulib-tool: Remove trailing slashes from the values specified for
84492         --source-base, --m4-base, --tests-base, --aux-dir.
84493         Suggested by Simon Josefsson <jas@extundo.com>.
84494
84495 2005-09-20  Bruno Haible  <bruno@clisp.org>
84496
84497         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
84498         func_modules_to_filelist, func_import, func_create_testdir): Make all
84499         sorting results locale-independent, so that gnulib-cache.m4 doesn't
84500         change when gnulib-tool is invoked in a different locale.
84501
84502 2005-09-19  Simon Josefsson  <jas@extundo.com>
84503
84504         * m4/socklen.m4: Fix typo.
84505
84506 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
84507
84508         Use a consistent style for including <config.h>.
84509         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
84510         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
84511         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
84512         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
84513         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
84514         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
84515         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
84516         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
84517         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
84518         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
84519         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
84520         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
84521         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
84522         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
84523         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
84524         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
84525         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
84526         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
84527         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
84528         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
84529         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
84530         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
84531         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
84532         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
84533         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
84534         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
84535         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
84536         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
84537         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
84538         lib/xstrtoumax.c, lib/yesno.c:
84539         Standardize inclusion of config.h.
84540         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
84541         lib/inttostr.h:  Removed inclusion of config.h from header files.
84542         * lib/inttostr.c:  Adjusted in-tree users.
84543         * lib/timespec.h: Remove superfluous warning to include config.h.
84544         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
84545         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
84546         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
84547         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
84548         config.h with HAVE_CONFIG_H.
84549
84550 2005-09-19  Jim Meyering  <jim@meyering.net>
84551
84552         * modules/pathmax (License): Change to LGPL.
84553
84554 2005-09-19  Derek Price  <derek@ximbiot.com>
84555
84556         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
84557
84558 2005-09-19  Bruno Haible  <bruno@clisp.org>
84559
84560         * gnulib-tool (import): Provide default for --tests-base.
84561
84562 2005-09-19  Bruno Haible  <bruno@clisp.org>
84563
84564         * doc/quote.texi: New file, extracted from gnulib.texi.
84565         * doc/ctime.texi: New file, extracted from gnulib.texi.
84566         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
84567         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
84568         * doc/gnulib.texi: Include them.
84569
84570 2005-09-18  Bruno Haible  <bruno@clisp.org>
84571
84572         Portability fix.
84573         * gnulib-tool (func_readlink): New function.
84574         (func_ln_if_changed): Use it.
84575
84576 2005-09-18  Bruno Haible  <bruno@clisp.org>
84577
84578         * gnulib-tool: Support --with-tests also with --import.
84579         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
84580         (func_import): Use variables $testsbase and $inctests. Emit a
84581         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
84582         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
84583         SUBDIRS += $testsdir.
84584         (func_create_testdir): Update.
84585
84586 2005-09-18  Bruno Haible  <bruno@clisp.org>
84587
84588         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
84589         instead of $dry_run.
84590         (func_cp_if_changed, func_mv_if_changed): Remove functions.
84591         (func_ln_if_changed): Don't handle dry-run here.
84592         (func_import): In dry-run mode, detect more precisely which actions
84593         would be performed, and don't use "...ing" verbs.
84594
84595 2005-09-18  Bruno Haible  <bruno@clisp.org>
84596
84597         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
84598         (func_import): Use join on two temporary files instead of three nested
84599         loops, in order to determine which files are new or old.
84600
84601 2005-09-18  Bruno Haible  <bruno@clisp.org>
84602
84603         * gnulib-tool (func_import): Comment out code that spits out the
84604         new files with --dry-run.
84605
84606 2005-09-18  Bruno Haible  <bruno@clisp.org>
84607
84608         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
84609
84610 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
84611
84612         * lib/stat-time.h: New file.
84613         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
84614         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
84615         in a different way.
84616         (timespec_cmp): New function.
84617         * lib/utimecmp.c: Include stat-time.h.
84618         (SYSCALL_RESOLUTION): Depend on whether various struct stat
84619         members exist, not on the obsolescent ST_MTIM_NSEC.
84620         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
84621
84622 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
84623
84624         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
84625
84626 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
84627
84628         * MODULES.html.sh (File system functions): Add stat-time.
84629         * modules/stat-time: New file.
84630         * modules/timespec (Files): Remove m4/st_mtim.m4; this
84631         is now done in a different way, by the stat-time module.
84632         * modules/utimecmp (Depends-on): Add stat-time.
84633
84634 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
84635
84636         * m4/st_mtim.m4: Remove.  Superseded by...
84637         * m4/stat-time.m4: New file.
84638         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
84639         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
84640
84641 2005-09-15  Derek Price  <derek@ximbiot.com>
84642
84643         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
84644
84645 2005-09-15  Derek Price  <derek@ximbiot.com>
84646
84647         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
84648         * lib/regex_internal.c: Ditto, using this...
84649         (__GNUC_PREREQ): ...new macro.
84650         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
84651         using...
84652         (__GNUC_PREREQ): ...this new macro.
84653
84654         * lib/strstr.h: Include string.h. Define strstr as a macro here.
84655
84656 2005-09-15  Derek Price  <derek@ximbiot.com>
84657             Paul Eggert  <eggert@cs.ucla.edu>
84658
84659         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
84660         changes, consolidating in...
84661         * lib/regex_internal.h: ...this file.
84662
84663 2005-09-13  Jim Meyering  <jim@meyering.net>
84664
84665         * lib/canon-host.c: Filter through gnu indent and reword comments
84666         slightly.
84667         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
84668
84669 2005-09-13  Derek Price  <derek@ximbiot.com>
84670
84671         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
84672         failure.
84673         Reported by Jim Meyering  <jim@meyering.net>.
84674
84675 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
84676
84677         * lib/base64.c: Typo.
84678         (base64_encode): Put b64str in initialized data section.
84679
84680 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
84681
84682         Merge glibc and coreutils changes into gnulib, plus a few
84683         extra fixes.
84684         * lib/md5.c: Use #error rather than a string.
84685         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
84686         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
84687         (__attribute__): Define to empty for non recent-GCC.
84688         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
84689         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
84690         Renamed from their non-__ counterparts, with new macros replacing
84691         them if not _LIBC.  Add __THROW attribute.
84692         (rol): Remove.
84693         (struct md5_ctx): Align buffer if using GCC.
84694         * lib/sha1.h (struct sha1_ctx): Likewise.
84695         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
84696         The old name was backwards.
84697         (NOTSWAP): Remove; not used.
84698         (rol): New macro, moved here from md5.h.
84699         (sha1_process_block): Remove a FIXME that doesn't make sense.
84700
84701 2005-09-12  Derek Price  <derek@ximbiot.com>
84702
84703         Return usable errors from canon-host.
84704         * lib/canon-host.h: New file.
84705         * lib/canon-host.c (canon_host): Wrap...
84706         (canon_host_r): ...this new function, which now relies exclusively on
84707         getaddrinfo.
84708         (ch_strerror): New function.
84709         (last_cherror): New global.
84710         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
84711         interface.
84712         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
84713         void *.
84714         (freeaddrinfo): Free ai->ai_canonname when set.
84715
84716 2005-09-12  Derek Price  <derek@ximbiot.com>
84717
84718         Make canon-host require getaddrinfo.
84719         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
84720         AC_LIBSOURCE canon-host.h.  Call...
84721         (gl_PREREQ_CANON_HOST): ...this new function, which requires
84722         gl_GETADDRINFO.
84723         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
84724
84725 2005-09-12  Derek Price  <derek@ximbiot.com>
84726
84727         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
84728         LGPL.
84729         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
84730
84731 2005-09-12  Derek Price  <derek@ximbiot.com>
84732
84733         * lib/gai_strerror.c: Include config.h when available.  Include
84734         getaddrinfo.h before other headers to test interface.
84735         Reported by Larry Jones <lawrence.jones@ugs.com>.
84736
84737 2005-09-12  Derek Price  <derek@ximbiot.com>
84738             Paul Eggert  <eggert@cs.ucla.edu>
84739
84740         * modules/glob (Files): Add glob-libc.h.
84741
84742 2005-09-12  Derek Price  <derek@ximbiot.com>
84743             Paul Eggert  <eggert@cs.ucla.edu>
84744
84745         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
84746         glob_.h, glob-libc.h.
84747         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
84748
84749 2005-09-12  Derek Price  <derek@ximbiot.com>
84750             Paul Eggert  <eggert@cs.ucla.edu>
84751
84752         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
84753         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
84754         protecting things that should be done only in gnulib contexts.
84755         * lib/glob_.h: New file, containing only the glob things needed for
84756         gnulib.
84757         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
84758         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
84759         (glob, globfree, glob_pattern_p): Now defined simply in terms of
84760         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
84761         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
84762         and to respect the namespace rules better.
84763
84764 2005-09-08  Simon Josefsson  <jas@extundo.com>
84765
84766         * modules/socklen: New file.
84767
84768 2005-09-08  Simon Josefsson  <jas@extundo.com>
84769
84770         * m4/socklen.m4: New file.
84771
84772 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
84773
84774         * modules/utimens (Files): Add m4/utimbuf.m4, since
84775         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
84776         Reported by Sergey Poznyakoff.
84777
84778 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
84779
84780         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
84781         definitions, since that's the preferred style in glibc.
84782         Fix a minor spacing issue, and update copyright notice to match
84783         glibc's.
84784
84785 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
84786
84787         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
84788
84789 2005-09-06  Simon Josefsson  <jas@extundo.com>
84790
84791         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
84792         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
84793
84794 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
84795
84796         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
84797         warning.
84798
84799 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
84800
84801         * config/srclist.txt: Add glibc bug 1302.
84802
84803 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
84804
84805         Change bitset word type from unsigned int to unsigned long int,
84806         as this has better performance on typical 64-bit hosts.
84807         Port bitset code to hosts with unusual word sizes.
84808         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
84809         (build_collating_symbol):
84810         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
84811         argument is a bitset.  This is merely a style issue, but it makes
84812         it clearer that an entire array is expected.
84813         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
84814         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
84815         Port to the case where bitset_word is not the same as unsigned int.
84816         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
84817         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
84818         Likewise.
84819         * lib/regexec.c (check_dst_limits_calc_pos_1,
84820         check_subexp_matching_top):
84821         (build_trtable, group_nodes_into_DFAstates):
84822         Likewise.
84823         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
84824         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
84825         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
84826         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
84827         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
84828         * lib/regcomp.c (optimize_subexps, lower_subexp):
84829         Work even if bitset_word has holes in its bitwise representation.
84830         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
84831         * lib/regexec.c (check_dst_limits_calc_pos_1,
84832         check_subexp_matching_top):
84833         Likewise.
84834         * lib/regex_internal.c (re_string_reconstruct):
84835         Don't assume UCHAR_MAX == 255.
84836         * lib/regex_internal.h (bitset_set_all): Likewise.
84837         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
84838         All uses changed.
84839         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
84840         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
84841         All uses changed.
84842         (BITSET_WORD_MAX): New macro.
84843         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
84844         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
84845         (bitset_empty, bitset_copy):
84846         Prefer sizeof (bitset) to multiplying it out ourselves.
84847         (bitset_not_merge): Remove; unused.
84848         (bitset_contain): Return bool, not unsigned int with one bit on.
84849         All callers changed.
84850         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
84851         alignment than re_node_set; do this by defining a new internal
84852         type struct dests_alloc and using it to allocate memory.
84853
84854 2005-09-05  Bruno Haible  <bruno@clisp.org>
84855
84856         * gnulib-tool (func_import): Fix comparison in handling of symbolic
84857         links.
84858
84859 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
84860
84861         * modules/size_max (Makefile.am): Add size_max.h
84862
84863 2005-09-04  Derek Price  <derek@ximbiot.com>
84864
84865         * gnulib-tool (func_import): Fix reversed $symbolic logic.
84866
84867 2005-09-03  Simon Josefsson  <jas@extundo.com>
84868
84869         * gnulib-tool: Fix typo.
84870
84871 2005-09-03  Simon Josefsson  <jas@extundo.com>
84872
84873         * config/srclist.txt: Add glibc bug 1293.
84874
84875 2005-09-03  Derek Price  <derek@ximbiot.com>
84876
84877         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
84878         From Larry Jones <lawrence.jones@ugs.com>.
84879
84880 2005-09-02  Simon Josefsson  <jas@extundo.com>
84881
84882         * modules/socklen: New file.
84883
84884 2005-09-02  Simon Josefsson  <jas@extundo.com>
84885
84886         * modules/havelib: New module.
84887
84888         * modules/gettext, modules/iconv, modules/lock, modules/readline:
84889         Use havelib.
84890
84891 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
84892
84893         Check for arithmetic overflow when calculating sizes, to prevent
84894         some buffer-overflow issues.  These patches are conservative, in the
84895         sense that when I couldn't determine whether an overflow was possible,
84896         I inserted a run-time check.
84897         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
84898         macros.
84899         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
84900         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
84901         (re_xnrealloc, re_x2nrealloc): New inline functions.
84902         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
84903         parse_bracket_exp):
84904         (build_equiv_class, build_charclass): Check for arithmetic overflow
84905         in size expression calculations.
84906         * lib/regex_internal.c (re_string_realloc_buffers):
84907         (build_wcs_upper_buffer, re_node_set_add_intersect):
84908         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
84909         (re_dfa_add_node, register_state): Likewise.
84910         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
84911         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
84912         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
84913         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
84914
84915 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
84916
84917         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
84918         m4/ulonglong.m4.  Problem reported by Martin Lambers.
84919
84920 2005-09-02  Bruno Haible  <bruno@clisp.org>
84921
84922         Support for lib vs. lib64 distinction on biarch platforms.
84923         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
84924         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
84925         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
84926
84927 2005-09-02  Bruno Haible  <bruno@clisp.org>
84928
84929         * gnulib-tool (import): In the other first-use case, provide defaults
84930         as well.
84931
84932 2005-09-02  Bruno Haible  <bruno@clisp.org>
84933
84934         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
84935         patches not yet found in the latest gettext release.
84936
84937 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
84938
84939         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
84940         to avoid a collision with bits/local_lim.h in glibc.
84941         All uses changed.  Problem reported by Dmitry V. Levin in
84942         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
84943
84944         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
84945         bugs in int versus size_t comparisons.
84946         (re_string_context_at): Fix bug where the code assumed that
84947         Idx is signed.
84948
84949         Use bool where appropriate.
84950         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
84951         All callers changed.
84952         (calc_eclosure_iter): Likewise, for ROOT arg.
84953         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
84954         (build_charclass_op): Likewise, for NON_MATCH arg.
84955         * lib/regex_internal.c (re_string_allocate, re_string_construct):
84956         (re_string_construct_common): Likewise, for ICASE arg.
84957         * lib/regexec.c (re_search_2_stub, re_search_stub):
84958         Likewise, for RET_LEN arg.
84959         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
84960         (set_regs): Likewise, for FL_BACKTRACK arg.
84961         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
84962         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
84963         (calc_eclosure_iter, parse_bracket_exp):
84964         Use bool for internal variables that are booleans.
84965         * lib/regexec.c (re_search_internal, check_matching,
84966         proceed_next_node):
84967         (set_regs, build_sifted_states, sift_states_bkref):
84968         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
84969         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
84970         (find_collation_sequence_value):
84971         Likewise.
84972         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
84973         (re_node_set_compare):
84974         Return bool, not int. All callers changed.
84975         * lib/regexec.c (check_halt_node_context, check_dst_limits):
84976         (build_trtable, check_node_accept): Likewise.
84977         * lib/regex_internal.h: Include stdbool.h.
84978
84979         Fix bugs uncovered when converting to bool.
84980         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
84981         failure instead of charging ahead blindly.
84982         * lib/regex_internal.c (register_state): Likewise.
84983         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
84984         for freeing internal storage.
84985         (group_nodes_into_DFA_states): Use unsigned int, not int, for
84986         bitset pieces used as boolean, to avoid undefined behavior
84987         on hosts that do int overflow checking.
84988
84989 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
84990
84991         * config/srclist.txt: Add glibc bugs 1285-1287.
84992
84993 2005-09-01  Jim Meyering  <jim@meyering.net>
84994
84995         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
84996         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
84997         Require gl_STAT_MACROS, too.
84998
84999 2005-09-01  Bruno Haible  <bruno@clisp.org>
85000
85001         * gnulib-tool (import): In the first-use case, provide defaults.
85002
85003 2005-09-01  Bruno Haible  <bruno@clisp.org>
85004
85005         * gnulib-tool (func_import): Remove the .tmp files.
85006
85007 2005-09-01  Bruno Haible  <bruno@clisp.org>
85008
85009         * gnulib-tool (func_import): Fix handling of symbolic links.
85010
85011 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
85012
85013         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
85014         old glibc regex code mishandles strings longer than 2**31 bytes.
85015         This patch fixes this when the regex code is used in gnulib
85016         (i.e., outside glibc).
85017
85018         This patch should not affect the use of the regex code inside
85019         glibc.  No doubt this problem also needs to be handled for glibc
85020         as well, but the result will be an incompatible change to the
85021         glibc ABI, and the old ABI will have to be supported too.  That
85022         can be the the subject for another patch.
85023
85024         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
85025         governing whether the rest of this patch is active.  By default,
85026         the macro is disabled and the patch has no effect.
85027         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
85028         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
85029         (struct re_pattern_buffer, re_search, re_search_2, re_match):
85030         (re_match_2, re_set_registers): Use the new types.
85031         * lib/regex_internal.h (Idx, re_hashval_t): New types.
85032         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
85033         New macros.
85034         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
85035         (re_string_context_at, bin_tree_t, re_dfastate_t):
85036         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
85037         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
85038         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
85039         (re_string_char_size_at, re_string_wchar_at):
85040         (re_string_elem_size_at):
85041         Use the new types and macros to port to 64-bit hosts.
85042         Use unsigned types for internal values, so that the code
85043         mostly works even for arrays larger than SSIZE_MAX.
85044         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
85045         (search_duplicated_node, calc_eclosure_iter, fetch_number):
85046         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
85047         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
85048         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
85049         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
85050         (calc_inveclosure, parse_dup_op, build_range_exp):
85051         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
85052         (fetch_number, create_token_tree, mark_opt_subexp):
85053         Likewise.
85054         * lib/regex_internal.c (re_string_construct_common,
85055         create_ci_newstate):
85056         (create_cd_newstate, re_string_allocate, re_string_construct):
85057         (re_string_realloc_buffers, build_wcs_upper_buffer):
85058         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
85059         (re_string_reconstruct, re_string_peek_byte_case):
85060         (re_string_fetch_byte_case, re_string_context_at):
85061         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
85062         (re_node_set_init_copy, re_node_set_add_intersect):
85063         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
85064         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
85065         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
85066         (re_acquire_state, re_acquire_state_context, register_state):
85067         Likewise.
85068         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
85069         search_cur_bkref_entry):
85070         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
85071         (re_search_internal, re_search_2_stub, re_search_stub)
85072         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
85073         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
85074         (update_cur_sifted_state, check_dst_limits):
85075         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
85076         (check_subexp_limits, sift_states_bkref, merge_state_array):
85077         (check_subexp_matching_top, get_subexp, get_subexp_sub):
85078         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
85079         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
85080         (expand_bkref_cache, check_node_accept_bytes):
85081         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
85082         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
85083         (acquire_init_state_context, check_halt_node_context):
85084         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
85085         (sift_states_backward, clean_state_log_if_needed):
85086         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
85087         (find_recover_state, transit_state_sb, transit_state_mb):
85088         (transit_state_bkref, build_trtable, match_ctx_clean):
85089         Likewise.
85090         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
85091         to work around an assumption that REG_MISSING is negative.
85092
85093         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
85094         (seek_collating_symbol_entry) [defined _LIBC]:
85095         (lookup_collation_sequence_value) [defined _LIBC]:
85096         (build_range_exp, build_collating_symbol) [defined _LIBC]:
85097         Use prototypes rather than old-style function definitions.
85098         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
85099         (transit_state_sb) [0]:
85100         (find_collation_sequence_value) [defined _LIBC]: Likewise.
85101
85102         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
85103         rm_eo.
85104
85105         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
85106         (optimize_subexps, lower_subexp):
85107         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
85108         since the signed shift might overflow.  Use 1u<<31 instead.
85109         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
85110         Likewise.
85111         * lib/regexec.c (check_dst_limits_calc_pos_1,
85112         check_subexp_matching_top): Likewise.
85113
85114         * lib/regcomp.c (optimize_subexps, lower_subexp):
85115         Use CHAR_BIT rather than 8, for clarity.
85116         * lib/regexec.c (check_dst_limits_calc_pos_1):
85117         (check_subexp_matching_top): Likewise.
85118         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
85119         have to worry about portability issues when shifting it left.
85120         Remove no-longer-needed test for table_size > 0.
85121         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
85122         in a word, as the resulting behavior is undefined.
85123         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
85124         in one case, a <= should have been an <, and in another case the
85125         whole test was missing.
85126         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
85127         the standard name CHAR_BIT.
85128         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
85129         this is not true on one's complement and signed-magnitude hosts.
85130
85131         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
85132         next_last_offset.
85133         (struct re_dfa_t): Remove unused member states_alloc.
85134         * lib/regcomp.c (init_dfa): Don't initialize unused members.
85135
85136 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
85137
85138         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
85139         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
85140         and large-file glibc and in 32-bit large-file Solaris.
85141
85142 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
85143
85144         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
85145         lengths fit in regoff_t; this isn't true if regoff_t is the same
85146         width as size_t.
85147         * lib/regex.c (re_search_internal): 5th arg is LAST_START
85148         (= START + RANGE) instead of RANGE.  This avoids overflow
85149         problems when regoff_t is the same width as size_t.
85150         All callers changed.
85151         (re_search_2_stub): Check for overflow when adding the
85152         sizes of the two strings.
85153         (re_search_stub): Check for overflow when adding START
85154         to RANGE; if it occurs, substitute the extreme value.
85155
85156 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
85157
85158         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
85159
85160 2005-08-31  Jim Meyering  <jim@meyering.net>
85161
85162         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
85163         a pointer-to-const.
85164         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
85165         (register_state): Likewise.
85166         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
85167         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
85168         (group_nodes_into_DFAstates): Likewise.
85169
85170 2005-08-31  Jim Meyering  <jim@meyering.net>
85171
85172         * check-module: Add a FIXME comment.
85173
85174 2005-08-31  Eric Blake  <ebb9@byu.net>
85175
85176         * modules/unistd-safer (Files): Add unistd--.h.
85177         * modules/stdio-safer (Files): Add stdio--.h.
85178
85179 2005-08-31  Derek Price  <derek@ximbiot.com>
85180
85181         * lib/getdelim.c (getdelim): Return EOF on EOF.
85182         Reported by Larry Jones <lawrence.jones@ugs.com>.
85183
85184 2005-08-31  Bruno Haible  <bruno@clisp.org>
85185
85186         Avoid unnecessary diffs in the generated lib/Makefile.am.
85187         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
85188         the generated files.
85189         (func_import): Don't set cmd.
85190
85191 2005-08-31  Bruno Haible  <bruno@clisp.org>
85192
85193         * lib/strstr.c: Include <stddef.h>, for NULL.
85194         * lib/strcasestr.c: Likewise.
85195         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
85196
85197 2005-08-31  Bruno Haible  <bruno@clisp.org>
85198
85199         * gnulib-tool: New option --macro-prefix.
85200         (func_import): Use macro_prefix.
85201         (import): Handle option --macro-prefix.
85202
85203 2005-08-31  Bruno Haible  <bruno@clisp.org>
85204
85205         * gnulib-tool (import): Rename most ac_* variables to cached_*.
85206         Also use new variables cached_lgpl, cached_libtool.
85207
85208 2005-08-31  Bruno Haible  <bruno@clisp.org>
85209
85210         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
85211         always instantiating them.
85212
85213 2005-08-31  Bruno Haible  <bruno@clisp.org>
85214
85215         * gnulib-tool (func_import): Read the previous cached settings
85216         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
85217         earlier added by gnulib but are now dropped. Warn when a gnulib file
85218         overwrites a non-gnulib file.
85219
85220 2005-08-31  Bruno Haible  <bruno@clisp.org>
85221
85222         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
85223         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
85224         projects that don't keep autogenerated files in CVS. Put into
85225         actioncmd only the specified modules, not the transitive closure.
85226
85227 2005-08-31  Bruno Haible  <bruno@clisp.org>
85228
85229         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
85230         Create directories that shall be filled.
85231         (import): Don't look for gl_* macros in configure.ac. Recurse across
85232         all directories containing a gnulib-cache.m4 files, if meaningful.
85233
85234 2005-08-31  Bruno Haible  <bruno@clisp.org>
85235
85236         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
85237         (import): Set seen_libtool when we see gl_LIBTOOL.
85238
85239 2005-08-31  Bruno Haible  <bruno@clisp.org>
85240
85241         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
85242         declaration macro definitions from generated gnulib.m4.
85243
85244 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
85245
85246         * lib/iconvme.h: Add prototype for iconv_alloc.
85247
85248 2005-08-29  Simon Josefsson  <jas@extundo.com>
85249
85250         * lib/iconvme.c: Fix errno.
85251
85252 2005-08-29  Bruno Haible  <bruno@clisp.org>
85253
85254         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
85255         that it works when the directory contains spaces.
85256
85257 2005-08-29  Bruno Haible  <bruno@clisp.org>
85258
85259         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
85260
85261 2005-08-29  Bruno Haible  <bruno@clisp.org>
85262
85263         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
85264         Emit more advice.
85265
85266 2005-08-29  Bruno Haible  <bruno@clisp.org>
85267         and Stepan Kasal  <kasal@ucw.cz>
85268
85269         * check-module: If more parameters are given, check each of them
85270         separately; add more exceptions, as noted by Jim Meyering.
85271         (check_module): New procedure.
85272         (%exempt_header): Now contains all exceptions.
85273
85274 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
85275
85276         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
85277
85278 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
85279
85280         * lib/iconvme.c: Split iconv_string into iconv_alloc.
85281
85282 2005-08-28  Bruno Haible  <bruno@clisp.org>
85283
85284         * m4/gnulib-tool.m4: New file.
85285
85286 2005-08-27  Jim Meyering  <jim@meyering.net>
85287
85288         * modules/unistd-safer (Files): Add pipe-safer.c.
85289         * modules/fcntl-safer (Files): Add creat-safer.c.
85290
85291 2005-08-27  Jim Meyering  <jim@meyering.net>
85292
85293         * m4/stdlib-safer.m4: New file.  From coreutils.
85294         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
85295         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
85296         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
85297         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
85298         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
85299
85300 2005-08-27  Jim Meyering  <jim@meyering.net>
85301
85302         * lib/fopen-safer.c: Merge minor changes from coreutils.
85303         * lib/dup-safer.c: Likewise.
85304         * lib/fd-safer.c: Likewise.
85305
85306         Merge from coreutils.
85307         * lib/stdio--.h: New file.
85308         * lib/stdlib--.h: New file.
85309         * lib/mkstemp-safer.c: New file.
85310
85311         GNU tar needs these.
85312         * lib/pipe-safer.c: New file.
85313         * lib/creat-safer.c: New file.
85314         * lib/fcntl--.h (creat): Define to creat_safer.
85315         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
85316         * lib/unistd--.h (pipe): Define to pipe_safer.
85317         * lib/unistd-safer.h: Declare pipe_safer.
85318
85319 2005-08-26  Simon Josefsson  <jas@extundo.com>
85320
85321         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
85322         Haible <bruno@clisp.org>.
85323
85324 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
85325
85326         * lib/regex_internal.h: Remove all references to
85327         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
85328         or better.
85329         (bitset_not, bitset_merge, bitset_not_merge):
85330         (bitset_mask, re_string_allocate, re_string_construct):
85331         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
85332         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
85333         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
85334         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
85335         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
85336         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
85337         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
85338         (re_acquire_state_context):
85339         Remove unnecessary forward decls.
85340         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
85341         Put __attribute at function definition,
85342         now that the function decl has been removed.
85343         * lib/regex_internal.c (re_string_peek_byte_case):
85344         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
85345         Likewise.
85346
85347 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
85348
85349         * m4/regex.m4: Add AC_PREREQ(2.50).
85350         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
85351
85352 2005-08-25  Simon Josefsson  <jas@extundo.com>
85353
85354         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
85355         __fsetlocking.
85356
85357 2005-08-25  Simon Josefsson  <jas@extundo.com>
85358
85359         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
85360         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
85361         GLIBC specific code.
85362
85363 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
85364
85365         Make regex safe for g++.  This fixes one real bug (an "err"
85366         that should have been "*err").  g++ problem reported by
85367         Sam Steingold.
85368         * lib/regex_internal.h (re_calloc): New macro, consistent with
85369         re_malloc etc.  All callers of calloc changed to use re_calloc.
85370         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
85371         not int.  All callers changed.
85372         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
85373         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
85374         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
85375         (find_recover_state): Change "err" to "*err"; this fixes what
85376         appears to be a real bug.
85377         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
85378         versus int.
85379
85380 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
85381
85382         * modules/regex (Depends-on): Add malloc, since the code
85383         assumes that !malloc(0) means failure.
85384
85385 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
85386
85387         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
85388
85389         alloca modernization/simplification for regex.
85390         * lib/regex.c: Remove portability cruft for alloca.  This no longer
85391         needs to be at the start of the file, and can be moved into
85392         regex_internal.h and simplified.
85393         * lib/regex_internal.h: Include <alloca.h>.
85394         (__libc_use_alloca) [!defined _LIBC]: New macro.
85395         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
85396         now works outside glibc.
85397
85398 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
85399
85400         * config/srclist.txt: Add glibc bugs 1241, 1245.
85401
85402 2005-08-25  Jim Meyering  <jim@meyering.net>
85403
85404         * lib/open-safer.c: Include <config.h>.
85405         Otherwise, we'd lose LARGEFILE support in any file using
85406         e.g. "fcntl--.h"
85407
85408 2005-08-25  Bruno Haible  <bruno@clisp.org>
85409
85410         * m4/minmax.m4: Require autoconf 2.52.
85411         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
85412         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
85413         alternatives of translit over the alphabet.
85414         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
85415
85416 2005-08-24  Simon Josefsson  <jas@extundo.com>
85417
85418         * tests/test-getpass.c: New file.
85419
85420 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
85421
85422         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
85423         for GNU regex features.
85424
85425 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
85426
85427         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
85428         * lib/regex.h (regerror): Likewise.
85429
85430         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
85431         requires this.  (The code never needed it.)
85432
85433         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
85434         All uses of recently-renamed identifiers changed to use the new,
85435         POSIX-compliant names.  The code will build and run just fine
85436         without these changes, but it's better to eat our own dog food
85437         and use the standard-conforming names.
85438
85439         * lib/regex.h: Fix a multitude of POSIX name space violations.
85440         These changes have an effect only for programs that define
85441         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
85442         do not change anything for programs compiled in the normal way.
85443         Also, there is no effect on the ABI.
85444
85445         (_REGEX_SOURCE): New macro.
85446         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
85447         defined and _GNU_SOURCE is not; this fixes a name space violation.
85448
85449         Rename the following macros to obey POSIX requirements.
85450         The old names are still visible as macros if _REGEX_SOURCE is defined.
85451         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
85452         RE_BACKSLASH_ESCAPE_IN_LISTS.
85453         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
85454         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
85455         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
85456         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
85457         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
85458         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
85459         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
85460         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
85461         (REG_INTERVALS): renamed from RE_INTERVALS.
85462         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
85463         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
85464         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
85465         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
85466         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
85467         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
85468         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
85469         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
85470         RE_UNMATCHED_RIGHT_PAREN_ORD.
85471         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
85472         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
85473         (REG_DEBUG): renamed from RE_DEBUG.
85474         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
85475         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
85476         unusual, since we can't clash with the POSIX REG_ICASE.
85477         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
85478         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
85479         (REG_NO_SUB): renamed from RE_NO_SUB.
85480         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
85481         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
85482         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
85483         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
85484         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
85485         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
85486         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
85487         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
85488         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
85489         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
85490         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
85491         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
85492         RE_SYNTAX_POSIX_MINIMAL_BASIC.
85493         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
85494         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
85495         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
85496         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
85497         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
85498         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
85499         (REG_FIXED): Renamed from REGS_FIXED.
85500         (REG_NREGS): Renamed from RE_NREGS.
85501
85502         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
85503         of other REG_* macros, since POSIX says the user is allowed to
85504         #undef these macros selectively.
85505
85506         (reg_errcode_t): Update comment stating what other tables need
85507         to be consistent.
85508
85509         Rename the following enum values to obey POSIX requirements.
85510         The old names are still visible as macros.
85511         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
85512         is not defined, since GNU is supposed to be a superset of POSIX as
85513         much as possible, and since we want reg_errcode_t to be a signed
85514         type for implementation consistency.
85515         (_REG_NOERROR): Renamed from REG_NOERROR.
85516         (_REG_NOMATCH): Renamed from REG_NOMATCH.
85517         (_REG_BADPAT): Renamed from REG_BADPAT.
85518         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
85519         (_REG_ECTYPE): Renamed from REG_ECTYPE.
85520         (_REG_EESCAPE): Renamed from REG_EESCAPE.
85521         (_REG_ESUBREG): Renamed from REG_ESUBREG.
85522         (_REG_EBRACK): Renamed from REG_EBRACK.
85523         (_REG_EPAREN): Renamed from REG_EPAREN.
85524         (_REG_EBRACE): Renamed from REG_EBRACE.
85525         (_REG_BADBR): Renamed from REG_BADBR.
85526         (_REG_ERANGE): Renamed from REG_ERANGE.
85527         (_REG_ESPACE): Renamed from REG_ESPACE.
85528         (_REG_BADRPT): Renamed from REG_BADRPT.
85529         (_REG_EEND): Renamed from REG_EEND.
85530         (_REG_ESIZE): Renamed from REG_ESIZE.
85531         (_REG_ERPAREN): Renamed from REG_ERPAREN.
85532         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
85533         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
85534         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
85535         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
85536
85537         (_REG_RE_NAME, _REG_RM_NAME): New macros.
85538         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
85539         changed.  But support the old name if the new one is not defined
85540         and if _REGEX_SOURCE.
85541
85542         Change the following member names in struct re_pattern_buffer.
85543         The old names are still supported if !_REGEX_SOURCE.
85544         The new names are always supported, regardless of _REGEX_SOURCE.
85545         (re_buffer): Renamed from buffer.
85546         (re_allocated): Renamed from allocated.
85547         (re_used): Renamed from used.
85548         (re_syntax): Renamed from syntax.
85549         (re_fastmap): Renamed from fastmap.
85550         (re_translate): Renamed from translate.
85551         (re_can_be_null): Renamed from can_be_null.
85552         (re_regs_allocated): Renamed from regs_allocated.
85553         (re_fastmap_accurate): Renamed from fastmap_accurate.
85554         (re_no_sub): Renamed from no_sub.
85555         (re_not_bol): Renamed from not_bol.
85556         (re_not_eol): Renamed from not_eol.
85557         (re_newline_anchor): Renamed from newline_anchor.
85558
85559         Change the following member names in struct re_registers.
85560         The old names are still supported if !_REGEX_SOURCE.
85561         The new names are always supported, regardless of _REGEX_SOURCE.
85562         (rm_num_regs): Renamed from num_regs.
85563         (rm_start): Renamed from start.
85564         (rm_end): Renamed from end.
85565
85566         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
85567         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
85568         Prepend __ to parameter names.
85569
85570         Undo yesterday's changes.
85571
85572 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
85573
85574         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
85575         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
85576         lib/regex.c.
85577
85578 2005-08-24  Jim Meyering  <jim@meyering.net>
85579
85580         Sync from coreutils.
85581         * m4/fcntl-safer.m4: New file.
85582
85583         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
85584         and object files for this module.
85585
85586 2005-08-24  Jim Meyering  <jim@meyering.net>
85587
85588         Sync from coreutils.
85589         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
85590
85591 2005-08-24  Jim Meyering  <jim@meyering.net>
85592
85593         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
85594         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
85595
85596 2005-08-24  Jim Meyering  <jim@meyering.net>
85597
85598         * modules/fcntl-safer: New module.
85599         * modules/fts (Depends-on): Add fcntl-safer.
85600         * MODULES.html.sh (File descriptor based Input/Output):
85601         Add fcntl-safer.
85602
85603 2005-08-24  Bruno Haible  <bruno@clisp.org>
85604
85605         Support for unit test modules.
85606         * modules/README: Mention tests modules.
85607         * modules/TEMPLATE-TESTS: New file.
85608         * gnulib-tool: New options --extract-tests-module, --with-tests and
85609         --tests-base (unused for the moment).
85610         (testsbase, inctests): New variables.
85611         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
85612         (func_verify_module): Exclude TEMPLATE-TESTS.
85613         (func_verify_nontests_module, func_verify_tests_module): New functions.
85614         (func_get_dependencies): Add implicit dependency for tests modules.
85615         (func_get_tests_module): New function.
85616         (func_modules_transitive_closure): When --with-tests was specified,
85617         include the unit tests as well, unless explicitly avoided.
85618         (func_emit_lib_Makefile_am): Ignore the tests modules here.
85619         (func_emit_tests_Makefile_am): New function.
85620         (func_create_testdir): When --with-tests was specified, emit a
85621         tests/ directory.
85622         * MODULES.html.sh (Future developments): Update.
85623
85624 2005-08-24  Bruno Haible  <bruno@clisp.org>
85625
85626         * modules/tls-tests: New file.
85627         * tests/test-tls.c: New file, from GNU gettext.
85628
85629 2005-08-24  Bruno Haible  <bruno@clisp.org>
85630
85631         * modules/lock-tests: New file.
85632         * tests/test-lock.c: New file, from GNU gettext.
85633
85634 2005-08-24  Bruno Haible  <bruno@clisp.org>
85635
85636         * lib/lock.h: Add multiple inclusion guard.
85637         * lib/tls.h: Add multiple inclusion guard.
85638
85639 2005-08-24  Bruno Haible  <bruno@clisp.org>
85640
85641         * gnulib-tool: Add support for the --aux-dir option to
85642         --create-testdir, --create-megatestdir, --test, --megatest.
85643         (func_create_testdir, func_create_megatestdir): Optionally emit a
85644         AC_CONFIG_AUX_DIR directive.
85645         (create-testdir, create-megatestdir, test, megatest): Provide a
85646         default value for $auxdir.
85647
85648 2005-08-24  Bruno Haible  <bruno@clisp.org>
85649
85650         * gnulib-tool (import): Use compound statement instead of subshell
85651         where possible.
85652
85653 2005-08-24  Bruno Haible  <bruno@clisp.org>
85654
85655         * gnulib-tool (import): Change --aux-dir default to "build-aux".
85656
85657 2005-08-24  Bruno Haible  <bruno@clisp.org>
85658
85659         * gnulib-tool (func_version): Update.
85660
85661 2005-08-24  Bruno Haible  <bruno@clisp.org>
85662
85663         * gnulib-tool (func_import, func_create_testdir,
85664         func_create_megatestdir): Quote all autoconf macro arguments.
85665
85666 2005-08-24  Bruno Haible  <bruno@clisp.org>
85667
85668         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
85669         option --force, because --force causes the aclocal.m4 of each
85670         subdirectory to be newer than the corresponding config.h.in.
85671
85672 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
85673
85674         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
85675         All contents moved to gl_REGEX.
85676         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
85677         assume that it does.
85678
85679 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
85680
85681         * lib/regex.h (REG_NOSYS)
85682         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
85683         Define, since POSIX requires it as of 2001.
85684         (_REG_ENOSYS)
85685         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
85686         New private symbol, used to keep the enum signed in all cases.
85687         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
85688         Youngman in
85689         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
85690
85691         * lib/regex_internal.c (re_string_skip_chars, register_state):
85692         (calc_state_hash):
85693         Remove forward decls; no longer needed now that we use prototypes.
85694         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
85695         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
85696         (clean_state_log_if_needed): Likewise.
85697
85698 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
85699
85700         * config/srclist.txt: Add glibc bugs 1231-1233.
85701
85702 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
85703
85704         Fix problems reported by Sam Steingold in
85705         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
85706         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
85707         assumed that reg_errcode_t is a signed type, which is not
85708         necessarily true if _XOPEN_SOURCE is not defined.
85709         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
85710         since some compilers warn about it otherwise.
85711
85712 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
85713
85714         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
85715         (init_word_char, create_initial_state, duplicate_node_closure):
85716         (fetch_token, peek_token_bracket, build_range_exp):
85717         (build_collating_symbol): Remove forward decls; no longer needed
85718         now that we use prototypes.
85719
85720         * lib/regcomp.c:
85721         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
85722         (re_compile_fastmap_iter, regcomp, regerror, regfree):
85723         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
85724         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
85725         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
85726         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
85727         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
85728         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
85729         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
85730         (build_range_exp, build_collating_symbol, parse_bracket_exp):
85731         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
85732         (build_charclass, build_charclass_op, fetch_number, create_tree):
85733         (create_token_tree, mark_opt_subexp, duplicate_tree):
85734         Use prototypes rather than old-style definitions.
85735
85736         * lib/regex_internal.c:
85737         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
85738         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
85739         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
85740         (re_string_reconstruct, re_string_peek_byte_case):
85741         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
85742         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
85743         (re_node_set_init_copy, re_node_set_add_intersect):
85744         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
85745         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
85746         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
85747         (re_acquire_state, re_acquire_state_context, register_state):
85748         (create_ci_newstate, create_cd_newstate, free_state):
85749         Likewise.
85750         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
85751         re_search_2):
85752         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
85753         (re_search_internal, prune_impossible_nodes):
85754         (acquire_init_state_context, check_matching, static):
85755         (check_halt_node_context, check_halt_state_context, proceed_next_node):
85756         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
85757         (update_regs, sift_states_backward, build_sifted_states):
85758         (clean_state_log_if_needed, merge_state_array):
85759         (update_cur_sifted_state, add_epsilon_src_nodes):
85760         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
85761         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
85762         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
85763         (find_recover_state, check_subexp_matching_top, transit_state_mb):
85764         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
85765         (check_arrival, check_arrival_add_next_nodes):
85766         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
85767         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
85768         (check_node_accept_bytes, check_node_accept, extend_buffers):
85769         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
85770         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
85771         (sift_ctx_init):
85772         Likewise.
85773
85774         * lib/regex_internal.h:
85775         (re_string_allocate, re_string_construct, re_string_reconstruct):
85776         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
85777         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
85778         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
85779         (re_string_context_at, re_string_peek_byte_case):
85780         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
85781         is defined, since we now use prototypes always.
85782
85783         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
85784         C89 or better.  All uses removed.
85785
85786 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
85787
85788         * config/srclist.txt: Add glibc bugs 1220-1227.
85789
85790 2005-08-20  Jim Meyering  <jim@meyering.net>
85791
85792         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
85793         of unused local, dfa.
85794
85795 2005-08-20  Bruno Haible  <bruno@clisp.org>
85796
85797         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
85798
85799 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
85800
85801         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
85802         (re_node_set_insert_last, re_dfa_add_node):
85803         Rename local variables to avoid GCC shadowing warnings.
85804
85805 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
85806
85807         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
85808         [defined lint]: Suppress bogus uninitialized-variable warnings.
85809
85810         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
85811         and let the caller return REG_ESPACE if out of space.  This
85812         removes an uninitialied-variable warning with GCC 4.0.1, and also
85813         avoids taking the address of a local variable.  All callers
85814         changed.
85815
85816 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
85817
85818         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
85819         $LIBCSRC/posix/regexec.c.
85820         Add glibc bug 1217 for regcomp.c.
85821
85822 2005-08-19  Jim Meyering  <jim@meyering.net>
85823
85824         * lib/regexec.c (proceed_next_node): Redo local variables to
85825         avoid GCC shadowing warnings.
85826
85827 2005-08-18  Bruno Haible  <bruno@clisp.org>
85828
85829         * lib/strstr.c (strstr): Fix return value in multibyte case.
85830         * lib/strcasestr.c (strcasestr): Likewise.
85831
85832 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
85833
85834         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
85835
85836 2005-08-17  Jim Meyering  <jim@meyering.net>
85837
85838         Make the %s format (seconds since the epoch) work for a negative
85839         number and when used with a zero-padded field width, e.g. %015s.
85840
85841         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
85842         label so that it precedes the code to set `digits'.  Otherwise,
85843         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
85844         print `00-22'.  Now, it prints `-0022', as it should.
85845
85846 2005-08-17  Bruno Haible  <bruno@clisp.org>
85847
85848         * modules/strstr (Files): Add m4/mbrtowc.m4.
85849         (Depends-on): Add mbuiter.
85850
85851 2005-08-17  Bruno Haible  <bruno@clisp.org>
85852
85853         * modules/strcasestr: New file.
85854         * MODULES.html.sh (String handling, based on ANSI C 89): Add
85855         strcasestr.
85856
85857 2005-08-17  Bruno Haible  <bruno@clisp.org>
85858
85859         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
85860
85861 2005-08-17  Bruno Haible  <bruno@clisp.org>
85862
85863         * modules/mbuiter: New file.
85864         * MODULES.html.sh (Extended multibyte and wide character utilities):
85865         Add mbuiter.
85866
85867 2005-08-17  Bruno Haible  <bruno@clisp.org>
85868
85869         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
85870         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
85871
85872 2005-08-17  Bruno Haible  <bruno@clisp.org>
85873
85874         * m4/strcasestr.m4: New file.
85875
85876 2005-08-17  Bruno Haible  <bruno@clisp.org>
85877
85878         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
85879         * lib/strstr.c: Completely rewritten, with multibyte locale support.
85880
85881 2005-08-17  Bruno Haible  <bruno@clisp.org>
85882
85883         * lib/strcasestr.h: New file.
85884         * lib/strcasestr.c: New file.
85885
85886 2005-08-17  Bruno Haible  <bruno@clisp.org>
85887
85888         * lib/strcasecmp.c: Use mbuiter.h.
85889
85890 2005-08-17  Bruno Haible  <bruno@clisp.org>
85891
85892         * lib/mbuiter.h: New file.
85893
85894 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
85895
85896         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
85897         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
85898         and gl_GETOPT are both invoked via different paths (as happens
85899         with GNU tar CVS because it uses both argp and getopt), the former
85900         wins.
85901
85902 2005-08-16  Bruno Haible  <bruno@clisp.org>
85903
85904         * modules/tls: New file.
85905         * MODULES.html.sh (Multithreading): Add tls.
85906
85907 2005-08-16  Bruno Haible  <bruno@clisp.org>
85908
85909         * modules/strnlen1: New file.
85910         * MODULES.html.sh (String handling): Add strnlen1.
85911
85912 2005-08-16  Bruno Haible  <bruno@clisp.org>
85913
85914         * modules/strcase (Files): Add m4/mbrtowc.m4.
85915         (Depends-on): Add strnlen1, mbchar.
85916
85917 2005-08-16  Bruno Haible  <bruno@clisp.org>
85918
85919         * modules/mbiter: New file.
85920         * MODULES.html.sh (Extended multibyte and wide character utilities):
85921         Add mbiter.
85922
85923 2005-08-16  Bruno Haible  <bruno@clisp.org>
85924
85925         * modules/mbfile: New file.
85926         * MODULES.html.sh (Extended multibyte and wide character utilities):
85927         Add mbfile.
85928
85929 2005-08-16  Bruno Haible  <bruno@clisp.org>
85930
85931         * modules/mbchar: New file.
85932         * MODULES.html.sh (Extended multibyte and wide character utilities):
85933         New section.
85934
85935 2005-08-16  Bruno Haible  <bruno@clisp.org>
85936
85937         * m4/tls.m4: New file, from GNU gettext.
85938
85939 2005-08-16  Bruno Haible  <bruno@clisp.org>
85940
85941         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
85942         always.
85943         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
85944
85945 2005-08-16  Bruno Haible  <bruno@clisp.org>
85946
85947         * m4/mbiter.m4: New file.
85948
85949 2005-08-16  Bruno Haible  <bruno@clisp.org>
85950
85951         * m4/mbfile.m4: New file.
85952
85953 2005-08-16  Bruno Haible  <bruno@clisp.org>
85954
85955         * m4/mbchar.m4: New file.
85956
85957 2005-08-16  Bruno Haible  <bruno@clisp.org>
85958
85959         * lib/tls.h: New file, from GNU gettext.
85960         * lib/tls.c: New file, from GNU gettext.
85961
85962 2005-08-16  Bruno Haible  <bruno@clisp.org>
85963
85964         * lib/strnlen1.h: New file.
85965         * lib/strnlen1.c: New file.
85966
85967 2005-08-16  Bruno Haible  <bruno@clisp.org>
85968
85969         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
85970         (mbi_init): Update.
85971         (mbi_avail, mbi_advance): Let the iteration end before the terminating
85972         NUL byte, not after it.
85973
85974 2005-08-16  Bruno Haible  <bruno@clisp.org>
85975
85976         * lib/strcase.h (strcasecmp): Add note in comments.
85977         * lib/strncasecmp.c: Use code from strcasecmp.c.
85978         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
85979         (strcasecmp): Work correctly in multibyte locales.
85980
85981 2005-08-16  Bruno Haible  <bruno@clisp.org>
85982
85983         * lib/mbiter.h: New file.
85984
85985 2005-08-16  Bruno Haible  <bruno@clisp.org>
85986
85987         * lib/mbfile.h: New file.
85988
85989 2005-08-16  Bruno Haible  <bruno@clisp.org>
85990
85991         * lib/mbchar.h: New file.
85992         * lib/mbchar.c: New file.
85993
85994 2005-08-16  Bruno Haible  <bruno@clisp.org>
85995
85996         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
85997         the valid ones. Makes the comparison operations transitive:
85998         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
85999         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
86000
86001 2005-08-15  Simon Josefsson  <jas@extundo.com>
86002
86003         * modules/ssize_t (License): Change to 'unlimited'.
86004
86005         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
86006
86007 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
86008
86009         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
86010         Add comments for each pending glibc patch.
86011
86012 2005-08-15  Bruno Haible  <bruno@clisp.org>
86013
86014         * lib/regex.h (__restrict_arr): Don't define to __restrict if
86015         __cplusplus is defined.
86016
86017 2005-08-14  Jim Meyering  <jim@meyering.net>
86018
86019         Sync from coreutils.
86020
86021         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
86022         Use the hash-table-based cycle-detection code not just when
86023         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
86024         Reported by James Youngman in
86025         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
86026         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
86027         FTS_TIGHT_CYCLE_CHECK.
86028         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
86029         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
86030         once again.
86031         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
86032         * lib/fts.c (fd_safer): Remove decl.
86033         Include fcntl--.h rather than unistd-safer.h
86034         (fts_safe_changedir): Don't call fd_safer; no longer needed
86035         now that we include fcntl--.h.
86036
86037 2005-08-12  Simon Josefsson  <jas@extundo.com>
86038
86039         * modules/getndelim2: Use ssize_t module.
86040         * modules/getnline: Likewise.
86041         * modules/safe-read: Likewise.
86042         * modules/xreadlink: Likewise.
86043
86044         * modules/ssize_t: New file.
86045
86046 2005-08-12  Simon Josefsson  <jas@extundo.com>
86047
86048         * m4/readline.m4: Look for termcap, curses or ncurses if required.
86049
86050 2005-08-12  Simon Josefsson  <jas@extundo.com>
86051
86052         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
86053         ssize_t.
86054
86055 2005-08-12  Simon Josefsson  <jas@extundo.com>
86056
86057         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
86058         readline, getdelim and check_version.
86059         (Support for systems lacking ISO C 99: Sizes of integer types):
86060         Add size_max.
86061
86062 2005-08-12  Bruno Haible  <bruno@clisp.org>
86063
86064         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
86065
86066 2005-08-11  Simon Josefsson  <jas@extundo.com>
86067
86068         * modules/readline: New file.
86069
86070         * modules/strnlen (Files): Add strnlen.h.
86071
86072 2005-08-11  Simon Josefsson  <jas@extundo.com>
86073
86074         * m4/readline.m4: New file.
86075
86076 2005-08-11  Simon Josefsson  <jas@extundo.com>
86077
86078         * lib/readline.h, readline.c: New file.
86079
86080 2005-08-11  Simon Josefsson  <jas@extundo.com>
86081
86082         * doc/gnulib.texi (Initial import, Finishing touches): Mention
86083         gl_AVOID.
86084
86085 2005-08-11  Bruno Haible  <bruno@clisp.org>
86086
86087         * lib/strnlen.h (strnlen): Change parameter name to match comment.
86088
86089 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
86090
86091         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
86092
86093 2005-08-10  Simon Josefsson  <jas@extundo.com>
86094
86095         * tests/test-iconvme.c: New file.
86096
86097 2005-08-10  Simon Josefsson  <jas@extundo.com>
86098
86099         * m4/strnlen.m4: New file.
86100
86101         * m4/strndup.m4: Don't check for strnlen declaration, done in
86102         strnlen.m4.
86103
86104 2005-08-10  Simon Josefsson  <jas@extundo.com>
86105
86106         * lib/strndup.c: Use strnlen.h.
86107
86108         * lib/strnlen.h: New file.
86109
86110 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
86111
86112         * README: Typos.
86113
86114 2005-08-02  Simon Josefsson  <jas@extundo.com>
86115
86116         * modules/readline: New file.
86117
86118 2005-08-02  Simon Josefsson  <jas@extundo.com>
86119
86120         * modules/getdelim: New file.
86121
86122         * modules/getline: Rewrite, don't use getndelim2.
86123
86124 2005-08-02  Simon Josefsson  <jas@extundo.com>
86125
86126         * m4/getline.m4: Separate out getdelim stuff into separate module.
86127
86128         * m4/getdelim.m4: New file.
86129
86130 2005-08-02  Simon Josefsson  <jas@extundo.com>
86131
86132         * lib/getline.h, getline.c: Rewrite.
86133
86134         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
86135
86136 2005-07-31  Bruno Haible  <bruno@clisp.org>
86137
86138         * lib/lock.h (gl_lock_initializer): New macro.
86139         (gl_lock_define_initialized): Use it.
86140         (gl_rwlock_initializer): New macro.
86141         (gl_rwlock_define_initialized): Use it.
86142         (gl_recursive_lock_initializer): New macro.
86143         (gl_recursive_lock_define_initialized): Use it.
86144
86145 2005-07-30  Karl Berry  <karl@gnu.org>
86146
86147         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
86148         Report from Ben Pfaff, regarding getopt.
86149
86150 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
86151
86152         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
86153         normal way.
86154         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
86155         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
86156         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
86157         (gl_GETOPT): Use the new macros.  Most of the implementation
86158         is moved to the new macros.  This is for programs like Emacs
86159         that don't want all the functionality of gl_GETOPT.
86160
86161 2005-07-26  Bruno Haible  <bruno@clisp.org>
86162
86163         * m4/lock.m4: Update from GNU gettext.
86164
86165 2005-07-26  Bruno Haible  <bruno@clisp.org>
86166
86167         * lib/lock.h: Update from GNU gettext.
86168         * lib/lock.c: Update from GNU gettext.
86169
86170 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
86171
86172         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
86173         obsolescent AC_TRY_RUN.  Include the default includes files, for
86174         'exit'.
86175
86176 2005-07-24  Bruno Haible  <bruno@clisp.org>
86177
86178         * modules/visibility: New file.
86179         * MODULES.html.sh (Misc): Add visibility.
86180
86181 2005-07-24  Bruno Haible  <bruno@clisp.org>
86182
86183         * m4/visibility.m4: New file.
86184
86185 2005-07-24  Bruno Haible  <bruno@clisp.org>
86186
86187         * doc/visibility.texi: New file.
86188
86189 2005-07-22  Bruno Haible  <bruno@clisp.org>
86190
86191         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
86192         $(ALLOCA_H), redundant through BUILT_SOURCES.
86193         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
86194         redundant through BUILT_SOURCES.
86195         * modules/byteswap (Makefile.am): Remove explicit dependency on
86196         $(BYTESWAP_H), redundant through BUILT_SOURCES.
86197         * modules/fnmatch (Makefile.am): Remove explicit dependency on
86198         $(FNMATCH_H), redundant through BUILT_SOURCES.
86199         * modules/getopt (Makefile.am): Remove explicit dependency on
86200         $(GETOPT_H), redundant through BUILT_SOURCES.
86201         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
86202         redundant through BUILT_SOURCES.
86203         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
86204         redundant through BUILT_SOURCES.
86205         * modules/stdbool (Makefile.am): Remove explicit dependency on
86206         $(STDBOOL_H), redundant through BUILT_SOURCES.
86207         * modules/stdint (Makefile.am): Remove explicit dependency on
86208         $(STDINT_H), redundant through BUILT_SOURCES.
86209         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
86210         Remove explicit dependency on $(SYSEXITS_H).
86211         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
86212
86213 2005-07-18  Simon Josefsson  <jas@extundo.com>
86214
86215         * lib/check-version.c (check_version): Accept identical versions too.
86216
86217 2005-07-18  Bruno Haible  <bruno@clisp.org>
86218
86219         * modules/lock: New file.
86220         * MODULES.html.sh (Multithreading): New section.
86221
86222 2005-07-18  Bruno Haible  <bruno@clisp.org>
86223
86224         * m4/lock.m4: New file, from GNU gettext.
86225
86226 2005-07-18  Bruno Haible  <bruno@clisp.org>
86227
86228         * lib/lock.h: New file, from GNU gettext.
86229         * lib/lock.c: New file, from GNU gettext.
86230
86231 2005-07-18  Bruno Haible  <bruno@clisp.org>
86232
86233         * lib/lock.h (gl_once_t): New type.
86234         (gl_once_define, gl_once): New macros.
86235         * lib/lock.c (fresh_once): New variable.
86236         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
86237         functions.
86238
86239 2005-07-16  Simon Josefsson  <jas@extundo.com>
86240
86241         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
86242         workaround, suggested by Bruno.
86243
86244 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
86245
86246         * modules/xalloc (Depends-on): Add xalloc-die.
86247         * modules/xvasprintf (Depends-on): Add xalloc-die.
86248
86249 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
86250
86251         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
86252         with a minor change.
86253
86254 2005-07-15  Bruno Haible  <bruno@clisp.org>
86255
86256         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
86257         When using lib/poll.c, define poll as rpl_poll.
86258
86259 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
86260
86261         * modules/argp (Depends-on): Remove unlocked-io.
86262
86263 2005-07-14  Derek Price  <derek@ximbiot.com>
86264
86265         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
86266         for glob symlink bug.
86267
86268 2005-07-14  Bruno Haible  <bruno@clisp.org>
86269
86270         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
86271         Instead, test for *_unlocked function declarations directly.
86272
86273 2005-07-11  Simon Josefsson  <jas@extundo.com>
86274
86275         * modules/size_max: New file.
86276
86277         * modules/xsize: Depend on size_max module for size_max.m4.
86278
86279 2005-07-11  Simon Josefsson  <jas@extundo.com>
86280
86281         * lib/size_max.h: New file.
86282
86283 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
86284
86285         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
86286         copyright symbol and the year.
86287         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
86288         (version_etc_va): Use parameterized copyright notice.
86289         Reword to conform to the current GNU coding standards.
86290
86291 2005-07-11  Karl Berry  <karl@gnu.org>
86292
86293         * doc/gnulib.texi (Quoting): new node.
86294         (Initial import): more info, from Patrice.
86295
86296 2005-07-11  Bruno Haible  <bruno@clisp.org>
86297
86298         * gnulib-tool (func_usage): Document option --avoid.
86299         (Command line options): Handle --avoid.
86300         (func_acceptable): New function.
86301         (func_modules_transitive_closure): Use it.
86302
86303 2005-07-11  Bruno Haible  <bruno@clisp.org>
86304
86305         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
86306         Reported by Jim Meyering.
86307
86308 2005-07-10  Bruno Haible  <bruno@clisp.org>
86309
86310         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
86311         Needed when size_t is smaller than 'unsigned int'.
86312         Reported by Paul Eggert.
86313
86314 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
86315
86316         * modules/argp (Depends-on): Add unlocked-io
86317
86318 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
86319
86320         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
86321         block of defines.
86322
86323 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
86324
86325         * config/srclist.txt: Comment out regcomp.c, since we have a porting
86326         fix now.
86327
86328 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
86329         and Paul Eggert  <eggert@cs.ucla.edu>
86330
86331         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
86332         in wint_t, not wchar_t.  Remove now-unnecessary cast.
86333
86334 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
86335
86336         * modules/regex (Files): Add lib/regex_internal.c,
86337         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
86338         (Depends-on): Add extensions.
86339         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
86340
86341 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
86342
86343         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
86344         pathconf.
86345         * m4/same.m4 (gl_SAME): Likewise.
86346         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
86347
86348         * m4/regex.m4: Adjust to new libc regex implementation.
86349         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
86350         all the .c and .h parts of (the new) regex.
86351         Quote the m4 stuff better.
86352         Check for RE_ICASE bug of old gnulib.
86353         Check for REG_STARTEND of recent libc.
86354         Rename local variables from jm_* to gl_*.
86355         Quote operand of "test -f".
86356         Say "recent enough" version of libc, not "version 2".
86357         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
86358         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
86359         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
86360         Remove check for btowc, isascii.
86361         Require AM_LANGINFO_CODESET.
86362
86363 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
86364
86365         * lib/regex.c, regex.h: Sync from libc.
86366         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
86367         * lib/regexec.c:
86368         New files, synced from libc, except that regex_internal.h
86369         currently has a small porting fix.
86370
86371 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
86372
86373         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
86374         regex_internal.c, regexec.c.
86375         Add regex_internal.h too, but as a comment, since the libc version
86376         is currently broken in gnulib mode.
86377
86378 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
86379
86380         Support programs like Emacs that use gnulib but not gettext.
86381         * MODULES.html.sh (Internationalization functions): Add gettext-h.
86382         * modules/gettext-h: New file.
86383         * modules/gettext (Files): Remove lib/gettext.h.
86384         (Depends-on): Add gettext-h.
86385         (Makefile.am): Remove lib_SOURCES.
86386         * modules/argmatch, modules/c-stack, modules/closeout:
86387         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
86388         * modules/execute, modules/file-type, modules/getaddrinfo:
86389         * modules/getopt, modules/human, modules/javacomp:
86390         * modules/javaexec, modules/mkdir-p, modules/obstack:
86391         * modules/openat, modules/pagealign_alloc, modules/pipe:
86392         * modules/quotearg, modules/regex, modules/rpmatch:
86393         * modules/unicodeio, modules/userspec, modules/version-etc:
86394         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
86395         * modules/xsetenv:
86396         Depend on gettext-h, not gettext.
86397
86398 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
86399
86400         * gnulib-tool (func_import): Add support for 'public domain' license.
86401         * modules/alloca, modules/atexit, modules/memmove:
86402         Now public domain, not GPL.
86403         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
86404         * modules/realloc, modules/strerror, modules/strtod:
86405         Now LGPL, not GPL.
86406
86407 2005-07-05  Bruno Haible  <bruno@clisp.org>
86408
86409         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
86410         autoconf CVS. Needed for mingw.
86411
86412 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
86413
86414         Remove the dependency of the strftime module on the tzset module.
86415         * modules/strftime (Depends-on): Remove dependency on tzset.
86416
86417 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
86418
86419         Remove the dependency of the strftime module on the tzset module.
86420         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
86421         gl_FUNC_TZSET_CLOBBER.
86422
86423 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
86424
86425         Remove the dependency of the strftime module on the tzset module.
86426         * lib/strftime.c (my_strftime)
86427         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
86428         Copy the input structure, to work around some of the bug with
86429         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
86430         Solaris releases, you should also use the tzset module, but we won't
86431         require it as a dependency any more since we don't want LGPLed code
86432         to depend on GPLed code.
86433
86434 2005-07-02  Jim Meyering  <jim@meyering.net>
86435
86436         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
86437         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
86438         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
86439         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
86440
86441 2005-07-02  Jim Meyering  <jim@meyering.net>
86442
86443         * lib/backupfile.c (backup_args): Change a `0' to NULL.
86444
86445 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
86446
86447         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
86448         declares only 'struct timespec;' (!).
86449
86450 2005-07-01  Jim Meyering  <jim@meyering.net>
86451
86452         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
86453         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
86454         * lib/save-cwd.c, tempname.c:
86455         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
86456         and don't include <sys/file.h>).
86457
86458 2005-06-29  Jim Meyering  <jim@meyering.net>
86459
86460         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
86461         type name.  Use the variable name instead.
86462         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
86463         Likewise.
86464
86465 2005-06-28  Simon Josefsson  <jas@extundo.com>
86466
86467         * modules/check-version (Files): Add check-version.m4.
86468
86469 2005-06-28  Simon Josefsson  <jas@extundo.com>
86470
86471         * m4/check-version.m4: New file, suggested by Jim Meyering
86472         <jim@meyering.net>.
86473
86474 2005-06-28  Simon Josefsson  <jas@extundo.com>
86475
86476         * lib/check-version.h, lib/check-version.c: New files.
86477
86478 2005-06-28  Simon Josefsson  <jas@extundo.com>
86479
86480         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
86481         collision with global variable.  Better indentation.  Don't
86482         increment buffer pointer beyond buffer end.  Based on comments
86483         from Paul Eggert <eggert@cs.ucla.edu>.
86484
86485         * lib/base64.h: Indent.
86486
86487 2005-06-28  Simon Josefsson  <jas@extundo.com>
86488
86489         * doc/gnulib.texi (Library version handling): New section.
86490
86491 2005-06-28  Jim Meyering  <jim@meyering.net>
86492
86493         * check-module (find_included_lib_files): Hard-code another
86494         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
86495         but modules/fts-lgpl (correctly) does not list those files.
86496
86497         * modules/canonicalize (Files): Add lib/pathmax.h.
86498
86499 2005-06-25  Simon Josefsson  <jas@extundo.com>
86500
86501         * modules/check-version: New file.
86502
86503 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
86504
86505         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
86506         initializer of struct addrinfo, as an indication that we don't
86507         care how many members the structure has.
86508
86509 2005-06-24  Derek Price  <derek@ximbiot.com>
86510         and Bruno Haible  <bruno@clisp.org>
86511
86512         Remove stat module & update lstat.
86513         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
86514         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
86515         * m4/stat.m4: Remove this file.
86516
86517 2005-06-24  Derek Price  <derek@ximbiot.com>
86518         and Bruno Haible  <bruno@clisp.org>
86519
86520         Remove stat module & update lstat.
86521         * lib/stat.c: Remove this file...
86522         (slash_aware_lstat): ...moving this content and its support...
86523         * lib/lstat.c (rpl_lstat): ...into here.
86524         * lib/lstat.h: New file.
86525
86526 2005-06-24  Derek Price  <derek@ximbiot.com>
86527         and Bruno Haible  <bruno@clisp.org>
86528
86529         Remove stat module & update lstat.
86530         * config/srclist.txt (libc sources): Remove stat.
86531
86532 2005-06-24  Derek Price  <derek@ximbiot.com>
86533         and Bruno Haible  <bruno@clisp.org>
86534
86535         Remove stat module & update lstat.
86536         * MODULES.html.sh (stat): Remove.
86537         * MODULES.html: Regenerated.
86538         * modules/lstat (Description): Correct function name.
86539         (Files): Add "lstat.h".
86540         (Depends-on): Remove stat, add xalloc, stat-macros.
86541         * modules/stat: Remove this file.
86542         (Include): Add "lstat.h", remove <sys/stat.h>.
86543
86544 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
86545
86546         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
86547         (ranged_convert): Don't save conversion in a temporary struct.
86548         This causes a warning with GCC 4.0.0, and anyway in the typical
86549         case it's not worth the extra 100 bytes or so of code.
86550         (ranged_convert, __mktime_internal): When calling a function via a
86551         pointer P, use P () rather than (*P) (), as we now assume C89 or
86552         better.
86553
86554 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
86555
86556         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
86557         "who -r" failed to give output.  Problem reported by Tim Waugh.
86558
86559         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
86560         (xcalloc): Use it to avoid needless tests.
86561         Problem reported by Jim Meyering.
86562
86563 2005-06-20  Derek Price  <derek@ximbiot.com>
86564
86565         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
86566         unnecessary for Autoconfs > 2.59c.
86567
86568 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
86569
86570         * lib/argp.h (__option_is_short): Check upper limit of
86571         __key. Isprint() requires its argument to have the value
86572         of an unsigned char or EOF.
86573
86574 2005-06-16  Jim Meyering  <jim@meyering.net>
86575
86576         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
86577         when either N or S is zero.
86578
86579 2005-06-16  Derek Price  <derek@ximbiot.com>
86580
86581         * m4/bison.m4: Declare YACC & YFLAGS precious.
86582
86583 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
86584
86585         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
86586         multibyte string or pattern, fall back on unibyte matching.
86587         Problem reported by James Youngman.
86588
86589 2005-06-08  Bruno Haible  <bruno@clisp.org>
86590
86591         * modules/csharpcomp: New file.
86592         * MODULES.html.sh (C#): Add csharpcomp.
86593
86594 2005-06-08  Bruno Haible  <bruno@clisp.org>
86595
86596         * m4/csharpcomp.m4: New file, from GNU gettext.
86597
86598 2005-06-08  Bruno Haible  <bruno@clisp.org>
86599
86600         * lib/csharpcomp.h: New file, from GNU gettext.
86601         * lib/csharpcomp.c: New file, from GNU gettext.
86602         * lib/csharpcomp.sh.in: New file, from GNU gettext.
86603
86604 2005-06-08  Bruno Haible  <bruno@clisp.org>
86605
86606         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
86607         warning on mingw.
86608
86609 2005-06-07  Derek Price  <derek@ximbiot.com>
86610
86611         Sync from CVS.
86612         * lib/glob_.h: Indent nested #ifdef.
86613
86614 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
86615
86616         Sync from coreutils.
86617         Use "file name" when talking about file names, instead of "filename"
86618         or "path", as per the GNU coding standards.
86619         * lib/mkdir-p.c: Renamed from makepath.c.
86620         (make_dir_parents): Renamed from make_path.  All callers changed.
86621         * lib/mkdir-p.h: Likewise.  All includers changed.
86622         * lib/filenamecat.c: Renamed from path-concat.c.
86623         (file_name_concat): Renamed from path_concat.  All callers changed.
86624         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
86625         * lib/filenamecat.h: Likewise.  All includers changed.
86626         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
86627         in comments or local variable names.
86628         * lib/basename.c: Likewise.
86629         * lib/canonicalize.c, canonicalize.h: Likewise.
86630         * lib/dirname.c, dirname.h: Likewise.
86631         * lib/euidaccess.c: Likewise.
86632         * lib/exclude.c: Likewise
86633         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
86634         * lib/fsusage.c, fsuage.h: Likewise.
86635         * lib/fts.c, fts_.h: Likewise.
86636         * lib/getcwd.c: Likewise.
86637         * lib/getloadavg.c: Likewise.
86638         * lib/mkstemp.c: Likewise.
86639         * lib/mountlist.c, mountlist.h: Likewise.
86640         * lib/openat.c, openat.h: Likewise.
86641         * lib/readlink-stub.c: Likewise.
86642         * lib/readutmp.c, readutmp.h: Likewise.
86643         * lib/rename.c: Likewise.
86644         * lib/rmdir.c: Likewise.
86645         * lib/same.c: Likewise.
86646         * lib/savedir.c: Likewise.
86647         * lib/stripslash.c: Likewise.
86648         * lib/tempname.c: Likewise.
86649         * lib/xreadlink.c: Likewise.
86650         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
86651         All uses changed.
86652         * lib/exclude.h: Likewise.
86653
86654         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
86655         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
86656         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
86657         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
86658         * lib/pathmax.h: Include <limits.h> unconditionally, since other
86659         files have been getting away with it for years (MORE/BSD 4.3
86660         is extinct now).
86661         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
86662         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
86663
86664         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
86665         Define to 256, not 255, as per modern POSIX.
86666
86667 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
86668
86669         Sync from coreutils.
86670         Use "file name" when talking about file names, instead of "filename"
86671         or "path", as per the GNU coding standards.
86672         * MODULES.html.sh: mkdir-p renamed from makepath.
86673         filenamecat renamed from path-concat.
86674         * modules/filenamecat: Renamed from modules/path-concat.
86675         (Files): filenamecat.h and filenamecat.c renamed from
86676         path-concat.h and path-concat.c.
86677         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
86678         (Include): filenamecat.h, not path-concat.h.
86679         * modules/mkdir-p: Renamed from modules/makepath.
86680         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
86681         makepath.c.
86682         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
86683         (Include): mkdir-p.h, not makepath.h.
86684
86685 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
86686
86687         Sync from coreutils.
86688         * m4/mkdir-p.m4: Renamed from makepath.m4.
86689         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
86690         Rename files from makepath.c to mkdir-p.c, and from
86691         makepath.h to mkdir-p.h.
86692         * m4/filenamecat.m4: Renamed from path-concat.m4.
86693         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
86694         Rename files from path-concat.c to filenamecat.c,
86695         and from path-concat.h to filenamecat.h.
86696         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
86697         "file name" in local variables or comments.
86698         * m4/rename.m4: Likewise.
86699
86700 2005-06-01  Bruno Haible  <bruno@clisp.org>
86701
86702         * modules/csharpexec: New file.
86703         * MODULES.html.sh (C#): New section.
86704
86705 2005-06-01  Bruno Haible  <bruno@clisp.org>
86706
86707         * m4/csharp.m4: New file, from GNU gettext.
86708         * m4/csharpexec.m4: New file, from GNU gettext.
86709
86710 2005-06-01  Bruno Haible  <bruno@clisp.org>
86711
86712         * lib/csharpexec.h: New file, from GNU gettext.
86713         * lib/csharpexec.c: New file, from GNU gettext.
86714         * lib/csharpexec.sh.in: New file, from GNU gettext.
86715
86716 2005-05-31  Derek Price  <derek@ximbiot.com>
86717             Paul Eggert  <eggert@cs.ucla.edu>
86718
86719         Sync from cvs.
86720         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
86721
86722 2005-05-31  Derek Price  <derek@ximbiot.com>
86723             Paul Eggert  <eggert@cs.ucla.edu>
86724
86725         Sync from cvs.
86726         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
86727
86728 2005-05-29  Derek Price  <derek@ximbiot.com>
86729
86730         * config/srclist.txt (glob_.h, glob.c): Add these files.
86731
86732 2005-05-29  Derek Price  <derek@ximbiot.com>
86733
86734         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
86735         * modules/glob: New file.
86736         * modules/getlogin_r: Add link to POSIX spec in description.
86737
86738 2005-05-29  Derek Price  <derek@ximbiot.com>
86739             Paul Eggert  <eggert@cs.ucla.edu>
86740
86741         * m4/glob.m4: New file.
86742
86743 2005-05-29  Derek Price  <derek@ximbiot.com>
86744             Paul Eggert  <eggert@cs.ucla.edu>
86745
86746         * lib/glob_.h, lib/glob.c: New files.
86747
86748 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
86749
86750         * modules/fts (Files): Remove m4/inttypes-pri.m4.
86751         * modules/fts-lgpl (Depends-on): Remove gettext.
86752
86753 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
86754
86755         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
86756         and don't require gt_INTTYPES_PRI.
86757
86758 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
86759
86760         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
86761
86762         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
86763         the configuration hassle isn't worth it.
86764         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
86765         (LONGEST_MODIFIER, PRIuMAX): Remove.
86766
86767 2005-05-27  Bruno Haible  <bruno@clisp.org>
86768
86769         * lib/getlogin_r.h: Remove second include of <stddef.h>.
86770
86771 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
86772
86773         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
86774         _POSIX_PTHREAD_SEMANTICS for Solaris.
86775
86776 2005-05-25  Derek Price  <derek@ximbiot.com>
86777
86778         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
86779
86780 2005-05-25  Derek Price  <derek@ximbiot.com>
86781             Paul Eggert  <eggert@cs.ucla.edu>
86782
86783         * modules/getlogin_r, m4/getlogin_r.m4: New files.
86784         * lib/getlogin_r.c, getlogin_r.h: New files.
86785
86786 2005-05-25  Bruno Haible  <bruno@clisp.org>
86787             Derek Price  <derek@ximbiot.com>
86788
86789         * lib/getlogin_r.h: Simplify API documentation.
86790
86791 2005-05-23  Derek Price  <derek@ximbiot.com>
86792
86793         * modules/minmax (Files): Add m4/minmax.m4.
86794         (configure.ac): Add gl_MINMAX.
86795
86796 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
86797
86798         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
86799         so that unistd-safer.h (GPL'ed code) need not be included.
86800
86801 2005-05-22  Bruno Haible  <bruno@clisp.org>
86802
86803         * m4/minmax.m4: New file.
86804         Based on a patch by Derek Price <derek@ximbiot.com>.
86805
86806 2005-05-22  Bruno Haible  <bruno@clisp.org>
86807
86808         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
86809         (INT64_MIN): Fix definition.
86810         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
86811
86812         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
86813         NEED_SIGNED_INT_TYPES.
86814
86815         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
86816         HAVE_SYSTEM_INTTYPES.
86817
86818 2005-05-22  Bruno Haible  <bruno@clisp.org>
86819
86820         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
86821         Also include <sys/param.h> if it defines MIN, MAX.
86822         Based on a patch by Derek Price <derek@ximbiot.com>.
86823
86824 2005-05-21  Jim Meyering  <jim@meyering.net>
86825
86826         * modules/fts (Files): Add m4/inttypes-pri.m4.
86827         (Depends-on): Add lstat and remove gettext.  Alphabetize.
86828
86829 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
86830
86831         New fts module.
86832         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
86833         (setup_dir, free_dir): New functions.
86834         (enter_dir, leave_dir): Define trivial
86835         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
86836         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
86837         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
86838         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
86839         Move to fts-cycle.c.
86840         (fts_open): Use setup_dir.
86841         (fts_close): Use free_dir.
86842         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
86843         This adds a label and some gotos, but the alternatives were messier.
86844         Check for memory allocation failure when entering a dir.
86845         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
86846         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
86847         (FTS): New member fts_cycle, that is a union that contains the
86848         old active_dir_ht and cycle_state.  All uses changed to mention
86849         fts_cycle.ht and fts_cycle.state.
86850         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
86851         fts.c, with the following changes:
86852         (setup_dir, free_dir): New functions.
86853         (enter_dir): Now returns bool.  Return true if successful, false
86854         if memory exhausted.  All callers changed.
86855         Do not bother partly cleaning up on
86856         memory allocation failure; that is free_dir's job.
86857         However, free ad if hash_insert fails, to avoid memory leak.
86858         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
86859         fts->fts_options to see which union member to use.
86860
86861 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
86862
86863         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
86864         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
86865
86866 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
86867
86868         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
86869
86870 2005-05-20  Jim Meyering  <jim@meyering.net>
86871
86872         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
86873         Now a macro, to pacify GCC.
86874
86875 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
86876
86877         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
86878         of -1.
86879
86880 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
86881
86882         * lib/chown.c (rpl_chown): Return -1 on failure.
86883
86884 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
86885
86886         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
86887         Don't check for stddef.h.
86888         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
86889         don't use its results.
86890         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
86891         since we include them unconditionally.  Don't require
86892         AM_STDBOOL_H, since stdbool is a prerequisite.
86893         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
86894         since we assume C89 or better.
86895         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
86896         as we don't use their results.
86897         Don't check for fchdir, memmove, memset, strrchr, as we use
86898         them unconditionally.
86899         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
86900         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
86901
86902 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
86903
86904         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
86905         Include <stddef.h> unconditionally, since we assume C89 now.
86906         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
86907         * lib/fts.c: Include fts_.h first, to check interface.
86908         Do not include intprops.h; no longer needed.
86909         Include cycle-check.h and hash.h, since fts_.h no longer does.
86910         Remove unnecessary casts of closedir to void.
86911         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
86912         decide whether to decrement nlinks.
86913         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
86914         (FTS): Use struct hash_table * instead of Hash_table, so that
86915         we no longer need to include hash.h here.
86916
86917 2005-05-18  Jim Meyering  <jim@meyering.net>
86918
86919         * modules/dirfd (License): Change to LGPL.  Most of the code
86920         is already in the public domain.
86921
86922 2005-05-18  Jim Meyering  <jim@meyering.net>
86923
86924         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
86925         Reported by Yoann Vandoorselaere.
86926
86927 2005-05-17  Jim Meyering  <jim@meyering.net>
86928
86929         * m4/fts.m4: New file, from coreutils.
86930
86931 2005-05-17  Jim Meyering  <jim@meyering.net>
86932
86933         * lib/fts.c, lib/fts_.h: New files, from coreutils.
86934
86935 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
86936
86937         Sync from coreutils.
86938         * m4/unlinkdir.m4: New file.
86939
86940 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
86941
86942         Sync from coreutils.
86943         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
86944         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
86945         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
86946         White space changes only.
86947         * lib/makepath.c (make_path): Port to hosts where leading "//" is
86948         special.
86949         * lib/yesno.c: Include getline.h, not ctype.h.
86950         (yesno): Don't remove leading white space; POSIX doesn't allow it.
86951         Use getline to remove arbitrary restriction on response length.
86952
86953 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
86954
86955         * config/srclist-update: Spell out "Street" in FSF postal
86956         mail address; this is the style the FSF seems to prefer.
86957
86958         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
86959         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
86960         this updates FSF postal mail address.
86961
86962         Sync from coreutils.
86963         * modules/unlinkdir: New file.
86964         * modules/yesno (Depends-on): Add getline.
86965         * MODULES.html.sh (File system functions): Add unlinkdir.
86966
86967 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
86968
86969         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
86970         lib/strsep.h:
86971         Change the initial comment to refer to GPL, not LGPL.
86972         gnulib-tool will change it to LGPL as needed.
86973
86974         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
86975         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
86976         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
86977         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
86978         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
86979         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
86980         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
86981         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
86982         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
86983         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
86984         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
86985         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
86986         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
86987         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
86988         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
86989         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
86990         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
86991         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
86992         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
86993         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
86994         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
86995         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
86996         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
86997         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
86998         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
86999         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
87000         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
87001         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
87002         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
87003         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
87004         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
87005         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
87006         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
87007         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
87008         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
87009         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
87010         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
87011         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
87012         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
87013         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
87014         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
87015         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
87016         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
87017         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
87018         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
87019         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
87020         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
87021         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
87022         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
87023         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
87024         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
87025         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
87026         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
87027         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
87028         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
87029         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
87030         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
87031         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
87032         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
87033         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
87034         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
87035         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
87036         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
87037         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
87038         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
87039         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
87040         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
87041         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
87042         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
87043         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
87044         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
87045         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
87046         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
87047         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
87048         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
87049         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
87050         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
87051         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
87052         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
87053         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
87054         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
87055         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
87056         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
87057         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
87058         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
87059         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
87060         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
87061         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
87062         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
87063         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
87064         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
87065         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
87066         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
87067         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
87068         lib/yesno.c, lib/yesno.h:
87069         Update FSF postal mail address.
87070
87071 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
87072
87073         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
87074         tests/test-memmem.c, tests/test-stpncpy.c:
87075         Update FSF postal mail address.
87076
87077 2005-05-13  Bruno Haible  <bruno@clisp.org>
87078
87079         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
87080         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
87081         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
87082         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
87083         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
87084         Add support for 64-bit integers in the MSVC compiler.
87085
87086 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
87087
87088         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
87089
87090 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
87091
87092         * gnulib-tool (func_import): Sort and uniquify recommended includes.
87093
87094 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
87095
87096         * doc/getdate.texi (General date syntax): Don't say that date
87097         date --iso-8601=ns generates acceptable dates; it doesn't yet.
87098         Problem reported by Nic Ferrier.
87099
87100 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
87101
87102         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
87103         specified in ai_socktype. Fix invalid ai_protocol
87104         check. ai_protocol is usually set to 0 or depending on
87105         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
87106         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
87107         ai_socktype / ai_protocol in the returned addrinfo structure.
87108
87109 2005-05-10  Simon Josefsson  <jas@extundo.com>
87110
87111         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
87112         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
87113
87114 2005-05-10  Karl Berry  <karl@gnu.org>
87115
87116         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
87117         (from http://www.gnu.org/licenses).
87118         * doc/COPYING.LIB: also rename to COPYING.LESSER.
87119         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
87120         fdl.texi suffices.
87121
87122 2005-05-10  Karl Berry  <karl@gnu.org>
87123
87124         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
87125         (COPYING.DOC): remove.
87126
87127         * config/srclist-update: new FSF address.
87128
87129 2005-05-10  Derek Price  <derek@ximbiot.com>
87130
87131         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
87132         possible.
87133
87134 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
87135             Bruno Haible  <bruno@clisp.org>
87136
87137         * modules/inet_ntop: New file.
87138         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
87139         inet_ntop.
87140
87141 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
87142             Bruno Haible  <bruno@clisp.org>
87143
87144         * m4/inet_ntop.m4: New file.
87145
87146 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
87147             Bruno Haible  <bruno@clisp.org>
87148
87149         * lib/inet_ntop.h: New file.
87150         * lib/inet_ntop.c: New file, from glibc with modifications.
87151
87152 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
87153
87154         * modules/time_r (License): Change to LGPL.
87155         * modules/extensions (License): Change to LGPL.  Actually,
87156         the license is more permissive than that, but currently gnulib-tool
87157         doesn't know how to handle more-permissive licenses.
87158
87159         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
87160         Problem reported by Dave Love.
87161
87162 2005-05-08  Jim Meyering  <jim@meyering.net>
87163
87164         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
87165         blank.
87166
87167 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
87168
87169         * modules/argmatch (Depends-on): Add stdbool.
87170         * modules/backupfile (Depends-on): Likewise.
87171         * modules/chdir-long (Depends-on): Likewise.
87172         * modules/closeout (Depends-on): Likewise.
87173         * modules/cycle-check (Depends-on): Likewise.
87174         * modules/dirname (Depends-on): Likewise.
87175         * modules/fnmatch (Depends-on): Likewise.
87176         * modules/fsusage (Depends-on): Likewise.
87177         * modules/fwriteerror (Depends-on): Likewise.
87178         * modules/getcwd (Depends-on): Likewise.
87179         * modules/getloadavg (Depends-on): Likewise.
87180         * modules/hard-locale (Depends-on): Likewise.
87181         * modules/makepath (Depends-on): Likewise.
87182         * modules/mountlist (Depends-on): Likewise.
87183         * modules/nanosleep (Depends-on): Likewise.
87184         * modules/posixtm (Depends-on): Likewise.
87185         * modules/quotearg (Depends-on): Likewise.
87186         * modules/readtokens (Depends-on): Likewise.
87187         * modules/readtokens0 (Depends-on): Likewise.
87188         * modules/readutmp (Depends-on): Likewise.
87189         * modules/save-cwd (Depends-on): Likewise.
87190         * modules/strftime (Depends-on): Likewise.
87191         * modules/userspec (Depends-on): Likewise.
87192         * modules/utimecmp (Depends-on): Likewise.
87193         * modules/xgetcwd (Depends-on): Likewise.
87194         * modules/xnanosleep (Depends-on): Likewise.
87195         * modules/xstrtod (Depends-on): Likewise.
87196         * modules/yesno (Depends-on): Likewise.
87197
87198 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
87199
87200         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
87201         needless checks.
87202
87203 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
87204
87205         Merge from coreutils.  Among other things,
87206         add bulletproofing for cases where stdin, stdout, or stderr are closed.
87207         * lib/fd-safer.c: New file.
87208         * lib/fcntl-safer.h, open-safer.c: Remove.
87209         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
87210         * lib/dup-safer.c: Include unistd-safer.h first.
87211         Don't include errno.h.
87212         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
87213         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
87214         * lib/file-type.c: Rely on file-type.h change.
87215         * lib/getloadavg.c: Include unistd-safer.h.
87216         (getloadavg): Use safer open.
87217         * lib/getusershell.c: Include "stdio-safer.h".
87218         (getusershell): Use safer fopen.
87219         * lib/long-options.c (long_options): Use NULL rather than 0.
87220         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
87221         'free'.
87222         * lib/modechange.c: Likewise.
87223         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
87224         (MODE_DONE): New constant.
87225         (struct mode_change): Remove 'next' member.
87226         (make_node_op_equals): New function; like the old one of the
87227         same name, except it allocates an array.
87228         (mode_compile, mode_create_from_ref): Use it.
87229         (mode_compile): Allocate result as an array, not a linked list.
87230         Parse octal string ourself, so that we catch mistakes like "+0".
87231         (mode_adjust): Arg is an array, not a linked list.
87232         * lib/modechange.c: Include stat-macros.h, xalloc.h.
87233         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
87234         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
87235         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
87236         Remove.  This is now stat-macros.h's job.
87237         (talloc): Remove.  All callers replaced by xalloc, so that
87238         our invokers don't have to worry about reporting memory failures.
87239         (make_node_op_equals): Remove.
87240         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
87241         New constants.
87242         (struct mode_change): Moved here from modechange.h.
87243         (mode_append_entry): Remove.
87244         (mode_compile): Remove MASKED_OPS arg, since it encouraged
87245         apps to have incorrect behavior.  Use simpler algorithm for head
87246         and tail.  Don't futz with umask; that's now the job of mode_adjust.
87247         Detect more invalid usages rather than having somewhat-random behavior.
87248         Don't insert an "a=" action, as that leads to incorrect behavior.
87249         (mode_compile, mode_create_from_ref): Return NULL on error instead
87250         of an enum, since now there's only one way to have an error.  All
87251         callers changed.
87252         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
87253         at the correct time.  Simplify calculation of "+u" and its ilk.
87254         Don't mishandle "+X".
87255         (mode_free): Remove "register" and localize decls.
87256         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
87257         (struct mode_change): Move to modechange.c; callers don't
87258         need to see this stuff.
87259         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
87260         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
87261         (mode_change, mode_adjust): Reflect the new signatures noted above.
87262         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
87263         that might redefine system include files.
87264         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
87265         (my_usleep): Use NULL rather than (void *) 0.
87266         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
87267         Use siginterrupt to specify that system calls should be interrupted.
87268         (rpl_nanosleep): Move initialization of suspended closer to call of
87269         my_usleep.
87270         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
87271         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
87272         (desirable_utmp_entry): New function.
87273         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
87274         using x2nrealloc, to simplify logic.
87275         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
87276         size calculation.  Do not assume utmp file is a regular file.
87277         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
87278         (READ_UTMP_CHECK_PIDS): New constant.
87279         * lib/save-cwd.c: Include unistd-safer.h.
87280         (save_cwd): Use fd_safer.
87281         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
87282         [!_LIBC] Include "stat-macros.h" instead.
87283         * lib/unistd-safer.h (fd_safer): New decl.
87284
87285 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
87286
87287         * modules/getloadavg (Depends-on): Add unistd-safer.
87288         * modules/getusershell (Depends-on): Add stdio-safer.
87289         * modules/lstat (Depends-on): Remove xalloc.
87290         * modules/mkstemp (Depends-on): Add stat-macros.
87291         * modules/modechange (Depends-on): Remove xstrtol.
87292         Add stat-macros, xalloc.
87293         * modules/save-cwd (Depends-on): Add unistd-safer.
87294         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
87295         * modules/unistd-safer (Files): Add lib/fd-safer.c
87296         (Makefile.am): Remove lib_SOURCES.
87297
87298         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
87299         Remove fcntl-safer; unistd-safer supersedes it.
87300
87301 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
87302
87303         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
87304         AC_HEADER_STAT.
87305         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
87306         (gl_PREREQ_CHOWN): Remove.
87307         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
87308         it.  Don't require AC_HEADER_STAT.
87309         (gl_PREREQ_LSTAT): Remove.
87310         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
87311         Don't require AC_HEADER_STAT.
87312         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
87313         (gl_PREREQ_RMDIR): Remove.
87314         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
87315         mention stat-macros.h or AC_HEADER_STAT, since we'll make
87316         the stat-macros module a prerequisite.
87317         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
87318         * m4/filemode.m4 (gl_FILEMODE): Likewise.
87319         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
87320         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
87321         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
87322         variable names.
87323         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
87324         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
87325         variable prefixes.
87326         * m4/fcntl-safer.m4: Remove.
87327         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
87328         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
87329         Invoke gl_PREREQ_FD_SAFER.
87330         (gl_PREREQ_FD_SAFER): New macro.
87331         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
87332         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
87333         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
87334         Remove duplicate call to AC_LIBOBJ(readutmp).
87335         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
87336
87337         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
87338         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
87339
87340 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
87341
87342         * MODULES.html.sh (Misc): Add byteswap.
87343
87344 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
87345
87346         * modules/getcwd (Depends-on): Add extensions.
87347         * modules/openat (Depends-on): Likewise.
87348
87349 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
87350
87351         * modules/byteswap: New file.
87352
87353 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
87354
87355         * m4/byteswap.m4: New file.
87356
87357 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
87358
87359         * lib/byteswap_.h: New file.
87360
87361 2005-04-25  Karl Berry  <karl@gnu.org>
87362
87363         * m4/gettext.m4: Update from GNU gettext 0.14.4.
87364
87365 2005-04-25  Albert Chin  <china@thewrittenword.com>
87366
87367         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
87368         Toolkit C bug.
87369
87370 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
87371
87372         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
87373         (func_ln_if_changed): Remove forcibly for no error message
87374         in case file does not exist.
87375
87376 2005-04-19  Simon Josefsson  <jas@extundo.com>
87377
87378         * gnulib-tool (Options): Make --symlink mean --symbolic.
87379
87380 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
87381
87382         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
87383
87384 2005-04-16  Simon Josefsson  <jas@extundo.com>
87385
87386         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
87387
87388 2005-04-15  Simon Josefsson  <jas@extundo.com>
87389
87390         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
87391
87392 2005-04-15  Simon Josefsson  <jas@extundo.com>
87393
87394         * gnulib-tool: Rename --symlink to --symbolic.
87395
87396 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
87397
87398         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
87399         symbolic links to files instead of copying/moving.  Add --aux-dir,
87400         specifying directory relative --dir where auxiliary build tools
87401         are placed.
87402
87403 2005-04-14  Bruno Haible  <bruno@clisp.org>
87404
87405         * modules/allocsa (License): Change to LGPL.
87406         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
87407
87408 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
87409
87410         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
87411         that "UTC +1 second" continues to work.  Problem reported
87412         by Dmitry V. Levin.
87413         (relunit_snumber): New rule.
87414         (relunit): Use it.
87415
87416 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
87417
87418         * lib/getdate.y (universal_time_zone_table): New constant.
87419         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
87420         universal_time_zone_table.
87421         (lookup_zone): Prefer universal_time_zone_table to
87422         local_time_zone_table, so that "GMT" time stamps are allowed in
87423         London during the summer.  Problem reported by Ian Abbott.
87424
87425 2005-04-12  Jim Meyering  <jim@meyering.net>
87426
87427         * lib/human.c (humblock): Set *options even when returning due to
87428         xstrtoumax conversion failure.  Thanks to a used-uninitialized
87429         warning from gcc-4.
87430
87431 2005-04-09  Jim Meyering  <jim@meyering.net>
87432
87433         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
87434         -Wuninitialized: initialize tm0.tm_year.
87435
87436 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
87437
87438         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
87439         count, since there's no maximum.  All uses changed.
87440         Add member dsts_seen.
87441         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
87442         not being INT_MAX.
87443         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
87444         Use pc_rels_seen to decide whether a date is absolute.
87445
87446         * lib/getdate.y (number): Don't overwrite year.
87447         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
87448         check.
87449
87450 2005-04-02  Simon Josefsson  <jas@extundo.com>
87451
87452         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
87453         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
87454
87455 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
87456
87457         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
87458         where no absolute path name can be longer than PATH_MAX.
87459
87460 2005-03-27  Jim Meyering  <jim@meyering.net>
87461
87462         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
87463
87464 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
87465
87466         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
87467         "one's complement" -> "ones' complement" in comment, as per Knuth.
87468         "value of type" -> "type or expression" in comment.
87469         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
87470
87471 2005-03-26  Jim Meyering  <jim@meyering.net>
87472
87473         Comment nits.
87474         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
87475         Correct typos: s/or/of/.
87476
87477 2005-03-26  Jim Meyering  <jim@meyering.net>
87478
87479         * modules/check-include-files: Move to ../ and rename to...
87480         * check-module: ...this.
87481
87482 2005-03-25  Jim Meyering  <jim@meyering.net>
87483
87484         * modules/xvasprintf (Files): Add xalloc.h.
87485
87486 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
87487
87488         * modules/gettext (Files): config/config.rpath ->
87489         build-aux/config.rpath
87490         * modules/iconv (Files): Likewise.
87491         Problem reported by Oskar Liljeblad.
87492
87493 2005-03-23  Jim Meyering  <jim@meyering.net>
87494
87495         * modules/check-include-files: New script to check for
87496         missing dependencies, multiple includes, etc.
87497
87498         * modules/c-strtold (Depends-on): Add xalloc.
87499         * modules/c-strtod (Depends-on): Add xalloc.
87500         * modules/hash (Depends-on): Add xalloc.
87501         (Files): Remove lib/xalloc.h.
87502
87503         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
87504         * modules/userspec (Files): Add lib/inttostr.h.
87505
87506 2005-03-23  Jim Meyering  <jim@meyering.net>
87507
87508         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
87509
87510 2005-03-22  Jim Meyering  <jim@meyering.net>
87511
87512         * modules/stat-macros: New module.
87513         * modules/canonicalize, modules/euidaccess, modules/file-type,
87514         * modules/filemode, modules/lchown, modules/makepath,
87515         * modules/rmdir, modules/stat: Depend on new stat-macros module
87516         rather than listing lib/stat-macros.h manually.
87517         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
87518
87519 2005-03-22  Jim Meyering  <jim@meyering.net>
87520
87521         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
87522
87523 2005-03-22  Bruno Haible  <bruno@clisp.org>
87524
87525         * config/srclist.txt: Replace target directory 'config' with
87526         'build-aux'.
87527         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
87528         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
87529         ../build-aux/.
87530
87531 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
87532
87533         * modules/chdir-long (Depends-on): Add mempcpy.
87534
87535         * modules/acl, modules/backupfile, modules/c-strtod,
87536         modules/c-strtold, modules/canon-host, modules/canonicalize,
87537         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
87538         modules/exclude, modules/exitfail, modules/file-type,
87539         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
87540         modules/getdate, modules/getline, modules/getpagesize,
87541         modules/getpass, modules/getugroups, modules/group-member,
87542         modules/hard-locale, modules/hash, modules/human, modules/idcache,
87543         modules/inttostr, modules/long-options, modules/makepath,
87544         modules/md5, modules/memcasecmp, modules/memcoll,
87545         modules/modechange, modules/mountlist, modules/path-concat,
87546         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
87547         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
87548         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
87549         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
87550         modules/strftime, modules/strndup, modules/strverscmp,
87551         modules/timespec, modules/unlocked-io, modules/userspec,
87552         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
87553         modules/yesno:
87554         Remove lib_SOURCES line from Makefile.am section, as this is now
87555         done automatically by the corresponding Autoconf macro.
87556
87557 2005-03-21  Jim Meyering  <jim@meyering.net>
87558
87559         Changes imported from coreutils.
87560
87561         * lib/cycle-check.c: Don't include xalloc.h.
87562
87563         * lib/path-concat.c: Don't include assert.h.
87564         (path_concat): Remove assertion that would have triggered
87565         for ABASE starting with more than one slash.
87566         Reported by Andreas Schwab.
87567
87568         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
87569         properly when ABASE is an absolute file name.
87570         Correct the description of this function.
87571         Include <assert.h>.
87572         Add an assertion and a test driver.
87573         This fixes a bug introduced on 2004-07-02.
87574         Andreas Schwab reported the resulting failure of cp --parents:
87575         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
87576
87577 2005-03-21  Jim Meyering  <jim@meyering.net>
87578
87579         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
87580         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
87581
87582 2005-03-21  Jim Meyering  <jim@meyering.net>
87583         and  Paul Eggert  <eggert@cs.ucla.edu>
87584
87585         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
87586         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
87587         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
87588         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
87589         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
87590         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
87591         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
87592         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
87593         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
87594         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
87595         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
87596         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
87597         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
87598         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
87599         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
87600         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
87601         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
87602         for these modules.
87603
87604 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
87605
87606         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
87607         (which shouldn't happen), generate nothing instead of returning 0
87608         immediately, so that nstrftime (NULL, ...) doesn't return 0.
87609
87610 2005-03-16  Bruno Haible  <bruno@clisp.org>
87611
87612         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
87613         HAVE_LONGLONG_64BIT.
87614
87615 2005-03-16  Bruno Haible  <bruno@clisp.org>
87616
87617         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
87618         HAVE_LONGLONG_64BIT.
87619
87620 2005-03-16  Bruno Haible  <bruno@clisp.org>
87621
87622         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
87623         HAVE_LONGLONG_64BIT.
87624
87625 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
87626
87627         * lib/strftime.c (my_strftime): Prepend space to format so that we can
87628         reliably distinguish strftime failure from empty output on POSIX
87629         hosts.
87630
87631 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
87632
87633         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
87634         (iconv_string): Don't guess a size-zero buffer, as that might cause
87635         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
87636         result would be 'too large', where 'too large' is (heuristically)
87637         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
87638         overflow concerns.  This will prevent some unwanted malloc failures
87639         when the inputs are very large.
87640
87641 2005-03-15  Karl Berry  <karl@gnu.org>
87642
87643         * config/srclist.txt (config.rpath): from gettext.
87644         * config/config.rpath: update.
87645
87646 2005-03-15  Bruno Haible  <bruno@clisp.org>
87647
87648         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
87649         to 'negate'.
87650
87651         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
87652         variable.
87653
87654         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
87655         results.
87656
87657 2005-03-14  Simon Josefsson  <jas@extundo.com>
87658
87659         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
87660         <fx@gnu.org>.
87661
87662 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
87663
87664         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
87665         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
87666         intprops.h.
87667         * lib/strtol.c: Likewise.
87668
87669 2005-03-14  Jim Meyering  <jim@meyering.net>
87670
87671         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
87672         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
87673         to be nonzero so that we (and caller) can detect the difference
87674         between a valid zero-length expansion and an error return, even
87675         when the underlying strftime fails before writing anything into
87676         that location.
87677
87678 2005-03-14  Bruno Haible  <bruno@clisp.org>
87679
87680         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
87681         Update from GNU gettext 0.14.3.
87682
87683 2005-03-10  Jim Meyering  <jim@meyering.net>
87684
87685         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
87686
87687 2005-03-10  Jim Meyering  <jim@meyering.net>
87688
87689         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
87690         so that this module works on systems without fchdir.
87691
87692 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
87693
87694         Factor int-properties macros into a single file, except for
87695         glibc-related files.
87696         * lib/intprops.h: New file.
87697         * lib/getloadavg.c: Include it instead of limits.h.
87698         (INT_STRLEN_BOUND): Remove.
87699         * lib/human.c: Include intprops.h.
87700         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
87701         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
87702         302/1000.
87703         * lib/inttostr.h: Include intprops.h instead of limits.h.
87704         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
87705         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
87706         for consistency with intprops.h.
87707         (time_t_is_integer, twos_complement_arithmetic): Use them.
87708         * lib/sig2str.h: Include <signal.h>, intprops.h.
87709         (INT_STRLEN_BOUND): Remove.
87710         * lib/strftime.c (TYPE_SIGNED): Remove.
87711         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
87712         * lib/strtol.c: Adjust comments to match intprops.h.
87713         * lib/userspec.c: Include intprops.h.
87714         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
87715         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
87716         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
87717         instead of rolling our own expressions.
87718         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
87719
87720         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
87721         instead of int.
87722         (my_strftime): Do not mishandle years close to INT_MAX, by doing
87723         the right thing even if adding 1900 would overflow.  Similarly
87724         for tm_mon + 1 and tm_yday + 1.
87725         Make %Y always equivalent to %C%y, and similarly for %G and %g.
87726         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
87727         (DO_SIGNED_NUMBER): New macro.
87728         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
87729
87730 2005-03-07  Bruno Haible  <bruno@clisp.org>
87731
87732         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
87733
87734 2005-03-07  Bruno Haible  <bruno@clisp.org>
87735
87736         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
87737
87738 2005-03-04  Derek R. Price  <derek@ximbiot.com>
87739
87740         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
87741         (func_import): Only replace files via --import when they have actually
87742         changed.
87743
87744 2005-03-03  Derek R. Price  <derek@ximbiot.com>
87745
87746         * m4/mmap-anon.m4: New file.
87747         * m4/pagealign_alloc.m4: New file.
87748
87749 2005-03-03  Derek R. Price  <derek@ximbiot.com>
87750             Bruno Haible  <bruno@clisp.org>
87751
87752         * modules/pagealign_alloc: New file.
87753         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
87754
87755 2005-03-03  Derek R. Price  <derek@ximbiot.com>
87756             Bruno Haible  <bruno@clisp.org>
87757
87758         * lib/pagealign_alloc.h: New file.
87759         * lib/pagealign_alloc.c: New file.
87760
87761 2005-03-03  Bruno Haible  <bruno@clisp.org>
87762
87763         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
87764         Use an all-permissive copyright notice, recommended by RMS.
87765
87766 2005-03-02  Bruno Haible  <bruno@clisp.org>
87767
87768         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
87769         of AIX, the replacement has to be done only after <string.h> is
87770         included, therefore not in config.h. stpncpy.h does the replacement,
87771         and stpncpy.c uses it.
87772
87773 2005-03-02  Bruno Haible  <bruno@clisp.org>
87774
87775         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
87776         stpncpy.c uses it.
87777
87778 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
87779
87780         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
87781         The workaround isn't strictly needed for POSIX conformance, and
87782         it's too much of a pain to configure and maintain.  We'll ask
87783         people to fix their kernels instead.
87784         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
87785         (NANOSLEEP_BUG_WORKAROUND): Remove.
87786         (xnanosleep): Remove the workaround.
87787
87788 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
87789
87790         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
87791         Reported by Derek Price.
87792         (Include): Add "timespec.h".
87793
87794         * modules/xnanosleep (Depends-on): Remove gethrxtime.
87795
87796 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
87797
87798         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
87799         to detect nanosleep bug.
87800
87801 2005-03-01  Bruno Haible  <bruno@clisp.org>
87802
87803         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
87804
87805 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
87806
87807         * modules/gethrxtime: New file.
87808         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
87809         (Depends-on): Add gethrxtime.
87810         (configure.ac): Add gl_XNANOSLEEP.
87811         (Makefile.am): Remove lib_SOURCES line.
87812
87813 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
87814
87815         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
87816         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
87817
87818 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
87819
87820         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
87821         * lib/timespec.h (gettime): Return void, since it always
87822         succeeds now.  All uses changed.
87823         * lib/gettime.c (gettime): Likewise.
87824         [HAVE_NANOTIME]: Prefer nanotime.
87825         Assume gettimeofday succeeds, as POSIX requires.
87826         Assime time () succeeds, since other code already does.
87827         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
87828         (timespec_subtract): Remove.
87829         (NANOSLEEP_BUG_WORKAROUND): New constant.
87830         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
87831         things considerably.  Use it only on GNU/Linux hosts, since the
87832         workaround shouldn't be needed elsewhere.
87833
87834 2005-02-24  Bruno Haible  <bruno@clisp.org>
87835
87836         * modules/gettext (Files): Add m4/glibc2.m4.
87837
87838 2005-02-24  Bruno Haible  <bruno@clisp.org>
87839
87840         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
87841         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
87842         * m4/progtest.m4:
87843         Update from GNU gettext 0.14.2.
87844         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
87845
87846 2005-02-24  Bruno Haible  <bruno@clisp.org>
87847
87848         * lib/localcharset.c: Update from GNU gettext 0.14.2.
87849         * lib/config.charset: Update from GNU gettext 0.14.2.
87850
87851 2005-02-24  Bruno Haible  <bruno@clisp.org>
87852
87853         * lib/gettext.h: Update from GNU gettext 0.14.2.
87854
87855 2005-02-23  Simon Josefsson  <jas@extundo.com>
87856
87857         * m4/iconvme.m4: New file.
87858
87859 2005-02-23  Jim Meyering  <jim@meyering.net>
87860
87861         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
87862         change.
87863         Thanks to Bruno Haible for catching it.
87864
87865 2005-02-22  Simon Josefsson  <jas@extundo.com>
87866
87867         * modules/iconvme: New file.
87868
87869         * MODULES.html.sh: Add iconvme.
87870
87871 2005-02-22  Simon Josefsson  <jas@extundo.com>
87872
87873         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
87874
87875 2005-02-22  Simon Josefsson  <jas@extundo.com>
87876
87877         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
87878
87879 2005-02-22  Jim Meyering  <jim@meyering.net>
87880
87881         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
87882         s/ifndef/ifdef/.
87883
87884 2005-02-20  Neil Conway  <neilc@samurai.com>
87885
87886         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
87887         returned by OSX/Darwin if the specified buffer is not large
87888         enough for the hostname.
87889
87890 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
87891
87892         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
87893         pass it to _help, otherwise the latter coredumps trying to
87894         dereference state.root_argp.
87895
87896 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
87897
87898         * modules/chdir-long (Depends-on): Add memrchr.
87899         * modules/memrchr (Files): Add lib/memrchr.h.
87900         (Include): "memrchr.h".
87901
87902 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
87903
87904         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
87905
87906 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
87907
87908         * lib/memrchr.h: New file.
87909         * lib/chdir-long.c: Include it.
87910         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
87911         Don't bother including stddef.h.
87912
87913 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
87914
87915         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
87916         inclusion.
87917         Include <sys/types.h>, for dev_t.
87918         (ME_DUMMY, ME_REMOTE): Move from here....
87919         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
87920         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
87921         Dmitry V. Levin.
87922         Include mountlist.h first, to test the interface.
87923
87924 2005-01-29  Bruno Haible  <bruno@clisp.org>
87925
87926         * lib/progname.c (program_name): Initialize.
87927         Needed when linking statically on MacOS X.
87928
87929 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
87930
87931         Sync from coreutils.
87932         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
87933         (Depends-on): Add c-strtod.
87934         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
87935
87936 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
87937
87938         Sync from coreutils.
87939         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
87940
87941         Remove files that are specific to coreutils.
87942         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
87943
87944 2005-01-28  Bruno Haible  <bruno@clisp.org>
87945
87946         * modules/javacomp: New file.
87947         * MODULES.html.sh (Java): Add javacomp.
87948
87949 2005-01-28  Bruno Haible  <bruno@clisp.org>
87950
87951         * m4/javacomp.m4: New file, from GNU gettext.
87952
87953 2005-01-28  Bruno Haible  <bruno@clisp.org>
87954
87955         * lib/javacomp.sh.in: New file, from GNU gettext.
87956         * lib/javacomp.h: New file, from GNU gettext.
87957         * lib/javacomp.c: New file, from GNU gettext.
87958
87959 2005-01-26  Simon Josefsson  <jas@extundo.com>
87960
87961         * lib/gai_strerror.c: Use GPL in header.
87962
87963 2005-01-26  Bruno Haible  <bruno@clisp.org>
87964
87965         * modules/javaexec: New file.
87966         * MODULES.html.sh (Java): Add javaexec.
87967
87968 2005-01-26  Bruno Haible  <bruno@clisp.org>
87969
87970         * m4/javaexec.m4: New file, from GNU gettext.
87971
87972 2005-01-26  Bruno Haible  <bruno@clisp.org>
87973
87974         * lib/javaexec.sh.in: New file, from GNU gettext.
87975         * lib/javaexec.h: New file, from GNU gettext.
87976         * lib/javaexec.c: New file, from GNU gettext.
87977
87978 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
87979
87980         * modules/lchown (Depends-on): Remove lchown.h
87981
87982 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
87983
87984         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
87985         must be defined if the header file was not found, in order
87986         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
87987
87988 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
87989
87990         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
87991         initializers for struct pentry_state.
87992         (__argp_error): Check return value of __asprintf
87993         (__argp_failure): Translate error message
87994
87995         * lib/argp-parse.c: Removed braces around the expansion of N_()
87996
87997 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
87998
87999         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
88000         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
88001         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
88002         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
88003         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
88004         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
88005         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
88006         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
88007         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
88008         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
88009         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
88010         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
88011         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
88012         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
88013         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
88014         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
88015         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
88016         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
88017         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
88018         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
88019         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
88020         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
88021         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
88022         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
88023         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
88024         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
88025         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
88026         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
88027         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
88028         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
88029         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
88030         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
88031         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
88032         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
88033         xstrtol.m4, xstrtoumax.m4, yesno.m4:
88034         Use an all-permissive copyright notice, recommended by RMS.
88035
88036 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
88037
88038         * modules/chdir-long (Depends-on): Remove mempcpy.
88039
88040 2005-01-21  Jim Meyering  <jim@meyering.net>
88041
88042         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
88043         same value as for Solaris 9.
88044
88045         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
88046         component length.  This included changing the parameter to be
88047         of type `char *' rather than `char const *'.
88048         * lib/chdir-long.h (chdir_long): Update prototype.
88049
88050         * lib/openat.c (fdopendir, fstatat): New functions.
88051         * lib/openat.h: Include headers required for use of DIR and struct
88052         stat.
88053         [AT_SYMLINK_NOFOLLOW]: Define.
88054         (fdopendir, fstatat): Add prototypes.
88055
88056 2005-01-21  Bruno Haible  <bruno@clisp.org>
88057
88058         * modules/classpath: New file.
88059         * MODULES.html.sh (Java): Add classpath.
88060
88061 2005-01-21  Bruno Haible  <bruno@clisp.org>
88062
88063         * lib/classpath.h: New file, from GNU gettext.
88064         * lib/classpath.c: New file, from GNU gettext.
88065
88066 2005-01-20  Simon Josefsson  <jas@extundo.com>
88067
88068         * modules/version-etc-fsf: New file.
88069
88070 2005-01-20  Simon Josefsson  <jas@extundo.com>
88071
88072         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
88073         * lib/version-etc.c: Remove version_etc_copyright.
88074         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
88075         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
88076
88077 2005-01-20  Simon Josefsson  <jas@extundo.com>
88078
88079         * lib/base64.h (isbase64): Add.
88080
88081         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
88082         using a unsigned prototype, don't inline.
88083         (base64_decode): Use it.
88084
88085 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
88086
88087         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
88088         it.
88089
88090 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
88091
88092         * lib/save-cwd.c (save_cwd): Remove code to support the case
88093         where fchdir is missing or flaky.
88094
88095 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
88096
88097         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
88098
88099 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
88100
88101         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
88102         AC_LIBSOURCES now does this.
88103         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
88104         with new ullong_max module.
88105
88106 2005-01-19  Bruno Haible  <bruno@clisp.org>
88107
88108         * modules/sh-quote: New file.
88109         * MODULES.html.sh (Executing programs): Add sh-quote.
88110
88111 2005-01-19  Bruno Haible  <bruno@clisp.org>
88112
88113         * lib/sh-quote.h: New file, from GNU gettext.
88114         * lib/sh-quote.c: New file, from GNU gettext.
88115
88116 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
88117
88118         Merge from coreutils.
88119         * m4/ullong_max.m4: New file.
88120         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
88121         (gl_MACROS): Assume localeconv exists.
88122
88123 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
88124
88125         Merge changes from coreutils, as described below in several
88126         changelogs dated today.
88127
88128         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
88129         (O_DIRECTORY): Remove; not needed here, since "." must be
88130         a directory.  All uses removed.
88131         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
88132         universal on Suns, and we also need to test for IRIX.
88133         Revamp code to use 'if' rather than '#if'.
88134         Avoid unnecessary comparison of cwd->desc to 0.
88135
88136         * lib/utimens.c (futimens): Robustify the previous patch, by checking
88137         for known valid error numbers rather than observed invalid ones.
88138
88139 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
88140
88141         * modules/ullong_max: New file.
88142
88143         * modules/chdir-long, modules/openat: New files.
88144         * modules/save-cwd (Depends-on): Depend on chdir-long.
88145         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
88146
88147 2005-01-18  Jim Meyering  <jim@meyering.net>
88148
88149         Merge from coreutils.
88150         * m4/chdir-long.m4, m4/openat.m4: New files.
88151         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
88152         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
88153         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
88154         is sane and DOES follow symlinks.  Besides, testing 20 different
88155         systems found no broken chown implementations.
88156         Prompted by a change in rsync's copy of this macro.
88157         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
88158
88159         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
88160
88161         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
88162         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
88163         NULL-means-set-to-current-time semantics.
88164         Remove temporary file immediately, rather than waiting
88165         for configure's at-exit trap code to do it.
88166
88167 2005-01-18  Jim Meyering  <jim@meyering.net>
88168
88169         * lib/version-etc.c (version_etc_copyright): Update copyright date.
88170
88171         * lib/utimens.c (futimens): Account for the fact that futimes
88172         can also fail with errno == ENOSYS or errno == ENOENT.
88173         Patch from Dmitry V. Levin.
88174
88175         Change the name of the robust chdir function from chdir to chdir_long.
88176         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
88177         (restore_cwd): Use chdir_long, not chdir.
88178         * lib/chdir-long.c: Renamed from chdir.c.
88179         * lib/chdir-long.h: Renamed from chdir.h.
88180         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
88181         Hurd.
88182
88183 2005-01-18  Bruno Haible  <bruno@clisp.org>
88184
88185         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
88186         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
88187         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
88188         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
88189         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
88190         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
88191         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
88192         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
88193         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
88194         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
88195         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
88196         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
88197         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
88198         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
88199         Use an all-permissive copyright notice, recommended by RMS.
88200
88201 2005-01-18  Bob Proulx  <bob@proulx.com>
88202
88203         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
88204         simplify offsetof() macro construct to avoid compile failure with
88205         native HP-UX 11.0 ANSI C compiler.
88206
88207 2005-01-17  Bruno Haible  <bruno@clisp.org>
88208
88209         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
88210         redundant because stpncpy.m4 takes care of it.
88211
88212 2005-01-17  Bruno Haible  <bruno@clisp.org>
88213
88214         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
88215
88216 2005-01-17  Bruno Haible  <bruno@clisp.org>
88217
88218         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
88219         used.
88220
88221 2005-01-17  Bruno Haible  <bruno@clisp.org>
88222
88223         * lib/fwriteerror.h (fwriteerror): Change specification to include
88224         fclose.
88225         * lib/fwriteerror.c: Include <stdbool.h>.
88226         (fwriteerror): At the end, close the file stream. Record whether
88227         stdout was already closed.
88228
88229 2005-01-17  Bruno Haible  <bruno@clisp.org>
88230
88231         * lib/execute.c (environ): Declare if needed.
88232         * lib/pipe.c (environ): Likewise.
88233         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
88234
88235 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
88236
88237         * modules/argp: Depend on vsnprintf
88238
88239 2005-01-10  Jim Meyering  <jim@meyering.net>
88240
88241         * modules/closeout (Depends-on): Add atexit.
88242
88243 2005-01-06  Bruno Haible  <bruno@clisp.org>
88244
88245         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
88246
88247 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
88248
88249         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
88250         definitions to be after all include files, to avoid collisions.
88251         Problem reported by Bob Proulx.
88252
88253 2005-01-04  Jim Meyering  <jim@meyering.net>
88254
88255         Changes imported from coreutils.
88256         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
88257         as the mkstemp template, use a temporary directory and an
88258         8.3-friendly template to avoid trouble on systems like DJGPP.
88259         Reported by Juan M. Guerrero via Stepan Kasal.
88260         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
88261         close. Remove the temporary directory right away, rather than waiting
88262         for configure's at-exit trap code to do it.
88263         Suggestion from Stepan Kasal.
88264
88265 2005-01-01  Simon Josefsson  <jas@extundo.com>
88266
88267         * gnulib-tool: Print #include directives when --import'ing.
88268
88269 2004-12-28  Simon Josefsson  <jas@extundo.com>
88270
88271         * tests/test-base64.c: Include required header files.  Remove
88272         unused variables.
88273
88274 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
88275
88276         * modules/error (Depends-on): Remove gettext.
88277
88278 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
88279
88280         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
88281         not needed.  This removes a dependency on the gettext module.
88282         [defined _LIBC]: Do not include <libintl.h>; not needed.
88283
88284 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
88285
88286         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
88287         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
88288
88289 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
88290
88291         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
88292         HAVE_DECL_STRTOLD.
88293
88294 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
88295
88296         * modules/getdate (Depends-on): Remove alloca-opt.
88297
88298 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
88299
88300         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
88301
88302 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
88303
88304         * lib/argp-parse.c: Include <stddef.h>.
88305         (alignof, alignto): New macros.
88306         (parser_init): Don't assume that void * is aligned sufficiently
88307         for struct option.
88308
88309         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
88310         need to extend the stack.
88311         (YYINITDEPTH): New macro, so that the initial stack isn't overly
88312         large.
88313
88314 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
88315
88316         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
88317
88318 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
88319
88320         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
88321         (2004-10-24) change.  Apparently this was a false alarm.
88322
88323         * modules/getdate: Depend on alloca-opt, not alloca.
88324
88325 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
88326
88327         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
88328         Remove now-obsolete comment about AIX.
88329         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
88330         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
88331         (YYMAXDEPTH): New macro.
88332
88333 2004-12-18  Simon Josefsson  <jas@extundo.com>
88334
88335         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
88336
88337 2004-12-18  Bruno Haible  <bruno@clisp.org>
88338
88339         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
88340
88341 2004-12-18  Bruno Haible  <bruno@clisp.org>
88342
88343         * lib/fatal-signal.c (fatal_signals): Make non-const.
88344         (init_fatal_signals): New function.
88345         (uninstall_handlers, install_handlers): Ignore signals that were set to
88346         SIG_IGN.
88347         (at_fatal_signal): Call init_fatal_signals.
88348         (init_fatal_signal_set): Likewise. Ignore signals that were set to
88349         SIG_IGN.
88350         Reported by Paul Eggert.
88351
88352 2004-12-18  Bruno Haible  <bruno@clisp.org>
88353
88354         * doc/alloca.texi: New file.
88355         * doc/alloca-opt.texi: New file.
88356
88357 2004-12-17  Jim Meyering  <jim@meyering.net>
88358
88359         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
88360         Otherwise, install-sh could exit with improper exit status when
88361         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
88362
88363 2004-12-16  Simon Josefsson  <jas@extundo.com>
88364
88365         * tests/test-base64.c: Add license.
88366
88367 2004-12-15  Stepan Kasal  <address@hidden>
88368
88369         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
88370
88371 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
88372
88373         * modules/getcwd (Files): Add m4/d-ino.m4.
88374         Suggested by Mark D. Baushke.
88375
88376 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
88377
88378         * lib/getdate.y (textint): New member "negative".
88379         (time_zone_hhmm): New function.
88380         Expect 14 shift-reduce conflicts, not 13.
88381         (o_colon_minutes): New rule.
88382         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
88383         (yylex): Set the "negative" member of signed numbers.
88384
88385 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
88386
88387         * doc/getdate.texi (Time of day items, Time zone items):
88388         Describe new formats +00:00, UTC+00:00.
88389
88390 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
88391
88392         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
88393         spurious "-l"s.  Problem reported by Stepan Kasal.
88394
88395 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
88396
88397         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
88398         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
88399
88400 2004-12-04  Simon Josefsson  <jas@extundo.com>
88401
88402         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
88403         Vandoorselaere <yoann@prelude-ids.org>.
88404
88405 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
88406
88407         Changes imported from coreutils.
88408         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
88409         exist.
88410         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
88411
88412 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
88413
88414         Changes imported from coreutils.
88415         * lib/hard-locale.c: Assume <locale.h> exists.
88416         Include "strdup.h".
88417         (GLIBC_VERSION): New macro.
88418         (hard_locale): Assume setlocale exists.
88419         Rewrite to avoid #ifdef.
88420         Use strdup rather than malloc + strcpy.
88421         * lib/human.c: Assume <locale.h> exists.
88422         (human_readable): Assume localeconv exists.
88423
88424 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
88425
88426         * modules/hard-locale (Depends-on): Add strdup.
88427
88428 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
88429
88430         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
88431         convert T2, not T.  (Imported from libc.)
88432
88433 2004-11-30  Simon Josefsson  <jas@extundo.com>
88434
88435         * modules/restrict (License): Change to LGPL.
88436
88437 2004-11-30  Simon Josefsson  <jas@extundo.com>
88438
88439         * m4/restrict.m4: Add copyright and copying conditions.
88440
88441 2004-11-30  Simon Josefsson  <jas@extundo.com>
88442
88443         * m4/base64.m4: New file.
88444
88445 2004-11-30  Simon Josefsson  <jas@extundo.com>
88446
88447         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
88448         base64.
88449
88450         * tests/test-base64.c: New file.
88451
88452         * modules/base64: New file.
88453
88454 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
88455
88456         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
88457         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
88458
88459         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
88460
88461 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
88462
88463         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
88464         (__getcwd.c): Don't restore errno; glibc doesn't.
88465         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
88466         first, falling back to our code only if its results look suspicious.
88467         Ensure that the resulting buffer is only as large as necessary.
88468
88469         * lib/readutmp.c: Include readutmp.h first.
88470         Include <errno.h>, since readutmp.h no longer does that.
88471         * lib/readutmp.h: Don't include <errno.h>,
88472         <sys/param.h>, <time.h>; not needed to establish interface.
88473         (errno): Remove decl.
88474         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
88475         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
88476         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
88477
88478 2004-11-28  Simon Josefsson  <jas@extundo.com>
88479
88480         * lib/base64.h, base64.c: New file.
88481
88482 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
88483
88484         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
88485
88486 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
88487
88488         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
88489         (Depends-on): Remove pathmax, same.  Add mempcpy.
88490         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
88491         (Makefile.am): Append getcwd.h to lib_SOURCES.
88492         (Include): Add getcwd.h.
88493         (Maintainer): Change from Jim Meyering to "all, glibc",
88494         since getdate now uses intended-for-glibc code.
88495         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
88496         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
88497
88498 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
88499
88500         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
88501         HP's ANSI C compiler.
88502         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
88503         Declaring int functions causes warnings on some modern systems and
88504         shouldn't be needed to compile on ancient ones.
88505         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
88506         defined.
88507
88508         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
88509         with the following changes.
88510         (__set_errno): Parenthesize properly.
88511         Include <stdbool.h>.
88512         (MIN, MAX, MATCHING_INO): New macros.
88513         (__getcwd): Define with prototype, not K&R form.
88514         Use heuristics to allocate default buffer on stack if possible.
88515         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
88516         behavior, and to avoid the PATH_MAX limit when computing
88517         ../../../../...
88518         Use MATCHING_INO to compare inode number to file.
88519         Check for arithmetic overflow in size calculations.
88520         Fix bug in reallocation of dot array that caused getcwd to fail
88521         on directories nested deeper than 75.
88522         Be more careful about saving errno on error.
88523         Do not use realloc; use only free+malloc, as this is a bit
88524         more flexible and avoids a needless copy operation.
88525         Do not inspect st_dev and st_ino for symbolic links; POSIX
88526         doesn't specify the latter.
88527         Check for closedir errors.
88528         Avoid needless casts.
88529         Use "#ifdef weak_alias" around weak_alias, to be like other
88530         glibc code.
88531         The following changes to getcwd.c have effect only when used in
88532         gnulib; they have no effect inside glibc proper.
88533         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
88534         as alloca isn't used.
88535         (alloca, __alloca): Likewise.
88536         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
88537         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
88538         unconditionally, as gnulib assumes C89 or better.
88539         Do not include <sys/param.h>.
88540         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
88541         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
88542         better.
88543         (NULL) [!defined NULL]: Remove; we assume C89 or better.
88544         Include <dirent.h> in a way that is compatible with modern Autoconf.
88545         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
88546         New macros, if not already defined.
88547         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
88548         Use "_LIBC", not "defined _LIBC", for consistency.
88549         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
88550         a mempcpy module.
88551         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
88552         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
88553         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
88554         credit only to Jim Meyering and adjust the copyright dates.
88555         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
88556         <stdlib.h>, <unistd.h>, "pathmax.h".
88557         Instead, include "xgetcwd.h" (first) and "getcwd.h".
88558         (INITIAL_BUFFER_SIZE): Remove.
88559         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
88560
88561 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
88562
88563         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
88564         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
88565         Use the _ONCE methods, for efficiency.
88566         Check for fcntl.h.  In test program, include <errno.h>
88567         and <fcntl.h> if available.  Remove old K&R cruft from
88568         test program.  Check for common errors in GNU/Linux,
88569         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
88570         don't do AC_LIBOBJ, as that's getcwd.m4's job.
88571         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
88572         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
88573         name accordingly.
88574         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
88575         accommodate new getcwd.c.
88576         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
88577         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
88578         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
88579         that's all we need now.
88580
88581 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
88582
88583         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
88584         argp-parse.c depends on getopt internals, that means we should
88585         always use our getopt, to be on the safe side.
88586         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
88587         order not to spoil the result of an eventual previous invocation
88588         of gl_GETOPT_SUBSTITUTE.
88589
88590 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
88591
88592         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
88593         redefinition warnings. To avoid them, include the defines
88594         in `#if !defined __need_getopt ... #endif'. The only place
88595         where __getopt_argv_const is used is in definitions
88596         of getopt_long and getopt_long_only below, which are as well
88597         protected by `#ifndef __need_getopt'.
88598         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
88599         __need_getopt after including <stdio.h> and <unistd.h> These
88600         headers might have defined it.
88601
88602 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
88603
88604         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
88605
88606 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
88607
88608         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
88609         (futimens): New function, which uses futimes if available.
88610         (futimens, utimens): Support timespec==NULL, with same semantics
88611         as utime and utimens.
88612         * lib/utimens.h (futimens): New decl.
88613
88614 2004-11-23  Jim Meyering  <jim@meyering.net>
88615
88616         * lib/getopt_.h: Remove trailing blanks.
88617
88618 2004-11-23  Jim Meyering  <jim@meyering.net>
88619
88620         * lib/__fpending.c: Add comment.
88621
88622 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
88623
88624         * modules/canonicalize (Depends-on): Add xreadlink.
88625         Problem reported by James Youngman.
88626
88627 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
88628
88629         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
88630         New macros.
88631         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
88632         optopt): Use them instead of invoking ## directly; otherwise, the
88633         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
88634
88635 2004-11-19  Bruno Haible  <bruno@clisp.org>
88636
88637         * lib/strtok_r.c: Move comments from here...
88638         * lib/strtok_r.h: ... to here.
88639
88640 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
88641
88642         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
88643         implementations that mishandle size_t overflow.
88644
88645 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
88646
88647         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
88648         might fail.  Problem reported by Yoann Vandoorselaere.
88649         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
88650         implementations that mishandle size_t overflow.
88651
88652 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
88653
88654         * modules/canon-host (Depends-on): Add strdup.
88655
88656 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
88657
88658         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
88659
88660 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
88661
88662         * lib/canon-host.c: Include "strdup.h".
88663         (canon_host): Use getaddrinfo if available, so that IPv6 works.
88664         Use strdup instead of malloc/strcpy to duplicate strings.
88665
88666         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
88667         (human_space_before_unit): New constant.
88668         * lib/human.c (human_readable): Support it.
88669
88670         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
88671         (xgetcwd): Set errno correctly when failing.
88672         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
88673         the failure is actually due to a PATH_MAX problem.
88674
88675         Further getopt changes to make it more likely that glibc will
88676         buy the changes back.
88677         * lib/getopt.c (POSIXLY_CORRECT): New constant.
88678         (getopt): Use it, so to preserve glibc semantic
88679         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
88680         when compiling for libc.
88681         * lib/getopt_.h (__getopt_argv_const): Bring it back.
88682         (getopt_long, getopt_long_only): Use it.
88683
88684         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
88685         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
88686         (getopt): Argv is now char * const *, as per standard.
88687         (_getopt_internal_r, _getopt_internal): Argv is now char **,
88688         not char *__getopt_argv_const *.
88689         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
88690         _getopt_long_only_r): Likewise.
88691         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
88692         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
88693         _getopt_long_r, _getopt_long_only_r): Likewise.
88694         * lib/getopt_.h (__getopt_argv_const): Remove.
88695         (getopt): Argv is now char * const *, as per standard.
88696
88697         * lib/getdate.y (tORDINAL): New token.
88698         (day, relunit): Allow it for relative times.
88699         (relative_time_table): Use tORDINAL for ordinals.
88700
88701 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
88702
88703         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
88704         Document that "second" isn't allowed as an ordinal number.
88705
88706 2004-11-16  Jim Meyering  <jim@meyering.net>
88707
88708         * modules/closeout (Depends-on): Add fpending.
88709
88710 2004-11-15  Jim Meyering  <jim@meyering.net>
88711
88712         * lib/closeout.c: Include "__fpending.h" once again.
88713         Include <stdbool.h>.
88714         (close_stdout): Don't fail just because stdout was closed initially,
88715         since some programs don't write to stdout in the normal course of
88716         operation (other than --version and --help), and we don't want this
88717         function to make e.g. `touch file >&-' fail.
88718         But do fail if it was closed and someone has tried to write to it.
88719         E.g., `printf foo >&-' must fail.
88720
88721 2004-11-13  Jim Meyering  <jim@meyering.net>
88722
88723         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
88724
88725 2004-11-12  Simon Josefsson  <jas@extundo.com>
88726
88727         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
88728         small doc fix is still pending.
88729
88730 2004-11-11  Simon Josefsson  <jas@extundo.com>
88731
88732         * modules/strtok_r: New file.
88733
88734         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
88735         strtok_r.
88736
88737 2004-11-11  Simon Josefsson  <jas@extundo.com>
88738
88739         * m4/strtok_r.m4: New file.
88740
88741         * m4/getopt.m4: Replace opterr.
88742
88743 2004-11-11  Simon Josefsson  <jas@extundo.com>
88744
88745         * lib/strtok_r.h, strtok_r.c: New file.
88746
88747 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
88748
88749         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
88750         of replacing opterr, getopt, etc.  This should handle the
88751         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
88752
88753 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
88754
88755         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
88756         we can stop lying to compilers about the constness of argv when we
88757         are compiled outside glibc.
88758         (getopt, getopt_long, getopt_long_only): Use it.
88759         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
88760         _getopt_internal, getopt): Likewise.
88761         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
88762         _getopt_long_only_r): Likewise.
88763         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
88764         _getopt_long_r, _getopt_long_only_r): Likewise.
88765
88766         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
88767         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
88768         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
88769         the other external symbols.
88770         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
88771         declaration, since the above renaming now works around collisions.
88772
88773 2004-11-11  Jim Meyering  <jim@meyering.net>
88774
88775         * lib/linebreak.c: Remove trailing blanks.
88776         * lib/alloca_.h: Likewise.
88777         * lib/acosl.c: Likewise.
88778         * lib/euidaccess.c: Likewise.
88779         * lib/allocsa.h: Likewise.
88780
88781 2004-11-10  Simon Josefsson  <jas@extundo.com>
88782
88783         * m4/getaddrinfo.m4: New file.
88784
88785 2004-11-10  Simon Josefsson  <jas@extundo.com>
88786
88787         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
88788
88789 2004-11-10  Simon Josefsson  <jas@extundo.com>
88790
88791         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
88792         getaddrinfo.
88793
88794         * modules/getaddrinfo: New file.
88795
88796 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
88797
88798         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
88799
88800 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
88801
88802         * lib/mktime.c (SHR): New macro, which is a portable
88803         substitute for >> that should work even on Crays.
88804         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
88805         Problem reported by Mark D. Baushke in
88806         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
88807         * lib/getdate.y (SHR): Likewise.
88808         (tm_diff): Use it.
88809         * lib/strftime.c (SHR): Likewise.
88810         (tm_diff): Use it.
88811         * lib/quotearg.c (struct quoting_options): Use unsigned int for
88812         quote_these_too, so that right shifts are well defined.  All uses
88813         changed.
88814
88815 2004-11-10  Jim Meyering  <jim@meyering.net>
88816
88817         Ensure that no close failure goes unreported.
88818         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
88819         return early when it seems there's nothing to flush.
88820         Don't include __fpending.h.
88821
88822 2004-11-10  Jim Meyering  <jim@meyering.net>
88823
88824         * modules/closeout (Depends-on): Remove fpending.
88825
88826 2004-11-10  Jim Meyering  <jim@meyering.net>
88827
88828         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
88829
88830 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
88831
88832         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
88833         gl_FUNC_STRFTIME.
88834         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
88835         and AC_REQUIRE when possible, to avoid duplicate checks.
88836         Check for <wchar.h>.
88837
88838 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
88839
88840         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
88841
88842 2004-11-09  Bruno Haible  <bruno@clisp.org>
88843
88844         * m4/sockpfaf.m4: New file.
88845
88846 2004-11-05  Bruno Haible  <bruno@clisp.org>
88847
88848         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
88849         Reported by Mark D. Baushke <mdb@cvshome.org>.
88850
88851 2004-11-04  Bruno Haible  <bruno@clisp.org>
88852
88853         2004-09-11  Bruno Haible  <bruno@clisp.org>
88854                 * allocsa.valgrind: New file.
88855         2004-02-06  Bruno Haible  <bruno@clisp.org>
88856                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
88857                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
88858                 Reported by Christopher Seip <chris.seip@hp.com>.
88859
88860 2004-11-04  Bruno Haible  <bruno@clisp.org>
88861
88862         * modules/allocsa (Files): Add lib/allocsa.valgrind.
88863         (Makefile.am): Distribute it.
88864
88865 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
88866
88867         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
88868         with errno == ERANGE if the buffer is too small.
88869         Problem reported by Mark D. Baushke.
88870
88871 2004-11-03  Albert Chin  <china@thewrittenword.com>
88872             Paul Eggert  <eggert@cs.ucla.edu>
88873
88874         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
88875         equivalent, substitute $ac_type for equivalent type rather than
88876         blindly using uint32_t *always* which won't work if uint32_t is not
88877         available.  Define _UINT32_T to work around typedef of uint32_t if
88878         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
88879         2.5.1.
88880
88881 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
88882
88883         * m4/jm-macros.m4: Sync from coreutils.
88884         (gl_MACROS): Check for mbrlen, for pathchk.
88885         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
88886
88887 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
88888
88889         * lib/xreadlink.c (MAXSIZE): New macro.
88890         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
88891         size does not exceed MAXSIZE.  Avoid cast.
88892         As suggested by Mark D. Baushke in
88893         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
88894         if readlink fails with buffer size just under MAXSIZE, try again
88895         with MAXSIZE.
88896
88897 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
88898
88899         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
88900
88901 2004-11-02  Derek R. Price  <derek@ximbiot.com>
88902         and  Paul Eggert  <eggert@cs.ucla.edu>
88903
88904         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
88905         (get_date): Overparenthesize to avoid GCC warning.
88906
88907 2004-11-02  Bruno Haible  <bruno@clisp.org>
88908
88909         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
88910         returns void.
88911
88912 2004-11-02  Bruno Haible  <bruno@clisp.org>
88913
88914         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
88915         function returns void.
88916
88917 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
88918
88919         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
88920         fflush_unlocked, flockfile, funlockfile, funlockfile,
88921         fputs_unlocked, putc_unlocked.
88922
88923 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
88924
88925         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
88926         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
88927         already declared.
88928
88929 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
88930
88931         * modules/getdate (Files): Add doc/getdate.texi.
88932         (Depends-on): Add setenv, xalloc.
88933
88934 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
88935
88936         * lib/getdate.y: Add support for TZ="foo" within a date string.
88937         Fix some bugs near time_t boundaries.  Reject dates with
88938         out-of-range components, e.g., "Sept 31".
88939         Include <stdlib.h>, "setenv.h", "xalloc.h".
88940         (ISDIGIT_LOCALE): Remove; unused.
88941         Note that the TZ and time functions used here are not reentrant.
88942         (mktime_ok, get_tz): New functions.
88943         (TZBUFSIZE): New constant.
88944         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
88945         This requires that we sometimes generate our own TZ="XXX..." setting.
88946
88947 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
88948
88949         * doc/getdate.texi: New file, from coreutils with modifications for
88950         the new TZ parsing.
88951
88952 2004-10-27  Derek R. Price  <derek@ximbiot.com>
88953
88954         * lib/mktime.c (not_equal_tm): Remove redundant check.
88955
88956 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
88957
88958         * modules/regex (lib_SOURCES): Add regex.c.
88959         Reported by James Youngman in
88960         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
88961
88962 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
88963
88964         * lib/getdate.y: Use Bison 1.875 features, and some minor
88965         code cleanups.  This change does not affect semantics.
88966         Don't include <stdlib.h>; no longer needed.
88967         Don't include unlocked-io.h; only the "#if TEST" code uses
88968         stdio, and performance isn't crucial there.
88969         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
88970         Bison 1.875 features as described below.
88971         All uses of "PC." replaced by "pc->".
88972         (YYSTYPE): Add a forward declaration.
88973         (yylex, yyerror): Use full prototypes in forward decls.
88974         Use "%pure-parser" rather than obsolescent "%pure_parser".
88975         Use %parse-param and %lex-param instead of obsolescent
88976         YYPARSE_PARAM and YYLEX_PARAM.
88977         (meridian_table, month_and_day_table, time_units_table,
88978         relative_time_table, time_zone_table, military_table,
88979         lookup_zone, lookup_word, get_date):
88980         Use NULL instead of 0 where appropriate.
88981         (to_hour): Avoid abort (), to avoid a dependency on
88982         stdlib.h.
88983         (yyerror, yylex): Now accepts parser_control * arg.
88984         (main) [TEST]: Use '\0' rather than 0 for char.
88985
88986 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
88987
88988         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
88989
88990 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
88991
88992         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
88993         It's now the caller's responsibility to handle the case where
88994         !HAVE_GETPAGESIZE && !defined getpagesize.
88995
88996         * lib/mktime.c (leapyear): Arg is long int, not int.
88997
88998 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
88999
89000         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
89001
89002 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
89003
89004         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
89005         missing.  Problem reported by James Youngman.
89006
89007 2004-10-16  Simon Josefsson  <jas@extundo.com>
89008
89009         * gnulib-tool: Fix comments.  Fix parse problem.
89010         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
89011
89012 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
89013
89014         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
89015         implementation of getopt_long.  Problem reported by Alexander Taler in:
89016         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
89017
89018 2004-10-15  Bruno Haible  <bruno@clisp.org>
89019
89020         * gnulib-tool: Untabify. Initialize supplied_libname.
89021         (func_usage): More homogenous output.
89022         (func_modules_transitive_closure, func_modules_to_filelist,
89023         func_emit_lib_Makefile_am): New functions.
89024         (func_import): New function, extracted from big case statement. Use
89025         func_get_license, func_modules_transitive_closure,
89026         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
89027         opt_lgpl. Don't use test -a, as it's not portable.
89028         (func_create_testdir): Use func_modules_transitive_closure,
89029         func_modules_to_filelist, func_emit_lib_Makefile_am.
89030
89031 2004-10-15  Bruno Haible  <bruno@clisp.org>
89032
89033         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
89034
89035 2004-10-15  Bruno Haible  <bruno@clisp.org>
89036
89037         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
89038         the portions belonging to each module.
89039         Suggested by Derek Robert Price <derek@ximbiot.com>.
89040
89041 2004-10-12  Simon Josefsson  <jas@extundo.com>
89042
89043         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
89044         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
89045         to real functions.
89046
89047 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
89048
89049         * modules/vsnprintf: New file.
89050
89051 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
89052
89053         * m4/vsnprintf.m4: New file.
89054
89055 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
89056
89057         * lib/vsnprintf.h: New file.
89058         * lib/vsnprintf.c: New file.
89059
89060 2004-10-11  Bruno Haible  <bruno@clisp.org>
89061
89062         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
89063         vsnprintf.
89064
89065 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
89066
89067         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
89068
89069 2004-10-07  Bruno Haible  <bruno@clisp.org>
89070
89071         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
89072         fits into the provided buffer.
89073
89074 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
89075
89076         * lib/diacrit.c, diacrit.h: Add GPL notice.
89077
89078         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
89079         notice.
89080         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
89081         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
89082         This avoids a potential constant-folding bug.
89083
89084 2004-10-05  Bruno Haible  <bruno@clisp.org>
89085
89086         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
89087         for the declaration of strsep.
89088
89089 2004-10-05  Bruno Haible  <bruno@clisp.org>
89090
89091         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
89092
89093 2004-10-04  Simon Josefsson  <jas@extundo.com>
89094
89095         * modules/memmem: New file.
89096         * tests/test-memmem.c: New file.
89097         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
89098
89099 2004-10-04  Simon Josefsson  <jas@extundo.com>
89100
89101         * m4/memmem.m4: New file.
89102
89103 2004-10-04  Simon Josefsson  <jas@extundo.com>
89104
89105         * lib/memmem.h: New file.
89106         * lib/memmem.c: New file, taken from glibc.
89107
89108 2004-10-04  Simon Josefsson  <jas@extundo.com>
89109
89110         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
89111         '#ifdef USE_UNLOCKED_IO'.
89112
89113 2004-10-04  Simon Josefsson  <jas@extundo.com>
89114
89115         * config/srclist.txt: Add memmem from glibc.
89116
89117 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
89118
89119         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
89120
89121         * modules/argmatch, modules/argp, modules/closeout, modules/error,
89122         modules/exclude, modules/getdate, modules/getline,
89123         modules/getndelim2, modules/getpass, modules/getpass-gnu,
89124         modules/getusershell, modules/linebuffer, modules/md5,
89125         modules/mountlist, modules/posixtm, modules/readtokens,
89126         modules/readutmp, modules/regex, modules/sha1,
89127         modules/version-etc, modules/yesno:
89128         Remove dependency on unlocked-io.
89129
89130 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
89131
89132         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
89133
89134         * m4/unlocked-io.m4: Add copyright notice.
89135         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
89136
89137 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
89138
89139         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
89140         * lib/xmalloc.c (xmemdup): Likewise.
89141         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
89142         XFREE): Remove these long-obsolescent macros.
89143         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
89144         * lib/xstrdup.c: Remove.
89145
89146         * lib/regex.c (re_comp): Cast gettext return value to char *,
89147         Problem reported by Martin Neitzel via Mark D. Baushke.
89148
89149 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
89150
89151         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
89152         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
89153         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
89154         regex.c, sha1.c, version-etc.c, yesno.c:
89155         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
89156         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
89157         the includer's responsibility.
89158
89159         Sync from coreutils.
89160
89161         * lib/modechange.c (mode_compile): Don't decrement a pointer that
89162         points to the start of a string, as the C Standard says the
89163         resulting behavior is undefined.
89164
89165         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
89166         simple -> simple_backups, numbered_existing ->
89167         numbered_existing_backups, numbered -> numbered_backups
89168         to avoid shadowing problems.  All uses changed.
89169         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
89170         * lib/backupfile.c (check_extension, numbered_backup):
89171         Rename locals to avoid shadowing 'basename'.
89172         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
89173         once.
89174
89175         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
89176         * lib/.cvsignore: Add getopt.h.
89177
89178 2004-10-04  Bruno Haible  <bruno@clisp.org>
89179
89180         * modules/README: New file.
89181         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
89182         not a module.
89183
89184 2004-10-02  Jim Meyering  <jim@meyering.net>
89185
89186         * lib/dirfd.h, getpagesize.h: Add copyright notice.
89187
89188 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
89189
89190         * modules/strsep: New file.
89191
89192 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
89193
89194         * m4/strsep.m4: New file.
89195
89196 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
89197
89198         * lib/strsep.h: New file.
89199         * lib/strsep.c: New file.
89200
89201 2004-10-01  Simon Josefsson  <jas@extundo.com>
89202
89203         * lib/snprintf.c (snprintf): Handle size==0.
89204
89205 2004-10-01  Simon Josefsson  <jas@extundo.com>
89206             Bruno Haible  <bruno@clisp.org>
89207
89208         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
89209         (snprintf): Declare 'args'.
89210
89211 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
89212
89213         * lib/snprintf.c: Remove comments as to why each header is needed.
89214
89215 2004-10-01  Bruno Haible  <bruno@clisp.org>
89216
89217         * MODULES.html.sh: Add strsep.
89218
89219 2004-09-30  Simon Josefsson  <jas@extundo.com>
89220
89221         * modules/snprintf: New file.
89222
89223 2004-09-30  Simon Josefsson  <jas@extundo.com>
89224
89225         * m4/snprintf.m4: New file.
89226
89227 2004-09-30  Simon Josefsson  <jas@extundo.com>
89228
89229         * lib/snprintf.h, lib/snprintf.c: New files.
89230
89231 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
89232
89233         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
89234         (hol_entry_help): Never translate an empty string.
89235         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
89236         * lib/argp.h (OPTION_NO_TRANS): New option.
89237
89238 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
89239
89240         * modules/argp (Maintainer): Replace Simon Josefsson
89241         by Sergey Poznyakoff.
89242
89243 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
89244
89245         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
89246         changes merged back into glibc.
89247
89248 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
89249
89250         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
89251
89252 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
89253
89254         * lib/xvasprintf.c: Include xalloc.h.
89255         (xvasprintf): Use xalloc_die, not xmalloc_die.
89256
89257 2004-09-29  Bruno Haible  <bruno@clisp.org>
89258
89259         * modules/alloca-opt: New file, derived from modules/alloca.
89260         * modules/allocsa: Depend on alloca-opt instead of alloca.
89261         * modules/setenv: Likewise.
89262         * modules/vasnprintf: Likewise.
89263         * MODULES.html.sh: Add alloca-opt.
89264
89265 2004-09-28  Simon Josefsson  <jas@extundo.com>
89266
89267         * gnulib-tool: New parameter --lgpl, to asseert that modules are
89268         LGPL, and to replace license template from GPL to LGPL.
89269
89270 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
89271
89272         * modules/dummy: Change license to LGPL.
89273
89274 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
89275
89276         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
89277
89278 2004-09-24  Simon Josefsson  <jas@extundo.com>
89279
89280         * modules/minmax (License): Change from GPL to LGPL.
89281
89282 2004-09-23  Simon Josefsson  <jas@extundo.com>
89283
89284         * gnulib-tool (--import): Typo.
89285
89286 2004-09-23  Simon Josefsson  <jas@extundo.com>
89287
89288         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
89289
89290 2004-09-22  Bruno Haible  <bruno@clisp.org>
89291
89292         * modules/*: Add 'License' field.
89293         * gnulib-tool: Accept --extract-license option.
89294         (func_get_license): New function.
89295
89296 2004-09-21  Bruno Haible  <bruno@clisp.org>
89297
89298         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
89299         Reported by Simon Josefsson.
89300
89301 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
89302
89303         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
89304         gl_AC_TYPE_LONG_LONG.
89305
89306 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
89307
89308         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
89309
89310 2004-09-18  Simon Josefsson  <jas@extundo.com>
89311         and  Paul Eggert  <eggert@cs.ucla.edu>
89312
89313         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
89314         calls with autoreconf.  Define GL_LIB.
89315
89316 2004-09-14  Karl Berry  <karl@gnu.org>
89317
89318         * config/srclist.txt: unsync setenv.c, sigh.
89319
89320 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
89321
89322         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
89323         Problem reported by Bruno Haible in:
89324         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
89325
89326 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
89327
89328         * config/srclist.txt: Comment out argp-pvh.c.
89329
89330 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
89331
89332         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
89333         in case some system header has #define'd it.  Problem reported by
89334         Soeren D. Schulze in
89335         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
89336
89337 2004-09-09  Karl Berry  <karl@gnu.org>
89338
89339         * regex.[ch]: delete from the root.  These were supposed to be
89340                 synced with emacs cvs, but this has not happened for about
89341                 a year, and anyway nothing else uses emacs regex.[ch].
89342                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
89343                 lib/regex[.ch] is untouched.
89344
89345 2004-09-09  Bruno Haible  <bruno@clisp.org>
89346
89347         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
89348
89349 2004-09-09  Bruno Haible  <bruno@clisp.org>
89350
89351         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
89352         modifications.
89353         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
89354
89355 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
89356
89357         * modules/xvasprintf: New file.
89358         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
89359
89360 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
89361
89362         * lib/xvasprintf.h: New file.
89363         * lib/xvasprintf.c: New file.
89364         * lib/xasprintf.c: New file.
89365
89366 2004-09-08  Bruno Haible  <bruno@clisp.org>
89367
89368         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
89369
89370 2004-09-08  Bruno Haible  <bruno@clisp.org>
89371
89372         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
89373         length is > INT_MAX.
89374         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
89375         more.
89376
89377 2004-09-08  Bruno Haible  <bruno@clisp.org>
89378
89379         * lib/stdint_.h: New file, taken from GNU clisp.
89380
89381 2004-09-08  Bruno Haible  <bruno@clisp.org>
89382             Oskar Liljeblad  <oskar@osk.mine.nu>
89383
89384         * modules/stdint: New file.
89385         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
89386
89387 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
89388
89389         Import from coreutils.
89390         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
89391         strings on unbounded length.  alloca's performance benefits aren't
89392         that important here.
89393         (V_STRDUP): Remove.
89394         (parse_with_separator): New function, with most of the internals
89395         of the old parse_user_spec.  Allow user to omit both user and group,
89396         for compatibility with FreeBSD.
89397         Clone only the user name, not the entire spec.
89398         Do not set *uid, *gid unless entirely successful.
89399         Avoid memory leak in some failing cases.
89400         Fix regression for USER.GROUP reported by Dmitry V. Levin in
89401         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
89402         (parse_user_spec): Rewrite to use parse_with_separator.
89403
89404 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
89405
89406         * modules/userspec: Don't depend on alloca.
89407
89408 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
89409
89410         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
89411
89412 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
89413
89414         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
89415         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
89416         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
89417
89418 2004-08-16  Simon Josefsson  <jas@extundo.com>
89419
89420         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
89421         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
89422         Add --dry-run for --import.
89423         Let user provided command line parameters override configure.ac
89424         settings.
89425
89426 2004-08-12  Simon Josefsson  <jas@extundo.com>
89427
89428         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
89429         as discussed with Paul Eggert in threads rooted at
89430         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
89431         and
89432         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
89433         Before, the test was empty, and relied on ELIDE_CODE in source
89434         code.)
89435         (gl_PREREQ_GETOPT): New macro.
89436         (gl_GETOPT): Use them.
89437
89438 2004-08-12  Simon Josefsson  <jas@extundo.com>
89439
89440         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
89441         * lib/getopt_.h: Renamed from getopt.h.
89442
89443 2004-08-12  Simon Josefsson  <jas@extundo.com>
89444
89445         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
89446         Change default library name from libfoo to libgnu.
89447         Now, if you have a configure.ac that says:
89448                 gl_SOURCE_BASE(gl)
89449                 gl_M4_BASE(gl/m4)
89450                 gl_MODULES(error getopt etcetera)
89451                 gl_INIT
89452         you can import all you need by running:
89453                 ../gnulib/gnulib-tool --import
89454
89455         * modules/getopt (Files): Rename getopt.h to getopt_.h.
89456         (Makefile.am): Rewrite, use logic from argz.
89457         (Include): Use <getopt.h> instead of "getopt.h".
89458
89459 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
89460
89461         * modules/argp (Files): Add m4/unlocked-io.m4.
89462         (Depends-on): Add extensions.
89463
89464 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
89465
89466         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
89467         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
89468         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
89469         Check for program_invocation_name, program_invocation_short_name,
89470         flockfile, funlockfile, features.h, _getopt_long_only_r.
89471
89472 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
89473
89474         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
89475         its complicated substitute.
89476         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
89477         and program_invocation_name.
89478         (__argp_basename) [!_LIBC]: Remove; the only use was
89479         replaced by its body.
89480         (__argp_short_program_name): Change condition from
89481         !defined __argp_short_program_name to
89482         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
89483         to match argp-namefrob.h.
89484         (__argp_failure): Don't assume strerror_r returns char *.
89485         * lib/argp-parse.c (N_): Define unconditionally.
89486         (argp_default_options): Fill out initializers with 0 to avoid
89487         gcc warnings.
89488
89489 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
89490
89491         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
89492         getopt1.c.
89493
89494 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
89495
89496         Merge from coreutils.
89497
89498         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
89499
89500         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
89501         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
89502
89503 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
89504
89505         Merge from coreutils.
89506
89507         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
89508         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
89509         for Reliant Unix 5.43.
89510
89511         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
89512         (union fooround): Use uintmax_t, not long int.
89513         The rest is a merge from libc:
89514         [defined _LIBC]: Include <shlib-compat.h>.
89515         (_obstack) [defined _LIBC]: Remove after 2.3.4.
89516
89517         * lib/settime.c (settime): Recode to avoid warning with
89518         Sun Forte C 6U2.
89519
89520         * lib/strverscmp.c: Convert to UTF-8.
89521
89522 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
89523
89524         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
89525         m4/uintmax_t.m4.
89526
89527 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
89528
89529         * modules/xalloc-die: New file.
89530         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
89531
89532         * modules/md5 (Files): Add m4/uint32_t.m4.
89533         * modules/sha1: Renamed from modules/sha.
89534         (Files):
89535         Rename lib/sha.h to lib/sha1.h.
89536         Rename lib/sha.c to lib/sha1.c.
89537         Rename m4/sha.m4 to m4/sha1.m4.
89538         (lib_SOURCES): Likewise.
89539         (configure.ac): Rename gl_SHA to gl_SHA1.
89540         (Include): sha.h -> sha1.h.
89541
89542 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
89543
89544         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
89545         * m4/sha1.m4: Renamed from sha.m4.
89546         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
89547
89548 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
89549
89550         * lib/obstack.h (obstack_empty_p):
89551         Don't assume that chunk->contents is suitably aligned.
89552         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
89553         Likewise. Problem reported by Benno in
89554         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
89555
89556         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
89557         readable.  This could be improved further but it'd take some work.
89558
89559 2004-08-08  Simon Josefsson  <jas@extundo.com>
89560
89561         * modules/xgethostname (Depends-on): Remove exit and error (not
89562         used).
89563
89564         * modules/getpass-gnu: Add getpass.h.
89565         (Depends-on): Add stdbool.
89566         * modules/getpass: Add getpass.h.
89567
89568 2004-08-08  Simon Josefsson  <jas@extundo.com>
89569
89570         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
89571         Check getpass declaration.
89572
89573 2004-08-08  Simon Josefsson  <jas@extundo.com>
89574
89575         * lib/xgethostname.c: Don't include error.h (not used).
89576
89577         * lib/getpass.h: Add.
89578         * lib/getpass.c: Include getpass.h first.
89579
89580 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
89581
89582         * lib/xalloc-die.c: New file.
89583         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
89584         All uses removed.
89585         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
89586         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
89587         xalloc-die.c.
89588         (_, N_, xalloc_die): Move to xalloc-die.c.
89589         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
89590         so that we needn't mess with xalloc_msg_memory_exhausted.
89591
89592         * lib/sha1.h: Renamed from sha.h.
89593         (SHA1_H): Renamed from _SHA_H.
89594         (sha1_ctx): Renamed from sha_ctx.
89595         (sha1_init_ctx): Renamed from sha_init_ctx.
89596         (sha1_process_block): Renamed from sha_process_block.
89597         (sha1_process_bytes): Renamed from sha_process_bytes.
89598         (sha1_finish_ctx): Renamed from sha_finish_ctx.
89599         (sha1_read_ctx): Renamed from sha_read_ctx.
89600         (sha1_stream): Renamed from sha_stream.
89601         (sha1_buffer): Renamed from sha_buffer.
89602         * lib/sha1.c: Likewise; renamed from sha.c.
89603         Do not include <sys/types.h>.
89604         Include <stddef.h> rather than <stdlib.h>.
89605
89606 2004-08-08  Bruno Haible  <bruno@clisp.org>
89607
89608         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
89609         FILESYSTEM_PREFIX_LEN.
89610         * lib/progreloc.c: Likewise.
89611         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
89612
89613 2004-08-06  Simon Josefsson  <jas@extundo.com>
89614
89615         * modules/progname (Depends-on): Don't depend on stdbool.
89616
89617 2004-08-06  Simon Josefsson  <jas@extundo.com>
89618
89619         * modules/getsubopt: New file.
89620         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
89621         getsubopt.
89622
89623 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
89624
89625         More merge from coreutils.
89626
89627         * m4/utimens.m4, m4/utimecmp.m4: New files.
89628         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
89629         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
89630         prereq.m4, sha.m4: Import changes from coreutils.
89631
89632 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
89633
89634         More merge from coreutils.
89635         * modules/raise, modules/readtokens0, modules/utimens:
89636         * modules/utimecmp, module/xnanosleep: New files.
89637         * modules/strftime: Add lib/strftime.h.
89638         Change include from <time.h> to "strftime.h".
89639         * modules/yesno: Add lib/yesno.h.
89640         * modules/backupfile: Remove lib/addext.c.
89641         * modules/euidaccess: Add stat-macros.h.
89642         * modules/canonicalize, modules/euidaccess,
89643         modules/filemode, modules/lchown, modules/makepath,
89644         modules/rmdir, modules/stat: Likewise.
89645
89646 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
89647
89648         Merge from tar.
89649         * lib/argp-help.c (make_hol, hol_append): Don't assume that
89650         SIZE_MAX is a valid preprocessor constant.
89651         (__argp_basename): Change from "#ifndef _LIBC"
89652         to "#ifndef __argp_short_program_name", so that
89653         we don't compile these functions for tar.
89654
89655         More merges from coreutils.
89656         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
89657         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
89658         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
89659         * lib/addext.c: Remove; no longer needed.
89660         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
89661         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
89662         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
89663         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
89664         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
89665         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
89666         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
89667         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
89668         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
89669         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
89670         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
89671         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
89672         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
89673         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
89674         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
89675         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
89676         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
89677         Import changes from coreutils.
89678
89679 2004-08-05  Simon Josefsson  <jas@extundo.com>
89680
89681         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
89682
89683 2004-08-05  Simon Josefsson  <jas@extundo.com>
89684
89685         * m4/getsubopt.m4: New file.
89686
89687 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
89688
89689         Merge from coreutils.
89690
89691         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
89692         * m4/getcwd-path-max.m4: New files.
89693
89694         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
89695         FILESYSTEM_PREFIX_LEN ->
89696         FILE_SYSTEM_PREFIX_LEN.
89697         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
89698         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
89699         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
89700         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
89701
89702         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
89703         prerequisite modules now handle the DOS stuff.
89704         Don't check for unistd.h.
89705
89706 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
89707
89708         Merge from coreutils.
89709
89710         * lib/.gdb-history: Remove; this doesn't belong here.
89711
89712         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
89713         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
89714         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
89715         * lib/getcwd.c: New files.
89716
89717         * lib/dirname.h: Include <stdbool.h>.
89718         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
89719         for consistency with POSIX terminology.  All uses changed.
89720         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
89721         (strip_trailing_slashes): Use bool for booleans.
89722         * lib/stripslash.c (strip_trailing_slashes): Likewise.
89723
89724         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
89725         sometimes returns a positive errno value even when it succeeds.
89726         (print_errno_message) [!LIBC]: Fall back on strerror if
89727         __strerror_r fails.
89728
89729         * lib/path-concat.c (mempcpy): Don't define if a system header defines
89730         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
89731         (longest_relative_suffix): New function.
89732         (path_concat): Use it.  Assume first argument is not NULL.
89733         Port to DOS.  Omit redundant separators.
89734         Report an error instead of returning NULL.
89735         Use mempcpy instead of memcpy.
89736         (xpath_concat): Remove: not declared or used.
89737
89738         * lib/same.h: Include <stdbool.h>
89739         (same_name): Return bool, not int.
89740         * lib/same.c (same_name): Likewise.
89741         (errno): Don't declare; we assume C89 or better now.
89742
89743         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
89744         if not already defined.
89745
89746         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
89747         * lib/dup-safer.c (errno): Likewise.
89748
89749 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
89750
89751         Merge from coreutils.
89752         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
89753         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
89754         * modules/path-concat: Don't depend on strdup.
89755
89756 2004-08-03  Simon Josefsson  <jas@extundo.com>
89757
89758         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
89759         * lib/progname.h: Don't include stdbool.h.
89760
89761 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
89762
89763         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
89764         * MODULES.html.sh (func_all_modules): Remove fatal.
89765
89766 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
89767
89768         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
89769
89770 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
89771
89772         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
89773         working.
89774
89775 2004-08-02  Simon Josefsson  <jas@extundo.com>
89776
89777         * lib/getsubopt.h: New file, with comments from Bruno Haible.
89778         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
89779         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
89780
89781 2004-08-01  Simon Josefsson  <jas@extundo.com>
89782
89783         * lib/xgetdomainname.c: Include stdlib.h, for free().
89784
89785 2004-07-19  Bruno Haible  <bruno@clisp.org>
89786
89787         * MODULES.html.sh (func_all_modules): Add dummy.
89788
89789 2004-07-16  Simon Josefsson  <jas@extundo.com>
89790
89791         * modules/dummy: New file.
89792
89793 2004-07-16  Simon Josefsson  <jas@extundo.com>
89794
89795         * lib/dummy.c: New file.
89796
89797 2004-07-16  Bruno Haible  <bruno@clisp.org>
89798
89799         * lib/backupfile.h: Add extern "C" for C++.
89800         * lib/closeout.h: Likewise.
89801         * lib/copy-file.h: Likewise.
89802         * lib/findprog.h: Likewise.
89803         * lib/full-write.h: Likewise.
89804         * lib/pathname.h: Likewise.
89805         * lib/progname.h: Likewise.
89806         * lib/stpcpy.h: Likewise.
89807         * lib/stpncpy.h: Likewise.
89808         * lib/strcase.h: Likewise.
89809         * lib/strstr.h: Likewise.
89810         * lib/xalloc.h: Likewise.
89811
89812         * lib/mbswidth.h: Add extern "C" for C++.
89813         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
89814
89815 2004-07-13  Robert Millan  <robertmh@gnu.org>
89816
89817         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
89818
89819 2004-07-09  Simon Josefsson  <jas@extundo.com>
89820
89821         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
89822         failed without this.)
89823
89824 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
89825
89826         * modules/chown (Files): Add lib/fchown-stub.c, since
89827         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
89828
89829 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
89830
89831         * lib/fchown-stub.c: New file.
89832
89833 2004-06-24  Jim Meyering  <jim@meyering.net>
89834
89835         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
89836
89837 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
89838
89839         * modules/argz: Omit "#include".
89840
89841         * MODULES.html.sh (func_all_modules): Add calloc, to match
89842         2004-06-01 addition of calloc module.
89843
89844 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
89845
89846         * m4/argz.m4: New file, which is autoupdated from libtool.
89847
89848 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
89849
89850         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
89851         libtool.
89852
89853 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
89854
89855         * config/srclist-update: Don't insist on "USA." before the
89856         close-comment, as libtool omits the period and puts the */ on a
89857         separate line.
89858         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
89859         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
89860
89861 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
89862
89863         * modules/argz: New file.
89864         * MODULES.html.sh (func_all_modules): Add argz.
89865
89866 2004-06-12  Jim Meyering  <jim@meyering.net>
89867         and  Paul Eggert  <eggert@cs.ucla.edu>
89868
89869         * modules/hash (Files): Add lib/xalloc.h.
89870         * modules/pipe (Depends-on): Add wait-process.
89871         * modules/stat (Depends-on): Add xalloc.
89872         * modules/userspec (Files): Add lib/userspec.h.
89873         * modules/xstrto
89874
89875         Upgrade from gettext-0.13.
89876         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
89877         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
89878         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
89879
89880 2004-06-10  Jim Meyering  <jim@meyering.net>
89881
89882         * lib/calloc.c: New file.
89883
89884 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
89885
89886         * lib/getdate.y (yylex): Allow space between sign and number.
89887         Problem reported by Dan Jacobson.
89888
89889 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
89890
89891         Merge from coreutils CVS.
89892
89893         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
89894         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
89895         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
89896         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
89897         xstrtol.m4: Fix copyright date and/or serial number.
89898
89899         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
89900         See if we need an fchown replacement.
89901         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
89902         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
89903         and use the replacement function if we detect either defect.
89904
89905         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
89906         gl_UTIMECMP.
89907
89908 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
89909         and  Jim Meyering  <jim@meyering.net>
89910
89911         Merge from coreutils CVS.
89912
89913         * lib/stat-macros.h: New file, with contents from file-type.h
89914         and coreutils' system.h.
89915         * lib/file-type.c: Include "stat-macros.h".
89916         * lib/file-type.h (file_type): Move all macro definitions to new file,
89917         stat-macros.h.
89918
89919         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
89920         Wrap old code with this conditional.
89921         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
89922         function that does not dereference symlinks.
89923         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
89924
89925         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
89926         dependency problems.
89927         (xreadlink): Accept new arg SIZE, for efficiency.
89928         All decls and uses changed.
89929         * lib/xreadlink.h: Include <stddef.h>, for size_t.
89930
89931         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
89932         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
89933
89934         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
89935         sysexits.h.
89936
89937 2004-06-01  Jim Meyering  <jim@meyering.net>
89938
89939         * m4/calloc.m4: New file.
89940
89941 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
89942
89943         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
89944         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
89945         Also, fix a typo in a diagnostic.
89946
89947 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
89948
89949         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
89950         or AC_FUNC_REALLOC.
89951
89952 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
89953
89954         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
89955         macros to be defined.
89956         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
89957         the allocator returns NULL because the requested size is zero.
89958
89959 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
89960
89961         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
89962         var.  Add comment explaining why libc still defines it.  This
89963         merges the following patch from glibc:
89964         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
89965
89966 2004-05-20  Andreas Schwab  <schwab@suse.de>
89967
89968         * m4/free.m4: Replace free if it not known to work, not the other
89969         way round.
89970
89971 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
89972
89973         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
89974         present in glibc since revision 1.1 of this file.
89975         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
89976         obstack_alignment_mask, obstack_alloc, obstack_base,
89977         obstack_blank, obstack_blank_fast, obstack_chunk_size,
89978         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
89979         obstack_grow0, obstack_init, obstack_int_grow,
89980         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
89981         obstack_next_free, obstack_object_size, obstack_ptr_grow,
89982         obstack_ptr_grow_fast, obstack_room): Remove declarations of
89983         nonexistent functions.
89984
89985 2004-05-18  Karl Berry  <karl@gnu.org>
89986
89987         * config/srclist.txt: break link for vasnprintf.c.
89988
89989 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
89990
89991         Port obstack to the AS/400, where pointers are 16 bytes wide and
89992         you cannot cast an integer to a valid pointer.  This patch is
89993         currently waiting to be integrated into glibc; see
89994         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
89995
89996         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
89997         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
89998         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
89999         (struct obstack): temp member is now a union of a pointer and
90000         an integer, instead of an integer.  All integer uses changed.
90001         This does not affect the physical layout of struct obstack,
90002         except on hosts (like the AS/400) where the size or alignment of
90003         void * is greater than that of ptrdiff_t.
90004         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
90005         __STDC__)]: Store temporary in pointer member of union, not
90006         integer member.
90007         * lib/obstack.c: Include <stddef.h>, for offsetof.
90008         (struct fooalign): Remove; it doesn't need a name.
90009         (union fooround): Change double to long double, and add void *.
90010         (DEFAULT_ALIGNMENT): Use offsetof to compute.
90011         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
90012         not a macro.  Hence the values are always int; so remove all
90013         casts-to-int in uses.
90014
90015 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
90016
90017         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
90018         we can get this patch merged into glibc.
90019
90020 2004-05-17  Derek R. Price  <derek@ximbiot.com>
90021             Paul Eggert  <eggert@cs.ucla.edu>
90022
90023         * m4/argp: Depend on alloca.
90024
90025 2004-05-17  Derek R. Price  <derek@ximbiot.com>
90026             Paul Eggert  <eggert@cs.ucla.edu>
90027
90028         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
90029         freecoding.
90030
90031 2004-05-17  Bruno Haible  <bruno@clisp.org>
90032
90033         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
90034         precision that consists of a '.' followed by an empty digit string.
90035         Patch by Tor Lillqvist <tml@iki.fi>.
90036
90037 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
90038
90039         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
90040         for backward compatibility with older code.  We need our own
90041         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
90042         it under some other name, and our alloca.h will define it.
90043
90044 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
90045             Derek Price  <derek@ximbiot.com>
90046
90047         * lib/alloca.c: Include <alloca.h>, to get our interface.
90048         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
90049         include <alloca.h> first.  Use C89 prototype for alloca; this
90050         requires including <stddef.h> for size_t.  Use extern "C" if C++.
90051         Use #elif for simplicity, since we can assume C89 now.
90052         Don't try to source the system alloca.h since it will not be found
90053         and to prevent recursively including its replacement.
90054         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
90055         * lib/regex.c: Likewise.
90056
90057 2004-05-16  Derek Price  <derek@ximbiot.com>
90058             Paul Eggert  <eggert@cs.ucla.edu>
90059
90060         getline cleanup.  This changes the getndelim2 API: both order of
90061         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
90062         no delimiter).
90063
90064         * lib/getline.c: Don't include stddef.h or stdio.h, since our
90065         interface does that.
90066         (getline): Always use getdelim, so that we don't have two
90067         copies of this code.
90068         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
90069         if available.
90070         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
90071         (GETNDELIM2_MAXIMUM): New macro.
90072         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
90073         instead of the old practice of delim2==0.  All callers changed.
90074         Return -1 on overflow, instead of returning junk.
90075         Do not set *linesize unless allocation succeeds.
90076         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
90077         that we include sys/types.h.
90078         * lib/getnline.h: Likewise.
90079         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
90080         (getndelim2): Reorder arguments.
90081         * lib/getnline.c (getnline, getndelim):
90082         Don't discard the NMAX argument.
90083         (getnline): Invoke getndelim, to avoid code duplication.
90084         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
90085         of (size_t) -1 by callers of the getnline family.
90086
90087 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
90088
90089         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
90090         Check for gettimeofday.
90091         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
90092         Check for settimeofday, stime.
90093
90094 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
90095
90096         * lib/nanosleep.c (suspended): Change its type from int to
90097         sig_atomic_t volatile.
90098         (first_call): Make it private to rpl_nanosleep, and have it
90099         be zero initially as that's a bit faster.
90100         (my_usleep): Round up fractional times instead of truncating them,
90101         as this is the usual meaning for 'sleep'.
90102
90103         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
90104         doesn't work.
90105         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
90106         (ENOSYS): Define if not defined.
90107         (settime): Fall back on stime if it exists and settimeofday fails.
90108         But don't bother with fallbacks if a method fails with errno == EPERM.
90109
90110 2004-05-11  Jim Meyering  <jim@meyering.net>
90111
90112         Prior to this change, the save_cwd caller required read access to the
90113         current directory on most systems (ones with the fchdir function).
90114
90115         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
90116         fails, try write-only, and finally, resort to using xgetcwd.
90117
90118 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
90119
90120         * lib/obstack.c, obstack.h: Import changes from libc.
90121
90122 2004-04-28  Bruno Haible  <bruno@clisp.org>
90123
90124         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
90125         also implicitly appends .exe to executables.
90126         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
90127         accepts Windows pathnames.
90128         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
90129         Treat Cygwin like Windows, since it now accepts Windows pathnames.
90130         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
90131         Treat Cygwin like Windows, since it now accepts Windows pathnames.
90132         Reported by Derek Robert Price <derek@ximbiot.com>.
90133
90134 2004-04-21  Karl Berry  <karl@gnu.org>
90135
90136         * config/srclist.txt (localcharset.c): break sync.
90137
90138 2004-04-20  Paul Eggert  <eggert@twinsun.com>
90139
90140         * m4/host-os.m4: Add a copyright notice.
90141
90142 2004-04-20  Jim Meyering  <jim@meyering.net>
90143
90144         Change UTILS_ to gl_ in AC_DEFINE'd names.
90145         Change utils_- and jm_-prefixed variables, too.
90146         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
90147         UTILS_FUNC_MKDIR_TRAILING_SLASH.
90148         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
90149
90150         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
90151         Don't emit trailing blanks.
90152         Also rename jm_-prefixed variables to have gl_ prefix.
90153
90154         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
90155         Also rename jm_-prefixed variables to have gl_ prefix.
90156
90157         * m4/jm-macros.m4: Reflect the renamings.
90158         * m4/prereq.m4: Likewise.
90159
90160 2004-04-20  Jim Meyering  <jim@meyering.net>
90161
90162         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
90163         memory.
90164
90165 2004-04-20  Jim Meyering  <jim@meyering.net>
90166             Bruno Haible  <bruno@clisp.org>
90167
90168         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
90169         memory when realloc fails.
90170
90171 2004-04-19  Jim Meyering  <jim@meyering.net>
90172
90173         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
90174         now that readutmp.c may call `free (0)'.
90175
90176 2004-04-19  Bruno Haible  <bruno@clisp.org>
90177
90178         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
90179         * m4/inttypes_h.m4: Likewise.
90180         * m4/stdint_h.m4: Likewise.
90181         * m4/intmax_t.m4: Likewise.
90182         * m4/uintmax_t.m4: Likewise.
90183
90184 2004-04-18  Jim Meyering  <jim@meyering.net>
90185
90186         * m4/prereq.m4: Don't forbid jm_ prefix.
90187
90188         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
90189         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
90190         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
90191         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
90192         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
90193         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
90194         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
90195         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
90196         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
90197         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
90198         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
90199         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
90200         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
90201         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
90202         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
90203         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
90204         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
90205         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
90206         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
90207
90208 2004-04-18  Jim Meyering  <jim@meyering.net>
90209
90210         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
90211         failure, don't leak memory and do call END_UTMP_ENT.
90212
90213 2004-04-16  Jim Meyering  <jim@meyering.net>
90214
90215         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
90216         coreutils' stat program.
90217         (gl_PREREQ): Don't require jm_PREREQ_STAT.
90218
90219 2004-04-11  Paul Eggert  <eggert@twinsun.com>
90220
90221         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
90222         C89.
90223         (CHAR_BIT): Remove, since we assume C89.
90224         Include <stdint.h> if available, as per current Autoconf CVS advice.
90225
90226 2004-03-31  Jim Meyering  <jim@meyering.net>
90227
90228         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
90229         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
90230         * m4/xalloc.m4: Likewise.
90231
90232 2004-03-30  Paul Eggert  <eggert@twinsun.com>
90233
90234         Merge from coreutils.
90235
90236         * m4/inttostr.m4: New file.
90237         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
90238         Require AM_STDBOOL_H and gl_TIMESPEC instead.
90239         Require gl_CLOCK_TIME.
90240         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
90241
90242 2004-03-30  Paul Eggert  <eggert@twinsun.com>
90243
90244         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
90245         not bool, to be more consistent with Unix conventions.
90246         Suggested by Bruno Haible.
90247
90248         Merge from coreutils.
90249
90250         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
90251         * lib/umaxtostr.c: New files.
90252
90253         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
90254         the usual <time.h> dance.
90255         (get_date): Change signature to support fractional time stamps.
90256         All callers changed.
90257         * lib/getdate.y: Include "getdate.h" first, as we can now
90258         assume C89 and don't need to worry about 'const'.
90259         Similarly, include "unlocked-io.h" near start, not in middle.
90260         Include <limits.h>.
90261         (textint.value): Use long int rather than int.
90262         (textint.digits): Use size_t rather than int.
90263         (BILLION, LOG10_BILLION): New constants.
90264         (parser_control): New member rel_ns.  Members day_ordinal,
90265         time_zone, month, day, hour, minutes, rel_year, rel_month,
90266         rel_day, rel_hour, rel_minutes, rel_seconds
90267         are now long int, not int.  Member seconds is now struct timespec,
90268         not int.  New member timespec_seen.  Members dates_seen, days_seen,
90269         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
90270         not int.
90271         (%union.intval): Now long int, not int.
90272         New member timespec.
90273         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
90274         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
90275         (spec): Now is a timespec or an item list.
90276         (timespec, items): New nonterminals.
90277         (time, rel, relunit, number, get_date):
90278         Add support for fractional seconds.
90279         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
90280         (gmtime, localtime, mktime): Remove decls; not needed with C89.
90281         (to_hour): First arg is now long int, not int.
90282         (to_year): Returns long int, not int.
90283         Don't treat year -70 like 70.
90284         (tm_diff): Returns long int, not int.
90285         (lookup_word): Use bool instead of int when appropriate.
90286         (yylex): Use size_t for count, not int.
90287         Detect overflow when parsing large integer constants.
90288         Add support for fractions.
90289         (get_date): Make pointers 'const' if possible.
90290         Use more-portable code to detect integer overflow.
90291         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
90292         Don't use ctime; it's not reliable if the year has >4 digits.
90293
90294         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
90295         This is for compatibility with BSD.
90296
90297         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
90298         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
90299         From coreutils' system.h.
90300
90301         * lib/userspec.c: Don't include "posixver.h".
90302         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
90303         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
90304         compatible extension.  Simplify code by removing a boolean int
90305         that was always nonzero if a string was nonnull.
90306
90307 2004-03-30  Jim Meyering  <jim@meyering.net>
90308
90309         Merge from coreutils.
90310
90311         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
90312         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
90313         on some systems one must include <grp.h> before it.
90314         Reported by Christian Krackowizer.
90315
90316 2004-03-30  Jim Meyering  <jim@meyering.net>
90317
90318         Merge from coreutils.
90319
90320         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
90321
90322         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
90323         an empty input stream.
90324
90325         * lib/readtokens.c: Include <stdbool.h>.
90326         (readtoken): Use `size_t' rather than int/long.
90327         All callers adjusted.
90328         Use `bool' rather than `int' where appropriate.
90329         Use memset rather than an explicit loop.
90330         Use x2nrealloc rather than xrealloc.
90331         Allow the use of `\0' as a delimiter.
90332         (readtokens): Likewise.
90333         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
90334
90335 2004-03-30  Jim Meyering  <jim@meyering.net>
90336
90337         * m4/realloc.m4: Remove file, since now it does no more than
90338         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
90339         the `configure.ac' section of module/realloc.
90340         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
90341
90342 2004-03-30  Bruno Haible  <bruno@clisp.org>
90343
90344         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
90345         nonnull.
90346
90347 2004-03-29  Paul Eggert  <eggert@twinsun.com>
90348
90349         Merge changes to getloadavg.c from coreutils and Emacs.
90350
90351         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
90352         Define to an expression, not to the empty string.
90353         Include cloexec.h and xalloc.h.
90354         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
90355         Use set_cloexec_flag rather than rolling our own.
90356         * lib/cloexec.c, lib/cloexec.h: New files.
90357
90358 2004-03-29  Paul Eggert  <eggert@twinsun.com>
90359
90360         * m4/cloexec.m4: New file.
90361
90362 2004-03-18  Paul Eggert  <eggert@twinsun.com>
90363
90364         * lib/getopt.h: Sync with libc CVS.
90365
90366 2004-03-18  Paul Eggert  <eggert@twinsun.com>
90367             Bruno Haible  <bruno@clisp.org>
90368
90369         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
90370         mbswidth.
90371
90372 2004-03-18  Paul Eggert  <eggert@twinsun.com>
90373             Bruno Haible  <bruno@clisp.org>
90374
90375         * lib/mbswidth.h: Include <wchar.h> only if
90376         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
90377         <wchar.h>.
90378         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
90379
90380 2004-03-09  Paul Eggert  <eggert@twinsun.com>
90381
90382         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
90383         Sync with libc CVS.
90384         * lib/getopt_int.h: New file, also synced from libc.
90385
90386 2004-03-09  Paul Eggert  <eggert@twinsun.com>
90387
90388         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
90389         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
90390         Bring back getopt.c, getopt.h, getopt1.c.
90391
90392 2004-03-07  Paul Eggert  <eggert@twinsun.com>
90393
90394         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
90395         All uses changed.  Check for sa_sigaction member; this fixes
90396         a bug first reported by Jason Andrade in
90397         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
90398
90399 2004-03-07  Paul Eggert  <eggert@twinsun.com>
90400
90401         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
90402         '#if' expressions.  Unlike the code it replaces, it does not
90403         depend on (defined _SC_PAGESIZE).  However, it does depend on
90404         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
90405         first reported by Jason Andrade in
90406         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
90407
90408 2004-02-25  Simon Josefsson  <jas@extundo.com>
90409
90410         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
90411
90412 2004-02-25  Simon Josefsson  <jas@extundo.com>
90413
90414         * lib/strdup.h: New file.
90415         * lib/strdup.c: Include it.
90416         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
90417         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
90418
90419 2004-02-23  Karl Berry  <karl@gnu.org>
90420
90421         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
90422         (from fencepost.gnu.org:/gd/gnuorg).
90423
90424 2004-02-23  Karl Berry  <karl@gnu.org>
90425
90426         * config/srclistvars.sh (GNUORG) [karl]: redefine.
90427         * config/srclist.txt: add maintain/standards documents.
90428
90429 2004-02-18  Bruno Haible  <bruno@clisp.org>
90430
90431         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
90432         Reported by Derek Robert Price <derek@ximbiot.com>.
90433
90434 2004-02-16  Karl Berry  <karl@gnu.org>
90435
90436         * config/mkinstalldirs, install-sh: update from automake.
90437
90438 2004-02-06  Karl Berry  <karl@gnu.org>
90439
90440         * m4/po.m4: update from gettext 0.14.1.
90441
90442 2004-02-06  Karl Berry  <karl@gnu.org>
90443
90444         * lib/config.charset: update from gettext 0.14.1.
90445
90446 2004-02-05  Paul Eggert  <eggert@twinsun.com>
90447
90448         Add comments and code, prompted by suggestions from Bruno Haible
90449         for sh-quote.
90450         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
90451         describing the enum quoting_style values.
90452         * lib/quotearg.c (quotearg_alloc): New function.
90453         (quotearg_buffer_restyled): Treat lone { and } as special.
90454         Treat = as special.  Work around bug with older shells
90455         that "see" a '\' that is really the 2nd byte of a multibyte char.
90456         Quote empty string with shell_quoting_style.
90457
90458 2004-02-03  Bruno Haible  <bruno@clisp.org>
90459
90460         * m4/pipe.m4: New file, from GNU gettext.
90461
90462 2004-02-03  Bruno Haible  <bruno@clisp.org>
90463
90464         * lib/pipe.h: New file, from GNU gettext.
90465         * lib/pipe.c: New file, from GNU gettext.
90466
90467 2004-01-27  Bruno Haible  <bruno@clisp.org>
90468
90469         * m4/execute.m4: New file, from GNU gettext.
90470
90471 2004-01-27  Bruno Haible  <bruno@clisp.org>
90472
90473         * lib/execute.h: New file, from GNU gettext.
90474         * lib/execute.c: New file, from GNU gettext.
90475         * lib/w32spawn.h: New file, from GNU gettext.
90476
90477 2004-01-24  Paul Eggert  <eggert@twinsun.com>
90478
90479         Merge from diffutils.
90480
90481         * lib/file-type.c (file_type): Add typed memory objects.
90482         * lib/file-type.h (S_TYPEISTMO): New macro.
90483
90484         * lib/c-stack.h (c_stack_action): Remove argv argument.
90485         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
90486         (die): Don't calculate message unless segv_action returns.
90487         (get_stack_location, min_address_from_argv, max_address_from_argv,
90488         volatile stack_base, volatile_stack_size): Remove.
90489         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
90490         that every segmentation violation is a stack overflow.  (Ouch!)
90491         See Debian bug 136249 (still outstanding) for more info about why
90492         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
90493
90494 2004-01-24  Paul Eggert  <eggert@twinsun.com>
90495
90496         Exit-status fix from coreutils.
90497
90498         Use exit_failure consistently in place of EXIT_FAILURE,
90499         so that program exit statuses are consistent on failure.
90500
90501         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
90502         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
90503         * lib/argmatch.h: Comment fix to match the above.
90504         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
90505         Now a macro referring to exit_failure, instead of a separate
90506         variable.  Include "exitfail.h" to get it.
90507         * lib/xstrtol.h: Include "exitfail.h".
90508         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
90509
90510         * lib/long-options.c (parse_long_options): Use prototype
90511         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
90512         for clarity.
90513
90514 2004-01-21  Jim Meyering  <jim@meyering.net>
90515
90516         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
90517         so as not to conflict with a different-sized __mktime_internal
90518         function in GNU libc.
90519         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
90520         Problem building statically-linked `ls' reported by Michael Brunnbauer.
90521
90522 2004-01-20  Karl Berry  <karl@gnu.org>
90523
90524         * config/config.guess: update from config.
90525
90526         * config/srclistvars.sh: GNUWWWLICENSES for karl.
90527
90528 2004-01-20  Bruno Haible  <bruno@clisp.org>
90529
90530         Safer stack allocation.
90531         * lib/setenv.c: Include allocsa.h.
90532         (alloca): Remove fallback definition.
90533         (freea): Remove macro.
90534         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
90535         instead of freea.
90536
90537 2004-01-20  Bruno Haible  <bruno@clisp.org>
90538
90539         * m4/eealloc.m4: New file, from GNU gettext.
90540
90541 2004-01-20  Bruno Haible  <bruno@clisp.org>
90542
90543         * m4/allocsa.m4: New file, from GNU gettext.
90544
90545 2004-01-20  Bruno Haible  <bruno@clisp.org>
90546
90547         * lib/xallocsa.h: New file, from GNU gettext.
90548         * lib/xallocsa.c: New file, from GNU gettext.
90549
90550 2004-01-20  Bruno Haible  <bruno@clisp.org>
90551
90552         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
90553
90554 2004-01-20  Bruno Haible  <bruno@clisp.org>
90555
90556         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
90557         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
90558         specially.
90559
90560 2004-01-20  Bruno Haible  <bruno@clisp.org>
90561
90562         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
90563         patch.
90564
90565 2004-01-20  Bruno Haible  <bruno@clisp.org>
90566
90567         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
90568
90569 2004-01-20  Bruno Haible  <bruno@clisp.org>
90570
90571         * lib/eealloc.h: New file.
90572
90573 2004-01-20  Bruno Haible  <bruno@clisp.org>
90574
90575         * lib/binary-io.h: Avoid warnings on Cygwin.
90576
90577 2004-01-20  Bruno Haible  <bruno@clisp.org>
90578
90579         * lib/allocsa.h: New file, from GNU gettext.
90580         * lib/allocsa.c: New file, from GNU gettext.
90581
90582 2004-01-18  Karl Berry  <karl@gnu.org>
90583
90584         * doc/gpl.texi, doc/lgpl.texi: new files.
90585
90586 2004-01-18  Karl Berry  <karl@gnu.org>
90587
90588         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
90589         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
90590
90591 2004-01-15  Paul Eggert  <eggert@twinsun.com>
90592
90593         Merge from coreutils.
90594
90595         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
90596         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
90597         (gl_DEFAULT_POSIX2_VERSION): Move
90598         the documentation from 'configure' into 'config.hin',
90599         so that 'configure --help' isn't burdened by it and
90600         we don't have to worry about its formatting there.
90601         Reword the documentation so that it's more succinct
90602         and can be run together into a single paragraph.
90603         * m4/same.m4 (gl_SAME): Check for pathconf.
90604
90605 2004-01-15  Paul Eggert  <eggert@twinsun.com>
90606
90607         Merge from coreutils.
90608
90609         * lib/posixver.c: Include posixver.h.
90610
90611         * lib/same.c: Include <stdbool.h>, <limits.h>.
90612         (_POSIX_NAME_MAX): Define if not defined.
90613         (MIN): New macro.
90614         (same_name): If file names are silently truncated, report
90615         that the file names are the same if they are the same after
90616         the silent truncation.
90617
90618         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
90619         conversion function.
90620         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
90621         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
90622         longer needed.
90623
90624 2004-01-15  Jim Meyering  <jim@meyering.net>
90625
90626         Merge from coreutils.
90627
90628         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
90629         if no library is required.
90630         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
90631         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
90632         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
90633         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
90634         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
90635         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
90636         value, $ac_cv_search_crypt, if it's "none required".
90637         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
90638         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
90639         not gl_FUNC_GETLOADAVG.
90640         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
90641         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
90642
90643 2004-01-15  Jim Meyering  <jim@meyering.net>
90644
90645         Merge from coreutils.
90646
90647         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
90648         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
90649         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
90650
90651         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
90652         optional configure-time default.
90653
90654         * lib/version-etc.c (version_etc_copyright): Update copyright date.
90655
90656         * lib/xreadlink.c (xreadlink): Correct outdated comment.
90657
90658 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
90659
90660         Merge from coreutils.
90661
90662         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
90663         value, $ac_cv_search_nanosleep, if it's "none required".
90664
90665 2004-01-14  Paul Eggert  <eggert@twinsun.com>
90666
90667         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
90668         with like-named macro in fnmatch.c.
90669         (EXT): Use an internal constant instead.
90670
90671         Merge fnmatch patches from glibc.
90672         * lib/fnmatch.c (mbsinit): Remove define.
90673         Add libc_hidden_ver (__fnmatch, fnmatch).
90674         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
90675         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
90676
90677 2004-01-14  Karl Berry  <karl@gnu.org>
90678
90679         * config/install-sh: update from automake.
90680
90681 2004-01-13  Karl Berry  <karl@gnu.org>
90682
90683         * config/install-sh: update from automake.
90684
90685 2004-01-09  Karl Berry  <karl@gnu.org>
90686
90687         * config/install-sh: update from automake.
90688
90689 2004-01-05  Karl Berry  <karl@gnu.org>
90690
90691         * config/config.{sub,guess}: update from config.
90692
90693 2003-12-31  Karl Berry  <karl@gnu.org>
90694
90695         * config/depcomp: update from automake.
90696
90697 2003-12-14  Karl Berry  <karl@gnu.org>
90698
90699         * lib/config.charset: update from gettext-runtime.
90700
90701 2003-12-03  Paul Eggert  <eggert@twinsun.com>
90702
90703         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
90704         Bug reported by Alfred M. Szmidt.
90705
90706 2003-12-03  Bruno Haible  <bruno@clisp.org>
90707
90708         * m4/gettext.m4: Upgrade from gettext-0.13.
90709         * m4/po.m4: Upgrade from gettext-0.13.
90710         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
90711         * m4/intmax.m4: New file, from gettext-0.13.
90712         * m4/printf-posix.m4: New file, from gettext-0.13.
90713
90714 2003-11-29  Karl Berry  <karl@gnu.org>
90715
90716         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
90717
90718 2003-11-25  Paul Eggert  <eggert@twinsun.com>
90719             Bruno Haible  <bruno@clisp.org>
90720
90721         * lib/printf-parse.h: Don't include sys/types.h.
90722         (ARG_NONE): New macro.
90723         (char_directive): Change type of *arg_index fields to size_t.
90724         * lib/printf-parse.c: Don't include sys/types.h.
90725         (SSIZE_MAX): Remove macro.
90726         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
90727         Remove unnecessary overflow check.
90728         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
90729         fields.
90730
90731 2003-11-25  Bruno Haible  <bruno@clisp.org>
90732
90733         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
90734
90735 2003-11-25  Bruno Haible  <bruno@clisp.org>
90736
90737         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
90738         gt_TYPE_SSIZE_T.
90739
90740 2003-11-24  Paul Eggert  <eggert@twinsun.com>
90741
90742         * modules/alloca: Remove dependency on xalloc.
90743
90744 2003-11-24  Paul Eggert  <eggert@twinsun.com>
90745
90746         * lib/alloca.c: Remove dependency on xalloc module.
90747         (xalloc_die): Remove.
90748         (memory_full) [!defined emacs]: New macro.
90749         [!defined emacs]: Don't include xalloc.h.
90750         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
90751         address arithmetic overflows.  Change datatypes a bit to avoid
90752         unnecessary casts.
90753
90754 2003-11-22  Jim Meyering  <jim@meyering.net>
90755
90756         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
90757         s/size/size_t/.
90758
90759 2003-11-21  Karl Berry  <karl@gnu.org>
90760
90761         * config/config.{sub,guess}: update from config.
90762
90763 2003-11-18  Karl Berry  <karl@gnu.org>
90764
90765         * config/config.{sub,guess}: update from config.
90766
90767         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
90768
90769 2003-11-17  Paul Eggert  <eggert@twinsun.com>
90770
90771         * README: Mention that S+T cannot overflow if S is the size of
90772         an existing object and T is sufficiently small.
90773
90774 2003-11-17  Jim Meyering  <jim@meyering.net>
90775
90776         On systems without utime and without a utimes function capable of
90777         dealing with a NULL struct utimbuf* argument, this utime replacement
90778         could -- in unusual circumstances -- leak a file descriptor.
90779         * lib/utime.c: Include <unistd.h> and <errno.h>.
90780         (utime_null): Be sure to close `fd' and to preserve errno.
90781         Reported by Geoff Collyer via Arnold Robbins.
90782
90783 2003-11-17  Bruno Haible  <bruno@clisp.org>
90784
90785         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
90786         (Depends-on): Add xsize.
90787
90788 2003-11-17  Bruno Haible  <bruno@clisp.org>
90789
90790         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
90791
90792 2003-11-17  Bruno Haible  <bruno@clisp.org>
90793
90794         * lib/vasnprintf.c (alloca): Remove fallback definition.
90795         (freea): Remove definition.
90796         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
90797         Reported by Paul Eggert.
90798
90799 2003-11-16  Paul Eggert  <eggert@twinsun.com>
90800             Bruno Haible  <bruno@clisp.org>
90801
90802         Protect against address arithmetic overflow.
90803         * lib/printf-args.h: Include stddef.h.
90804         (arguments): Change type of field 'count' to size_t.
90805         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
90806         'unsigned int' where appropriate.
90807         * lib/printf-parse.h: Include sys/types.h.
90808         (char_directive): Change type of *arg_index fields to ssize_t.
90809         (char_directives): Change type of fields 'count', max_*_length to
90810         size_t.
90811         * lib/printf-parse.c: Include sys/types.h and xsize.h.
90812         (SSIZE_MAX): Define fallback value.
90813         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
90814         instead of 'int' where appropriate. Check a_allocated, d_allocated
90815         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
90816         * lib/vasnprintf.c: Include xsize.h.
90817         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
90818         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
90819         overflow. Avoid wraparound when converting a width or precision from
90820         decimal to binary.
90821
90822 2003-11-16  Bruno Haible  <bruno@clisp.org>
90823
90824         Update from GNU gettext.
90825         * lib/printf-parse.c: Generalize to it can be compiled for wide
90826         strings.
90827         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
90828         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
90829         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
90830         SNPRINTF): New macros.
90831         Don't include <alloca.h> if the file is used inside libintl.
90832         (local_wcslen): New function, for Solaris 2.5.1.
90833         (VASNPRINTF): Use it instead of wcslen.
90834
90835 2003-11-16  Bruno Haible  <bruno@clisp.org>
90836
90837         * lib/xsize.h (xmax): New function.
90838         (xsum, xsum3, xsum4): Declare as "pure" functions.
90839
90840 2003-11-12  Paul Eggert  <eggert@twinsun.com>
90841
90842         * modules/xalloc (Files): Undo latest change, since xalloc.h
90843         no longer needs SIZE_MAX or PTRDIFF_MAX.
90844
90845 2003-11-12  Paul Eggert  <eggert@twinsun.com>
90846
90847         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
90848         gl_PTRDIFF_MAX.
90849
90850 2003-11-12  Paul Eggert  <eggert@twinsun.com>
90851
90852         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
90853         "return", to pacify some unknown compiler.  Problem reported
90854         by Joerg Schilling.
90855
90856 2003-11-12  Paul Eggert  <eggert@twinsun.com>
90857
90858         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
90859         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
90860         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
90861         heuristic is just as accurate as far as we know, and it removes a
90862         dependency on size_max.m4 and ptrdiff_max.m4.
90863
90864 2003-11-11  Bruno Haible  <bruno@clisp.org>
90865
90866         * modules/xsize (Files): Add m4/size_max.m4.
90867         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
90868
90869 2003-11-11  Bruno Haible  <bruno@clisp.org>
90870
90871         * m4/size_max.m4: New file.
90872         * m4/ptrdiff_max.m4: New file.
90873         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
90874         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
90875         (gl_XALLOC): Invoke it.
90876
90877 2003-11-11  Bruno Haible  <bruno@clisp.org>
90878
90879         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
90880         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
90881         defined.
90882
90883 2003-11-10  Paul Eggert  <eggert@twinsun.com>
90884
90885         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
90886         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
90887         rejected some allocations of exactly SIZE_MAX - 2 bytes.
90888         From Bruno Haible.
90889         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
90890         not (size_t) -1, since it's defined here.
90891
90892 2003-11-09  Karl Berry  <karl@gnu.org>
90893
90894         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
90895
90896 2003-11-06  Paul Eggert  <eggert@twinsun.com>
90897
90898         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
90899         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
90900         Reject sizes of exactly SIZE_MAX bytes.
90901         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
90902         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
90903
90904 2003-11-05  Bruno Haible  <bruno@clisp.org>
90905
90906         * lib/xsize.h: Include limits.h, to avoid a possible collision with
90907         SIZE_MAX defined in <limits.h> on Solaris.
90908
90909 2003-11-04  Jim Meyering  <jim@meyering.net>
90910
90911         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
90912         variable names, rather than @VAR@.
90913         * modules/poll: Likewise.
90914
90915 2003-11-04  Bruno Haible  <bruno@clisp.org>
90916
90917         * modules/xsize: New file.
90918         * modules/linebreak: Depend on xsize.
90919         * MODULES.html.sh (func_all_modules): Add xsize.
90920
90921 2003-11-04  Bruno Haible  <bruno@clisp.org>
90922
90923         * m4/xsize.m4: New file.
90924
90925 2003-11-04  Bruno Haible  <bruno@clisp.org>
90926
90927         * lib/xsize.h: New file.
90928         * lib/linebreak.c: Include xsize.h.
90929         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
90930         argument for overflow.
90931         Suggested by Paul Eggert.
90932
90933 2003-11-03  Karl Berry  <karl@gnu.org>
90934
90935         * config/config.{guess,sub}: update from config.
90936
90937 2003-11-03  Jim Meyering  <jim@meyering.net>
90938
90939         * modules/userspec (lib_SOURCES): Add userspec.h.
90940         (Include): Add "userspec.h".
90941         Improve description.
90942
90943 2003-11-03  Jim Meyering  <jim@meyering.net>
90944
90945         * lib/userspec.c: Include "userspec.h".
90946         * lib/userspec.h: New file.
90947
90948 2003-11-03  Bruno Haible  <bruno@clisp.org>
90949
90950         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
90951
90952 2003-11-03  Bruno Haible  <bruno@clisp.org>
90953
90954         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
90955         available, to avoid (extremely rare) race condition.
90956         Suggested by Paul Eggert.
90957
90958 2003-11-02  Karl Berry  <karl@gnu.org>
90959
90960         * config/srclist.txt (vasprintf.c): sync broken, sigh.
90961
90962 2003-10-31  Paul Eggert  <eggert@twinsun.com>
90963
90964         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
90965         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
90966         (read_filesystem_list): Set and use me_type_malloced.
90967         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
90968         whatever the type happens to be), for brevity and consistency.
90969         Check for size calculation overflow on Alphas running OSF/1.
90970
90971 2003-10-31  Jim Meyering  <jim@meyering.net>
90972
90973         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
90974
90975         * lib/linebuffer.c: Include <string.h> for declaration of memset.
90976
90977 2003-10-30  Paul Eggert  <eggert@twinsun.com>
90978             Bruno Haible  <bruno@clisp.org>
90979
90980         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
90981         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
90982
90983 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
90984
90985         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
90986         netbsd*-gnu*.  Suggested by Robert Millan.
90987
90988 2003-10-29  Paul Eggert  <eggert@twinsun.com>
90989
90990         * modules/group-member: Depend on stdbool.
90991
90992 2003-10-29  Paul Eggert  <eggert@twinsun.com>
90993
90994         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
90995
90996 2003-10-29  Paul Eggert  <eggert@twinsun.com>
90997
90998         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
90999         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
91000         after the 'gnu' in these cases.  This fixes some bugs in the
91001         previous change, and is based on suggestions by Robert Millan.
91002
91003 2003-10-29  Paul Eggert  <eggert@twinsun.com>
91004
91005         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
91006         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
91007         no longer needed.
91008         * lib/quotearg.c (quotearg_n_options): Use it.
91009         * lib/group-member.c: Include <stdbool.h>.
91010         (free_group_info): Arg is now const *; don't free arg.
91011         (get_group_info): Now returns bool and accepts struct group_info *,
91012         rather than returning a malloc'ed struct group_info *.
91013         All uses changed.  Check for overflow in internal size calculation.
91014
91015         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
91016         rather than xmalloc/xrealloc.
91017         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
91018         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
91019         conformance bug: the old code used a pointer after freeing the
91020         storage that it addressed.
91021         * lib/hash.c (hash_initialize): Simplify the code by using
91022         xalloc_oversized rather than doing it by hand.
91023         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
91024         the buffer preserved.  Use free and xmalloc instead.
91025         * lib/quotearg.c (quotearg_n_options): Likewise.
91026         Use a simpler test for size overflow.  Don't use xalloc_oversized
91027         because unsigned int might be wider than size_t (!); this suggests
91028         that we should switch from unsigned int to size_t for slot numbers.
91029
91030 2003-10-28  Paul Eggert  <eggert@twinsun.com>
91031
91032         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
91033         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
91034         NetBSD kernels.  Requested by Richard Stallman.
91035
91036 2003-10-27  Paul Eggert  <eggert@twinsun.com>
91037
91038         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
91039         to allocate the returned structure.  Do not allocate a subarray,
91040         as x2nrealloc will do that.
91041         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
91042         instead of xnrealloc.
91043         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
91044
91045 2003-10-27  Bruno Haible  <bruno@clisp.org>
91046
91047         * lib/stdbool_.h: Better support for BeOS.
91048
91049 2003-10-26  Paul Eggert  <eggert@twinsun.com>
91050
91051         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
91052         now uses inline.
91053
91054 2003-10-26  Paul Eggert  <eggert@twinsun.com>
91055
91056         * lib/xalloc.h (xalloc_oversized): New static inline function, for
91057         callers that want to do their own size-overflow checking.  Include
91058         <stdbool.h>, since xalloc_oversized returns bool.
91059         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
91060         to use xalloc_oversized.
91061
91062         Add two functions x2realloc, x2nrealloc, for programs that grow
91063         arrays dynamically by doubling their sizes.
91064         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
91065         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
91066         New functions.
91067
91068         Port to C99 semantics for 'inline' of external functions.
91069         Bug reported by Bruno Haible.
91070         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
91071         with the old contents of xnmalloc.
91072         (xnmalloc, xmalloc): Use it.
91073         (xnrealloc_inline): New static inline function,
91074         with the old contents of xnrealloc.
91075         (xnrealloc, xrealloc): Use it.
91076
91077         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
91078         that.
91079
91080 2003-10-26  Karl Berry  <karl@gnu.org>
91081
91082         * config/srclist.txt (COPYING.DOC): no longer available from
91083         /gd/gnuorg; don't know where the ultimate source is.
91084
91085 2003-10-25  Paul Eggert  <eggert@twinsun.com>
91086
91087         Fix several address-calculation bugs in the hash modules,
91088         plus some minor code cleanup.
91089
91090         * lib/hash.h: Include <stdbool.h>, for bool.
91091         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
91092         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
91093         hash_get_n_entries, hash_get_max_bucket_length,
91094         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
91095         hash_rehash): Use size_t rather than unsigned.
91096         * lib/hash.c (struct hash_table, hash_get_n_buckets,
91097         hash_get_n_buckets_used, hash_get_n_entries,
91098         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
91099         hash_get_entries, hash_do_for_each, hash_string, is_prime,
91100         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
91101         Likewise.
91102         (SIZE_MAX): Define if not defined.
91103         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
91104         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
91105         hash_print):
91106         Use const * when possible.
91107         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
91108         (check_tuning): Fix bug: if tuning parameters were very close to
91109         0 or 1, rounding errors could have caused subscript violations.
91110         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
91111         (hash_initialize): Add 'fail:' label
91112         to free table and return NULL, and use it to simplify code.
91113         Use calloc rather than clearing the storage ourself.
91114         (hash_initialize, hash_rehash): Check for arithmetic overflow in
91115         buffer size calculations.
91116         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
91117         Include <stddef.h>, for size_t.
91118         * lib/hash-pjw.c (hash_pjw): Likewise.
91119         Switch to method described by Bruno Haible.
91120         Include <limits.h>, for CHAR_BIT.
91121         (SIZE_BITS): New macro.
91122
91123 2003-10-23  Paul Eggert  <eggert@twinsun.com>
91124
91125         * m4/getline.m4 (AM_FUNC_GETLINE):
91126         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
91127         hosts.  Problem reported by Derek Robert Price in
91128         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
91129         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
91130         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
91131
91132 2003-10-21  Paul Eggert  <eggert@twinsun.com>
91133
91134         * lib/getndelim2.c (getndelim2): When size calculation overflows,
91135         ceiling the allocation at NMAX bytes rather than silently
91136         discarding input bytes before NMAX is reached.  This makes
91137         a difference only if NMAX exceeds SIZE_MAX / 2.
91138
91139         * lib/obstack.c: Merge from glibc.
91140         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
91141         Add libc_hidden_def (_obstack_newchunk).
91142         (_obstack_free) [! defined _LIBC]: Remove.
91143         [defined _LIBC]: Make a strong alias from obstack_free, rather than
91144         a clone of the function body.
91145         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
91146         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
91147
91148         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
91149         glibc.
91150         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
91151         arg to memcpy.
91152
91153         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
91154         (obstack_ptr_grow_fast, obstack_int_grow_fast):
91155         Don't use lvalue casts, as GCC plans to remove support for them
91156         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
91157         was also present in the non-GCC version, indicating that this
91158         code had always been buggy and had never been widely used.
91159         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
91160         Use the fast variant of each macro, rather than copying the
91161         definiens of the fast variant; that way, we'll be more likely to
91162         catch future bugs in the fast variants.
91163
91164 2003-10-20  Bruno Haible  <bruno@clisp.org>
91165
91166         * modules/wait-process: New file.
91167         * MODULES.html.sh (func_all_modules): Add wait-process.
91168
91169 2003-10-20  Bruno Haible  <bruno@clisp.org>
91170
91171         * m4/wait-process.m4: New file.
91172
91173 2003-10-20  Bruno Haible  <bruno@clisp.org>
91174
91175         * lib/wait-process.h: New file, from GNU gettext.
91176         * lib/wait-process.c: New file, from GNU gettext.
91177
91178 2003-10-19  Jim Meyering  <jim@meyering.net>
91179
91180         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
91181         HPUX 10.20.
91182
91183 2003-10-18  Karl Berry  <karl@gnu.org>
91184
91185         * config/config.guess: update from config.
91186
91187 2003-10-16  Paul Eggert  <eggert@twinsun.com>
91188
91189         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
91190         (getgroups): First arg is int, not size_t.
91191         Don't let 'free' mangle errno.
91192
91193 2003-10-16  Paul Eggert  <eggert@twinsun.com>
91194
91195         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
91196
91197 2003-10-16  Karl Berry  <karl@gnu.org>
91198
91199         * config/config.{guess,sub}: update from config.
91200
91201 2003-10-16  Jim Meyering  <jim@meyering.net>
91202
91203         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
91204         memcpy.
91205
91206 2003-10-15  Paul Eggert  <eggert@twinsun.com>
91207
91208         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
91209         (SIZE_MAX): Remove.
91210         (new_exclude, add_exclude_file): Initial size no longer needs to
91211         be a power of 2.
91212         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
91213         our own address arithmetic overflow checking.
91214
91215         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
91216         (fnmatch): Do not alloca more than 2000 wide characters;
91217         instead, use malloc for large buffers.
91218         Check for address arithmetic overflow, and return -1
91219         with errno set to ENOMEM in that case.
91220         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
91221         (NEW_PATTERN): Do not alloca more than 8000 bytes;
91222         instead, return -1.  Check for address arithmetic overflow.
91223
91224 2003-10-14  Paul Eggert  <eggert@twinsun.com>
91225
91226         Handle invalid suffixes and overflow independently, so that
91227         callers can treat them independently as needed.  Fix some bugs in
91228         suffix handling, e.g., "100k@" was not diagnosed as an invalid
91229         suffix for a human-readable blocksize.  The major caller-visible
91230         change is the addition of a new
91231         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
91232         that both overflow and suffix chars were found.
91233
91234         * lib/human.c (humblock): Don't check separately for invalid suffix
91235         char; that is xstrtoumax's job (now that its bug is fixed).
91236         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
91237         INTMAX_MAX]: New macros.
91238         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
91239         TYPE_MAXIMUM): New macros.
91240         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
91241         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
91242         if overflow occurs, as it's what __strtol does and it's more useful
91243         in practice.
91244         (__xstrtol): If __strtol reports some error other than ERANGE,
91245         reflect it to the caller as LONGINT_INVALID.  If it reports
91246         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
91247         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
91248         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
91249         value.
91250         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
91251         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
91252         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
91253         [defined UINTMAX_MAX]: New macros.
91254
91255 2003-10-14  Bruno Haible  <bruno@clisp.org>
91256
91257         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
91258
91259 2003-10-14  Bruno Haible  <bruno@clisp.org>
91260
91261         * m4/sig_atomic_t: New file, from GNU gettext.
91262         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
91263
91264 2003-10-14  Bruno Haible  <bruno@clisp.org>
91265
91266         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
91267         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
91268         Also use volatile where needed.
91269
91270 2003-10-12  Paul Eggert  <eggert@twinsun.com>
91271
91272         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
91273         Change maintainer from Bruno Haible to 'all'.
91274
91275 2003-10-12  Paul Eggert  <eggert@twinsun.com>
91276
91277         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
91278
91279 2003-10-12  Paul Eggert  <eggert@twinsun.com>
91280
91281         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
91282         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
91283         and define in terms of the other primitives.
91284         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
91285         (SIZE_MAX): Define if not already defined.
91286         (array_size_overflow): New function.
91287         (xalloc_die): Abort instead of exiting if 'error' returns.
91288         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
91289         (xmalloc, xrealloc): Use them.
91290         (xcalloc): Check for address arithmetic overflow.
91291         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
91292         a bit faster than strcpy.
91293
91294 2003-10-10  Simon Josefsson  <jas@extundo.com>
91295
91296         * modules/argp (Depends-on): Add restrict and strcase.
91297
91298 2003-10-10  Simon Josefsson  <jas@extundo.com>
91299
91300         * m4/argp.m4: Add AC_C_INLINE.
91301
91302 2003-10-08  Paul Eggert  <eggert@twinsun.com>
91303
91304         Merge getpass from libc, plus a few fixes.
91305
91306         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
91307         Include <stdbool.h>.
91308         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
91309         __fsetlocking to empty.
91310         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
91311         do include <bits/libc-lock.h>.
91312         Do not include <fcntl.h>; not needed.
91313         [_LIBC]: Include <wchar.h>.
91314         (NOTCANCEL_MODE): New macro.
91315         (flockfile, funlockfile) [_LIBC]: New macros.
91316         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
91317         [!_LIBC]: New macros.
91318         (call_fclose): New function.
91319         (getpass): Use it.  Save tty stream separately; this simplifies the
91320         code and makes it more reliable if stdin happens to equal stdout.
91321         Invoke __fsetlocking on tty.
91322         Handle thread cancellation if needed.
91323         Namespace cleanup (use __tcgetattr, __getline).
91324         Use bool for Booleans.
91325         [USE_IN_LIBIO]: Handle wide streams.
91326         [!_LIBC]: Unconditionally do the fseek, since we don't know what
91327         stream might go where.
91328
91329         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
91330         doesn't have to include <stdio.h> before us.
91331         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
91332         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
91333         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
91334         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
91335         if not declared, so that we can use getpass.c code from libc without
91336         rewriting it.
91337         (flockfile, ftrylockfile, funlockfile): New macros.
91338
91339 2003-10-08  Paul Eggert  <eggert@twinsun.com>
91340
91341         * modules/getpass: Depend on stdbool.
91342
91343 2003-10-08  Paul Eggert  <eggert@twinsun.com>
91344
91345         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
91346
91347 2003-10-07  Karl Berry  <karl@gnu.org>
91348
91349         * config/config.{guess,sub}: update from config.
91350
91351 2003-10-06  Jim Meyering  <jim@meyering.net>
91352             Bruno Haible  <bruno@clisp.org>
91353
91354         This lets translators provide better translations for the
91355         "Written by ..." part of --version output.
91356         * lib/version-etc.h: Include stdarg.h.
91357         (version_etc_copyright): Declare as readonly.
91358         (version_etc): Make this function variadic with a NULL-terminated list
91359         of author name strings.
91360         (version_etc_va): New declaration.
91361         * lib/version-etc.c: Include stdarg.h, stdlib.h.
91362         (version_etc_copyright): Declare as readonly.
91363         (version_etc_va): New function. Provide a different translatable string
91364         for each possible number of authors < 10. Abbreviate when there are 10
91365         authors or more.
91366         (version_etc): Make this function variadic. Call version_etc_va.
91367         Suggestion from Gary V. Vaughan.
91368
91369         * lib/long-options.h (parse_long_options): Change prototype: the
91370         authors string is moved to the end and becomes variadic.
91371         * lib/long-options.c: Include stdarg.h.
91372         (parse_long_options): Make this function variadic, too.
91373         Call version_etc_va, not version_etc.
91374
91375 2003-10-06  Bruno Haible  <bruno@clisp.org>
91376
91377         * modules/version-etc-2: Remove file.
91378         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
91379
91380 2003-10-06  Bruno Haible  <bruno@clisp.org>
91381
91382         * modules/fatal-signal: New file.
91383         * MODULES.html.sh (func_all_modules): Add fatal-signal.
91384
91385 2003-10-06  Bruno Haible  <bruno@clisp.org>
91386
91387         * m4/fatal-signal.m4: New file.
91388         * m4/signalblocking.m4: New file, from GNU gettext.
91389
91390 2003-10-06  Bruno Haible  <bruno@clisp.org>
91391
91392         * lib/version-etc-2.h: Remove file.
91393         * lib/version-etc-2.c: Remove file.
91394
91395 2003-10-06  Bruno Haible  <bruno@clisp.org>
91396
91397         * lib/fatal-signal.h: New file, from GNU gettext.
91398         * lib/fatal-signal.c: New file, from GNU gettext.
91399
91400 2003-10-05  Paul Eggert  <eggert@twinsun.com>
91401
91402         * README: Rework advice for preventing empty .o files.
91403         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
91404         not <sys/types.h>.
91405
91406 2003-10-04  Karl Berry  <karl@gnu.org>
91407
91408         * lib/argp*: update from libc.
91409
91410 2003-10-04  Karl Berry  <karl@gnu.org>
91411
91412         * config/config.{guess,sub}: update from config.
91413
91414 2003-10-02  Bruno Haible  <bruno@clisp.org>
91415
91416         * modules/lchown (Include): Add lchown.h.
91417         * modules/time_r (Include): Use "..." syntax.
91418         * modules/xgetdomainname (Include): Add xgetdomainname.h.
91419
91420 2003-10-01  Simon Josefsson  <jas@extundo.com>
91421
91422         * MODULES.html.sh (func_all_modules): Move gethostname from section
91423         'based on' to section 'lacking' POSIX:2001.
91424
91425 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
91426
91427         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
91428         to output mode on the same stream.
91429
91430 2003-09-29  Paul Eggert  <eggert@twinsun.com>
91431
91432         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
91433         Fix arg typo in previous patch.
91434
91435 2003-09-28  Jim Meyering  <jim@meyering.net>
91436
91437         * lib/error.c: Correct cpp indentation.
91438
91439 2003-09-27  Paul Eggert  <eggert@twinsun.com>
91440
91441         * modules/free: New file.
91442
91443 2003-09-27  Paul Eggert  <eggert@twinsun.com>
91444
91445         * m4/free.m4: New file.
91446
91447 2003-09-27  Paul Eggert  <eggert@twinsun.com>
91448
91449         * lib/minmax.h (MIN, MAX)
91450         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
91451         Omit the special code that used __typeof__, since we worry that
91452         it could be more trouble than it's worth.  See:
91453         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
91454         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
91455
91456         * lib/free.c: New file.
91457
91458 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
91459
91460         Trivial fixes to Makefile.am parts of module listings.
91461         * modules/strstr: Append strstr.h to lib_SOURCES.
91462         * modules/strcase: Likewise, for strcase.h.
91463
91464 2003-09-27  Karl Berry  <karl@gnu.org>
91465
91466         * config/mkinstalldirs: update from automake.
91467
91468 2003-09-26  Paul Eggert  <eggert@twinsun.com>
91469
91470         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
91471         (error_tail): Do not loop, reallocating temporary buffer, since
91472         the output cannot contain more wide characters than the input
91473         contains bytes, the size must be big enough already.  This avoids
91474         one potential size overflow calculation.  Check for size overflow
91475         when calculating temporary buffer size.  Free temporary buffer
91476         when done, if it was allocated with malloc; this plugs a memory
91477         leak.  Remove casts from void * to pointers, that are no longer
91478         needed now that we're assuming C89 or better.
91479
91480         Merge error changes from glibc.
91481
91482         * lib/error.c, error.h: Update copyright notice header to match glibc.
91483         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
91484         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
91485         Disable cancellation while printing error.
91486         * lib/error.h: Prepend __ to parameter names.
91487
91488 2003-09-26  Jim Meyering  <jim@meyering.net>
91489
91490         * lib/error.c (error_tail): Move some declarations
91491         into inner scope where the local variables are used.
91492
91493 2003-09-26  Bruno Haible  <bruno@clisp.org>
91494
91495         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
91496         stpncpy().
91497         Don't define stpncpy through config.h; it's now done through stpncpy.h.
91498
91499 2003-09-26  Bruno Haible  <bruno@clisp.org>
91500
91501         * lib/stpncpy.h (gnu_stpncpy): New declaration.
91502         (stpncpy): Define as alias for gnu_stpncpy.
91503         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
91504
91505 2003-09-25  Simon Josefsson  <jas@extundo.com>
91506
91507         * lib/xgetdomainname.h: New file.
91508         * lib/xgetdomainname.c: New file.
91509
91510 2003-09-25  Simon Josefsson  <jas@extundo.com>
91511             Bruno Haible  <bruno@clisp.org>
91512
91513         * modules/getdomainname: New file.
91514         * modules/xgetdomainname: New file.
91515         * MODULES.html.sh (func_all_modules): Add getdomainname,
91516         xgetdomainname.
91517
91518 2003-09-25  Simon Josefsson  <jas@extundo.com>
91519             Bruno Haible  <bruno@clisp.org>
91520
91521         * m4/getdomainname.m4: New file.
91522
91523 2003-09-25  Simon Josefsson  <jas@extundo.com>
91524             Bruno Haible  <bruno@clisp.org>
91525
91526         * lib/getdomainname.h: New file.
91527         * lib/getdomainname.c: New file.
91528
91529 2003-09-25  Karl Berry  <karl@gnu.org>
91530
91531         * lib/argp-fmtstream.c, argp-help.c: update from libc.
91532
91533 2003-09-25  Karl Berry  <karl@gnu.org>
91534
91535         * config/install-sh: update from automake.
91536
91537 2003-09-25  Bruno Haible  <bruno@clisp.org>
91538
91539         * modules/version-etc-2: New file, from modules/version-etc with
91540         modifications.
91541         * MODULES.html.sh (func_all_modules): Add version-etc-2.
91542
91543 2003-09-25  Bruno Haible  <bruno@clisp.org>
91544
91545         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
91546         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
91547
91548 2003-09-24  Simon Josefsson  <jas@extundo.com>
91549
91550         * modules/xgethostname: Add xgethostname.h.
91551
91552 2003-09-24  Paul Eggert  <eggert@twinsun.com>
91553
91554         * lib/linebuffer.c (freebuffer): Don't free the argument, just
91555         the buffer associated with the argument.  Bug reported by
91556         Simon Josefsson.
91557
91558 2003-09-24  Paul Eggert  <eggert@twinsun.com>
91559
91560         * README: Document assumptions that 'int' is at least 32 bits
91561         wide, that integer arithmetic is 2's complement without overflow,
91562         that there are no holes in integer values, that adding sizes of
91563         two nonoverlapping objects can't overflow, and that all-bits-zero
91564         yields scalar zero.  Fix spelling and capitalization typos.
91565
91566 2003-09-19  Karl Berry  <karl@gnu.org>
91567
91568         * lib/argp.h: update from libc.
91569
91570 2003-09-17  Paul Eggert  <eggert@twinsun.com>
91571
91572         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
91573         to avoid spurious warnings like "AC_RUN_IFELSE was called before
91574         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
91575
91576 2003-09-17  Paul Eggert  <eggert@twinsun.com>
91577
91578         * gnulib-tool: Use "test -h", not "test -L", for portability
91579         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
91580         (tags_regexp): Remove, since \| doesn't conform to POSIX.
91581         (sed_extract_prog): Issue s commands one-by-one, rather than
91582         using \| in one s command.
91583
91584 2003-09-16  Paul Eggert  <eggert@twinsun.com>
91585
91586         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
91587         input error, instead of returning NULL the next time we are called
91588         (and therefore losing track of errno).
91589
91590 2003-09-16  Bruno Haible  <bruno@clisp.org>
91591
91592         * gnulib-tool (func_create_testdir): Warn about duplicated
91593         dependencies.
91594
91595 2003-09-15  Paul Eggert  <eggert@twinsun.com>
91596
91597         * modules/argmatch, modules/fatal, modules/obstack,
91598         modules/xalloc, modules/xgethostname: Sort dependencies by
91599         importance, not alphabetically.
91600
91601 2003-09-15  Paul Eggert  <eggert@twinsun.com>
91602
91603         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
91604         fails, so that the caller gets the proper errno.
91605
91606         * lib/readutmp.c (read_utmp): Likewise.
91607         Check for fstat error.  Close stream and free storage
91608         when failing.
91609
91610 2003-09-14  Karl Berry  <karl@gnu.org>
91611
91612         * config/srclist.txt (strdup.c): disable for c89 changes.
91613
91614 2003-09-14  Jim Meyering  <jim@meyering.net>
91615
91616         * lib/getloadavg.c: Correct cpp indentation.
91617         * lib/strdup.c: Likewise.
91618         * lib/vasnprintf.c: Likewise.
91619
91620 2003-09-14  Bruno Haible  <bruno@clisp.org>
91621
91622         * modules/fwriteerror: New file.
91623         * MODULES.html.sh (func_all_modules): Add fwriteerror.
91624
91625 2003-09-14  Bruno Haible  <bruno@clisp.org>
91626
91627         * lib/fwriteerror.h: New file.
91628         * lib/fwriteerror.c: New file.
91629
91630 2003-09-12  Paul Eggert  <eggert@twinsun.com>
91631
91632         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
91633         modules/xgethostname, modules/xalloc: Depend on exit.
91634
91635 2003-09-12  Paul Eggert  <eggert@twinsun.com>
91636
91637         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
91638
91639         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
91640         and AC_MINIX, too, so that their extensions are available.
91641
91642         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
91643         This macro has been superseded by gl_BACKUPFILE.
91644
91645         More patches to assume C89 or better.
91646
91647         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
91648
91649         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
91650         unconditionally.
91651         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
91652         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
91653         Include <string.h>, <stdlib.h> unconditionally.
91654         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
91655         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
91656         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
91657         headers or for string.h.
91658         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
91659         or strtoul.
91660
91661         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
91662         headers.
91663         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
91664         * m4/userspec.m4 (gl_USERSPEC): Likewise.
91665         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
91666         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
91667         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
91668         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
91669         memcpy, memset.
91670         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
91671         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
91672         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
91673         strtol.
91674         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
91675         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
91676         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
91677         strtoul.
91678
91679 2003-09-12  Paul Eggert  <eggert@twinsun.com>
91680
91681         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
91682         * lib/obstack.c [!defined _LIBC]: Likewise.
91683         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
91684         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
91685         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
91686
91687         More changes to assume C89 or better.
91688
91689         * lib/error.c (error_tail): Assume vprintf.
91690
91691         * lib/argmatch.c (getenv): Remove decl.
91692         * lib/progreloc.c (get_full_program_name): Define via prototype.
91693         * lib/setenv.c (clearenv): Likewise.
91694         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
91695         needed.
91696         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
91697         (malloc, memcpy): Remove decls.
91698         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
91699         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
91700         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
91701         (memcpy): Remove macro.
91702         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
91703         (__P): Remove.  All uses removed.
91704         (PTR): Remove.  All uses changed to void *.
91705         (CHAR_BIT, NULL): Remove.
91706         (spaces, zeros, memset_space, memset_zero)
91707         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
91708         Remove.
91709         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
91710         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
91711         Define with prototype.
91712         Remove now-unnecessary prototype decl.
91713         (extra_args_spec): Assume ANSI C.  All uses changed.
91714         (extra_args_spec_iso): Remove.
91715         (my_strftime, emacs_strftimeu): Define via prototype.
91716         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
91717         unconditionally.
91718         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
91719         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
91720         (strtoul, strtol): Remove decls.
91721         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
91722         LONG_MAX): Remove.
91723         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
91724         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
91725         (LOCALE_PARAM_PROTO): New macro.
91726         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
91727         (INTERNAL (strtol), strtol): Define with a prototype.
91728         (PARAMS): Remove.  All uses removed.
91729         * lib/tempname.c: Include <string.h> unconditionally.
91730         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
91731         * lib/xgethostname.c (main): Define with a prototype.
91732         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
91733         Include <stdlib.h> unconditionally.
91734         (calloc, malloc, realloc, free): Remove decls.
91735         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
91736         Include <stdlib.h> unconditionally.  Sort include file names.
91737         (strtod): Remove.
91738         (xstrtod): Define with a prototype.
91739         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
91740         (strtol, strtoul): Remove decls.
91741
91742 2003-09-11  Paul Eggert  <eggert@twinsun.com>
91743
91744         More patches to assume C89 or better.
91745         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
91746         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
91747         string.h, memchr, STDC_HEADERS.
91748
91749 2003-09-11  Paul Eggert  <eggert@twinsun.com>
91750
91751         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
91752         Include <stdlib.h>, <string.h> unconditionally.
91753         Remove now-unnecessary cast to char *.
91754         * lib/strnlen.c: Include <string.h> unconditionally.
91755         * lib/yesno.c (yesno): Define with a prototype.
91756
91757 2003-09-11  Bruno Haible  <bruno@clisp.org>
91758
91759         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
91760
91761 2003-09-10  Jim Meyering  <jim@meyering.net>
91762
91763         * lib/error.c: Correct indentation of cpp directives.
91764
91765 2003-09-10  Bruno Haible  <bruno@clisp.org>
91766
91767         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
91768         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
91769         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
91770         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
91771         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
91772         <stdlib.h> and <string.h> checks.
91773         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
91774         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
91775
91776 2003-09-10  Bruno Haible  <bruno@clisp.org>
91777
91778         * lib/strcspn.c: Include <string.h> unconditionally.
91779         * lib/strpbrk.c: Include <string.h> unconditionally.
91780         * lib/strstr.c: Include <string.h> unconditionally.
91781         * lib/unicodeio.c: Include <string.h> unconditionally.
91782         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
91783         * lib/unsetenv.c: Likewise.
91784         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
91785         * lib/yesno.c: Include <stdlib.h> unconditionally.
91786         (rpmatch): Add prototype.
91787
91788 2003-09-09  Paul Eggert  <eggert@twinsun.com>
91789
91790         More patches to assume C89 or better.
91791         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
91792         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
91793         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
91794         or for string.h.
91795         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
91796         stdlib.h.
91797         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
91798         C headers.
91799         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
91800         string.h.
91801         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
91802         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
91803         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
91804         or for string.h.
91805         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
91806         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
91807         C headers.
91808         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
91809         memcpy.
91810         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
91811         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
91812         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
91813         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
91814         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
91815         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
91816         string.h, free.
91817         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
91818         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
91819         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
91820         C headers, or for string.h.
91821         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
91822         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
91823         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
91824         headers, memory.h, stdlib.h, string.h, strings.h.
91825         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
91826         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
91827         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
91828         strchr.
91829         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
91830         headers, memory.h, string.h.
91831         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
91832         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
91833         free.
91834         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
91835         headers.
91836         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
91837         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
91838         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
91839         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
91840         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
91841
91842 2003-09-09  Paul Eggert  <eggert@twinsun.com>
91843
91844         More K&R removal.
91845
91846         * lib/acosl.c (main): Use a prototype.
91847         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
91848         tanl.c: Likewise.
91849
91850         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
91851
91852         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
91853         (getopt, etopt_long, getopt_long_only, _getopt_internal)
91854         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
91855         with a prototype.
91856         * lib/getopt.c (const): Remove macro.
91857         Include <string.h> unconditionally.
91858         (my_index): Remove; all uses changed to strchr.
91859         (strlen): Remove decl.
91860         (exchange): Remove forward decl; no longer needed.
91861         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
91862         Define with prototype.
91863         * lib/getopt1.c (const): Remove macro.
91864         (getopt_long, getopt_long_only, main): Define with prototype.
91865
91866         * lib/getugroups.c: Include <string.h> unconditionally.
91867
91868         * lib/getusershell.c: Include <stdlib.h> unconditionally.
91869         (getusershell, setusershell, endusershell, readname, main):
91870         Define with prototypes.
91871
91872         * lib/group-member.c: Include group-member.h first.
91873         Include <stdlib.h> unconditionally.
91874
91875         * lib/hard-locale.c: Include hard-locale.h first.
91876         Include <stdlib.h>, <string.h> unconditionally.
91877
91878         * lib/hash.c (free, malloc): Remove decls.
91879         Include <stdlib.h> unconditionally.
91880
91881         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
91882         (getenv): Do not declare.
91883
91884         * lib/idcache.c: Include <string.h> unconditionally.
91885
91886         * lib/long-options.c: Include long-options.h first, to test interface.
91887         Include <stdlib.h> unconditionally.
91888
91889         * lib/makepath.c: Include makepath.h first, to test interface.
91890         Include <stdlib.h> and <string.h> unconditionally.
91891
91892         * lib/linebuffer.c: Include <stdlib.h>.
91893         (free): Remove decl.
91894
91895         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
91896         stddef.h. rpl_malloc returns void *, not char *.
91897         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
91898         prototype.
91899
91900         * lib/md5.h: Include <limits.h> unconditionally.
91901         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
91902         (__P): Remove; all uses removed.
91903         * lib/md5.c: Include "md5.h" first.
91904         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
91905         md5_buffer, md5_process_bytes, md5_process_block):
91906         Define with prototypes.
91907         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
91908         * lib/sha.c: Include "sha.h" first.
91909         Include <stdlib.h>, <string.h> unconditionally.
91910
91911         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
91912         * lib/memcmp.c (__ptr_t): Likewise.
91913         * lib/memrchr.c (__ptr_t): Likewise.
91914         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
91915         Include <string.h> unconditionally.
91916         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
91917         * lib/memchr.c: Include <stdlib.h> unconditionally.
91918         * lib/memchr.c (LONG_MAX): Remove.
91919         * lib/memrchr.c (LONG_MAX): Likewise.
91920         * lib/memchr.c (__memchr): Define via a prototype.
91921         * lib/memrchr.c (__memrchr): Likewise.
91922         * lib/memcmp.c (__P): Remove, and remove all uses.
91923         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
91924         Remove forward decls; no longer needed.
91925         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
91926         Use types required by C89 in prototype.
91927
91928         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
91929         * lib/savedir.c: Likewise.
91930         * lib/mkdir.c (free): Remove decl.
91931         * lib/rmdir.c (rmdir): Define with a prototype.
91932         * lib/savedir.c: Include savedir.h first, to test interface.
91933
91934         * lib/mktime.c (STDC_HEADERS): Remove.
91935         Include <stdlib.h>, <string.h> unconditionally.
91936
91937         * lib/modechange.c: Include <stdlib.h> unconditionally.
91938         (malloc): Remove decl.
91939
91940         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
91941         (free): Remove decl.
91942
91943         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
91944         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
91945         (This type really should be intptr_t, but that's a C99ism.)
91946         (_obstack_memcpy): Remove: all uses changed to memcpy.
91947         Include <string.h> unconditionally.
91948         (struct obstack): Assume __STDC__ for types of members
91949         chunkfun, freefun, extra_arg.
91950         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
91951         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
91952         obstack_begin, obstack_specify_allocation,
91953         obstack_specify_allocation_with_arg, obstack_chunkfun,
91954         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
91955         Remove unprototyped decls and the macros that use them.
91956         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
91957         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
91958         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
91959         (defined __STDC__ && __STDC__)]:
91960         Remove nonprototyped code.
91961         Include <stdlib.h> unconditionally.
91962         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
91963         _obstack_allocated_p, _obstack_free, obstack_free,
91964         _obstack_memory_used, print_and_abort):
91965         Define using prototypes.
91966         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
91967         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
91968         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
91969         obstack_next_free, obstack_object_size, obstack_room) [0]:
91970         Remove unused, unprototyped code.
91971
91972         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
91973
91974         * lib/physmem.c (physmem_total, physmem_available, main): Define
91975         with prototypes.
91976
91977         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
91978         (main): Define with a prototype.
91979
91980         * lib/posixver.c (getenv): Remove decl.
91981
91982         * lib/putenv.c (malloc): Returns void *, not char *.
91983         Include <string.h> unconditionally.
91984         (strchr, memcpy, NULL): Do not define.
91985
91986         * lib/readtokens.c: Include readtokens.h first, to test interface.
91987         Include <stdlib.h>, <string.h> unconditionally.
91988         (init_tokenbuffer): Define with a prototype.
91989
91990         * lib/regex.c (PARAMS): Remove.  All uses removed.
91991         All uses of _RE_ARGS removed, too.
91992         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
91993         unconditionally.
91994         (bzero): Assume memset exists.
91995         (memcmp, memcpy, NULL): Remove.
91996         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
91997         char, or assignments to local vars of type signed char.
91998         (init_syntax_once, PREFIX(extract_number_and_incr),
91999         PREFIX(print_partial_compiled_pattern),
92000         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
92001         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
92002         PREFIX(regex_grow_registers), PREFIX(regex_compile),
92003         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
92004         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
92005         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
92006         wcs_compile_range, byte_compile_range, truncate_wchar,
92007         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
92008         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
92009         count_mbs_length, wcs_re_match_2_internal,
92010         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
92011         PREFIX(alt_match_null_string_p),
92012         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
92013         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
92014         regfree, PREFIX(extract_number)): Define with prototype.  Remove
92015         now-unnecessary declaration, if any.
92016         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
92017         regcomp, regexec):
92018         Remove now-unnecessary casts among pointer types.
92019         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
92020
92021         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
92022         (free): Remove decl.
92023
92024         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
92025
92026         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
92027         (free): Remove decl.
92028
92029         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
92030         * lib/xgetcwd.c: Likewise.
92031
92032         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
92033         (free): Remove decl.
92034
92035         * lib/strchrnul.c (strchrnul): Define with a prototype.
92036         Fix bug: c_in was not converted to char before searching.
92037
92038         The following changes are not K&R related:
92039
92040         * lib/group-member.h: Include <sys/types.h>, so that this file is
92041         self-contained.
92042         * lib/makepath.h: Likewise.
92043
92044         * lib/getusershell.c (readname, default_index, line_size, readname):
92045         Use size_t, not int, for sizes.
92046         (readname): If the size overflows, report an error instead of
92047         looping forever.
92048
92049 2003-09-09  Paul Eggert  <eggert@twinsun.com>
92050
92051         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
92052         libc.
92053
92054 2003-09-09  Paul Eggert  <eggert@twinsun.com>
92055
92056         * README: New section: portability guidelines.
92057
92058 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
92059
92060         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
92061         C89 spec.
92062
92063 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
92064
92065         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
92066
92067 2003-09-08  Paul Eggert  <eggert@twinsun.com>
92068
92069         Assume C89 or better; remove K&R cruft.
92070         A few of these changes were first proposed by Derek Robert Price
92071         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
92072
92073         * lib/addext.c: Include <string.h> unconditionally.
92074         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
92075         Don't declare getenv or malloc.
92076
92077         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
92078         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
92079         (NULL): Remove.
92080         (find_stack_direction, alloca): Use prototypes.
92081
92082         * lib/atexit.c (atexit): Define using a prototype.
92083
92084         * lib/basename.c, dirname.c, stripslash.c:
92085         Include <string.h> unconditionally.
92086
92087         * lib/bcopy.c: Include <stddef.h>.
92088         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
92089
92090         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
92091
92092         * lib/error.h (error, error_at_line, error_print_progname)
92093         [! (defined (__STDC__) && __STDC__)]: Remove decls.
92094         * lib/error.c: Include error.h first, to check interface.
92095         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
92096         (VA_START): Remove; all uses changeed to va_start.
92097         (exit, strerror): Remove decls.
92098         (error_print_progname): Prototype uncondionally.
92099         Don't include <errno.h>; no longer needed.
92100         (private_strerror): Remove.
92101         (error_tail): Always define.
92102         (error, error_at_line): Assume C89 or better; always use prototypes.
92103         * lib/fatal.c: Include "fatal.h" first, to test interface.
92104         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
92105         (VA_START): Remove; all uses changed to va_start.
92106         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
92107         this case.
92108         (exit): Remove decl.
92109         (fatal): Prototype unconditionally.  Assume va_start works.
92110         Abort at end, to pacify gcc.
92111
92112         * lib/euidaccess.c (main): Define with a prototype.
92113
92114         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
92115
92116         * lib/exitfail.c: Include <stdlib.h> unconditionally.
92117
92118         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
92119         prototypes.
92120         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
92121         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
92122         (getenv): Remove decl.
92123         (fnmatch): Define using a prototype.
92124         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
92125         (FCT): Define using a prototype.
92126
92127         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
92128
92129         * lib/gethostname.c: Include <stddef.h>.
92130         (gethostname): Define with prototype.  Length is size_t, not int.
92131
92132 2003-09-08  Paul Eggert  <eggert@twinsun.com>
92133
92134         Assume C89 or better; remove K&R cruft.
92135         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
92136         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
92137         string.h, getenv, malloc.
92138         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
92139         headers.
92140         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
92141         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
92142         do not check for strerror.
92143         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
92144         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
92145         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
92146         do not check for doprnt or vprintf.
92147         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
92148         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
92149
92150 2003-09-08  Paul Eggert  <eggert@twinsun.com>
92151
92152         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
92153         getversion.c should have been removed then, but was accidentally
92154         preserved.
92155
92156         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
92157         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
92158
92159 2003-09-08  Karl Berry  <karl@gnu.org>
92160
92161         * config/config.sub, config.guess, srclistvars.sh: update from savannah
92162                 config, forget about prep.
92163
92164         * config/depcomp, missing: update from automake.
92165
92166 2003-09-07  Paul Eggert  <eggert@twinsun.com>
92167
92168         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
92169         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
92170
92171 2003-09-07  Paul Eggert  <eggert@twinsun.com>
92172
92173         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
92174         copy_tm_result.  Bug reported by Simon Josefsson in
92175         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
92176
92177 2003-09-06  Paul Eggert  <eggert@twinsun.com>
92178
92179         * m4/time_r.m4: New file.
92180         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
92181         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
92182         is. Check for timegm declaration.
92183         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
92184         Do not check for gmtime_r.
92185         Replace mktime if __mktime_internal does not exist and if mktime
92186         hasn't been replaced already.
92187
92188 2003-09-06  Paul Eggert  <eggert@twinsun.com>
92189
92190         * lib/time_r.c, lib/time_r.h: New files.
92191
92192         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
92193         __localtime_r.
92194         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
92195         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
92196
92197         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
92198         __gmtime_r.
92199         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
92200         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
92201         Include <time_r.h>.
92202
92203         * lib/timegm.c: Switch to glibc implementation, with the following
92204         changes:
92205         [defined HAVE_CONFIG_H]: Include <config.h>.
92206         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
92207         (__mktime_internal) [!defined _LIBC]: New decl.
92208         (__gmtime_r) [!defined _LIBC]: New macro and function.
92209         (timegm): Use a prototype, since gnulib assumes C89.
92210         Do not bother declaring tmp to be const, as it's not really usefu.
92211         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
92212         (timegm): Declare only if HAVE_DECL_TIMEGM.
92213
92214 2003-09-06  Paul Eggert  <eggert@twinsun.com>
92215
92216         * MODULES.html.sh (func_all_modules): Add time_r.
92217         * modules/time_r: New file.
92218         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
92219         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
92220
92221 2003-09-03  Paul Eggert  <eggert@twinsun.com>
92222
92223         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
92224         Bug reported by Lute Kamstra in
92225         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
92226
92227         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
92228         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
92229         course with correspondingly smaller numbers for tomorrow and
92230         yesterday.  From Tadayoshi Funaba.  Originally installed into
92231         sh-utils on 1999-08-07, but the patch got lost (I guess during the
92232         coreutils merge?).
92233
92234 2003-08-31  Simon Josefsson  <jas@extundo.com>
92235
92236         * modules/timegm: New file.
92237         * MODULES.html.sh (func_all_modules): Add timegm.
92238
92239 2003-08-31  Simon Josefsson  <jas@extundo.com>
92240
92241         * m4/timegm.m4: New file.
92242
92243 2003-08-31  Simon Josefsson  <jas@extundo.com>
92244
92245         * lib/timegm.h: New file.
92246         * lib/timegm.c: New file.  Based on
92247         wget-1.8.2/src/http.c:mktime_from_utc.
92248
92249 2003-08-31  Karl Berry  <karl@gnu.org>
92250
92251         * lib/argp.h: update from libc.
92252
92253 2003-08-28  Bruno Haible  <bruno@clisp.org>
92254
92255         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
92256         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
92257         followed by '#define fnmatch fnmatch_posix' gives an error.
92258
92259 2003-08-28  Bruno Haible  <bruno@clisp.org>
92260
92261         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
92262         warning on QNX, which defines O_BINARY to 000000.
92263
92264 2003-08-27  Jim Meyering  <jim@meyering.net>
92265
92266         * m4/mkstemp.m4: Require that the system mkstemp be able to create
92267         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
92268         would fail after 32.  Reported by Danny Levinson.  Details here:
92269         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
92270
92271 2003-08-24  Bruno Haible  <bruno@clisp.org>
92272
92273         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
92274         MSVC7 <stdio.h> is included later.
92275
92276 2003-08-22  Simon Josefsson  <jas@extundo.com>
92277
92278         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
92279
92280 2003-08-20  Karl Berry  <karl@gnu.org>
92281
92282         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
92283
92284 2003-08-20  Bruno Haible  <bruno@clisp.org>
92285
92286         * modules/progname: New file.
92287         * MODULES.html.sh (func_all_modules): Add progname.
92288
92289 2003-08-20  Bruno Haible  <bruno@clisp.org>
92290
92291         * lib/progname.h: New file, from GNU gettext.
92292         * lib/progname.c: New file, from GNU gettext.
92293         * lib/progreloc.c: New file, from GNU gettext.
92294
92295 2003-08-19  Jim Meyering  <jim@meyering.net>
92296
92297         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
92298         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
92299
92300 2003-08-19  Bruno Haible  <bruno@clisp.org>
92301
92302         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
92303         more.
92304
92305 2003-08-19  Bruno Haible  <bruno@clisp.org>
92306
92307         * lib/xstrdup.c: Assume <string.h> exists.
92308
92309 2003-08-18  Paul Eggert  <eggert@twinsun.com>
92310
92311         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
92312         in makefile rules.
92313
92314 2003-08-18  Jim Meyering  <jim@meyering.net>
92315
92316         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
92317         * m4/lib-ld.m4: Likewise.
92318
92319 2003-08-18  Jim Meyering  <jim@meyering.net>
92320
92321         * lib/setenv.h: Indent nested cpp directive.
92322         * lib/vasnprintf.c: Remove trailing blanks.
92323
92324 2003-08-17  Simon Josefsson  <jas@extundo.com>
92325
92326         * modules/xstrndup: New file.
92327         * MODULES.html.sh (func_all_modules): Add xstrndup.
92328
92329 2003-08-17  Simon Josefsson  <jas@extundo.com>
92330
92331         * modules/argp: Fix autoconf macro name. Add more dependencies.
92332
92333 2003-08-17  Simon Josefsson  <jas@extundo.com>
92334
92335         * m4/xstrndup.m4: New file.
92336
92337 2003-08-17  Simon Josefsson  <jas@extundo.com>
92338
92339         * m4/argp.m4: New file.
92340
92341 2003-08-17  Simon Josefsson  <jas@extundo.com>
92342             Bruno Haible  <bruno@clisp.org>
92343
92344         * lib/xstrndup.h: New file.
92345         * lib/xstrndup.c: New file.
92346
92347 2003-08-17  Bruno Haible  <bruno@clisp.org>
92348
92349         * modules/strndup (Files, Include): Add lib/strndup.h.
92350
92351 2003-08-17  Bruno Haible  <bruno@clisp.org>
92352
92353         * modules/euidaccess (Files): Add lib/euidaccess.h.
92354
92355 2003-08-17  Bruno Haible  <bruno@clisp.org>
92356
92357         * lib/strndup.h: New file.
92358
92359 2003-08-17  Bruno Haible  <bruno@clisp.org>
92360
92361         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
92362         like AC_GNU_SOURCE.
92363         * modules/extensions (configure.ac): Comment out the invocation of
92364         gl_USE_SYSTEM_EXTENSIONS.
92365
92366 2003-08-16  Paul Eggert  <eggert@twinsun.com>
92367
92368         Merges from coreutils, etc.
92369         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
92370         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
92371         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
92372         fixing a typo.
92373         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
92374         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
92375
92376 2003-08-16  Paul Eggert  <eggert@twinsun.com>
92377
92378         Document merge from coreutils.
92379         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
92380         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
92381         * modules/utime: Add m4/utimes-null.m4.
92382
92383 2003-08-16  Paul Eggert  <eggert@twinsun.com>
92384
92385         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
92386         space, undoing this 2003-08-12 change:
92387         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
92388
92389 2003-08-16  Paul Eggert  <eggert@twinsun.com>
92390
92391         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
92392         strtoul.c from libc, undoing this 2003-08-12 change:
92393         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
92394
92395 2003-08-16  Jim Meyering  <jim@meyering.net>
92396
92397         Merges from coreutils.
92398         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
92399         prefix.  Adjust cache variables similarly.  Create 500 rather than
92400         just 300 files, to exercise bug on Darwin6.5, too.
92401         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
92402         $missing_dir.
92403         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
92404         AM_SYS_POSIX_TERMIOS.
92405         Reported by mkc@mathdogs.com.
92406         Also change use of $am_cv_sys_posix_termios
92407         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
92408         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
92409         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
92410         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
92411         in /proc/mounts until it finds one with matching device number.  This
92412         is unnecessary when the FILE argument *is* a mount point.  No stat call
92413         is necessary in that case.  So, disable the statvfs-testing code on
92414         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
92415         as RedHat bug# 84846.
92416         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
92417         to 1MB, so as not to render systems with no stack size limit (e.g.,
92418         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
92419         Include <unistd.h>.  On some systems,
92420         it is required for the definition of _SC_PAGESIZE.
92421
92422 2003-08-16  Jim Meyering  <jim@meyering.net>
92423
92424         Merge from coreutils.
92425         * lib/xstrtoimax.c: #else #if -> #elif.
92426         * lib/xstrtoumax.c: Likewise.
92427
92428 2003-08-16  Jim Meyering  <jim@meyering.net>
92429
92430         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
92431         * m4/utimes.m4: Removed.
92432         * m4/utimes-null.m4: Renamed from utimes.m4.
92433
92434         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
92435         to 1MB, so as not to render systems with no stack size limit (e.g.,
92436         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
92437         Include <unistd.h>.  On some systems,
92438         it is required for the definition of _SC_PAGESIZE.
92439
92440 2003-08-16  Jim Meyering  <jim@meyering.net>
92441         and Paul Eggert  <eggert@cs.ucla.edu>
92442
92443         Merges from coreutils, etc.
92444
92445         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
92446         using the latest version from cvs.  This avoids problems with #line
92447         directives using a vendor (Sun) compiler.
92448         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
92449         Don't set GETGROUPS_LIB here; now it's
92450         done via getgroups.m4's wrapper function.
92451         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
92452         rather than just in sh-util/configure.in, so that the
92453         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
92454         same.
92455         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
92456         AC_FUNC_GETLOADAVG where to find getloadavg.c.
92457         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
92458         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
92459         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
92460         Remove code that is now done by the newly-required macros.
92461         Append $(EXEEXT) to DF_PROG.
92462         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
92463         Do not invoke or require the following here,
92464         since prereq.m4 or some gnulib .m4 now does this for us:
92465         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
92466         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
92467         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
92468         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
92469         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
92470         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
92471         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
92472         AC_FUNC_OBSTACK.
92473         Do not replace the following functions, as this is now the job
92474         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
92475         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
92476         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
92477         atexit getpass, strdup, getpagesize.
92478         Replace 'raise'.
92479         Do not check for the following functions, as this is now the job
92480         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
92481         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
92482         setregid.
92483         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
92484         Check for sys/sysctl.h.
92485         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
92486         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
92487         of checking for ssize_t ourselves.
92488
92489         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
92490         Require every macro that gnulib/modules/* suggests for us.
92491         (jm_PREREQ_ADDEXT): New macro.
92492         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
92493         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
92494
92495         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
92496         (gl_PHYSMEM): Use it.
92497         Also check for `table' function.
92498         Check for new headers and functions.
92499         Add check for sys/sysmp.h.
92500         With suggestions from Kaveh Ghazi.
92501         Ignore headers that are present but cannot be compiled.  This
92502         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
92503         C 5.4.
92504
92505 2003-08-15  Paul Eggert  <eggert@twinsun.com>
92506
92507         Document merge from coreutils.
92508         * modules/userspec: Depend on posixver.
92509         * modules/strftime: Depend on tzset.
92510
92511 2003-08-15  Paul Eggert  <eggert@twinsun.com>
92512
92513         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
92514         rather than tab, after '#' in shell-script copyright notices.
92515         Suggested by Bruno Haible.
92516
92517 2003-08-15  Paul Eggert  <eggert@twinsun.com>
92518
92519         * config/srclist-update: Use three spaces, rather than tab, after '#'
92520         in shell-script copyright notices.  Suggested by Bruno Haible.
92521         Remove unnecessary parenthesization in regular expression.
92522
92523 2003-08-15  Jim Meyering  <jim@meyering.net>
92524
92525         Merge from coreutils.
92526         * lib/xgethostname.c: Include <stdlib.h>.
92527         (xghostname): Don't exit for anything other than memory-related
92528         failure; just return NULL.
92529         * lib/userspec.c: Include "posixver.h".
92530         (parse_user_spec): Accept `.' as a separator only
92531         in pre-POSIX-200112 mode.
92532         * lib/strtoimax.c: Use #elif rather than #else #if.
92533         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
92534         Remove function, now that we can rely on a working tzset function.
92535         [!_LIBC]: Ensure that the required autoconf test has been run.
92536         [!defined _NL_CURRENT && HAVE_STRFTIME]:
92537         Use underlying_strftime for %r.
92538         * lib/sha.c: Merge in some clean-up and optimization changes from
92539         glibc.
92540         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
92541         Ensure that it is a multiple of 64.
92542         Rearrange loop exit tests so as to avoid performing an
92543         additional fread after encountering an error or EOF.
92544         * lib/realloc.c: Update copyright date.
92545
92546 2003-08-15  Jim Meyering  <jim@meyering.net>
92547         and Paul Eggert  <eggert@twinsun.com>
92548
92549         Merge from coreutils.
92550         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
92551         member but strut utmpx does not.  Needed for AIX 4.3.3.
92552         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
92553
92554 2003-08-15  Jim Meyering  <jim@meyering.net>
92555         and Paul Eggert  <eggert@cs.ucla.edu>
92556
92557         Merges from coreutils, etc.
92558         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
92559         Require gl_FUNC_TZSET_CLOBBER.
92560         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
92561         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
92562         members.
92563
92564 2003-08-14  Paul Eggert  <eggert@twinsun.com>
92565
92566         Help the merge from coreutils.
92567         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
92568         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
92569         * m4/tzset.m4: Use it too.
92570
92571 2003-08-14  Paul Eggert  <eggert@twinsun.com>
92572
92573         * modules/tzset: New file.
92574
92575 2003-08-14  Jim Meyering  <jim@meyering.net>
92576
92577         Merges from coreutils.
92578         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
92579         variable names, rather than @FNMATCH_H@.
92580         * modules/alloca: Likewise for $(ALLOCA_H).
92581
92582         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
92583         the three copies of the literal target, `fnmatch.h'.
92584         * modules/alloca (alloca.h): Likewise.
92585
92586 2003-08-14  Jim Meyering  <jim@meyering.net>
92587
92588         Merge from coreutils.
92589         * m4/tzset.m4: New file.
92590         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
92591         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
92592         otherwise, AIX 5.1 systems would end up using the latter.
92593         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
92594         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
92595         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
92596         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
92597
92598 2003-08-14  Jim Meyering  <jim@meyering.net>
92599
92600         Merge from coreutils.
92601         * lib/obstack.h: Whitespace changes.
92602         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
92603         and xcalloc return values.
92604         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
92605         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
92606         hang on OSF/1 5.1 for DIR on both local and remote file systems.
92607         Reported by (and fix confirmed by) Nelson H. F. Beebe.
92608         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
92609         error from mntctl.
92610         Use mntctl's return value to drive the entry-processing loop, since
92611         we can't rely on the value of the vmt_length member in the last
92612         entry.  On some systems doing so could result in exhausting
92613         virtual memory.  Based in part on a patch from Mike Jetzer.
92614
92615 2003-08-14  Jim Meyering  <jim@meyering.net>
92616         and Paul Eggert  <eggert@twinsun.com>
92617
92618         Merges from coreutils, plus other fixes.
92619         * lib/physmem.c: Merge in portability changes from gcc/libiberty
92620         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
92621         for credits and details.  Thanks to Kaveh Ghazi for helping
92622         to keep these files in sync.
92623         (ARRAY_SIZE): Define it.
92624         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
92625         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
92626         (memcasecmp): Don't assume size_t fits in unsigned int.
92627         Remove casts and duplicate code.
92628         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
92629         (memcpy): Remove definition.
92630         Merge in some clean-up and optimization changes from glibc.
92631         [BLOCKSIZE]: Move definition to top of file.
92632         Ensure that it is a multiple of 64.
92633         Rearrange loop exit tests so as to avoid performing an
92634         additional fread after encountering an error or EOF.
92635         * lib/md5.h (md5_uintptr): Define.
92636         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
92637         return to the initial working directory.  Preserve errno
92638         for caller.
92639         * lib/idcache.c: Include "xalloc.h".
92640         (xmalloc, xrealloc): Remove decls.
92641         (getuser): Remove casts no longer required in C89.
92642         * lib/human.c: Include stdio.h, for sprintf.
92643         * lib/group-member.c: Include "xalloc.h".
92644         (xmalloc, xrealloc): Remove decls.
92645         (get_group_info): Remove casts no longer required in C89.
92646         * lib/getusershell.c (readname): Remove casts no longer required in
92647         C89.
92648         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
92649         * lib/getline.c: Whitespace fix, from coreutils.
92650
92651 2003-08-13  Paul Eggert  <eggert@twinsun.com>
92652
92653         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
92654         Check for isascii.
92655
92656         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
92657         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
92658         Undo previous (whitespace-only) change.
92659
92660 2003-08-13  Paul Eggert  <eggert@twinsun.com>
92661
92662         * lib/exclude.c: Include <ctype.h>
92663         (IN_CTYPE_DOMAIN): New macro.
92664         (is_space): New fn.
92665         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
92666         and empty lines.
92667
92668         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
92669         Undo previous (whitespace-only) change.
92670
92671 2003-08-13  Paul Eggert  <eggert@twinsun.com>
92672
92673         * config/srclist-update: Change update back to the old behavior,
92674         leaving whitespace alone.  Use one 'sed' command rather than a
92675         pipeline.
92676         (fixlicense): Now a variable, not a function.
92677         (remove_trailing_blanks): Remove.
92678         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
92679         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
92680         Undo previous (whitespace-only) change.
92681
92682 2003-08-12  Paul Eggert  <eggert@twinsun.com>
92683
92684         Merge from coreutils.
92685         * modules/euidaccess: Add lib_SOURCES, include for new
92686         file euidaccess.h
92687
92688 2003-08-12  Paul Eggert  <eggert@twinsun.com>
92689
92690         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
92691         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
92692         Normalize leading white space and remove trailing white space.
92693
92694         Merge from coreutils
92695         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
92696
92697         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
92698         0.12.1.  These files are now being upgraded automatically by
92699         ../config/srclist-update.
92700
92701 2003-08-12  Paul Eggert  <eggert@twinsun.com>
92702
92703         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
92704         Normalize leading white space and remove trailing white space.
92705         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
92706         notice, as per ../config/srclist-update.
92707
92708         Merge from coreutils.
92709         * lib/euidaccess.h: New file.
92710         * lib/euidaccess.c: Include it.
92711         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
92712         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
92713         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
92714
92715 2003-08-12  Paul Eggert  <eggert@twinsun.com>
92716
92717         * config/srclist-update: Add copyright notice.
92718         (remove_id_lines, remove_trailing_blanks): New constants.
92719         (fixfile): Use them to normalize spacing a bit in copied files.
92720         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
92721         Normalize leading white space and remove trailing white space.
92722
92723         * config/texinfo.tex: Sync with texinfo.
92724
92725         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
92726         strtoul.c from libc, to merge coreutils whitespace changes.
92727
92728         * config/srclist.txt: Get the following m4 files from gettext:
92729         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
92730         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
92731         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
92732         wint_t.m4.
92733
92734 2003-08-12  Karl Berry  <karl@gnu.org>
92735
92736         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
92737         been made.
92738
92739 2003-08-11  Paul Eggert  <eggert@twinsun.com>
92740
92741         * modules/gnu-source, m4/gnu-source.m4:
92742         Remove; we're assuming Autoconf 2.54 or later now.
92743         Suggested by Bruno Haible.
92744         * MODULES.html.sh (func_all_modules): Remove gnu-source.
92745
92746 2003-08-11  Bruno Haible  <bruno@clisp.org>
92747
92748         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
92749
92750 2003-08-11  Bruno Haible  <bruno@clisp.org>
92751
92752         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
92753         (vasnprintf): Use it instead of wcslen.
92754
92755 2003-08-11  Bruno Haible  <bruno@clisp.org>
92756
92757         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
92758         value to ensure that _Bool promotes to int. Use #define for _Bool when
92759         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
92760
92761 2003-08-10  Karl Berry  <karl@gnu.org>
92762
92763         * lib/regex.h: update from libc (whitespace fix).
92764
92765 2003-08-09  Paul Eggert  <eggert@twinsun.com>
92766
92767         Merge some files from coreutils.  These changes were
92768         originally made by Jim Meyering.
92769         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
92770         many older Unixes require this.
92771         * lib/alloca.c (alloca): Remove cast to argument of free;
92772         no longer needed in C89.
92773         * lib/alloca_.h, regex.h: Fix white space to match
92774         what GNU indent does.
92775
92776 2003-08-09  Paul Eggert  <eggert@twinsun.com>
92777
92778         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
92779         apparently Emacs's Unicode mode got confused before my 2003-08-05
92780         checkin.
92781
92782 2003-08-08  Paul Eggert  <eggert@twinsun.com>
92783
92784         * m4/extensions.m4: New file.
92785         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
92786         Require gl_USE_SYSTEM_EXTENSIONS.
92787         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
92788         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
92789
92790 2003-08-08  Paul Eggert  <eggert@twinsun.com>
92791
92792         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
92793         * modules/extensions, modules/gnu-source: New files.
92794         * modules/timespec, modules/unlocked-io: Depend on extensions.
92795
92796 2003-08-07  Paul Eggert  <eggert@twinsun.com>
92797
92798         * modules/restrict: New file.
92799         * MODULES.html.sh (func_all_modules): Add restrict.
92800         * modules/regex: Depend on restrict.
92801
92802 2003-08-07  Paul Eggert  <eggert@twinsun.com>
92803
92804         * m4/restrict.m4: New file.
92805         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
92806
92807 2003-08-07  Bruno Haible  <bruno@clisp.org>
92808
92809         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
92810         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
92811
92812 2003-08-07  Bruno Haible  <bruno@clisp.org>
92813
92814         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
92815         makes the module 'getndelim2' compatible with the module 'getline'.
92816
92817 2003-08-05  Paul Eggert  <eggert@twinsun.com>
92818
92819         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
92820         byte with "\201" to avoid glitches when editing that source file
92821         with multi-gnome-terminal.
92822
92823 2003-08-05  Paul Eggert  <eggert@twinsun.com>
92824
92825         * lib/bumpalloc.h: Remove.
92826
92827 2003-08-05  Paul Eggert  <eggert@twinsun.com>
92828
92829         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
92830         * modules/bumpalloc: Remove.
92831
92832 2003-08-04  Paul Eggert  <eggert@twinsun.com>
92833
92834         * lib/getloadavg.c: Change copyright notice and spacing to conform to
92835         GNU coding style.
92836
92837         Merge from coreutils.
92838         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
92839         1. From glibc.
92840         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
92841         from Karl Berry, implemented by Jim Meyering.
92842         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
92843         from Dmitry V. Levin.
92844         Remove anachronistic cast of xrealloc.
92845         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
92846         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
92847         type. Otherwise, it wouldn't compile with at least /bin/cc on
92848         ymp-cray-unicos9.0.2.X.
92849         Combine two mostly-identical uses of alloca into one.
92850         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
92851
92852 2003-08-04  Dave Love  <d.love@dl.ac.uk>
92853
92854         [From Emacs.]
92855
92856         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
92857         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
92858         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
92859         obsolete NLIST_NAME_UNION.
92860         [__GNU__]: Undef BSD and FSCALE.
92861         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
92862
92863 2003-08-03  Paul Eggert  <eggert@twinsun.com>
92864
92865         * lib/stdbool_.h (_Bool): Make it signed char, instead of
92866         an enum type, so that it's guaranteed to promote to int.  See:
92867         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
92868
92869 2003-08-03  Karl Berry  <karl@gnu.org>
92870
92871         * config/depcomp: update from automake.
92872
92873 2003-07-31  Paul Eggert  <eggert@twinsun.com>
92874
92875         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
92876         (strerror): Don't assume that a printable int fits in 14 bytes.
92877
92878 2003-07-31  Bruno Haible  <bruno@clisp.org>
92879
92880         * modules/getpass-gnu: New file.
92881         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
92882
92883 2003-07-31  Bruno Haible  <bruno@clisp.org>
92884
92885         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
92886
92887 2003-07-24  Karl Berry  <karl@gnu.org>
92888
92889         * config/missing: update from automake.
92890
92891 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
92892             Bruno Haible  <bruno@clisp.org>
92893
92894         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
92895         * lib/getline.c (getline, getdelim): Likewise.
92896         Remove _GNU_SOURCE define; now it's defined in config.h through
92897         m4/getline.m4.
92898
92899 2003-07-23  Karl Berry  <karl@gnu.org>
92900
92901         * config/config.sub: update from prep.
92902
92903 2003-07-22  Paul Eggert  <eggert@twinsun.com>
92904
92905         * modules/xalloc (Depends-on): Add exitfail.
92906         * modules/xmemcoll: Likewise.
92907
92908 2003-07-22  Paul Eggert  <eggert@twinsun.com>
92909
92910         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
92911         over-parenthesization in macros.
92912
92913         Sync with coreutils.
92914
92915         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
92916         required by C99.
92917
92918         Use `exit_failure' for xalloc and xmemcoll instead of their own
92919         private exit-failure variables.
92920         * lib/xalloc.h (xalloc_exit_failure): Remove.
92921         * lib/xmalloc.c: Likewise.  Include exitfail.h.
92922         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
92923         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
92924         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
92925         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
92926
92927 2003-07-20  Jim Meyering  <jim@meyering.net>
92928
92929         * modules/closeout (Depends-on): Add exitfail.
92930         Suggestion from Bruno Haible.
92931
92932 2003-07-19  Karl Berry  <karl@gnu.org>
92933
92934         * config/config.sub: update from prep.
92935
92936 2003-07-18  Paul Eggert  <eggert@twinsun.com>
92937
92938         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
92939         Remove.
92940         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
92941         to test that it can stand by itself.  Include "exitfail.h".
92942         Clients should set exit_failure instead.
92943         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
92944
92945 2003-07-18  Bruno Haible  <bruno@clisp.org>
92946
92947         * modules/getndelim2: New file.
92948         * modules/getline: Share files with module getndelim2.
92949         * modules/getnline: Depend on getndelim2 instead of sharing files with
92950         it. Add getnline.c to lib_SOURCES.
92951         * MODULES.html.sh (func_all_modules): Add getndelim2.
92952
92953 2003-07-18  Bruno Haible  <bruno@clisp.org>
92954
92955         * m4/getndelim2.m4: New file.
92956         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
92957         invoke gl_PREREQ_GETNDELIM2.
92958         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
92959         gl_PREREQ_GETNDELIM2.
92960         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
92961         gl_GETNDELIM2.
92962
92963 2003-07-18  Bruno Haible  <bruno@clisp.org>
92964
92965         * lib/getndelim2.h: New file.
92966         * lib/getndelim2.c: Make into a module of its own. Include config.h,
92967         getndelim2.h.
92968         (getndelim2): Make non-static. Change return type to ssize_t.
92969         * lib/getline.h: Change argument names.
92970         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
92971         * lib/getnline.c: Include getndelim2.h.
92972
92973 2003-07-18  Andreas Schwab  <schwab@suse.de>
92974
92975         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
92976
92977 2003-07-17  Karl Berry  <karl@gnu.org>
92978
92979         * config/config.sub: update from prep.
92980
92981 2003-07-17  Bruno Haible  <bruno@clisp.org>
92982
92983         * modules/getnline: New file.
92984         * modules/getline: Add lib/getndelim2.c to source file list.
92985         * MODULES.html.sh (func_all_modules): Add getnline.
92986
92987 2003-07-17  Bruno Haible  <bruno@clisp.org>
92988
92989         * m4/getnline.m4: New file.
92990
92991 2003-07-17  Bruno Haible  <bruno@clisp.org>
92992
92993         * m4/Makefile.am.in: Remove file.
92994         * m4/Makefile.am: Remove file.
92995         * m4/Makefile.in: Remove file.
92996
92997 2003-07-17  Bruno Haible  <bruno@clisp.org>
92998
92999         * lib/getnline.h: New file.
93000         * lib/getnline.c: New file.
93001         * lib/getndelim2.c: New file, extracted from getline.c.
93002         (getndelim2): Renamed from getdelim2, with added nmax argument.
93003         * lib/getline.c: Include getndelim2.c.
93004         (getdelim2): Moved out to getndelim2.c.
93005         (getline, getdelim): Update.
93006
93007 2003-07-17  Bruno Haible  <bruno@clisp.org>
93008
93009         * lib/Makefile.am: Remove file.
93010         * lib/Makefile.in: Remove file.
93011
93012 2003-07-17  Bruno Haible  <bruno@clisp.org>
93013
93014         * configure.in: Remove file.
93015         * Makefile.in: Remove file.
93016
93017 2003-07-17  Bruno Haible  <bruno@clisp.org>
93018
93019         * MODULES.html.sh: Put the </BODY> right before </HTML>.
93020
93021 2003-07-16  Karl Berry  <karl@gnu.org>
93022
93023         * config/srclist-update: was running fixlicense twice, which caused
93024                 texinfo.tex to be nullified for some reason.  Simplify,
93025                 $gplsrc is no longer needed as far as I can see?
93026
93027 2003-07-16  Jim Meyering  <jim@meyering.net>
93028
93029         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
93030
93031 2003-07-15  Paul Eggert  <eggert@twinsun.com>
93032
93033         * config/srclist.txt: Get the following files from gettext-runtime/intl
93034         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
93035         ref-del.sin.  From Bruno Haible.
93036         * config/srclist-update (fixfile): Change grep pattern again, since the
93037         previous fix didn't work (there was another trailing $).  Use
93038         '[$]' to escape the $s.
93039
93040 2003-07-15  Karl Berry  <karl@gnu.org>
93041
93042         * lib/vasnprintf.c: update from gettext.
93043
93044 2003-07-15  Karl Berry  <karl@gnu.org>
93045
93046         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
93047         gets expanded when surrounded by '$'.
93048
93049 2003-07-15  Jim Meyering  <jim@meyering.net>
93050
93051         * modules/save-cwd: Don't depend on error.  From Derek Price.
93052
93053 2003-07-15  Jim Meyering  <jim@meyering.net>
93054
93055         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
93056
93057 2003-07-14  Simon Josefsson  <jas@extundo.com>
93058
93059         * modules/mempcpy: New file.
93060         * MODULES.html.sh (func_all_modules): Add mempcpy.
93061
93062 2003-07-14  Simon Josefsson  <jas@extundo.com>
93063
93064         * m4/mempcpy.m4: New file.
93065
93066 2003-07-14  Simon Josefsson  <jas@extundo.com>
93067
93068         * lib/mempcpy.h: New file.
93069         * lib/mempcpy.c: New file.
93070
93071 2003-07-14  Paul Eggert  <eggert@twinsun.com>
93072
93073         * modules/getdate, modules/posixtm: Depend on mktime.
93074
93075 2003-07-14  Paul Eggert  <eggert@twinsun.com>
93076
93077         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
93078         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
93079         unicodeio.c, unicodeio.h, unlocked-io.h:
93080         Switch from LGPL to GPL.
93081
93082 2003-07-14  Paul Eggert  <eggert@twinsun.com>
93083
93084         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
93085         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
93086         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
93087         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
93088         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
93089         updated automatically by ../config/srclist-update.  This changes
93090         their license from LPGL to GPL.
93091
93092 2003-07-14  Paul Eggert  <eggert@twinsun.com>
93093
93094         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
93095         assumed to refer to the root of the most recent stable gettext version.
93096         * config/srclistvars.sh: Add defaults for eggert.
93097         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
93098         Match "This program" as well as "The program".  This is needed
93099         for gettext.
93100
93101 2003-07-14  Jim Meyering  <jim@meyering.net>
93102
93103         Don't emit diagnostics.  Let callers do that.
93104         * lib/save-cwd.c: Don't include "error.h".
93105         (save_cwd): Don't call error.  Ensure that errno is valid
93106         when returning nonzero.
93107
93108         * lib/save-cwd.h (restore_cwd): Update prototype.
93109         * lib/save-cwd.c (restore_cwd): Remove two parameters.
93110         Simplify.  Don't call error upon failure.  Let callers do that.
93111         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
93112         when auditing is enabled.  But don't bother updating the #if.
93113
93114 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
93115
93116         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
93117         it breaks C++ compilation.
93118         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
93119
93120 2003-07-10  Simon Josefsson  <jas@extundo.com>
93121
93122         * modules/strchrnul (Makefile.am): Add strchrnul.h.
93123
93124 2003-07-10  Jim Meyering  <jim@meyering.net>
93125
93126         * m4/clock_time.m4: Remove trailing blank.
93127         * m4/intmax_t.m4: Likewise.
93128
93129 2003-07-10  Jim Meyering  <jim@meyering.net>
93130
93131         * lib/vasnprintf.c: Remove trailing blanks.
93132         Make cpp indentation consistent.
93133
93134 2003-07-09  Paul Eggert  <eggert@twinsun.com>
93135
93136         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
93137         posixver.c, strftime.c, strnlen.c, strverscmp.c:
93138         Switch from LGPL to GPL.
93139
93140 2003-07-09  Paul Eggert  <eggert@twinsun.com>
93141
93142         * config/srclist.txt: Sort sublists.  Add
93143         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
93144         that differ from gnulib for one reason or another; we'd like this list
93145         to be smaller but for now let's document what we have.
93146
93147 2003-07-08  Paul Eggert  <eggert@twinsun.com>
93148
93149         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
93150         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
93151         and sweeter "eval x=$x".
93152         * config/srclist.txt: Get lib/argp* from glibc.
93153
93154 2003-07-07  Paul Eggert  <eggert@twinsun.com>
93155
93156         * lib/mktime.c: Fix some boundary cases and remove need for floating
93157         point.
93158
93159         Issue a compile-time diagnostic if time_t is floating point, or if
93160         two's complement arithmetic is not in effect, or if arithmetic
93161         right shift does not propagate the sign.  These assumptions were
93162         all in the original code but they weren't checked.
93163
93164         (TIME_T_MIDPOINT, verify): New macros.
93165         (__isleap): Remove; it has integer overflow problems.
93166         (leapyear): New function, without those problems.
93167         (ydhms_tm_diff): Remove; splitting into two parts.
93168         (ydhms_diff): New function, containing the arithmetic part of
93169         the old ydhms_tm_diff function.  Issue a compile-time
93170         diagnostic if we are not using C99 integer division.
93171         Avoid casts when possible.
93172         (guess_time_tm): New function, containing the checking part of
93173         the old ydhms_tm_diff function.  Return the new value, rather than
93174         the difference between it and the old.  Accept a new argument T
93175         so that *T specifies the old value.  Check for overflow in the result.
93176
93177         (__mktime_internal): Use a time_t offset, not a long int offset.
93178         This undoes the 2003-06-04 change, which is no longer needed now
93179         that we have better overflow checking.
93180         (localtime_offset): Likewise.
93181
93182         (__mktime_internal): Avoid harmful overflow on hosts where time_t
93183         and long are 64-bit but int is only 32-bit.
93184         (ydhms_diff): Use long int to store year1 and yday1.
93185         Issue a compile-time diagnostic if long int is not wide enough.
93186
93187         (__mktime_internal): Use long int to store adjusted year and yday.
93188         Use plain C rather than preprocessor commands, if that doesn't
93189         affect efficiency.
93190         Check for overflow (and try to repair) after each probe
93191         rather than checking only at the very end.  This avoids some bugs
93192         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
93193         does not equal GMT offset at maximum time).
93194         Use integer to check for overflow rather than floating point; this
93195         is more portable to non-IEEE hosts, and is a tad faster.
93196         When we detect that we are oscillating between two values,
93197         don't check whether tm_isdst has the requested value, since
93198         we already know the answer.  When tm_isdst has the wrong value,
93199         use a different heuristic to find the right one, based on the
93200         extreme values actually observed in practice in tz2003a,
93201         rather than the (overly optimistic) "previous 3 calendar quarters".
93202
93203         (not_equal_tm, print_tm, check_result): Use "const T" rather than
93204         "T const" to accommodate glibc style.
93205         (check_result): Use less-confusing report format.  "long" -> "long int.
93206         (main): Likewise.
93207         Don't loop if the iteration overflows time_t.
93208         Allow a negative step in the iteration.
93209
93210 2003-07-06  Karl Berry  <karl@gnu.org>
93211
93212         * config/depcomp: update from automake.
93213         * config/config.sub: update from prep.
93214
93215 2003-07-03  Karl Berry  <karl@gnu.org>
93216
93217         * config/config.guess: update from prep.
93218
93219 2003-07-01  Paul Eggert  <eggert@twinsun.com>
93220
93221         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
93222         xreadlink.c now includes it unconditionally.
93223
93224 2003-07-01  Paul Eggert  <eggert@twinsun.com>
93225
93226         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
93227         having it depend on HAVE_SYS_TYPES_H.
93228
93229 2003-07-01  Bruno Haible  <bruno@clisp.org>
93230
93231         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
93232         <sys/types.h> should be sufficient.
93233         Reported by Paul Eggert.
93234
93235 2003-06-26  Karl Berry  <karl@gnu.org>
93236
93237         * config/depcomp: update from automake.
93238
93239 2003-06-26  Bruno Haible  <bruno@clisp.org>
93240
93241         * modules/human: Depend on module stdbool.
93242
93243 2003-06-25  Bruno Haible  <bruno@clisp.org>
93244
93245         * modules/readlink: New file.
93246         * modules/xreadlink: Depend on it.
93247         * MODULES.html.sh (func_all_modules): Add readlink.
93248
93249 2003-06-25  Bruno Haible  <bruno@clisp.org>
93250
93251         * m4/readlink.m4: New file.
93252
93253 2003-06-25  Bruno Haible  <bruno@clisp.org>
93254
93255         * lib/readlink.c: New file.
93256
93257 2003-06-22  Karl Berry  <karl@gnu.org>
93258
93259         * config/srclist.txt: update mkinstalldirs from automake.
93260         * config/mkinstalldirs: update.
93261
93262 2003-06-22  Bruno Haible  <bruno@clisp.org>
93263
93264         Portability to mingw32.
93265         * m4/ssize_t.m4: New file, from GNU gettext.
93266         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
93267         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
93268
93269 2003-06-22  Bruno Haible  <bruno@clisp.org>
93270
93271         * modules/safe-read: Add m4/ssize_t.m4.
93272         * modules/xreadlink: Add m4/ssize_t.m4.
93273
93274 2003-06-20  Bruno Haible  <bruno@clisp.org>
93275
93276         Assume C89, so PARAMS isn't needed.
93277         * lib/unicodeio.h (PARAMS): Remove.
93278         * lib/unicodeio.c: Don't use PARAMS.
93279
93280 2003-06-18  Karl Berry  <karl@gnu.org>
93281
93282         * config/config.{guess,sub}: update from prep.
93283
93284 2003-06-18  Jim Meyering  <jim@meyering.net>
93285
93286         Merge changes from coreutils.
93287         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
93288         Remove explicit declarations of xmalloc and realloc.
93289         Include xalloc.h.
93290         (read_utmp): Remove anachronistic cast of xmalloc.
93291
93292 2003-06-17  Paul Eggert  <eggert@twinsun.com>
93293
93294         Assume C89, so PARAMS isn't needed.
93295         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
93296         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
93297         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
93298         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
93299         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
93300         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
93301         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
93302         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
93303         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
93304         lib/xstrtod.h, lib/xstrtol.h: Likewise.
93305         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
93306         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
93307         no longer needed. Anyway, config.h should always be included before any
93308         other file.
93309
93310 2003-06-11  Simon Josefsson  <jas@extundo.com>
93311
93312         * modules/sysexits: New file.
93313         * MODULES.html.sh (func_all_modules): Add sysexits.
93314
93315 2003-06-11  Simon Josefsson  <jas@extundo.com>
93316
93317         * lib/sysexit_.h: New file.
93318
93319 2003-06-11  Derek Price  <derek@ximbiot.com>
93320
93321         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
93322         necessary.
93323
93324 2003-06-11  Bruno Haible  <bruno@clisp.org>
93325
93326         * m4/sysexits.m4: New file.
93327
93328 2003-06-10  Simon Josefsson  <jas@extundo.com>
93329
93330         * lib/argp.h: New file, from glibc.
93331         * lib/argp-ba.c: New file, from glibc.
93332         * lib/argp-eexst.c: New file, from glibc.
93333         * lib/argp-fmtstream.c: New file, from glibc.
93334         * lib/argp-fmtstream.h: New file, from glibc.
93335         * lib/argp-fs-xinl.c: New file, from glibc.
93336         * lib/argp-help.c: New file, from glibc.
93337         * lib/argp-namefrob.h: New file, from glibc.
93338         * lib/argp-parse.c: New file, from glibc.
93339         * lib/argp-pv.c: New file, from glibc.
93340         * lib/argp-pvh.c: New file, from glibc.
93341         * lib/argp-xinl.c: New file, from glibc.
93342
93343 2003-06-10  Simon Josefsson  <jas@extundo.com>
93344
93345         * modules/strchrnul: New file.
93346
93347 2003-06-10  Simon Josefsson  <jas@extundo.com>
93348
93349         * modules/argp: New file.
93350
93351 2003-06-10  Simon Josefsson  <jas@extundo.com>
93352
93353         * m4/strchrnul.m4: New file.
93354
93355 2003-06-10  Simon Josefsson  <jas@extundo.com>
93356
93357         * lib/strchrnul.h: New file.
93358         * lib/strchrnul.c: New file.
93359
93360 2003-06-10  Bruno Haible  <bruno@clisp.org>
93361
93362         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
93363
93364 2003-06-07  Karl Berry  <karl@gnu.org>
93365
93366         * config/config.{guess,sub}: update from prep.
93367
93368 2003-06-07  Jim Meyering  <jim@meyering.net>
93369
93370         * modules/strtod: Use $(...) notation, not @...@ for
93371         AC_REPLACE'd variables.
93372         * modules/localcharset: Likewise.
93373
93374 2003-06-07  Jim Meyering  <jim@meyering.net>
93375
93376         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
93377         in place of my name in the copyright comment.
93378         Remove definition and uses of __P.
93379
93380         From coreutils.
93381         * lib/stat.c: Don't declare xmalloc explicitly.
93382         Instead, include "xalloc.h".
93383         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
93384         xrealloc, and xcalloc return values.
93385         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
93386         Improve comment.
93387         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
93388
93389 2003-06-07  Bruno Haible  <bruno@clisp.org>
93390
93391         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
93392         avoid AC_CONFIG_LINKS.
93393         * modules/fnmatch (Makefile.am): Use explicit creation rule for
93394         fnmatch.h, to avoid AC_CONFIG_LINKS.
93395         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
93396
93397 2003-06-07  Bruno Haible  <bruno@clisp.org>
93398
93399         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
93400         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
93401         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
93402         directory.
93403         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
93404         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
93405         directory.
93406
93407 2003-06-06  Jim Meyering  <jim@meyering.net>
93408
93409         Merge from coreutils.
93410         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
93411         Consolidate declarations and initializations of *_base* locals.
93412
93413         Merge from coreutils.
93414         This avoids a core dump on systems without GNU putenv,
93415         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
93416         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
93417         (unsetenv): New static function, from GNU libc.
93418         (rpl_putenv): Use it.
93419
93420         * lib/modechange.c: Remove trailing blanks.
93421
93422         Merge from coreutils.
93423         * lib/fsusage.c: Remove declaration of statfs.
93424         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
93425
93426         * lib/posixtm.c: Include <stdbool.h> unconditionally.
93427
93428 2003-06-06  Jim Meyering  <jim@meyering.net>
93429
93430         * lib/stdbool_.h: Renamed from stdbool.h.in.
93431
93432 2003-06-06  Jim Meyering  <jim@meyering.net>
93433             Bruno Haible  <bruno@clisp.org>
93434
93435         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
93436         Adjust Makefile.am snippet not to redirect directly to target.
93437         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
93438
93439 2003-06-05  Paul Eggert  <eggert@twinsun.com>
93440
93441         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
93442         mismatch, look in future quarters as well as past.  This fixes a
93443         bug when processing fall-backwards gaps immediately after a long
93444         period of daylight-saving time.
93445
93446         * lib/mktime.c: Assume freestanding C89 or better.
93447         (HAVE_LIMITS_H): Remove.  Assume it's 1.
93448         (__P): Remove; not used.
93449         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
93450         (mktime, not_equal_tm, print_tm, check_result,
93451         main): Use prototypes.  Use const * where appropriate.
93452         (main): Fix typo in testing code that uncovered by above changes.
93453         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
93454
93455 2003-06-04  Paul Eggert  <eggert@twinsun.com>
93456
93457         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
93458         locale.h, localeconv.  This merges changes from coreutils.
93459
93460         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
93461         It can be removed after the next Autoconf is released.
93462         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
93463         needed.
93464
93465 2003-06-04  Paul Eggert  <eggert@twinsun.com>
93466
93467         * lib/mktime.c: Fix Debian bug 177940
93468         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
93469         (localtime_offset): Now long int, not time_t, because we want it
93470         to be guaranteed to be signed.  All uses changed.
93471         (__mktime_internal): If overflow would occur when adding offset,
93472         don't add it.
93473
93474         Merge 'human' changes from coreutils.  Rewrite to support
93475         locale-specific notations like thousands separators.
93476         * lib/human.c: Simplify authorship notice.
93477         Include human.h immediately after config.h.
93478         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
93479         <limits.h>: Do not include, since human.h does.
93480         (SIZE_MAX, UINTMAX_MAX): New macros.
93481         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
93482         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
93483         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
93484         (power_letter): Renamed from suffixes.
93485         (generate_suffix_backwards): Remove.
93486         (adjust_value): Now takes int style (because of human.h changes)
93487         and long double value (for greater precision on some platforms).
93488         (group_number): New function.
93489         (human_readable): Use it.  Use integer options, not enum.
93490         Put the options before the sizes in the arg list.
93491         Support all the new options.
93492         The old human_readable function has been removed;
93493         use inttostr.h instead.
93494         (human_readable, default_block_size, humblock):
93495         Use uintmax_t, not int, for block sizes.
93496         (human_readable_inexact, block_size_types): Remove.
93497         (block_size_opts): New constant.
93498         (human_options): Renamed from human_block_size, with new signature
93499         that allows block sizes up to UINTMAX_MAX.  All callers changed.
93500         * lib/human.h: Add copyright and authorship notice.
93501         Include <limits.h> and <stdbool.h> unconditionally.
93502         (PARAMS): Remove.  All uses removed.
93503         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
93504         (enum human_inexact_style): Remove tag; now a nameless enum.
93505         (human_floor, human_ceiling, human_round_to_even): Now have
93506         values 2, 0, 1 rather than -1, 1, 0.
93507         (human_group_digits, human_suppress_point_zero, human_autoscale,
93508         human_base_1024, human_SI, human_B): New constants.
93509         (human_readable_inexact, human_block_size): Remove.
93510         (human_readable): Size args are now uintmax_t, not int.
93511         (human_options): New decl.
93512
93513         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
93514         unnecessary now that we assume C89 or better.  This change
93515         imported from coreutils.
93516
93517         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
93518         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
93519         in the 2003-05-30 sync from glibc.
93520
93521         .h files should stand alone, but we shouldn't include <sys/types.h>
93522         if we can get away with just <stddef.h>.
93523
93524         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
93525         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
93526         rather than <sys/types.h>, as we merely need size_t.
93527         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
93528         to get size_t.
93529         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
93530         Include <stdio.h>, to get FILE.
93531         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
93532         memcasecmp.h has included <stddef.h> and all we need is size_t.
93533         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
93534         our interface, instead of including <sys/types.h>
93535
93536 2003-06-04  Paul Eggert  <eggert@twinsun.com>
93537
93538         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
93539         now, as glibc mktime is buggy on non-glibc systems.
93540
93541 2003-06-03  Karl Berry  <karl@gnu.org>
93542
93543         * config/config.sub: update from prep.
93544
93545 2003-06-02  Paul Eggert  <eggert@twinsun.com>
93546
93547         [from coreutils]
93548         Fix some minor time-related bugs with POSIX time arguments.
93549         Some valid time stamps were being rejected (notably -1, and
93550         time stamps before 1900 on 64-bit hosts).  And some invalid
93551         time stamps were being accepted, e.g. September 31.
93552
93553         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
93554         that we can return (time_t) -1 successfully.
93555         * lib/posixtm.c: Likewise.
93556         [HAVE_STDBOOL_H]: Include <stdbool.h>.
93557         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
93558         (t): Remove static var.
93559         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
93560         of static var.  All uses changed.
93561         (year): Do not reject years before 1900; they can occur with
93562         64-bit time_t.
93563         (posix_time_parse): Do not check for out-of-range components;
93564         that is now the caller's responsibility, since our checks were
93565         only approximations.
93566         (posixtime): Use mktime to check for out-of-range components,
93567         since it knows them exactly.
93568         If mktime returns (time_t) -1, check whether an error actually occurred
93569         by invoking localtime on -1.
93570         (main) [TEST_POSIXTIME]: Check for input data errors, and report
93571         posixtime failures better.
93572         Improve the test data (in comments only).
93573
93574 2003-06-02  Karl Berry  <karl@gnu.org>
93575
93576         * config/mkinstalldirs (version): new variable.
93577         (--version): new option.
93578         (usage): improve message.
93579
93580 2003-05-30  Karl Berry  <karl@gnu.org>
93581
93582         * lib/mktime.c: update from libc.
93583
93584 2003-05-30  Bruno Haible  <bruno@clisp.org>
93585
93586         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
93587         * config/config.rpath: Upgrade to gettext-0.12.1.
93588
93589 2003-05-30  Bruno Haible  <bruno@clisp.org>
93590
93591         * m4/gettext.m4: Upgrade to gettext-0.12.1.
93592         * m4/nls.m4: New file, from gettext-0.12.1.
93593         * m4/po.m4: New file, from gettext-0.12.1.
93594         * m4/progtest.m4: Upgrade to gettext-0.12.1.
93595
93596 2003-05-30  Bruno Haible  <bruno@clisp.org>
93597
93598         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
93599         * lib/localcharset.h: Likewise.
93600         * lib/localcharset.c: Likewise.
93601
93602 2003-05-29  Karl Berry  <karl@gnu.org>
93603
93604         * config/config.rpath: update from gettext.
93605
93606 2003-05-28  Paul Eggert  <eggert@twinsun.com>
93607
93608         Assume the headers required for C89 freestanding compilers.
93609         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
93610         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
93611         * m4/human.m4 (gl_HUMAN): Likewise.
93612         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
93613         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
93614         * m4/userspec.m4 (gl_USERSPEC): Likewise.
93615         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
93616         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
93617         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
93618
93619 2003-05-28  Paul Eggert  <eggert@twinsun.com>
93620
93621         Assume the headers required for C89 freestanding compilers.
93622         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
93623         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
93624         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
93625         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
93626         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
93627         define, since <limits.h> is guaranteed to do that.
93628         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
93629         * lib/exclude.c: Include <stdbool.h> unconditionally.
93630         * lib/tempname.c: Include <stddef.h> unconditionally.
93631         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
93632         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
93633         <stddef.h> does that.
93634         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
93635         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
93636         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
93637         needed.
93638         * lib/xstrtol.c: Likewise.
93639         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
93640         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
93641
93642         * lib/addext.c (addext): Use assignment rather than cast, to avoid
93643         warnings on some platforms.
93644
93645         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
93646         arbitrarily.
93647
93648 2003-05-26  Jim Meyering  <jim@meyering.net>
93649
93650         Merge in a change from coreutils:
93651         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
93652         that is guaranteed to be `no'.  Use `no_such_member' to indicate
93653         that condition, rather than `-1' which is slightly misleading.
93654         Change the name of the cache variable to have the gl_ prefix.
93655         Prompted by a patch from Richard Dawe for DJGPP.
93656
93657 2003-05-24  Karl Berry  <karl@gnu.org>
93658
93659         * config/config.guess: update from prep.
93660
93661 2003-05-22  Karl Berry  <karl@gnu.org>
93662
93663         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
93664
93665 2003-05-20  Karl Berry  <karl@gnu.org>
93666
93667         * config/config.guess: update from prep.
93668
93669 2003-05-18  Karl Berry  <karl@gnu.org>
93670
93671         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
93672         might actually be set by the user.
93673
93674         * config/depcomp, install-sh, mdate-sh: update from automake.
93675
93676 2003-05-17  Bruno Haible  <bruno@clisp.org>
93677
93678         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
93679         invalid expansion for AC_EGREP_CPP.
93680         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
93681         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
93682         Suggested by Akim Demaille <akim@epita.fr> in
93683         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
93684
93685 2003-05-12  Jim Meyering  <jim@meyering.net>
93686
93687         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
93688         the space-padded-by-default conversion specifiers, %e, %k, %l.
93689
93690 2003-05-12  Bruno Haible  <bruno@clisp.org>
93691
93692         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
93693         the string is longer than 4 KB.
93694
93695 2003-05-11  Karl Berry  <karl@gnu.org>
93696
93697         * config/config.{guess,sub}: update from prep.
93698
93699 2003-05-09  Bruno Haible  <bruno@clisp.org>
93700
93701         * modules/error: Add m4/strerror_r.m4 to file list.
93702
93703 2003-05-03  Bruno Haible  <bruno@clisp.org>
93704
93705         Upgrade to Unicode-4.0.
93706         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
93707         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
93708         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
93709         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
93710         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
93711         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
93712         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
93713         Change width of U+E0100..U+E01EF from 1 to 0.
93714
93715 2003-04-25  Jim Meyering  <jim@meyering.net>
93716
93717         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
93718         of type size_t, not int.
93719
93720 2003-04-25  Bruno Haible  <bruno@clisp.org>
93721
93722         * lib/copy-file.c: Include <stddef.h>, for size_t.
93723
93724 2003-04-21  Paul Eggert  <eggert@twinsun.com>
93725
93726         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
93727         code which expansion is under static control.  Patch imported from
93728         Akim Demaille's patch to Bison; see
93729         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
93730
93731 2003-04-14  Bruno Haible  <bruno@clisp.org>
93732
93733         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
93734
93735 2003-04-11  Jim Meyering  <jim@meyering.net>
93736
93737         Merge changes from Coreutils.
93738
93739         2003-03-22  Jim Meyering  <jim@meyering.net>
93740
93741         * lib/strftime.c (widen): Cast alloca return value to proper type.
93742
93743         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
93744
93745         From GNU libc.
93746         * lib/strftime.c (my_strftime): Handle very large width
93747         specifications for numeric values correctly.  Improve checks for
93748         overflow.
93749
93750         2003-01-19  Jim Meyering  <jim@meyering.net>
93751
93752         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
93753         definitions.
93754         (nl_get_alt_digit) [! defined my_strftime]: Define.
93755         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
93756         _nl_get_alt_digit and _nl_get_walt_digit.
93757
93758         * lib/strftime.c (my_strftime): Merge in locale-related changes from
93759         libc. These changes have no effect outside of _LIBC.
93760
93761 2003-04-10  Bruno Haible  <bruno@clisp.org>
93762
93763         * modules/findprog: New file.
93764         * MODULES.html.sh (func_all_modules): Add it.
93765
93766 2003-04-10  Bruno Haible  <bruno@clisp.org>
93767
93768         * m4/findprog.m4: New file.
93769         * m4/eaccess.m4: New file.
93770
93771 2003-04-10  Bruno Haible  <bruno@clisp.org>
93772
93773         * lib/findprog.h: New file, from GNU gettext.
93774         * lib/findprog.c: New file, from GNU gettext.
93775
93776 2003-04-05  Jim Meyering  <jim@meyering.net>
93777
93778         Merge changes from Coreutils.
93779
93780         * lib/exclude.h (PARAMS): Remove definition and uses.
93781         * lib/exclude.c: Remove uses of `PARAMS'.
93782
93783         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
93784         Add test-cases for DOS filenames. Declare program_name.
93785         (main): Set up program_name.  Patch by Rich Dawe.
93786
93787         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
93788         error from mntctl.
93789         Use mntctl's return value to drive the entry-processing loop, since
93790         we can't rely on the value of the vmt_length member in the last
93791         entry.  On some systems doing so could result in exhausting
93792         virtual memory.  Based in part on a patch from Mike Jetzer.
93793
93794 2003-04-04  Bruno Haible  <bruno@clisp.org>
93795
93796         * modules/linebreak: New file.
93797         * MODULES.html.sh (func_all_modules): Add it.
93798
93799 2003-04-04  Bruno Haible  <bruno@clisp.org>
93800
93801         * m4/linebreak.m4: New file.
93802
93803 2003-04-04  Bruno Haible  <bruno@clisp.org>
93804
93805         * lib/linebreak.h: New file, from GNU gettext.
93806         * lib/linebreak.c: New file, from GNU gettext with slight
93807         modifications.
93808         * lib/lbrkprop.h: New file, from GNU gettext.
93809
93810 2003-04-03  Bruno Haible  <bruno@clisp.org>
93811
93812         * modules/utf8-ucs4: New file.
93813         * modules/utf16-ucs4: New file.
93814         * modules/ucs4-utf8: New file.
93815         * modules/ucs4-utf16: New file.
93816         * MODULES.html.sh (func_all_modules): Add them.
93817
93818 2003-04-03  Bruno Haible  <bruno@clisp.org>
93819
93820         * m4/utf-ucs4.m4: New file.
93821         * m4/ucs4-utf.m4: New file.
93822
93823 2003-04-03  Bruno Haible  <bruno@clisp.org>
93824
93825         * lib/utf8-ucs4.h: New file, from GNU gettext.
93826         * lib/utf16-ucs4.h: New file, from GNU gettext.
93827         * lib/ucs4-utf8.h: New file, from GNU gettext.
93828         * lib/ucs4-utf16.h: New file, from GNU gettext.
93829
93830 2003-04-02  Bruno Haible  <bruno@clisp.org>
93831
93832         * modules/binary-io: New file.
93833         * MODULES.html.sh (func_all_modules): Add it.
93834
93835 2003-04-02  Bruno Haible  <bruno@clisp.org>
93836
93837         * lib/binary-io.h: New file, from GNU gettext.
93838
93839 2003-04-01  Bruno Haible  <bruno@clisp.org>
93840
93841         * modules/pathname: New file.
93842         * MODULES.html.sh (func_all_modules): Add it.
93843
93844 2003-04-01  Bruno Haible  <bruno@clisp.org>
93845
93846         * lib/pathname.h: New file, from GNU gettext.
93847         * lib/concatpath.c: New file, from GNU gettext.
93848
93849 2003-03-30  Bruno Haible  <bruno@clisp.org>
93850
93851         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
93852
93853 2003-03-30  Bruno Haible  <bruno@clisp.org>
93854
93855         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
93856         function chown() doesn't exist.
93857
93858 2003-03-28  Bruno Haible  <bruno@clisp.org>
93859
93860         * modules/copy-file: New file.
93861         * MODULES.html.sh (func_all_modules): Add it.
93862
93863 2003-03-28  Bruno Haible  <bruno@clisp.org>
93864
93865         * m4/copy-file.m4: New file.
93866
93867 2003-03-28  Bruno Haible  <bruno@clisp.org>
93868
93869         * lib/copy-file.h: New file, from GNU gettext.
93870         * lib/copy-file.c: New file, from GNU gettext.
93871
93872 2003-03-18  Jim Meyering  <jim@meyering.net>
93873
93874         * lib/quote.c (quote_n): Fix typo in comment.
93875
93876 2003-03-18  Bruno Haible  <bruno@clisp.org>
93877
93878         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
93879         checking.
93880         * m4/onceonly_2_57.m4: Likewise.
93881
93882 2003-03-17  Bruno Haible  <bruno@clisp.org>
93883
93884         * m4/onceonly.m4: Require autoconf 2.54 or newer.
93885         (m4_quote): Remove macro.
93886         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
93887
93888 2003-03-14  Jim Meyering  <jim@meyering.net>
93889
93890         Merge changes from Coreutils.
93891         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
93892         to be const, in order to avoid warnings.
93893         (obstack_room): Likewise.
93894         (obstack_empty_p): Likewise.
93895
93896 2003-03-14  Bruno Haible  <bruno@clisp.org>
93897
93898         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
93899         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
93900
93901 2003-03-13  Paul Eggert  <eggert@twinsun.com>
93902
93903         Merge changes from Bison.
93904         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
93905         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
93906         when compiling Bison 1.875's `bitset bset = obstack_alloc
93907         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
93908         * lib/hash.c: Include <stdbool.h> unconditionally.
93909
93910 2003-03-13  Paul Eggert  <eggert@twinsun.com>
93911
93912         * m4/onceonly.m4 (m4_quote): New macro.
93913         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
93914         Quote AC_FOREACH variable-expansions properly.
93915
93916 2003-03-13  Paul Eggert  <eggert@twinsun.com>
93917
93918         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
93919
93920 2003-03-09  Paul Eggert  <eggert@twinsun.com>
93921
93922         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
93923         Reported by Bruce Becker; see:
93924         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
93925
93926 2003-03-03  Paul Eggert  <eggert@twinsun.com>
93927             Bruno Haible  <bruno@clisp.org>
93928
93929         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
93930         Reported by John Hughes, see
93931         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
93932
93933 2003-02-20  Bruno Haible  <bruno@clisp.org>
93934
93935         * MODULES.html.sh (func_all_modules): Add poll.
93936
93937 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
93938
93939         * modules/poll: New file.
93940
93941 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
93942
93943         * lib/poll_.h: New file.
93944         * lib/poll.c: New file.
93945
93946 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
93947
93948         * m4/poll.m4: New file.
93949
93950 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
93951
93952         * modules/mathl: New file.
93953
93954 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
93955
93956         * lib/mathl.h: New file.
93957         * lib/acosl.c: New file.
93958         * lib/asinl.c: New file.
93959         * lib/atanl.c: New file.
93960         * lib/ceill.c: New file.
93961         * lib/cosl.c: New file.
93962         * lib/expl.c: New file.
93963         * lib/floorl.c: New file.
93964         * lib/frexpl.c: New file.
93965         * lib/ldexpl.c: New file.
93966         * lib/logl.c: New file.
93967         * lib/sincosl.c: New file.
93968         * lib/sinl.c: New file.
93969         * lib/sqrtl.c: New file.
93970         * lib/tanl.c: New file.
93971         * lib/trigl.c: New file.
93972         * lib/trigl.h: New file.
93973
93974 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
93975
93976         * m4/mathl.m4: New file.
93977
93978 2003-02-18  Bruno Haible  <bruno@clisp.org>
93979
93980         * MODULES.html.sh (func_all_modules): Add mathl.
93981
93982 2003-02-17  Bruno Haible  <bruno@clisp.org>
93983
93984         * modules/mkdtemp: New module.
93985         * MODULES.html.sh (func_all_modules): Add it.
93986
93987 2003-02-17  Bruno Haible  <bruno@clisp.org>
93988
93989         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
93990
93991 2003-02-17  Bruno Haible  <bruno@clisp.org>
93992
93993         * lib/mkdtemp.h: New file, from GNU gettext.
93994         * lib/mkdtemp.c: New file, from GNU gettext.
93995
93996 2003-02-02  Jim Meyering  <jim@meyering.net>
93997
93998         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
93999         e.g. glibc-2.2.93.
94000
94001 2003-01-31  Bruno Haible  <bruno@clisp.org>
94002
94003         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
94004         'rpl_rename'.
94005         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
94006         'rpl_strnlen'.
94007         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
94008         'rpl_strtod'.
94009         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
94010         'rpl_utime'.
94011
94012 2003-01-31  Bruno Haible  <bruno@clisp.org>
94013
94014         * lib/rename.c: #undef rename before defining rpl_rename.
94015         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
94016
94017 2003-01-30  Bruno Haible  <bruno@clisp.org>
94018
94019         * modules/vasnprintf, modules/vasprintf: New modules.
94020         * MODULES.html.sh (func_all_modules): Add them.
94021
94022 2003-01-30  Bruno Haible  <bruno@clisp.org>
94023
94024         * m4/signed.m4: New file, from GNU gettext.
94025         * m4/longdouble.m4: New file, from GNU gettext.
94026         * m4/wchar_t.m4: New file, from GNU gettext.
94027         * m4/wint_t.m4: New file, from GNU gettext.
94028         * m4/vasnprintf.m4: New file.
94029         * m4/vasprintf.m4: New file.
94030
94031 2003-01-30  Bruno Haible  <bruno@clisp.org>
94032
94033         * lib/printf-args.h: New file, from GNU gettext.
94034         * lib/printf-args.c: New file, from GNU gettext.
94035         * lib/printf-parse.h: New file, from GNU gettext.
94036         * lib/printf-parse.c: New file, from GNU gettext.
94037         * lib/vasnprintf.h: New file, from GNU gettext.
94038         * lib/vasnprintf.c: New file, from GNU gettext.
94039         * lib/asnprintf.c: New file, from GNU gettext.
94040         * lib/vasprintf.h: New file, from GNU gettext with modifications.
94041         * lib/vasprintf.c: New file, from GNU gettext.
94042         * lib/asprintf.c: New file, from GNU gettext.
94043
94044 2003-01-29  Bruno Haible  <bruno@clisp.org>
94045
94046         * modules/stpncpy: New module.
94047         * MODULES.html.sh (func_all_modules): Add it.
94048
94049 2003-01-29  Bruno Haible  <bruno@clisp.org>
94050
94051         * m4/stpncpy.m4: New file.
94052
94053 2003-01-29  Bruno Haible  <bruno@clisp.org>
94054
94055         * lib/stpncpy.h: New file, from GNU gettext with modifications.
94056         * lib/stpncpy.c: New file, from GNU gettext with modifications.
94057
94058 2003-01-28  Bruno Haible  <bruno@clisp.org>
94059
94060         * modules/c-ctype: New module.
94061         * MODULES.html.sh (func_all_modules): Add it.
94062
94063 2003-01-28  Bruno Haible  <bruno@clisp.org>
94064
94065         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
94066         Paul Eggert.
94067         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
94068         Paul Eggert.
94069
94070 2003-01-27  Bruno Haible  <bruno@clisp.org>
94071
94072         * modules/xsetenv: New module.
94073         * MODULES.html.sh (func_all_modules): Add it.
94074
94075 2003-01-27  Bruno Haible  <bruno@clisp.org>
94076
94077         * lib/xsetenv.h: New file, from GNU gettext.
94078         * lib/xsetenv.c: New file, from GNU gettext.
94079
94080 2003-01-23  Jim Meyering  <jim@meyering.net>
94081
94082         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
94083         from working on systems without dirfd (at least Irix and OSF1/Tru64).
94084
94085 2003-01-23  Bruno Haible  <bruno@clisp.org>
94086
94087         * modules/minmax: New module.
94088         * MODULES.html.sh (func_all_modules): Add it.
94089
94090 2003-01-23  Bruno Haible  <bruno@clisp.org>
94091
94092         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
94093         Eggert.
94094
94095 2003-01-22  Bruno Haible  <bruno@clisp.org>
94096
94097         * modules/exit: New module.
94098         * MODULES.html.sh (func_all_modules): Add it.
94099
94100 2003-01-22  Bruno Haible  <bruno@clisp.org>
94101
94102         * lib/exit.h: New file, from GNU gettext.
94103
94104 2003-01-19  Bruno Haible  <bruno@clisp.org>
94105
94106         * gnulib-tool: Recognize option --extract-maintainer.
94107         (func_get_maintainer): New function.
94108         * modules/*: Add Maintainer entry.
94109
94110 2003-01-16  Jim Meyering  <jim@meyering.net>
94111
94112         * m4/regex.m4: The `regex' struct is both input and output.
94113         Initialize it before each use.  Patch by Tim Waugh.
94114
94115 2003-01-16  Bruno Haible  <bruno@clisp.org>
94116
94117         * MODULES.html.sh: Add a table of contents. Add the module name as
94118         leftmost column. Add hyperlinks.
94119
94120 2003-01-15  Bruno Haible  <bruno@clisp.org>
94121
94122         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
94123
94124 2003-01-15  Bruno Haible  <bruno@clisp.org>
94125
94126         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
94127         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
94128         suffix.
94129
94130 2003-01-15  Bruno Haible  <bruno@clisp.org>
94131
94132         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
94133
94134 2003-01-15  Bruno Haible  <bruno@clisp.org>
94135
94136         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
94137         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
94138
94139 2003-01-14  Jim Meyering  <jim@meyering.net>
94140
94141         * lib/same.c (same_name): Tweak a comment.
94142
94143 2003-01-14  Bruno Haible  <bruno@clisp.org>
94144
94145         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
94146         when a string comparison is sufficient.
94147
94148 2003-01-14  Bruno Haible  <bruno@clisp.org>
94149
94150         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
94151         'unsigned int'.
94152
94153 2003-01-14  Bruno Haible  <bruno@clisp.org>
94154
94155         * lib/hash-pjw.c: Add comment about low quality of this function.
94156
94157 2003-01-13  Bruno Haible  <bruno@clisp.org>
94158
94159         * modules/stpcpy: Distribute lib/stpcpy.h.
94160         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
94161
94162 2003-01-13  Bruno Haible  <bruno@clisp.org>
94163
94164         * modules/*: Add a description.
94165         * modules/strpbrk: Fix Makefile.am snippet.
94166         * modules/strtoimax: Fix dependencies.
94167         * modules/strtoumax: Likewise.
94168
94169 2003-01-13  Bruno Haible  <bruno@clisp.org>
94170
94171         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
94172         * modules/alloca (Makefile.am): All object files depend on alloca.h.
94173         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
94174
94175 2003-01-13  Bruno Haible  <bruno@clisp.org>
94176
94177         * gnulib-tool (func_create_testdir): Store config/* files in the main
94178         directory.
94179         * config.rpath: Move to ...
94180         * config/config.rpath: ... here.
94181         * modules/gettext: Contains config/config.rpath, not config.rpath.
94182         * modules/iconv: Likewise.
94183
94184 2003-01-12  Paul Eggert  <eggert@twinsun.com>
94185
94186         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
94187         to avoid collisions with libcurses and libreadline.
94188
94189         * m4/getstr.m4: Remove.
94190         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
94191
94192 2003-01-12  Paul Eggert  <eggert@twinsun.com>
94193
94194         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
94195         to avoid collisions with libcurses and libreadline.
94196
94197         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
94198         * lib/getstr.h, getstr.c: Remove.
94199         * lib/getline.c: Include "getline.h", to check interface.
94200         Move body of old getstr.c here: this defines MIN_CHUNK and
94201         declares getdelim2, which is renamed from getstr.
94202         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
94203
94204         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
94205         All uses changed.
94206         * lib/linebuffer.h: Likewise.
94207         (readline): Remove backward-compatibility macro.
94208
94209 2003-01-12  Paul Eggert  <eggert@twinsun.com>
94210
94211         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
94212         to avoid collisions with libcurses and libreadline.
94213         * getstr: Remove.
94214         * MODULES.html.sh: Remove getstr.
94215         * modules/getline: Depend on unlocked-io, not getstr.
94216
94217 2003-01-12  Jim Meyering  <jim@meyering.net>
94218
94219         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
94220
94221 2003-01-10  Bruno Haible  <bruno@clisp.org>
94222
94223         * modules/alloca: Change Makefile.am requirements. Simplify Include
94224         requirements. Add lib/alloca_.h to file list.
94225
94226 2003-01-10  Bruno Haible  <bruno@clisp.org>
94227
94228         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
94229
94230 2003-01-10  Bruno Haible  <bruno@clisp.org>
94231
94232         * lib/alloca_.h: New file.
94233         * lib/getdate.y: Unconditionally include alloca.h.
94234         * lib/makepath.c: Likewise.
94235         * lib/setenv.c: Likewise.
94236         * lib/userspec.c: Likewise.
94237
94238 2003-01-09  Karl Berry  <karl@gnu.org>
94239
94240         * MODULES.html.sh: include `dirname $0` in PATH, to find
94241         gnulib-tool.
94242
94243 2003-01-09  Bruno Haible  <bruno@clisp.org>
94244
94245         * modules/stdbool: Change configure.ac, Makefile.am requirements.
94246         Simplify Include requirements. Add lib/stdbool.h.in to file list.
94247
94248 2003-01-09  Bruno Haible  <bruno@clisp.org>
94249
94250         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
94251
94252 2003-01-09  Bruno Haible  <bruno@clisp.org>
94253
94254         * lib/stdbool.h.in: New file.
94255
94256 2003-01-09  Bruno Haible  <bruno@clisp.org>
94257
94258         * gnulib-tool (func_all_modules): Ignore files ending in ~.
94259         * MODULES.html.sh: Likewise.
94260
94261 2003-01-08  Jim Meyering  <jim@meyering.net>
94262
94263         * lib/full-write.c: Undefine and define-away `const' after inclusion
94264         of errno.h, not before.  Suggestion from Bruno Haible.
94265
94266 2003-01-08  Bruno Haible  <bruno@clisp.org>
94267
94268         * modules/full-read: Depend on full-write.
94269
94270 2003-01-08  Bruno Haible  <bruno@clisp.org>
94271
94272         * lib/safe-read.c: Include specification header first, to ensure its
94273         selfcontainedness.
94274         * lib/full-write.c: Likewise.
94275
94276 2003-01-07  Jim Meyering  <jim@meyering.net>
94277
94278         * lib/full-write.c: Rework so that it may serve to define full_read,
94279         too.
94280         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
94281
94282 2003-01-07  Bruno Haible  <bruno@clisp.org>
94283
94284         * lib/strtoimax.c: Include <stdint.h> as an alternative to
94285         <inttypes.h>.
94286         * lib/xstrtol.h: Likewise.
94287         * lib/xstrtoimax.c: Likewise.
94288         * lib/xstrtoumax.c: Likewise.
94289         * lib/human.h: Likewise.
94290
94291         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
94292         on systems that have <inttypes.h> but not <stdint.h>.
94293
94294 2003-01-07  Bruno Haible  <bruno@clisp.org>
94295
94296         * MODULES.html.sh: Add copyright notice.
94297         (missed_files): Omit CVS directory entries.
94298         (func_module): Make it work with sed-3.02.
94299         * MODULES.txt: Remove file.
94300
94301 2003-01-06  Jim Meyering  <jim@meyering.net>
94302
94303         * lib/version-etc.c: Update year in translatable copyright string.
94304
94305 2003-01-03  Karl Berry  <karl@gnu.org>
94306
94307         * config/config.{guess,sub}: update from prep.
94308
94309 2003-01-02  Karl Berry  <karl@gnu.org>
94310
94311         * doc/COPYING.DOC: belatedly updated to 1.2.
94312
94313 2003-01-01  Karl Berry  <karl@gnu.org>
94314
94315         * gnulib-tool (func_verify_module): report module name $module in
94316         error message, not $1.
94317         * gnulib-tool (create-testdir): don't complain if destdir couldn't
94318         be created, only if it doesn't exist.
94319         * gnulib-tool (last_checkin_date): don't expand the $Date here.
94320
94321 2002-12-31  Paul Eggert  <eggert@twinsun.com>
94322
94323         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
94324
94325 2002-12-31  Paul Eggert  <eggert@twinsun.com>
94326
94327         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
94328         memcmp if strcoll doesn't work.
94329
94330 2002-12-31  Bruno Haible  <bruno@clisp.org>
94331
94332         * lib/utime.c (utime_null): No need to call ftruncate if the file was
94333         nonempty.
94334
94335 2002-12-31  Bruno Haible  <bruno@clisp.org>
94336
94337         * lib/memcoll.c (STRCOLL): New macro.
94338         (memcoll): Use it.
94339
94340 2002-12-31  Bruno Haible  <bruno@clisp.org>
94341
94342         * lib/localcharset.h: New file.
94343         * lib/localcharset.c: Include it.
94344         * lib/unicodeio.c: Likewise.
94345
94346 2002-12-31  Bruno Haible  <bruno@clisp.org>
94347
94348         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
94349         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
94350
94351 2002-12-31  Bruno Haible  <bruno@clisp.org>
94352
94353         * lib/getline.h: Include <stddef.h>, for size_t.
94354
94355         * lib/unicodeio.h: Include <stddef.h>, for size_t.
94356         * lib/unicodeio.c: Don't include <stddef.h>.
94357
94358 2002-12-31  Bruno Haible  <bruno@clisp.org>
94359
94360         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
94361         HAVE_TM_ZONE.
94362
94363 2002-12-24  Karl Berry  <karl@gnu.org>
94364
94365         * config/config.guess: update from prep.
94366
94367 2002-12-24  Bruno Haible  <bruno@clisp.org>
94368
94369         General infrasructure.
94370         * m4/README: Rewritten.
94371         * m4/onceonly.m4: New file.
94372         * m4/onceonly_2_57.m4: New file.
94373
94374         Module atexit.
94375         * m4/atexit.m4: New file.
94376
94377         Module strtod.
94378         * m4/strtod.m4: New file.
94379
94380         Module strtol.
94381         * m4/strtol.m4: New file.
94382
94383         Module strtoul.
94384         * m4/strtoul.m4: New file.
94385
94386         Module memchr.
94387         * m4/memchr.m4: New file.
94388
94389         Module memcmp.
94390         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
94391         (jm_FUNC_MEMCMP): Invoke it.
94392
94393         Module memcpy.
94394         * m4/memcpy.m4: New file.
94395
94396         Module memmove.
94397         * m4/memmove.m4: New file.
94398
94399         Module memset.
94400         * m4/memset.m4: New file.
94401
94402         Module strcspn.
94403         * m4/strcspn.m4: New file.
94404
94405         Module strpbrk.
94406         * m4/strpbrk.m4: New file.
94407
94408         Module strstr.
94409         * m4/strstr.m4: New file.
94410
94411         Module strerror.
94412         * m4/strerror.m4: New file.
94413
94414         Module mktime.
94415         * m4/mktime.m4: Renamed from jm-mktime.m4.
94416         (gl_PREREQ_MKTIME): New macro.
94417         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
94418
94419         Module malloc.
94420         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
94421         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
94422         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
94423
94424         Module realloc.
94425         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
94426         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
94427         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
94428
94429         Module strftime.
94430         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
94431         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
94432         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
94433         gl_TM_GMTOFF.
94434         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
94435
94436         Module xalloc.
94437         * m4/xalloc.m4: New file.
94438
94439         Module alloca.
94440         * m4/alloca.m4: New file.
94441
94442         Module putenv.
94443         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
94444         (jm_FUNC_PUTENV): Invoke it.
94445
94446         Module setenv.
94447         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
94448         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
94449         when invoked twice.
94450         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
94451         gt_FUNC_SETENV.
94452
94453         Module memrchr.
94454         * m4/memrchr.m4: New file.
94455
94456         Module stpcpy.
94457         * m4/stpcpy.m4: New file.
94458
94459         Module strcase.
94460         * m4/strcase.m4: New file.
94461
94462         Module strdup.
94463         * m4/strdup.m4: New file.
94464
94465         Module strnlen.
94466         * m4/strnlen.m4: New file.
94467
94468         Module strndup.
94469         * m4/strndup.m4: New file.
94470
94471         Module xstrtod.
94472         * m4/xstrtod.m4: New file.
94473
94474         Module xstrtol.
94475         * m4/xstrtol.m4: New file.
94476
94477         Module getdate.
94478         * m4/getdate.m4: New file.
94479
94480         Module unlocked-io.
94481         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
94482         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
94483         * m4/jm-glibc-io.m4n: Remove file.
94484
94485         Module long-options.
94486         * m4/long-options.m4: New file.
94487
94488         Module md5.
94489         * m4/md5.m4: New file.
94490
94491         Module sha.
94492         * m4/sha.m4: New file.
94493
94494         Module getstr.
94495         * m4/getstr.m4: New file.
94496
94497         Module getline.
94498         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
94499         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
94500         <sys/types.h>, for size_t. Use the function name gnu_getline, not
94501         simply getline. Infoke gl_PREREQ_GETLINE.
94502
94503         Module obstack.
94504         * m4/obstack.m4: New file.
94505
94506         Module hash.
94507         * m4/hash.m4: New file.
94508
94509         Module readtokens.
94510         * m4/readtokens.m4: New file.
94511
94512         Module strverscmp.
94513         * m4/strverscmp.m4: New file.
94514
94515         Module stdbool.
94516         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
94517         OSF/1.
94518
94519         Module strtoll.
94520         * m4/strtoll.m4: New file.
94521
94522         Module strtoull.
94523         * m4/strtoull.m4: New file.
94524
94525         Module strtoimax.
94526         * m4/strtoimax.m4: New file.
94527
94528         Module strtoumax.
94529         * m4/strtoumax.m4: New file.
94530
94531         Module xstrtoimax.
94532         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
94533         jm_AC_PREREQ_XSTRTOIMAX.
94534         Moved the strtol prerequisites to strtol.m4.
94535         Moved the strtoll prerequisites to strtoll.m4.
94536         Moved the strtoimax prerequisites to strtoimax.m4.
94537
94538         Module xstrtoumax.
94539         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
94540         jm_AC_PREREQ_XSTRTOUMAX.
94541         Moved the strtoul prerequisites to strtoul.m4.
94542         Moved the strtoull prerequisites to strtoull.m4.
94543         Moved the strtoumax prerequisites to strtoumax.m4.
94544
94545         Module chown.
94546         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
94547         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
94548
94549         Module dup2.
94550         * m4/dup2.m4: New file.
94551
94552         Module ftruncate.
94553         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
94554         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
94555
94556         Module getgroups.
94557         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
94558         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
94559
94560         Module gettimeofday.
94561         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
94562         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
94563         gl_PREREQ_GETTIMEOFDAY.
94564
94565         Module mkdir.
94566         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
94567         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
94568
94569         Module mkstemp.
94570         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
94571         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
94572         jm_AC_TYPE_UINTMAX_T.
94573         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
94574
94575         Module stat.
94576         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
94577         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
94578
94579         Module lstat.
94580         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
94581         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
94582
94583         Module timespec.
94584         * m4/timespec.m4 (gl_TIMESPEC): New macro.
94585         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
94586         * m4/st_mtim.m4: Indentation.
94587
94588         Module nanosleep.
94589         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
94590         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
94591         gl_PREREQ_NANOSLEEP.
94592
94593         Module regex.
94594         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
94595         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
94596         (gl_REGEX): New macro.
94597
94598         Module rename.
94599         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
94600         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
94601
94602         Module rmdir.
94603         * m4/rmdir.m4: New file.
94604
94605         Module utime.
94606         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
94607         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
94608         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
94609
94610         Module dirname.
94611         * m4/dirname.m4: New file.
94612
94613         Module getopt.
94614         * m4/getopt.m4: New file.
94615
94616         Module unistd-safer.
94617         * m4/unistd-safer.m4: New file.
94618
94619         Module fnmatch.
94620         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
94621         declaration.
94622         (gl_PREREQ_FNMATCH_EXTRA): New macro.
94623         (gl_FUNC_FNMATCH_POSIX): New macro.
94624         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
94625         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
94626         simply fnmatch.
94627
94628         Module exclude.
94629         * m4/exclude.m4: New file.
94630
94631         Module human.
94632         * m4/human.m4: New file.
94633
94634         Module acl.
94635         * m4/acl.m4: Nop.
94636
94637         Module backupfile.
94638         * m4/backupfile.m4: New file.
94639         * m4/d-ino.m4: Indentation.
94640
94641         Module fsusage.
94642         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
94643         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
94644         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
94645
94646         Module dirfd.
94647         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
94648         requirements.
94649
94650         Module euidaccess.
94651         * m4/euidaccess.m4: New file.
94652
94653         Module file-type.
94654         * m4/file-type.m4: New file.
94655
94656         Module fileblocks.
94657         * m4/fileblocks.m4: New file.
94658
94659         Module filemode.
94660         * m4/filemode.m4: New file.
94661
94662         Module isdir.
94663         * m4/isdir.m4: New file.
94664
94665         Module lchown.
94666         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
94667         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
94668
94669         Module makepath.
94670         * m4/makepath.m4: New file.
94671
94672         Module modechange.
94673         * m4/modechange.m4: New file.
94674
94675         Module mountlist.
94676         * m4/mountlist.m4: New file.
94677         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
94678         Indentation.
94679
94680         Module path-concat.
94681         * m4/path-concat.m4: New file.
94682
94683         Module pathmax.
94684         * m4/pathmax.m4: New file.
94685
94686         Module same.
94687         * m4/same.m4: New file.
94688
94689         Module save-cwd.
94690         * m4/save-cwd.m4: New file.
94691
94692         Module savedir.
94693         * m4/savedir.m4: New file.
94694
94695         Module xgetcwd.
94696         * m4/xgetcwd.m4: New file.
94697         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
94698
94699         Module xreadlink.
94700         * m4/xreadlink.m4: New file.
94701
94702         Module safe-read.
94703         * m4/safe-read.m4: New file.
94704
94705         Module safe-write.
94706         * m4/safe-write.m4: New file.
94707
94708         Module closeout.
94709         * m4/closeout.m4: New file.
94710
94711         Module stdio-safer.
94712         * m4/stdio-safer.m4: New file.
94713
94714         Module getpass.
94715         * m4/getpass.m4: New file.
94716
94717         Module getugroups.
94718         * m4/getugroups.m4: New file.
94719
94720         Module group-member.
94721         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
94722         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
94723
94724         Module idcache.
94725         * m4/idcache.m4: New file.
94726
94727         Module userspec.
94728         * m4/userspec.m4: New file.
94729
94730         Module gettime.
94731         * m4/clock_time.m4: New file.
94732         * m4/gettime.m4: New file.
94733
94734         Module settime.
94735         * m4/settime.m4: New file.
94736
94737         Module posixtm.
94738         * m4/posixtm.m4: New file.
94739
94740         Module gethostname.
94741         * m4/gethostname.m4: New file.
94742
94743         Module canon-host.
94744         * m4/canon-host.m4: New file.
94745
94746         Module gettext.
94747         * m4/codeset.m4: New file, from gettext-0.11.5.
94748         * m4/gettext.m4: New file, from gettext-0.11.5.
94749         * m4/glibc21.m4: New file, from gettext-0.11.5.
94750         * m4/iconv.m4: New file, from gettext-0.11.5.
94751         * m4/intdiv0.m4: New file, from gettext-0.11.5.
94752         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
94753         * m4/inttypes.m4: New file, from gettext-0.11.5.
94754         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
94755         * m4/isc-posix.m4: New file, from gettext-0.11.5.
94756         * m4/lcmessage.m4: New file, from gettext-0.11.5.
94757         * m4/lib-ld.m4: New file, from gettext-0.11.5.
94758         * m4/lib-link.m4: New file, from gettext-0.11.5.
94759         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
94760         * m4/progtest.m4: New file, from gettext-0.11.5.
94761         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
94762         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
94763         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
94764
94765         Module localcharset.
94766         * m4/localcharset.m4: New file.
94767
94768         Module hard-locale.
94769         * m4/hard-locale.m4: New file.
94770
94771         Module mbswidth.
94772         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
94773         onceonly macros.
94774         * m4/mbrtowc.m4: Add comment.
94775
94776         Module memcasecmp.
94777         * m4/memcasecmp.m4: New file.
94778
94779         Module memcoll.
94780         * m4/memcoll.m4: New file.
94781
94782         Module unicodeio.
94783         * m4/unicodeio.m4: New file.
94784
94785         Module rpmatch.
94786         * m4/rpmatch.m4: New file.
94787
94788         Module yesno.
94789         * m4/yesno.m4: New file.
94790
94791         Module exitfail.
94792         * m4/exitfail.m4: New file.
94793
94794         Module c-stack.
94795         * m4/c-stack.m4 (gl_C_STACK): New macro.
94796         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
94797
94798         Module error.
94799         * m4/error.m4 (gl_ERROR): New macro.
94800         (jm_PREREQ_ERROR): Use onceonly macros.
94801
94802         Module fatal.
94803         * m4/fatal.m4: New file.
94804
94805         Module getloadavg.
94806         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
94807         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
94808
94809         Module getpagesize.
94810         * m4/getpagesize.m4: New file.
94811
94812         Module getusershell.
94813         * m4/getusershell.m4: New file.
94814
94815         Module physmem.
94816         * m4/physmem.m4: New file.
94817
94818         Module posixver.
94819         * m4/posixver.m4: New file.
94820
94821         Module quotearg.
94822         * m4/quotearg.m4: New file.
94823
94824         Module quote.
94825         * m4/quote.m4: New file.
94826
94827         Module readutmp.
94828         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
94829
94830         Module sig2str.
94831         * m4/sig2str.m4: New file.
94832
94833         Other.
94834         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
94835         ulonglong.m4.
94836         * m4/intmax_t.m4: New file.
94837         * m4/d-type.m4: Indentation.
94838         * m4/jm-macros.m4: Update.
94839         * m4/prereq.m4 (jm_PREREQ): Update.
94840         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
94841         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
94842         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
94843         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
94844         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
94845         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
94846         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
94847         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
94848         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
94849         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
94850         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
94851         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
94852         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
94853         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
94854         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
94855         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
94856         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
94857         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
94858         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
94859
94860 2002-12-24  Bruno Haible  <bruno@clisp.org>
94861
94862         * MODULES.txt: Update according to m4/ changes.
94863
94864         Module gettext.
94865         * config.rpath: New file, from gettext-0.11.5.
94866
94867         * modules/*: New module descriptions.
94868         * gnulib-tool: New file.
94869         * MODULES.html.sh: New file.
94870
94871 2002-12-21  Karl Berry  <karl@gnu.org>
94872
94873         * doc/fdl.texi: update to version 1.2.
94874
94875 2002-12-19  Karl Berry  <karl@gnu.org>
94876
94877         * config/config.guess: update from prep.
94878
94879 2002-12-18  Bruno Haible  <bruno@clisp.org>
94880
94881         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
94882         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
94883
94884 2002-12-17  Bruno Haible  <bruno@clisp.org>
94885
94886         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
94887         stdlib.h, string.h.
94888
94889 2002-12-17  Bruno Haible  <bruno@clisp.org>
94890
94891         * lib/canon-host.c (strdup): Remove unused declaration.
94892
94893         * lib/fsusage.c: Include full_read.h.
94894         (get_fs_usage): Use full_read instead of safe_read.
94895
94896         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
94897
94898 2002-12-12  Karl Berry  <karl@gnu.org>
94899
94900         * config/config.guess: update from prep.
94901
94902 2002-12-11  Bruno Haible  <bruno@clisp.org>
94903
94904         * m4/setenv.m4: New file, from gettext-0.11.5.
94905
94906 2002-12-11  Bruno Haible  <bruno@clisp.org>
94907
94908         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
94909         not unsetenv().
94910         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
94911         modifications:
94912
94913         2002-12-11  Bruno Haible  <bruno@clisp.org>
94914
94915                 * setenv.c (alloca): Fall back to malloc.
94916                 (freea): New macro.
94917                 (setenv): Use freea() to free memory allocated with alloca().
94918
94919         2002-11-13  Bruno Haible  <bruno@clisp.org>
94920
94921                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
94922                 function declarations.
94923                 * unsetenv.c (unsetenv): Likewise.
94924
94925         2002-03-04  Bruno Haible  <bruno@clisp.org>
94926
94927                 Portability to AIX 4.3.3.
94928                 * unsetenv.c: New file, extracted from setenv.c.
94929                 * setenv.c: Move the unsetenv() function to unsetenv.c.
94930
94931         2001-12-20  Bruno Haible  <bruno@clisp.org>
94932
94933                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
94934                 use malloc instead. For SunOS 4.
94935
94936         2001-12-11  Bruno Haible  <bruno@clisp.org>
94937
94938                 * setenv.c: Declare alloca.
94939                 (compar_fn_t): New typedef.
94940                 (KNOWN_VALUE, STORE_VALUE): Use it.
94941
94942         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
94943         setenv.h.
94944
94945 2002-12-10  Paul Eggert  <eggert@twinsun.com>
94946
94947         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
94948         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
94949         Choose values that are less likely to collide with system fnmatch
94950         options.
94951         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
94952         defined (e.g., a pure POSIX system).
94953         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
94954         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
94955
94956 2002-12-06  Paul Eggert  <eggert@twinsun.com>
94957
94958         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
94959         a pain in practice to deal with generated m4 files.  This change
94960         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
94961
94962         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
94963         and jm-glibc-io.m4, as they are no longer a special case.
94964         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
94965         kludge and the auto-generation stuff.  Check only whether the
94966         functions are declared, not whether they exist, since older hosts
94967         that don't declare the functions can't use the optimization anyway.
94968
94969 2002-12-06  Jim Meyering  <jim@meyering.net>
94970
94971         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
94972
94973         Merge in changes from libc's misc/error.c, in preparation
94974         for the merge of gnulib's changes back into libc.
94975
94976         * lib/error.c (_): Define only if not already defined.
94977         Move definition to follow all #include directives.
94978         Include unlocked-io.h only if !_LIBC.
94979         [_LIBC]: Include <libio/libioP.h>.
94980         [USE_IN_LIBIO]: Include <libio/iolibio.h>
94981         (fflush): Tweak definition to use INTUSE.
94982         (putc): Define.
94983
94984 2002-12-05  Paul Eggert  <eggert@twinsun.com>
94985
94986         * lib/alloca.c [defined emacs]: Include "lisp.h".
94987         (xalloc_die) [defined emacs]: New macro.
94988         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
94989         [! defined emacs]: Include <xalloc.h>.
94990         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
94991         (pointer): Typedef to POINTER_TYPE *.
94992         (malloc): Remove decl; we now always use xmalloc.
94993         (alloca): Use old-style definition, since Emacs needs this.
94994         Check for arithmetic overflow when computing combined size.
94995
94996 2002-12-04  Paul Eggert  <eggert@twinsun.com>
94997
94998         Do not generate unlocked-io.h automatically, since it's easier to
94999         maintain it by hand.
95000
95001         * lib/unlocked-io.h: New file, from GNU diffutils,
95002         but with proper copyright notice and attribution.
95003         * lib/gen-uio: Remove.
95004         * lib/Makefile.am: Add copyright notice.
95005         (libfetish_a_SOURCES): Add unlocked-io.h.
95006         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
95007         (DISTCLEANFILES, io_functions): Remove macros.
95008         (EXTRA_DIST): Remove gen_uio.
95009         (unlocked-io.h): Remove rule.
95010
95011 2002-12-04  Jim Meyering  <jim@meyering.net>
95012
95013         Reflect the fact that stat.c and lstat.c are no longer generated.
95014         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
95015         (DISTCLEANFILES): Likewise.
95016         (EXTRA_DIST): Likewise.
95017         (all_local): Don't depend on stat.c or lstat.c.
95018         (stat.c, lstat.c): Remove rules.
95019         (EXTRA_DIST): Remove xstat.in.
95020
95021         * lib/xstat.in: Remove file.  Contents moved into stat.c.
95022         * lib/stat.c: New file.  Contents mostly from xstat.in.
95023         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
95024         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
95025
95026         * lib/safe-read.c: Rework so that it may serve to define safe_write,
95027         too.
95028         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
95029
95030 2002-12-03  Jim Meyering  <jim@meyering.net>
95031
95032         * lib/safe-read.c, safe-write.c: Change variable names and comments,
95033         but not semantics, to minimize the differences between these two files.
95034         (safe_read): Change comment to mention SAFE_READ_ERROR.
95035
95036         * lib/safe-read.c (IS_EINTR): Define.
95037         (safe_read): Use IS_EINTR in place of in-function cpp directives.
95038
95039 2002-12-02  Jim Meyering  <jim@meyering.net>
95040
95041         * lib/safe-read.c (EINTR): Define.
95042         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
95043         (INT_MAX): Provide fallback.
95044         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
95045
95046         * lib/safe-read.h (SAFE_READ_ERROR): Define.
95047
95048 2002-12-02  Bruno Haible  <bruno@clisp.org>
95049
95050         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
95051         Define, taken from safe-read.c.
95052         (INT_MAX): Provide fallback.
95053         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
95054         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
95055
95056         * lib/safe-read.c (EINTR): Remove definition.
95057         (safe_read): Don't use EINTR if it is absent.
95058
95059 2002-12-01  Jim Meyering  <jim@meyering.net>
95060
95061         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
95062         zero.
95063         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
95064
95065 2002-11-27  Paul Eggert  <eggert@twinsun.com>
95066
95067         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
95068         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
95069         with `if (! (value < limit)) abort ();', for readability.
95070
95071 2002-11-26  Karl Berry  <karl@gnu.org>
95072
95073         * lib/strdup.c: copy from libc again, with jim's ok.
95074         * lib/.cppi-disable: re-add strdup.c
95075
95076 2002-11-25  Karl Berry  <karl@gnu.org>
95077
95078         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
95079         instead of "strtol.c".
95080
95081 2002-11-25  Karl Berry  <karl@gnu.org>
95082
95083         * config/install-sh: update from automake for variable quoting, $0 in
95084         error msgs, etc.
95085
95086         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
95087         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
95088         entry.
95089
95090 2002-11-25  Jim Meyering  <jim@meyering.net>
95091
95092         * lib/mktime.c: Sync from libc, now that it has the latest fix.
95093
95094 2002-11-24  Karl Berry  <karl@gnu.org>
95095
95096         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
95097         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
95098
95099 2002-11-24  Jim Meyering  <jim@meyering.net>
95100
95101         Update from coreutils:
95102
95103         * lib/mktime.c: Merge in changes from libc.
95104
95105         Avoid a link-time failure on some Linux systems.
95106         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
95107         (otherwise).
95108         (__mon_yday): Declare with the STATIC attribute.
95109         (__mktime_internal): Likewise.
95110         Based on a report from Greg Schafer.
95111
95112 2002-11-23  Jim Meyering  <jim@meyering.net>
95113
95114         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
95115         Use `unsigned', not `int', as type of index.
95116
95117         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
95118
95119         * lib/fsusage.c: Remove unneeded parentheses around operands of
95120         `defined'.
95121
95122 2002-11-22  Paul Eggert  <eggert@twinsun.com>
95123
95124         * lib/quotearg.h: Allow multiple inclusion by surrounding with
95125         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
95126         so that we can be included first.
95127         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
95128         * lib/quotearg.c: Include quotearg.h immediately after config.h.
95129         No need to include stddef.h or sys/types.h any more.
95130         Surround local include files with "", not "<>".
95131         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
95132         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
95133         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
95134         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
95135         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
95136         (ISPRINT): Remove; no longer needed now that we assume C89.
95137
95138         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
95139         Preserve errno.
95140
95141         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
95142         quotearg_char): Use SIZE_MAX rather than
95143         (size_t) -1 when we are talking about "infinity".
95144
95145         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
95146
95147 2002-11-22  Paul Eggert  <eggert@twinsun.com>
95148
95149         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
95150         hint that one should use `if (! x) abort ();' rather than `assert
95151         (x);', and anyway it's one less thing to worry about configuring.
95152         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
95153         hash_rehash, hash_insert): Use abort rather than assert.
95154
95155 2002-11-22  Bruno Haible  <bruno@clisp.org>
95156
95157         * lib/safe-read.h: Assume C89. Add comments.
95158         (safe_read): Change return type to size_t.
95159         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
95160         byte counts > SSIZE_MAX correctly.
95161         * lib/safe-write.h: New file.
95162         * lib/safe-write.c: New file.
95163         * lib/full-read.h: New file.
95164         * lib/full-read.c: New file.
95165         * lib/full-write.h: Assume C89. Add comments.
95166         * lib/full-write.c: Include safe-write.h.
95167         (full_write): Rewritten to use safe_write.
95168         Suggested by Jim Meyering and Paul Eggert.
95169
95170 2002-11-21  Jim Meyering  <jim@meyering.net>
95171
95172         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
95173
95174         Merge in changes from the coreutils.
95175
95176         2002-09-25  Paul Eggert  <eggert@twinsun.com>
95177         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
95178         <stdint.h>.
95179         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
95180         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
95181         int.  Work more efficiently if X is the same width as uintmax_t.
95182         Do not compare X to -1, to avoid bogus compiler warning.
95183         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
95184         Don't assume that f_frsize and f_bsize are the same type.
95185
95186         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
95187         warning on FreeBSD.
95188
95189         * lib/makepath.c (make_path): Restore umask *before* creating the final
95190         component.
95191         (make_path): Minor reformatting.
95192
95193         * lib/xmalloc.c: Adjust to work with new autoconf macros,
95194         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
95195         HAVE_MALLOC/HAVE_REALLOC.
95196
95197         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
95198         dummy ones.  At least on GNU/Linux systems, `auto' means something
95199         else.
95200         From Michael Stone.
95201
95202 2002-11-21  Bruno Haible  <bruno@clisp.org>
95203
95204         Remove case insensitive option matching.
95205         * lib/argmatch.h (argcasematch): Remove declaration.
95206         (ARGCASEMATCH): Remove macro.
95207         (__xargmatch_internal): Remove case_sensitive argument.
95208         (XARGMATCH): Update.
95209         (XARGCASEMATCH): Remove macro.
95210         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
95211         case_sensitive argument.
95212         (argcasematch): Remove function.
95213         (__xargmatch_internal): Remove case_sensitive argument.
95214         (main): Use XARGMATCH instead of XARGCASEMATCH.
95215
95216         * lib/xmalloc.c: Change compile-time error message. Add comment about
95217         required autoconf version.
95218
95219 2002-11-20  Paul Eggert  <eggert@twinsun.com>
95220
95221         Merge argmatch cleanups from Bison.  Assume C89.
95222
95223         * lib/argmatch.c: Include config.h here, not in argmatch.h.
95224         Include stdlib.h, for EXIT_FAILURE.
95225         Always include <string.h>, since we assume C89.
95226         (EXIT_FAILURE): Remove pre-C89 bug workaround.
95227         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
95228         Include <stddef.h> instead, since it's all we need for size_t.
95229         (PARAMS): Remove.  All uses removed.
95230         (ARRAY_CARDINALITY): Do not bother to #undef.
95231         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
95232         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
95233         Remove unnecessary parentheses.
95234         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
95235         Insert necessary parentheses.
95236         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
95237         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
95238
95239 2002-11-19  Bruno Haible  <bruno@clisp.org>
95240
95241         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
95242         * lib/mbswidth.h: Include <stddef.h>, for size_t.
95243
95244         * lib/mbswidth.h (PARAMS): Remove macro.
95245         (mbswidth, mbsnwidth): Use ANSI C function declarations.
95246         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
95247
95248         * lib/gcd.h (PARAMS): Remove macro.
95249         (gcd): Use ANSI C function declarations.
95250         * lib/gcd.c (gcd): Likewise.
95251
95252 2002-11-15  Bruno Haible  <bruno@clisp.org>
95253
95254         * lib/strcspn.c: Include <stddef.h>.
95255         (strcspn): Use ANSI C function declaration. Change return type to
95256         size_t. Use NULL.
95257         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
95258         (strpbrk): Use NULL.
95259         * lib/strpbrk.h (PARAMS): Remove macro.
95260         (strpbrk): Use ANSI C function declaration.
95261         * lib/strstr.c: Don't include <sys/types.h>.
95262         * lib/strstr.h (PARAMS): Remove macro.
95263         (strstr): Use ANSI C function declarations.
95264
95265 2002-11-14  Karl Berry  <karl@gnu.org>
95266
95267         * config/mkinstalldirs: `do' on separate line, instead of
95268         `for var; do'.
95269
95270 2002-11-06  Bruno Haible  <bruno@clisp.org>
95271
95272         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
95273         * lib/gcd.c (gcd): Likewise.
95274
95275 2002-11-05  Bruno Haible  <bruno@clisp.org>
95276
95277         * lib/gcd.h: New file, from gettext-0.11.5.
95278         * lib/gcd.c: New file, from gettext-0.11.5.
95279
95280 2002-11-05  Bruno Haible  <bruno@clisp.org>
95281
95282         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
95283         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
95284         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
95285         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
95286
95287         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
95288         <libintl.h>.
95289         * lib/makepath.c: Include gettext.h instead of <locale.h> and
95290         <libintl.h>.
95291
95292         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
95293         * lib/human.c: Include gettext.h instead of <libintl.h>.
95294         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
95295         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
95296         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
95297         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
95298         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
95299         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
95300         (textdomain): Remove definition.
95301         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
95302
95303         * lib/long-options.c: Remove include of <libintl.h> and definition of
95304         _.
95305         * lib/same.c: Remove include of <libintl.h> and definition of _.
95306
95307 2002-11-04  Owen Taylor  <otaylor@redhat.com>
95308
95309         * lib/config.charset: A few additions for Solaris.
95310
95311 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
95312
95313         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
95314         * lib/localcharset.c (locale_charset): Declare as extern "C".
95315
95316 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
95317
95318         * lib/config.charset: msdos in uk_UA uses CP1125.
95319
95320 2002-11-04  Bruno Haible  <bruno@clisp.org>
95321
95322         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
95323         * lib/strcase.h: New file, from GNU gettext-0.11.5.
95324         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
95325         * lib/strstr.h: New file, from GNU gettext-0.11.5.
95326         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
95327
95328 2002-11-04  Bruno Haible  <bruno@clisp.org>
95329
95330         * lib/localcharset.c (locale_charset): Don't return an empty string.
95331
95332 2002-11-04  Bruno Haible  <bruno@clisp.org>
95333
95334         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
95335         aliases.
95336
95337 2002-11-04  Bruno Haible  <bruno@clisp.org>
95338
95339         * lib/config.charset: Update for newest glibc. Add canonical names
95340         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
95341
95342 2002-11-04  Bruno Haible  <bruno@clisp.org>
95343
95344         * lib/config.charset: Add support for NetBSD.
95345
95346 2002-11-04  Bruno Haible  <bruno@clisp.org>
95347
95348         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
95349
95350 2002-11-01  Bruno Haible  <bruno@clisp.org>
95351
95352         * configure.in: Add AC_CONFIG_AUX_DIR call.
95353         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
95354         test/Makefile.
95355         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
95356
95357 2002-09-28  Karl Berry  <karl@gnu.org>
95358
95359         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
95360         installed automake until the next release, since changes have been
95361         made.
95362
95363 2002-09-25  Karl Berry  <karl@gnu.org>
95364
95365         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
95366         * lib/getopt*: copy from libc/posix.
95367         * lib/gettext.h: copy from gettext.
95368         * lib/.cppi-disable: add strdup.c, gettext.h.
95369
95370 2002-09-25  Karl Berry  <karl@gnu.org>
95371
95372         * config/srclist.txt: enable gettext.h check.
95373         * config/config.{guess,sub}: update from prep.
95374         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
95375                 from automake 1.6.3.
95376         See srclist*.
95377
95378 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
95379
95380         * regex.c (PATFETCH): Remove the translating fetch.
95381         (PATFETCH_RAW): Rename to PATFETCH.
95382         (set_image_of_range): New fun.
95383         (SET_RANGE_TABLE_WORK_AREA): Use it.
95384         (regex_compile): Don't translate the pattern chars so eagerly.
95385         Only do it when inserting an `exactn' bytecode or when handling
95386         a char-range.
95387         (mutually_exclusive_p): Avoid empty statement.
95388
95389 2002-07-06  Jim Meyering  <meyering@lucent.com>
95390
95391         * m4/README: Don't mention Makefile.am.in.
95392         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
95393
95394 2002-07-01  Jim Meyering  <meyering@lucent.com>
95395
95396         * lib/c-stack.c: Include sys/time.h.
95397         From Volker Borchert.
95398
95399 2002-06-26  Paul Eggert  <eggert@twinsun.com>
95400
95401         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
95402
95403 2002-06-26  Paul Eggert  <eggert@twinsun.com>
95404
95405         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
95406         New macro.  Use it uniformly instead of
95407         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
95408         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
95409         reported by Vin Shelton.
95410
95411 2002-06-22  Paul Eggert  <eggert@twinsun.com>
95412
95413         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
95414         Do not assume SA_SIGINFO behavior.
95415         Bug reported by Jim Meyering on NetBSD 1.5.2.
95416
95417 2002-06-22  Jim Meyering  <meyering@lucent.com>
95418
95419         * m4/c-stack.m4: New file, from diffutils-2.8.2.
95420         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
95421
95422         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
95423         now that configure.ac uses AC_GNU_SOURCE.
95424         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
95425         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
95426
95427         Update to latest tools.  Suggestions from Paul Eggert.
95428         * m4/stdbool.m4: New file, from diffutils-2.8.2.
95429         * m4/gnu-source.m4: Update from diffutils-2.8.2.
95430         * m4/fnmatch.m4: Likewise.
95431         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
95432         to AC_HEADER_STDBOOL
95433
95434 2002-06-22  Jim Meyering  <meyering@lucent.com>
95435
95436         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
95437         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
95438
95439 2002-06-22  Jim Meyering  <meyering@lucent.com>
95440
95441         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
95442
95443         * lib/exitfail.c, exitfail.h: Likewise.
95444         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
95445
95446         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
95447         of fnmatch.h.
95448         (EXTRA_DIST): Add fnmatch_loop.c.
95449         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
95450
95451         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
95452         * lib/fnmatch.c: Update from diffutils-2.8.2.
95453         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
95454         * lib/fnmatch.h: Remove file.
95455
95456 2002-06-21  Jim Meyering  <meyering@lucent.com>
95457
95458         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
95459         * m4/mbrtowc.m4: Likewise.
95460
95461         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
95462         * m4/mbswidth.m4: Reflect name change:
95463         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
95464         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
95465
95466         * m4/lib-link.m4: Update from gettext-0.11.2.
95467         * m4/gettext.m4: Likewise.
95468
95469         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
95470         From Alfred M. Szmidt.
95471
95472 2002-06-18  Paul Eggert  <eggert@twinsun.com>
95473
95474         * lib/file-type.h: Report an error if neither S_ISREG nor
95475         S_IFREG is defined, instead of using a test specific to glibc
95476         2.2.  This should be safe, since POSIX requires S_ISREG and
95477         Unix Version 7 had S_IFREG.  We don't need to check for
95478         <sys/types.h> since we don't use any symbols that it defines.
95479
95480 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
95481
95482         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
95483         $@-t, so that each temporary file name is unique and valid in the first
95484         8 characters, for operation under DOS.
95485
95486 2002-06-15  Paul Eggert  <eggert@twinsun.com>
95487
95488         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
95489
95490 2002-06-15  Jim Meyering  <meyering@lucent.com>
95491
95492         Work even with DJGPP 2.03, which lacks support for symlinks.
95493         From Richard Dawe.
95494         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
95495         is defined.
95496         * lib/lchown.c (S_ISLNK): Likewise.
95497
95498 2002-06-15  Jim Meyering  <meyering@lucent.com>
95499
95500         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
95501         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
95502         have been included before this file.
95503
95504 2002-06-14  Jim Meyering  <meyering@lucent.com>
95505
95506         * lib/file-type.h: Use the version from diffutils-2.8.2.
95507         * lib/file-type.c: Likewise.
95508
95509 2002-06-07  Jim Meyering  <meyering@lucent.com>
95510
95511         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
95512         They're needed at least for NetBSD 1.5.2.
95513         ($statxfs_includes): Include those same headers.
95514         ($statxfs_includes): Include sys/vfs.h if available.
95515         ($statxfs_includes): Likewise for sys/statvfs.h.
95516         Check for the following members in both structs statfs and statvfs:
95517         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
95518
95519 2002-06-01  Jim Meyering  <meyering@lucent.com>
95520
95521         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
95522         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
95523
95524 2002-05-28  Jim Meyering  <meyering@lucent.com>
95525
95526         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
95527         Reported by Volker Borchert.
95528
95529 2002-05-27  Jim Meyering  <meyering@lucent.com>
95530
95531         Fix a problem seen only on nonconforming systems whereby ls.c's
95532         use of localtime, and then of gettimeofday would cause trouble:
95533         the localtime call used to initialize rpl_gettimeofday's save
95534         mechanism would clobber ls's current local time information so
95535         that in any long listing the first file would always be listed
95536         with date 1970-01-01.  Analysis by Volker Borchert.
95537
95538         * lib/gettimeofday.c (localtime): Undefine.
95539         (rpl_localtime): New function.
95540
95541 2002-05-27  Jim Meyering  <meyering@lucent.com>
95542
95543         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
95544         localtime.
95545
95546         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
95547         use the replacement function; it wouldn't resolve at link time.
95548         Reported by Volker Borchert.
95549
95550 2002-05-22  Jim Meyering  <meyering@lucent.com>
95551
95552         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
95553         file-type.h.
95554         * lib/file-type.h: New file.
95555         * lib/file-type.c (file_type): New file/function.  Extracted from
95556         diffutils.
95557
95558 2002-04-30  Jim Meyering  <meyering@lucent.com>
95559
95560         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
95561
95562 2002-04-29  Paul Eggert  <eggert@twinsun.com>
95563
95564         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
95565
95566 2002-04-29  Paul Eggert  <eggert@twinsun.com>
95567
95568         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
95569         Do not check for alloca.h (no longer used) or stdbool.h (was never
95570         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
95571
95572 2002-04-29  Paul Eggert  <eggert@twinsun.com>
95573
95574         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
95575
95576 2002-04-29  Jim Meyering  <meyering@lucent.com>
95577
95578         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
95579         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
95580         Use AC_FUNC_STRNLEN here instead.
95581
95582         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
95583         With autoconf-2.53a, it's part of AC_PROG_CC.
95584
95585 2002-04-28  Paul Eggert  <eggert@twinsun.com>
95586
95587         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
95588         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
95589
95590 2002-04-28  Paul Eggert  <eggert@twinsun.com>
95591
95592         * lib/sig2str.h, lib/sig2str.c: New files.
95593         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
95594
95595 2002-04-28  Paul Eggert  <eggert@twinsun.com>
95596
95597         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
95598         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
95599         of 127, since 64 is the largest conceivable number for ancient
95600         nonstandard hosts.
95601         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
95602
95603 2002-04-28  Jim Meyering  <meyering@lucent.com>
95604
95605         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
95606
95607 2002-04-24  Jim Meyering  <meyering@lucent.com>
95608
95609         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
95610         (jm_PREREQ): Use it.
95611
95612         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
95613         mach/mach.h fcntl.h.
95614         Check for this function: setlocale.
95615
95616 2002-04-24  Jim Meyering  <meyering@lucent.com>
95617
95618         * lib/gettext.h: New file, from Gettext.
95619         * lib/Makefile.am (INCLUDES): Remove -I../intl.
95620         (libfetish_a_SOURCES): Add gettext.h.
95621
95622 2002-04-16  Jim Meyering  <meyering@lucent.com>
95623
95624         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
95625         ut_pid, ut_id, ut_exit.
95626
95627 2002-04-16  Jim Meyering  <meyering@lucent.com>
95628
95629         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
95630         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
95631         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
95632
95633 2002-04-12  Jim Meyering  <meyering@lucent.com>
95634
95635         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
95636         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
95637         existence of the getmntinfo function.  Needed for Darwin 5.3.
95638
95639         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
95640         This is necessary at least on Darwin 5.3.
95641
95642         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
95643         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
95644         strnlen.o in the library, and that makes some versions of ranlib
95645         object.
95646
95647 2002-04-12  Jim Meyering  <meyering@lucent.com>
95648
95649         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
95650
95651 2002-04-09  Jim Meyering  <meyering@lucent.com>
95652
95653         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
95654         to be more precise.  Rather than saying we're checking whether the
95655         function `works', say what we're testing.
95656         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
95657         Reported by Bruno Haible.
95658
95659 2002-03-10  Jim Meyering  <meyering@lucent.com>
95660
95661         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
95662         Suggestion from Santiago Vila.
95663
95664 2002-03-08  Jim Meyering  <meyering@lucent.com>
95665
95666         * lib/rename.c: Mention that this wrapper is needed also on
95667         mips-dec-ultrix4.4 systems.
95668
95669 2002-03-02  Jim Meyering  <meyering@lucent.com>
95670
95671         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
95672         not HAVE_CLOCK_SETTIME.
95673
95674 2002-02-27  Paul Eggert  <eggert@twinsun.com>
95675
95676         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
95677         Check for clock_settime.
95678
95679 2002-02-27  Paul Eggert  <eggert@twinsun.com>
95680
95681         * lib/nanosleep.h: Rename to....
95682         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
95683
95684         * lib/gettime.c: New file.
95685         * lib/settime.c: New file.
95686         * lib/stime.c: Remove.
95687
95688         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
95689         timespec.h.  Remove nanosleep.h.
95690
95691 2002-02-25  Paul Eggert  <eggert@twinsun.com>
95692
95693         * m4/acl.m4: New file.
95694         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
95695         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
95696
95697 2002-02-25  Paul Eggert  <eggert@twinsun.com>
95698
95699         * lib/acl.c, lib/acl.h: New files.
95700         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
95701
95702 2002-02-24  Jim Meyering  <meyering@lucent.com>
95703
95704         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
95705         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
95706         cause trouble.  Reported by Nelson Beebe.
95707
95708 2002-02-23  Paul Eggert  <eggert@twinsun.com>
95709
95710         * lib/path-concat.c (xpath_concat): Reorder code to pacify
95711         compilers that don't know that xalloc_die never returns.
95712
95713 2002-02-20  Jim Meyering  <meyering@lucent.com>
95714
95715         * lib/getdate.c: Regenerate using bison-1.33.
95716
95717 2002-02-17  Jim Meyering  <meyering@lucent.com>
95718
95719         * config/config.guess (main): Don't use `head -1'; it's no longer
95720         portable. Use `sed 1q' instead.
95721
95722 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
95723
95724         * m4/codeset.m4: Upgrade to gettext-0.11.
95725         * m4/gettext.m4: Upgrade to gettext-0.11.
95726         * m4/glibc21.m4: Upgrade to gettext-0.11.
95727         * m4/iconv.m4: Upgrade to gettext-0.11.
95728         * m4/isc-posix.m4: Upgrade to gettext-0.11.
95729         * m4/lcmessage.m4: Upgrade to gettext-0.11.
95730         * m4/lib-ld.m4: New file, from gettext-0.11.
95731         * m4/lib-link.m4: New file, from gettext-0.11.
95732         * m4/lib-prefix.m4: New file, from gettext-0.11.
95733         * m4/progtest.m4: Upgrade to gettext-0.11.
95734
95735 2002-02-15  Paul Eggert  <eggert@twinsun.com>
95736
95737         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
95738         (jm_PREREQ): Use it.
95739
95740 2002-02-15  Paul Eggert  <eggert@twinsun.com>
95741
95742         * lib/posixver.c, lib/posixver.h: New files.
95743         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
95744
95745 2002-02-02  Paul Eggert  <eggert@twinsun.com>
95746             Bruno Haible  <bruno@clisp.org>
95747
95748         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
95749         (fwrite_success_callback): New declaration.
95750         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
95751         print_unicode_char. Call failure callback instead of error.
95752         (fwrite_success_callback): New function.
95753         (exit_failure_callback): New function.
95754         (fallback_failure_callback): New function.
95755         (print_unicode_char): Call unicode_to_mb.
95756
95757 2002-01-26  Jim Meyering  <meyering@lucent.com>
95758
95759         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
95760         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
95761
95762 2002-01-26  Jim Meyering  <meyering@lucent.com>
95763
95764         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
95765
95766 2002-01-22  Paul Eggert  <eggert@twinsun.com>
95767
95768         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
95769
95770 2002-01-22  Jim Meyering  <meyering@lucent.com>
95771
95772         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
95773         Otherwise, some versions of automake would omit the rule that makes
95774         Makefile from Makefile.in.
95775
95776 2002-01-21  Paul Eggert  <eggert@twinsun.com>
95777
95778         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
95779         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
95780         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
95781         (memcoll): Set errno to zero if there is no error.
95782
95783         * lib/quotearg.c (quotearg_buffer_restyled):
95784         Fix bug with quoting buffers containing NUL when backslashing escapes.
95785         This bug was exposed by the other changes in this patch.
95786         (quotearg_n_options): New arg ARGSIZE.
95787         All callers changed.
95788         (quoting_options_from_style): New function.
95789         (quotearg_n_style): Use it.
95790         (quotearg_n_style_mem): New function.
95791
95792         * lib/quotearg.h (quotearg_n_style_mem): New function.
95793
95794 2002-01-19  Jim Meyering  <meyering@lucent.com>
95795
95796         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
95797         Remove useless quotes: DF_PROG="df".
95798         * m4/strnlen.m4: New file.
95799
95800 2002-01-16  Paul Eggert  <eggert@twinsun.com>
95801
95802         * lib/backupfile.c (ISDIGIT): Comment fix.
95803         * lib/getdate.y (ISDIGIT): Likewise.
95804         * lib/posixtm.c (ISDIGIT, year): Likewise.
95805         * lib/strverscmp.c (ISDIGIT): Likewise.
95806         * lib/userspec.c (ISDIGIT): Likewise.
95807
95808 2002-01-16  Jim Meyering  <meyering@lucent.com>
95809
95810         * lib/getdate.y: Add three semicolons, each just before a closing
95811         brace. Bison (as of version 1.31) no longer papers over that mistake.
95812
95813 2002-01-05  Jim Meyering  <meyering@lucent.com>
95814
95815         * lib/version-etc.c (version_etc_copyright): Update copyright year.
95816
95817 2001-12-19  Paul Eggert  <eggert@twinsun.com>
95818
95819         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
95820         not silently exit merely because the output buffer happens to
95821         have nothing pending.
95822
95823 2001-12-18  Paul Eggert  <eggert@twinsun.com>
95824
95825         See the big note in ../ChangeLog.
95826         * lib/human.c (suffixes): Prefer K to k for 1024.
95827         (generate_suffix_backwards): New function.
95828         (human_readable_inexact): Use it.
95829         * lib/xstrtol.c (__xstrtol): If there is no number but there
95830         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
95831         Accept 'K' as well as 'k'.
95832
95833 2001-12-15  Jim Meyering  <meyering@lucent.com>
95834
95835         * lib/regex.h (__restrict_arr): Update from libc.
95836
95837         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
95838         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
95839         (STREQ): Define.
95840
95841 2001-12-14  Jim Meyering  <meyering@lucent.com>
95842
95843         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
95844         Suggestion from Bruno Haible.
95845
95846 2001-12-10  Jim Meyering  <meyering@lucent.com>
95847
95848         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
95849         xrealloc, Instead, include "xalloc.h".
95850         (initbuffer): Don't cast xmalloc return value to char*.
95851         (readline): Reword comment.
95852         Don't cast xrealloc return value to char*
95853         Return NULL, not 0.
95854
95855 2001-12-09  Jim Meyering  <meyering@lucent.com>
95856
95857         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
95858         about `signed and unsigned type in conditional expression'.
95859         * lib/posixtm.c (posix_time_parse): Likewise.
95860
95861         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
95862
95863         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
95864         to avoid a pedantic warning.
95865
95866         * lib/getstr.c: Don't include assert.h.
95867         (getstr): Remove warning-evoking assertions.
95868         Return -1 if offset parameter is out of bounds.
95869         Change the type of a local from int to size_t.
95870
95871         * lib/strftime.c (my_strftime_localtime_r): Include this function
95872         definition in the `#if ! HAVE_TM_GMTOFF' block.
95873
95874         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
95875         Include xalloc.h instead.
95876
95877 2001-12-02  Jim Meyering  <meyering@lucent.com>
95878
95879         * lib/tempname.c: Don't declare getenv, thus reverting the change of
95880         2001-11-18.  It's no longer necessary, now that stdlib.h is always
95881         included.
95882
95883         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
95884         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
95885
95886 2001-11-30  Akim Demaille  <akim@epita.fr>
95887
95888         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
95889         before being defined.
95890
95891 2001-11-27  Paul Eggert  <eggert@twinsun.com>
95892
95893         * lib/quotearg.h (quotearg_n, quotearg_n_style):
95894         First arg is int, not unsigned.
95895         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
95896         (SIZE_MAX, UINT_MAX): New macros.
95897         (quotearg_n_options): Abort if N is negative.
95898         Avoid overflow check on hosts where size_t is 64 bits and int
95899         is 32 bits, as overflow is impossible there.
95900         Fix off-by-one typo that caused unnecessary reallocation.
95901
95902 2001-11-27  Jim Meyering  <meyering@lucent.com>
95903
95904         * lib/tempname.c: Merge with version from libc.
95905         * lib/regex.c: Likewise.
95906
95907         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
95908         systems for which STDC_HEADERS is 0, it was not included, resulting in
95909         a warning about an integer-to-pointer conversion problem with getenv.
95910         Reported by Volker Borchert.
95911
95912 2001-11-26  Jim Meyering  <meyering@lucent.com>
95913
95914         * lib/gtod.h: Remove file.
95915         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
95916         * lib/gettimeofday.c: Don't include gtod.h.
95917         (GTOD_init): Remove function.
95918         (rpl_gettimeofday): Do its job here instead, rather than aborting.
95919         Suggestion from Volker Borchert.
95920
95921 2001-11-23  Jim Meyering  <meyering@lucent.com>
95922
95923         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
95924         it.
95925         * lib/hash.c (struct hash_table): Define it here instead.
95926
95927 2001-11-22  Jim Meyering  <meyering@lucent.com>
95928
95929         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
95930
95931 2001-11-20  Jim Meyering  <meyering@lucent.com>
95932
95933         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
95934         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
95935
95936 2001-11-19  Jim Meyering  <meyering@lucent.com>
95937
95938         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
95939         directory.  Use "conftestXXXXXX" as the template.
95940         Suggestion from Paul Eggert.
95941
95942         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
95943         immediately, so the test doesn't mistakenly hit the max-open-files
95944         limit.
95945
95946 2001-11-18  Paul Eggert  <eggert@twinsun.com>
95947
95948         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
95949         (TEMPORARIES): New macro.
95950         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
95951         removes an artificial limitation (e.g. HP-UX 10.20, where
95952         TMP_MAX is 17576).
95953
95954 2001-11-18  Jim Meyering  <meyering@lucent.com>
95955
95956         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
95957
95958 2001-11-18  Jim Meyering  <meyering@lucent.com>
95959
95960         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
95961         on SunOS 4.
95962
95963         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
95964         files will be created before anything else.
95965
95966 2001-11-17  Paul Eggert  <eggert@twinsun.com>
95967
95968         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
95969         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
95970
95971 2001-11-17  Jim Meyering  <meyering@lucent.com>
95972
95973         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
95974         Prompted by a report from Bob Proulx.
95975
95976         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
95977         Instead, require UTILS_FUNC_MKSTEMP.
95978
95979 2001-11-17  Jim Meyering  <meyering@lucent.com>
95980
95981         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
95982         Now, that's done as part of AC_FUNC_STRTOD.
95983
95984 2001-11-17  Jim Meyering  <meyering@lucent.com>
95985
95986         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
95987         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
95988         rather than group writable.  Patch by Juan F. Codagnone.
95989
95990         * lib/readtokens.c: Remove explicit declarations of xmalloc and
95991         xrealloc, Instead, include "xalloc.h".
95992
95993         * lib/mountlist.c: Include unlocked-io.h after all system headers.
95994         Remove explicit declarations of xmalloc, xrealloc,
95995         and xstrdup.  Instead, include "xalloc.h".
95996
95997         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
95998         unlocked-io.h.
95999         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
96000         Likewise.
96001         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
96002
96003         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
96004         Reported by Padraig Brady.
96005
96006         * lib/mkstemp.c: #undef mkstemp.
96007         Include config.h.
96008         (rpl_mkstemp): Rename from mkstemp.
96009         Protoize.
96010
96011 2001-11-16  Jim Meyering  <meyering@lucent.com>
96012
96013         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
96014         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
96015         determine the amount of total physical memory, use pstat_getstatic.
96016         HPUX-11 doesn't define _SC_PHYS_PAGES.
96017         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
96018         If sysconf couldn't be used to determine the amount of available
96019         physical memory, use both pstat_getstatic and pstat_getdynamic.
96020         Based on a patch from Bob Proulx.
96021
96022 2001-11-10  Jim Meyering  <meyering@lucent.com>
96023
96024         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
96025         (jm_PREREQ): Use it.
96026
96027 2001-11-09  Jim Meyering  <meyering@lucent.com>
96028
96029         * m4/jm-macros.m4: Require autoconf-2.52f.
96030         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
96031         Use these AC_-prefixed names, not the AM_-prefixed ones.
96032
96033         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
96034
96035 2001-11-05  Jim Meyering  <meyering@lucent.com>
96036
96037         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
96038
96039 2001-11-04  Jim Meyering  <meyering@lucent.com>
96040
96041         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
96042         $DEFS.
96043
96044 2001-11-03  Jim Meyering  <meyering@lucent.com>
96045
96046         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
96047         of AC_DEFUN.
96048
96049         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
96050         know the name of the variable in the macro definition.
96051
96052 2001-11-03  Jim Meyering  <meyering@lucent.com>
96053
96054         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
96055         in argmatch_to_argument call.
96056
96057         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
96058         argument.
96059
96060         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
96061         e.g., a fault due to an attempt to free a NULL pointer.
96062
96063 2001-11-01  Jim Meyering  <meyering@lucent.com>
96064
96065         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
96066         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
96067
96068 2001-11-01  Jim Meyering  <meyering@lucent.com>
96069
96070         * lib/dirfd.c, lib/dirfd.h: New files.
96071         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
96072
96073         * lib/hash.c (hash_print) [TESTING]: Clean up.
96074
96075 2001-10-22  Paul Eggert  <eggert@twinsun.com>
96076
96077         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
96078         to avoid a warning if -Wall.
96079
96080 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
96081
96082         * README: New file
96083         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
96084         (per RMS's instructions, this is now the canonical source)
96085         * lgpl/, gpl/: New directories.
96086
96087 2001-10-21  Paul Eggert  <eggert@twinsun.com>
96088
96089         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
96090
96091 2001-10-21  Jim Meyering  <meyering@lucent.com>
96092
96093         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
96094         this code would end up calling gettext even in packages built
96095         with --disable-nls.
96096         * lib/getopt.c (_): Likewise.
96097         * lib/regex.c (_): Likewise.
96098
96099 2001-10-20  Paul Eggert  <eggert@twinsun.com>
96100
96101         * m4/error.m4 (jm_PREREQ_ERROR):
96102         Do not invoke AC_CHECK_FUNCS with strerror_r, as
96103         AC_FUNC_STRERROR_R does that.
96104         Check for strerror declaration.
96105
96106         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
96107         are supposed to have them these days.
96108         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
96109         Merge changes from latest Autoconf CVS.
96110         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
96111         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
96112         POSIX decided to standardize on the int flavor of strerror_r.
96113
96114 2001-10-20  Paul Eggert  <eggert@twinsun.com>
96115
96116         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
96117         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
96118         Use strerror_r that is only a macro, even if it is not a function.
96119         (strerror): Check for HAVE_DECL_STRERROR before declaring.
96120         (private_strerror): Use prototypes, not old-style function definition.
96121         (print_errno_message): New function.
96122         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
96123         char*-flavored one.
96124         (error_tail, error, error_at_line): Use it.
96125
96126 2001-10-11  Jim Meyering  <meyering@lucent.com>
96127
96128         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
96129         and quote_n (1, ... to avoid clobbering a buffer.
96130
96131 2001-10-05  Jim Meyering  <meyering@lucent.com>
96132
96133         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
96134         hash-pjw.h.
96135         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
96136         * lib/hash-pjw.h: New file.
96137
96138 2001-09-30  Jim Meyering  <meyering@lucent.com>
96139
96140         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
96141         `struct fsstat' has the `f_fstypename' member.
96142         Use that to define FS_TYPE, which is now used to make
96143         the getfsstat link test tighter.
96144
96145 2001-09-30  Jim Meyering  <meyering@lucent.com>
96146
96147         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
96148         Include <sys/ucred.h>, for Apple Darwin.
96149         Include sys/mount.h and sys/fs_types.h only if available.
96150         (FS_TYPE): Define.
96151         (read_filesystem_list): Use FS_TYPE.
96152
96153 2001-09-29  Paul Eggert  <eggert@twinsun.com>
96154
96155         * lib/exclude.c (excluded_filename): 0 -> false, since it's
96156         a boolean context.
96157
96158 2001-09-29  Jim Meyering  <meyering@lucent.com>
96159
96160         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
96161         [one-argument getmntent function]): Include stdio.h before mntent.h.
96162         SunOS 4.1.x needs it for the declaration of `FILE'.
96163         Patch by Volker Borchert.
96164
96165         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
96166         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
96167         sys/fs_types.h, and make the link-test for getfsstat guard #include
96168         directives with appropriate #if HAVE_*_H tests so that we can
96169         detect getfsstat on Apple Darwin1.3.7 systems.
96170         Reported by Nelson Beebe.
96171         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
96172
96173 2001-09-28  Paul Eggert  <eggert@twinsun.com>
96174
96175         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
96176         #defines strtoimax.  Also treat the other strto* functions
96177         like strtoimax.
96178
96179         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
96180         Check for strtoul and strtoumax,
96181         as those declarations are made even in the signed case.
96182         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
96183         Likewise, for strtol and strtoimax.
96184
96185 2001-09-28  Paul Eggert  <eggert@twinsun.com>
96186
96187         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
96188         #defines strtoimax.  Also treat the other strto* functions
96189         like strtoimax.
96190
96191         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
96192         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
96193         (strtoimax, strtoumax): Do not declare if already defined as a macro.
96194
96195 2001-09-26  Jim Meyering  <meyering@lucent.com>
96196
96197         Most macros in unlocked-io.h had the wrong number of arguments.
96198         * lib/gen-uio: New script.
96199         (USE_UNLOCKED_IO): Define to 1 if not already defined.
96200         * lib/unlocked-io.hin: Remove file.
96201         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
96202         rather than trying to embed it here.
96203         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
96204         Reported by Padraig Brady.
96205
96206 2001-09-25  Volker Borchert  <bt@teknon.de>
96207
96208         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
96209         `result'.
96210
96211 2001-09-24  Jim Meyering  <meyering@lucent.com>
96212
96213         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
96214
96215 2001-09-23  Jim Meyering  <meyering@lucent.com>
96216
96217         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
96218         instead of the mere test for existence of mntent.h.  The latter
96219         would get a false-positive on AIX 3.4 systems.
96220         In the outer getmntent if-block, don't die if neither of the getmntent
96221         tests succeeds.  Instead, just fall through and continue with the
96222         remaining tests.
96223
96224 2001-09-23  Jim Meyering  <meyering@lucent.com>
96225
96226         * lib/mountlist.c: Remove useless parentheses in #if directives.
96227         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
96228         the deprecated MOUNTED symbol is no longer defined in mntent.h.
96229
96230 2001-09-22  Jim Meyering  <meyering@lucent.com>
96231
96232         * m4/gettext.m4: New file.  From gettext.
96233         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
96234         * m4/progtest.m4: Likewise
96235         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
96236         * m4/glibc21.m4: Likewise.
96237
96238         * m4/libintl.m4: Remove.  No longer used.
96239
96240 2001-09-22  Jim Meyering  <meyering@lucent.com>
96241
96242         * lib/localcharset.c: Update from latest gettext.
96243         * lib/config.charset: Likewise.
96244
96245 2001-09-20  Jim Meyering  <meyering@lucent.com>
96246
96247         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
96248         strtoimax.
96249         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
96250         strtoumax.
96251
96252 2001-09-20  Jim Meyering  <meyering@lucent.com>
96253
96254         * lib/xstrtol.c (strtoimax): Guard declaration with
96255         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
96256         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
96257         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
96258         (strtoumax): Likewise, for completeness (it wasn't necessary).
96259
96260 2001-09-17  Paul Eggert  <eggert@twinsun.com>
96261
96262         * lib/strtoimax.c (HAVE_LONG_LONG):
96263         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
96264         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
96265         to work around bug in IBM C compiler.
96266
96267 2001-09-17  Jim Meyering  <meyering@lucent.com>
96268
96269         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
96270         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
96271         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
96272         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
96273         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
96274         whenever the right hand side need not be expanded by the shell.
96275
96276 2001-09-16  Paul Eggert  <eggert@twinsun.com>
96277
96278         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
96279         library.  It's not correct, as some older glibcs are buggy.
96280         fnmatch wasn't fixed until glibc 2.2.
96281
96282         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
96283         special shell magic here.
96284
96285 2001-09-16  Jim Meyering  <meyering@lucent.com>
96286
96287         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
96288         * m4/jm-macros.m4: Require it.
96289
96290 2001-09-16  Jim Meyering  <meyering@lucent.com>
96291
96292         * lib/mkdir.c: New file.
96293
96294 2001-09-15  Jim Meyering  <meyering@lucent.com>
96295
96296         * m4/jm-macros.m4: Check for help2man.
96297
96298 2001-09-11  Jim Meyering  <meyering@lucent.com>
96299
96300         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
96301         The body, by Paul Eggert, was moved here from configure.in.
96302         * m4/jm-macros.m4: Require UTILS_HOST_OS.
96303
96304 2001-09-04  Paul Eggert  <eggert@twinsun.com>
96305
96306         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
96307         (jm_PREREQ): Use it.
96308
96309 2001-09-04  Paul Eggert  <eggert@twinsun.com>
96310
96311         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
96312         Use ssize_t, not int, to store result of readlink.
96313         Check for ssize_t overflow as well as size_t overflow,
96314         as POSIX says the result of readlink is implementation-defined
96315         when ssize_t overflows.
96316         Remove unnecessary cast to char*.
96317         Use free+malloc instead of realloc, as the storage doesn't need
96318         to be preserved and it's clearer and can be more efficient that way.
96319         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
96320         * lib/xreadlink.h (xreadlink): Update prototype.
96321
96322 2001-09-04  Paul Eggert  <eggert@twinsun.com>
96323
96324         * lib/xgetcwd.c: Revert some of the previous change; intead,
96325         fix the HAVE_GETCWD_NULL code to behave more like the
96326         !HAVE_GETCWD_NULL code used to.
96327
96328         Include "xalloc.h".
96329         (xgetcwd): Do not return NULL when memory is exhausted; instead,
96330         invoke xalloc_die.
96331
96332 2001-09-03  Paul Eggert  <eggert@twinsun.com>
96333
96334         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
96335         sys/param.h, as pathmax.h includes them.
96336
96337 2001-09-03  Paul Eggert  <eggert@twinsun.com>
96338
96339         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
96340         (jm_PREREQ_XGETCWD): New macro.
96341
96342         * m4/getcwd.m4: New file.
96343
96344 2001-09-03  Paul Eggert  <eggert@twinsun.com>
96345
96346         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
96347         like the HAVE_GETCWD_NULL code.
96348         Include pathmax.h if not HAVE_GETCWD.
96349         Do not include xalloc.h.
96350         (INITIAL_BUFFER_SIZE): New symbol.
96351         Do not use xmalloc / xrealloc, since the caller is responsible for
96352         handling errors.  Preserve errno around `free' during failure.
96353         Do not overrun buffer when using getwd.
96354
96355 2001-09-03  Paul Eggert  <eggert@twinsun.com>
96356
96357         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
96358         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
96359         getcwd (NULL, 0).
96360
96361 2001-09-03  Paul Eggert  <eggert@twinsun.com>
96362
96363         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
96364         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
96365         spotted by Jim Meyering.
96366
96367 2001-09-03  Jim Meyering  <meyering@lucent.com>
96368
96369         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
96370         failure.
96371
96372 2001-09-02  Jim Meyering  <meyering@lucent.com>
96373
96374         * lib/error.c: Update from GNU libc.
96375
96376 2001-09-01  Jim Meyering  <meyering@lucent.com>
96377
96378         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
96379         Used by df.
96380
96381 2001-09-01  Jim Meyering  <meyering@lucent.com>
96382
96383         * lib/xreadlink.c: New file.
96384         * lib/xreadlink.h: New file.
96385         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
96386         xreadlink.h.
96387
96388         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
96389         doesn't conflict with sparc Solaris 7's definition in
96390         /usr/include/sys/int_types.h.
96391
96392         * lib/exclude.c: Use `""', not `<>' to #include non-system header
96393         files.
96394         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
96395         and strncasecmp as r-values.  Unixware didn't have declarations.
96396
96397 2001-08-31  Paul Eggert  <eggert@twinsun.com>
96398
96399         * lib/xstrtol.h: Add copyright notice.
96400         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
96401         LONGINT_INVALID_SUFFIX_CHAR.
96402
96403 2001-08-31  Paul Eggert  <eggert@twinsun.com>
96404
96405         * lib/xstrtol.c (strtoimax): New decl.
96406
96407 2001-08-31  Paul Eggert  <eggert@twinsun.com>
96408
96409         * lib/xgetcwd.c: Don't include pathmax.h.
96410         Include stdlib.h and unistd.h if available.
96411         Include xalloc.h.
96412         (xmalloc, xstrdup, free): Remove decls.
96413         (xgetcwd): Don't assume sizes fit in unsigned.
96414         Check for overflow when computing sizes.
96415         Simplify reallocation code.
96416
96417 2001-08-31  Paul Eggert  <eggert@twinsun.com>
96418
96419         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
96420         a directory's st_size can have an arbitrary value, so the old
96421         usage could waste an arbitrary amount of memory.  All uses
96422         changed.
96423         * lib/savedir.h: Update prototype.
96424
96425 2001-08-31  Paul Eggert  <eggert@twinsun.com>
96426
96427         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
96428
96429         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
96430         old strtoimax.c.
96431
96432         Also, make the following further changes to make this file's
96433         configuration more similar to that of strtol.c:
96434         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
96435         (strtoumax, uintmax_t, strtoull, strtol): Remove.
96436         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
96437         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
96438         changed to signed values.
96439
96440         And make the following changes as well:
96441         Fix copyright notice, as 1999 was missing.
96442         (verify): New macro.
96443         (strtoimax): Check sizes at compile-time, not run-time.
96444         Prefer strtol to strtoll if both work.
96445         (main): Remove; it was not that useful and was a pain to maintain.
96446
96447         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
96448
96449 2001-08-31  Jim Meyering  <meyering@lucent.com>
96450
96451         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
96452         Use an initial, malloc'd, buffer of length 128 rather than
96453         a statically allocated one of length 1024.
96454
96455 2001-08-30  Paul Eggert  <eggert@twinsun.com>
96456
96457         Simplify code, partly by assuming autoconf 2.52 semantics.
96458
96459         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
96460
96461         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
96462         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
96463         All uses removed.
96464         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
96465         Move AC_REQUIRE to next-to-top level, to avoid confusion.
96466         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
96467         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
96468         jm_AC_HEADER_INTTYPES_H.
96469         * m4/jm-macros.m4 (jm_MACROS): Likewise.
96470
96471         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
96472
96473         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
96474         Quote first arg of AC_DEFUN.
96475         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
96476         since they are needed to parse the include file even if we need
96477         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
96478         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
96479         but with opposite signedness.
96480
96481 2001-08-30  Paul Eggert  <eggert@twinsun.com>
96482
96483         Merge 'exclude' changes from tar 1.13.22.
96484         This fixes one or two unlikely storage allocation overflow bugs,
96485         but doesn't change user-visible behavior otherwise.
96486
96487 2001-08-30  Paul Eggert  <eggert@twinsun.com>
96488
96489         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
96490         (jm_PREREQ_EXCLUDE): New macro.
96491
96492 2001-08-30  Paul Eggert  <eggert@twinsun.com>
96493
96494         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
96495         tm to be declared.
96496
96497 2001-08-30  Paul Eggert  <eggert@twinsun.com>
96498
96499         * lib/hash.c: Remove '2001' from copyright notice.
96500
96501 2001-08-30  Paul Eggert  <eggert@twinsun.com>
96502
96503         * lib/full-write.h: New file.
96504         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
96505         * lib/full-write.c: Correct credits, as cccp.c no longer
96506         exists and anyway it was so heavily changed from the old cccp
96507         code as to be unrecognizable.  Include full-write.h.
96508         (full_write): Return size_t, with short writes meaning failure.
96509         All callers changed.  This fixes a bug with large buffers
96510         on 64-bit hosts.
96511         * lib/utime.c: Include full-write.h.
96512
96513 2001-08-30  Paul Eggert  <eggert@twinsun.com>
96514
96515         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
96516         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
96517         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
96518         Include if available.
96519         (<xalloc.h>): Include
96520         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
96521         (verify): New macro.  Use it to verify that EXCLUDE macros do not
96522         collide with FNM macros.
96523         (struct patopts): New struct.
96524         (struct exclude): Use it, as exclude patterns now come with options.
96525         (new_exclude): Support above changes.
96526         (new_exclude, add_exclude_file):
96527         Initial size must now be a power of two to simplify overflow checking.
96528         (free_exclude, fnmatch_no_wildcards): New function.
96529         (excluded_filename): No longer requires options arg, as the options
96530         are determined by add_exclude.  Now returns bool, not int.
96531         (excluded_filename, add_exclude):
96532         Add support for the fancy new exclusion options.
96533         (add_exclude, add_exclude_file): Now takes int options arg.
96534         Check for arithmetic overflow when computing sizes.
96535         (add_exclude_file): xrealloc might modify errno, so don't
96536         realloc until after errno might be used.
96537
96538         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
96539         New macros.
96540         (free_exclude): New decl.
96541         (add_exclude, add_exclude_file): Now takes int options arg.
96542         (excluded_filename): No longer requires options arg, as the options
96543         are determined by add_exclude.  Now returns bool, not int.
96544
96545 2001-08-30  Paul Eggert  <eggert@twinsun.com>
96546
96547         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
96548
96549 2001-08-27  Jim Meyering  <meyering@lucent.com>
96550
96551         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
96552
96553         * lib/version-etc.c (N_): Remove definition.
96554         Revert most of last change.
96555         Instead, simply don't mark the `Copyright...' string for translation.
96556         Based on advice from Paul Eggert.
96557
96558         * lib/strtoxmax.c: Tweak comment.
96559
96560 2001-08-26  Jim Meyering  <meyering@lucent.com>
96561
96562         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
96563
96564         * m4/xstrtoimax.m4: New file.
96565         * m4/xstrtoumax.m4: Add comments explaining why we
96566         AC_REPLACE_FUNCS(strtol).
96567
96568 2001-08-26  Jim Meyering  <meyering@lucent.com>
96569
96570         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
96571         of copyright with `%s' so translators don't get an untranslated
96572         message in 2002.
96573         (COPYRIGHT_YEAR): Define.
96574         (version_etc): Use fprintf rather than fputs.
96575         Suggestion from Ulrich Drepper.
96576
96577         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
96578
96579         * lib/strtoll.c: New file, from GNU libc.
96580         * lib/xstrtoimax.c: New file.
96581
96582         * lib/xstrtol.h: Add xstrtoimax.
96583         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
96584         * lib/strtoimax.c: New file.  Likewise, but first define
96585         STRTOUXMAX_SIGNED.
96586
96587         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
96588         ...
96589         * lib/strtoxmax.c: ... then renamed to this.
96590
96591 2001-08-18  Paul Eggert  <eggert@twinsun.com>
96592
96593         * m4/inttypes.m4: Add AC_PREREQ(2.13).
96594         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
96595         (jm_AC_TYPE_INTMAX_T): New macro.
96596         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
96597
96598         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
96599
96600         * m4/longlong.m4: Renamed from ulonglong.m4.
96601         * m4/inttypes.m4: Renamed from inttypes_h.m4.
96602         * m4/uintmax_t.m4: Removed.
96603
96604 2001-08-13  Paul Eggert  <eggert@twinsun.com>
96605
96606         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
96607         Port to Solaris 8, where 'sed' requires a space after the 'r'
96608         command, and where sh dislikes "$/".  Clean up the spacing a bit.
96609         Redirect output to $tmp just once.
96610
96611 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
96612
96613         * lib/addext.c (<errno.h>): Include.
96614         (errno): Declare if not defined.
96615         (addext): Work correctly when pathconf returns -1 and leaves
96616         errno alone because there is no limit.  Also, work even if
96617         pathconf returns a value greater than SIZE_MAX.
96618
96619 2001-08-12  Jim Meyering  <meyering@lucent.com>
96620
96621         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
96622         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
96623         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
96624         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
96625         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
96626         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
96627         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
96628         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
96629         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
96630         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
96631         utime.m4, utimes.m4, xstrtoumax.m4:
96632         Quote the first argument in each use of AC_DEFUN.
96633
96634 2001-08-12  Jim Meyering  <meyering@lucent.com>
96635
96636         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
96637         Simply `return getcwd (NULL, 0);'.
96638         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
96639         Use 1300 as initial value for length, not PATH_MAX.
96640
96641         * lib/pathmax.h: Clean up cpp syntax.
96642
96643 2001-08-12  Jim Meyering  <meyering@lucent.com>
96644
96645         * lib/gettimeofday.c: New file.
96646         * lib/gtod.h: New file.
96647         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
96648
96649 2001-08-05  Jim Meyering  <meyering@lucent.com>
96650
96651         * m4/jm-macros.m4: Require autoconf-2.52.
96652
96653 2001-08-04  Jim Meyering  <meyering@lucent.com>
96654
96655         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
96656         stmt, to get in sync with glibc.
96657
96658 2001-08-03  Paul Eggert  <eggert@twinsun.com>
96659
96660         The following changes are from gettext 0.10.39 as maintained by
96661         Bruno Haible.
96662
96663         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
96664         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
96665         with inverted sense.  All uses changed.
96666
96667         * lib/mbswidth.c: Don't include <limits.h>.
96668         Include <stdlib.h> and <string.h> unconditionally.
96669         (iswcntrl, mbsinit, ISCNTRL): New macros.
96670         (mbsnwidth): Use K&R style function declarations.
96671         Don't bother checking for MB_LEN_MAX == 1, since the compiler
96672         can optimize it when MB_CUR_MAX == 1.
96673         The width of control characters is zero, not 1.
96674
96675 2001-08-03  Paul Eggert  <eggert@twinsun.com>
96676
96677         The following changes are from gettext 0.10.39 as maintained by
96678         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
96679
96680         * m4/codeset.m4: Upgrade to serial AM1.
96681         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
96682         all uses changed.  Quote first arg of AC_DEFUN.
96683         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
96684
96685         * m4/iconv.m4: Upgrade to serial AM2.
96686         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
96687         Add --with-libconv-prefix.
96688         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
96689         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
96690         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
96691         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
96692         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
96693
96694         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
96695         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
96696         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
96697         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
96698         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
96699         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
96700         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
96701         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
96702         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
96703
96704         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
96705         string.h any more.
96706
96707         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
96708         not the default value.
96709
96710         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
96711         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
96712         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
96713         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
96714         Also check for iswcntrl, used for wcwidth fallback.
96715         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
96716         to Autoconf 2.13.
96717
96718 2001-08-03  Jim Meyering  <meyering@lucent.com>
96719
96720         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
96721         as it was in the original.  Reported by Paul Eggert.
96722
96723 2001-07-16  Jim Meyering  <meyering@lucent.com>
96724
96725         * m4/gettimeofday.m4: New file.
96726         Prompted by a report from Bernhard Baehr.
96727
96728 2001-07-15  Jim Meyering  <meyering@lucent.com>
96729
96730         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
96731         stuff. Now it's in ../Makefile.cfg.
96732
96733 2001-07-15  Jim Meyering  <meyering@lucent.com>
96734
96735         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
96736         (BUILT_SOURCES): Add unlocked-io.h.
96737         (io_functions): Define.
96738         (unlocked-io.h): New rule.
96739         (DISTCLEANFILES): Add unlocked-io.h.
96740         (all-local): Depend on unlocked-io.h, to ensure it is created.
96741
96742         * lib/unlocked-io.hin: New file
96743
96744         * lib/regex.c: Update from glibc.
96745
96746 2001-07-05  Jim Meyering  <meyering@lucent.com>
96747
96748         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
96749         recommendation.
96750         (libfetish_a_SOURCES): Put all .h files here instead.
96751         Remove a thus-exposed (better checks in automake) duplicate and
96752         two unnecessary .h files.
96753
96754 2001-07-04  Jim Meyering  <meyering@lucent.com>
96755
96756         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
96757         that generates jm-glibc-io.m4 so that it doesn't trigger any make
96758         distcheck failure.
96759
96760 2001-07-02  Jim Meyering  <meyering@lucent.com>
96761
96762         The following changes were prompted by suggestions from Bruno Haible.
96763
96764         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
96765         is now generated.
96766         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
96767         definition of EXTRA_DIST.
96768         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
96769         ensure that the generated file is created/updated whenever the list
96770         of $(unlocked_functions) is changed.
96771         (jm-glibc-io.m4): New rule.
96772         (unlocked-io.h): New rule -- currently unused.
96773
96774 2001-06-24  Jim Meyering  <meyering@lucent.com>
96775
96776         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
96777         unmatched right bracket, rather than kludging it with an extra,
96778         falsely-matching quote in a comment.  Patch by Akim Demaille.
96779
96780 2001-06-11  Jim Meyering  <meyering@lucent.com>
96781
96782         * lib/regex.c: Update from GNU libc.
96783
96784 2001-05-27  Jim Meyering  <meyering@lucent.com>
96785
96786         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
96787         Check for ut_type in struct utmp.
96788
96789 2001-05-27  Jim Meyering  <meyering@lucent.com>
96790
96791         * lib/readutmp.h (UT_TYPE): Define.
96792
96793 2001-05-24  Jim Meyering  <meyering@lucent.com>
96794
96795         * lib/argmatch.c: Include "quote.h".
96796         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
96797         quote function.  Reported by Göran Uddeborg.
96798
96799 2001-05-22  Jim Meyering  <meyering@lucent.com>
96800
96801         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
96802         now that we use the package-supplied version unconditionally.
96803         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
96804
96805 2001-05-21  Jim Meyering  <meyering@lucent.com>
96806
96807         * m4/regex.m4: Change a couple backticks to single quotes to avoid
96808         shell syntax errors.
96809
96810 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
96811
96812         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
96813
96814 2001-05-20  Paul Eggert  <eggert@twinsun.com>
96815
96816         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
96817         Don't bother to check library strftime, since
96818         we'll be using our own my_strftime function anyway.
96819         Define my_strftime instead of strftime.
96820
96821 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
96822
96823         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
96824         which is not yet declared.
96825
96826 2001-05-15  Jim Meyering  <meyering@lucent.com>
96827
96828         * m4/regex.m4: Use proper quoting so brackets appear in the test
96829         program.
96830         Reported by, and with help from, Bruno Haible.
96831
96832 2001-05-13  Jim Meyering  <meyering@lucent.com>
96833
96834         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
96835         undefined.
96836
96837 2001-05-11  Paul Eggert  <eggert@twinsun.com>
96838
96839         dirname code cleanup.  base_name now behaves more compatibly
96840         with POSIX basename when given file names that have trailing
96841         slashes, and similarly for dir_name.  Add new primitives
96842         base_len and dir_len.  Put the directory-name-related decls
96843         into dirname.h.
96844
96845         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
96846         * lib/backupfile.c (base_name): Likewise.
96847         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
96848         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
96849         * lib/makepath.c (strip_trailing_slashes): Likewise.
96850         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
96851         ISSLASH): Likewise.
96852         * lib/rename.c (strip_trailing_slashes): Likewise.
96853         * lib/same.c (base_name): Likewise.
96854         * lib/stripslash.c (ISSLASH): Likewise.
96855
96856         * lib/addext.c: Include <dirname.h> after size_t is defined.
96857         * lib/backupfile.c: Likewise.
96858
96859         * lib/addext.c (addext): Use base_len to trim redundant
96860         trailing slashes instead of doing it ourselves.
96861         But do not trim the last slash if it is not redundant.
96862
96863         * lib/backupfile.c (find_backup_file_name,
96864         max_backup_version): Use base_len instead of rolling it ourselves.
96865         Handle the case of "" and (on DOS) "C:" correctly.
96866
96867         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
96868         needed. Include <string.h>, <dirname.h>.
96869         (base_name): Allow file names ending in slashes, other than names
96870         that are all slashes.  In this case, return the basename followed
96871         by the slashes.  This is more general, and can be used in places
96872         where the original base_name purposely had an assertion failure.
96873         (base_len): New function.
96874
96875         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
96876         Do not include <assert.h>; no longer needed.
96877         Include xalloc.h.
96878         (memrchr): Remove decl.
96879         (dir_name_r): Remove.
96880         (dir_len): Renamed from dirlen.  All callers changed.
96881         Rewrite in terms of base_name, for simplicity and consistency.
96882         (dir_name): Never return NULL.  All callers changed.
96883         Do not include <stdlib.h> in test program; no longer needed.
96884         return 0; is fine for test program.
96885
96886         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
96887         New macros.
96888         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
96889
96890         * lib/path-concat.c (path_concat): Use base_len to compute
96891         base length, not strlen; this means we cannot rely on memcpy
96892         to null-terminate.
96893
96894         * lib/same.c (STREQ): Remove.
96895         (same_name): Handle the case where the basename ends in trailing '/'.
96896
96897         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
96898         a slash was stripped.  Do not strip the last slash after a
96899         file system prefix.
96900
96901 2001-05-11  Paul Eggert  <eggert@twinsun.com>
96902
96903         * lib/Makefile.am (libfetish_a_SOURCES):
96904         Add strftime.c, since we now compile it on all hosts.
96905
96906         * lib/strftime.c (my_strftime):
96907         Define to nstrftime if emacs, but only if my_strftime is not defined.
96908         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
96909         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
96910         Add one more extra argument: a nanoseconds value.
96911         All uses changed.
96912         (ns): New macro.
96913         (my_strftime function): Add %N format.
96914         (emacs_strftimeu): Renamed from emacs_strftime,
96915         with extra ut argument.
96916
96917 2001-05-09  Paul Eggert  <eggert@twinsun.com>
96918
96919         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
96920
96921 2001-04-21  Jim Meyering  <meyering@lucent.com>
96922
96923         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
96924         doesn't interfere.
96925
96926 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
96927
96928         * m4/ftruncate.m4: Check for chsize.
96929         Link with ftruncate.o unconditionally if ftruncate is missing.
96930         This was required when cross-compiling to i586-mingw32msvc.
96931
96932 2001-04-08  Jim Meyering  <meyering@lucent.com>
96933
96934         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
96935         recomputed; that's necessary when the offset spans a DST transition.
96936         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
96937
96938 2001-04-02  Jim Meyering  <meyering@lucent.com>
96939
96940         * lib/regex.h, regex.c: Update from GNU libc.
96941
96942 2001-03-24  Jim Meyering  <meyering@lucent.com>
96943
96944         * m4/jm-macros.m4: Require autoconf-2.49d.
96945
96946 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
96947
96948         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
96949
96950 2001-03-19  Paul Eggert  <eggert@twinsun.com>
96951
96952         * lib/version-etc.c (version_etc_copyright): Update to 2001.
96953
96954 2001-03-17  Jim Meyering  <meyering@lucent.com>
96955
96956         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
96957         now that the version in autoconf is equivalent.
96958         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
96959
96960         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
96961         Suggestion from Akim Demaille.
96962
96963         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
96964         (jm_PREREQ_TEMPNAME): New function.
96965
96966 2001-03-16  Paul Eggert  <eggert@twinsun.com>
96967
96968         * lib/tempname.c (uint64_t): Define to uintmax_t if
96969         not defined, and if UINT64_MAX is not defined.
96970         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
96971         Reported by John David Anglin.
96972
96973 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
96974
96975         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
96976         resolve alias if codeset is empty.
96977         * lib/config.charset (BeOS): Use wildcard syntax.
96978
96979 2001-03-13  Jim Meyering  <meyering@lucent.com>
96980
96981         * lib/path-concat.c (path_concat)
96982         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
96983         concatenating e.g., `C:' and `foo'.
96984         From Bruno Haible.
96985
96986 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
96987
96988         * lib/localcharset.c (locale_charset): Don't use
96989         setlocale(LC_CTYPE,NULL). Don't return NULL.
96990         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
96991
96992 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
96993
96994         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
96995         support for DOS/DJGPP.
96996
96997 2001-03-01  Paul Eggert  <eggert@twinsun.com>
96998
96999         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
97000         lacks mkstemp.  Compile our own tempname.c if we compile our own
97001         mkstemp.c, as mkstemp relies on tempname.
97002
97003 2001-03-01  Jim Meyering  <meyering@lucent.com>
97004
97005         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
97006         AH_VERBATIM really does output its argument verbatim.
97007
97008 2001-02-28  Paul Eggert  <eggert@twinsun.com>
97009
97010         * lib/Makefile.am (libfetish_a_SOURCES):
97011         Add dup-safer.c, fopen-safer.c.
97012         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
97013
97014         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
97015         * lib/unistd-safer.h: New files.
97016
97017 2001-02-25  Paul Eggert  <eggert@twinsun.com>
97018
97019         The mkstemp replacement is taken from glibc 2.2.2, with some
97020         portability fixes for use outside glibc, as follows:
97021
97022         * lib/tempname.c (struct_stat64): New macro.
97023         (direxists, __gen_tempname): Use it.
97024         This avoids a portability problem with Solaris 8.
97025
97026         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
97027         (<stddef.h>, <stdint.h>, <string.h>):
97028         Include only if STDC_HEADERS || _LIBC.
97029         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
97030         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
97031         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
97032         (__set_errno): Define this macro if <errno.h> doesn't.
97033         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
97034         Define these macros if <stdio.h> doesn't.
97035         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
97036         Define these macros if <sys/stat.h>
97037         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
97038         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
97039         __xstat64): Define if not _LIBC.
97040         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
97041         (__gen_tempname): Invoke gettimeofday only if
97042         HAVE_GETTIMEOFDAY || _LIBC;
97043         otherwise, fall back on plain "time".
97044         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
97045
97046         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
97047
97048         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
97049
97050 2001-02-18  Paul Eggert  <eggert@twinsun.com>
97051
97052         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
97053
97054 2001-02-17  Paul Eggert  <eggert@twinsun.com>
97055
97056         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
97057         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
97058         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
97059         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
97060
97061 2001-02-17  Paul Eggert  <eggert@twinsun.com>
97062
97063         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
97064         Remove workaround macros for hosts that have mbrtowc but not
97065         mbstate_t, as we now insist on proper declarations for both
97066         before using mbrtowc.
97067
97068 2001-02-17  Jim Meyering  <meyering@lucent.com>
97069
97070         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
97071         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
97072         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
97073         UnixWare 7.1.1.
97074
97075         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
97076         rather than AC_CACHE_VAL.
97077
97078 2001-02-17  Jim Meyering  <meyering@lucent.com>
97079
97080         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
97081         around included file name.
97082
97083         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
97084
97085         * lib/strftime.c: Update from GNU libc (the only changes were to
97086         comments).
97087
97088 2001-02-17  Jim Meyering  <meyering@lucent.com>
97089
97090         * lib/regex.c: Update from libc.
97091
97092 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
97093
97094         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
97095         clash.
97096
97097 2001-02-16  Paul Eggert  <eggert@twinsun.com>
97098
97099         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
97100         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
97101         Reported by Mark Hounschell via Paul Eggert.
97102
97103 2001-02-07  Jim Meyering  <meyering@lucent.com>
97104
97105         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
97106
97107 2001-02-05  Jim Meyering  <meyering@lucent.com>
97108
97109         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
97110         it includes the patch required for `large file' support with at least
97111         HP-UX's 10.20 /bin/cc.
97112
97113 2001-02-03  Jim Meyering  <meyering@lucent.com>
97114
97115         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
97116         AS_IF, now that it works once again (mysteriously).
97117         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
97118
97119 2001-01-30  Jim Meyering  <meyering@lucent.com>
97120
97121         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
97122         * m4/chown.m4: Rename conftestchown to conftest.chown.
97123         * m4/rename.m4: s/conftestdir/conftest.d1/ and
97124         s/conftestdir2/conftest.d2/.
97125         * m4/utimes.m4: s/conftestdata/conftest.data/
97126         Inspired by Pavel Roskin's change in autoconf.
97127
97128 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
97129
97130         * lib/config.charset: Update for FreeBSD 4.2.
97131
97132 2001-01-27  Jim Meyering  <meyering@lucent.com>
97133
97134         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
97135         a use of AS_IF.
97136         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
97137
97138 2001-01-26  Jim Meyering  <meyering@lucent.com>
97139
97140         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
97141         quotearg.c includes it.
97142
97143 2001-01-26  Jim Meyering  <meyering@lucent.com>
97144
97145         * lib/quotearg.c: Include stddef.h.
97146         * lib/quote.c: Include stddef.h.
97147         Reported by Axel Kittenberger.
97148
97149         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
97150         line in double quotes so that it evokes a better diagnostic.
97151         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
97152         Reported by Axel Kittenberger.
97153
97154 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
97155
97156         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
97157         as if it was a `charset'.
97158
97159 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
97160
97161         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
97162         has const.
97163
97164 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
97165
97166         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
97167         to avoid a warning.  Add back 'const' to inptr.
97168
97169 2001-01-20  Jim Meyering  <meyering@lucent.com>
97170
97171         Be sure that headers are checked before used in code compiled
97172         for the type checks.
97173         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
97174         In place of that, invoke jm_CHECK_ALL_TYPES.
97175         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
97176         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
97177         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
97178         The check for ssize_t was mistakenly run before the test for unistd.h.
97179
97180         The configure-time check for stdbool.h was missing.
97181         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
97182         (jm_PREREQ_HASH): New function.
97183
97184 2001-01-17  Jim Meyering  <meyering@lucent.com>
97185
97186         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
97187         for autoconf-2.49c.
97188         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
97189
97190 2001-01-16  Jim Meyering  <meyering@lucent.com>
97191
97192         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
97193         From Bruno Haible.
97194
97195 2001-01-14  Jim Meyering  <meyering@lucent.com>
97196
97197         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
97198         foo and bar.  Create conftestdir/ in the script, not in the C code.
97199         Remove directories in the script, not in the C code.
97200         Remove conftestdir{,2} before trying to create the directory.
97201         Make the entire configure script fail if the mkdir fails.
97202
97203 2001-01-14  Jim Meyering  <meyering@lucent.com>
97204
97205         * lib/rename.c: New file.  From Volker Borchert.
97206         Include stdlib.h, string.h or strings.h, and xalloc.h.
97207         Use strip_trailing_slashes rather than open-coding it.
97208
97209 2001-01-03  Paul Eggert  <eggert@twinsun.com>
97210
97211         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
97212
97213 2001-01-03  Jim Meyering  <meyering@lucent.com>
97214
97215         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
97216         of local `inptr' to avoid warning with some system declarations of
97217         iconv.
97218
97219 2001-01-02  Volker Borchert  <bt@teknon.de>
97220
97221         * m4/rename.m4: New file.
97222         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
97223
97224 2001-01-01  Jim Meyering  <meyering@lucent.com>
97225
97226         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
97227         even on systems with utmpx.h.  It's necessary for the declaration of
97228         utmp's ut_user member.  Reported by Andreas Jaeger.
97229
97230         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
97231         available. They are required for the declarations of getgrgid and
97232         getpwuid resp.
97233         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
97234         Reported by Andreas Jaeger.
97235
97236 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
97237
97238         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
97239         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
97240         so `make install' also works in VPATH builds.
97241
97242 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
97243
97244         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
97245         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
97246         can be used in subdirectories.
97247
97248 2000-12-29  Paul Eggert  <eggert@twinsun.com>
97249
97250         * lib/modechange.c: Do not assume that mode_t uses the
97251         traditional octal encoding.  E.g. "chmod 1 FOO" should set
97252         the other-execute bit of FOO even if S_IXOTH != 1.
97253
97254         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
97255         WOTH, XOTH, ALLM): New macros.
97256         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
97257          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
97258         Use them.
97259         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
97260         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
97261         (mode_compile):
97262         No need to use uintmax_t; unsigned long is long enough.
97263         Don't bother to get suffix since we don't use it.
97264
97265 2000-12-26  Jim Meyering  <meyering@lucent.com>
97266
97267         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
97268         better with autoheader.
97269
97270 2000-12-24  Jim Meyering  <meyering@lucent.com>
97271
97272         * lib/hash.c (is_prime): Return explicit boolean values.
97273         (hash_get_first): Return NULL to appease Irix5.6's 89.
97274         Reported by Nelson Beebe.
97275
97276 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
97277
97278         * lib/localcharset.c (locale_charset): Add support for Win32.
97279
97280 2000-12-18  Paul Eggert  <eggert@twinsun.com>
97281
97282         * lib/physmem.h, lib/physmem.c: New files.
97283
97284         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
97285         (noinst_HEADERS): Add physmem.h.
97286
97287         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
97288         't' for compatibility with Solaris 8 sort.
97289
97290 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
97291
97292         * lib/config.charset: Add support for BeOS.
97293
97294 2000-12-17  Jim Meyering  <meyering@lucent.com>
97295
97296         * m4/dos.m4 (jm_AC_DOS): New file and macro.
97297         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
97298
97299 2000-12-16  Jim Meyering  <meyering@lucent.com>
97300
97301         This bug had a serious impact on chown: `chown N:M FILE' (for integer
97302         N and M) would have treated it like `chown N:N FILE'.
97303
97304         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
97305
97306 2000-12-16  Jim Meyering  <meyering@lucent.com>
97307
97308         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
97309         SHELLS_FILE to a file name that's useful on djgpp systems.
97310         Include stdlib.h.
97311         (ADDITIONAL_DEFAULT_SHELLS): Define.
97312         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
97313         Based mostly on a patch from Prashant TR.
97314
97315 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
97316
97317         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
97318         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
97319         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
97320
97321 2000-12-08  Andreas Schwab  <schwab@suse.de>
97322
97323         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
97324         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
97325
97326 2000-12-07  Jim Meyering  <meyering@lucent.com>
97327
97328         * lib/stripslash.c (ISSLASH): Define.
97329         (strip_trailing_slashes): Use ISSLASH rather than comparing against
97330         `/'.
97331         From Prashant TR.
97332
97333         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
97334         (dir_name_r): Declare this function as static.
97335         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
97336         manifest itself on a name containing a mix of slashes and
97337         backslashes.
97338         Make this function work with names starting with a DOS-style
97339         drive letter and colon prefix.
97340         (dir_name): Append `.' if necessary.
97341         Based mostly on patches from Prashant TR and Eli Zaretskii.
97342
97343         * lib/dirname.h (dir_name_r): Remove prototype.
97344
97345 2000-12-06  Paul Eggert  <eggert@twinsun.com>
97346
97347         * m4/off_t-format.m4: Remove this file.
97348         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
97349
97350 2000-12-06  Jim Meyering  <meyering@lucent.com>
97351
97352         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
97353         replacement strtoull, we may well need the replacement strtoul, too.
97354         Check for declarations of strtoul and strtoull.
97355         Check for strtol.  Mainly as a cue to cause automake to include
97356         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
97357         Check for limits.h -- strtol.c needs it.
97358
97359 2000-12-05  Jim Meyering  <meyering@lucent.com>
97360
97361         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
97362
97363 2000-12-04  Jim Meyering  <meyering@lucent.com>
97364
97365         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
97366         Also include memory.h, stdlib.h, unistd.h if appropriate.
97367         Reported by Andreas Jaeger (conflicting declaration of malloc).
97368
97369 2000-12-02  Jim Meyering  <meyering@lucent.com>
97370
97371         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
97372         * m4/jm-macros.m4 (jm_MACROS): require it.
97373
97374 2000-12-02  Jim Meyering  <meyering@lucent.com>
97375
97376         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
97377
97378 2000-12-01  Paul Eggert  <eggert@twinsun.com>
97379
97380         * lib/memrchr.c: Include <config.h> before any system include file.
97381
97382 2000-11-30  Jim Meyering  <meyering@lucent.com>
97383
97384         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
97385
97386 2000-11-30  Jim Meyering  <meyering@lucent.com>
97387
97388         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
97389
97390 2000-11-29  Paul Eggert  <eggert@twinsun.com>
97391
97392         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
97393
97394 2000-11-26  Jim Meyering  <meyering@lucent.com>
97395
97396         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
97397
97398 2000-11-22  Paul Eggert  <eggert@twinsun.com>
97399
97400         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
97401         size of (size_t) -1; it's not portable.
97402
97403 2000-11-17  Jim Meyering  <meyering@lucent.com>
97404
97405         * lib/strstr.c: Update from GNU libc.
97406
97407 2000-11-17  Akim Demaille  <akim@epita.fr>
97408
97409         * lib/obstack.h: Formatting changes.
97410         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
97411         prevent type checking.
97412         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
97413         cast the value to (void *): assigning a `foo *' to a `void *'
97414         variable is valid.
97415         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
97416
97417 2000-11-16  Jim Meyering  <meyering@lucent.com>
97418
97419         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
97420
97421 2000-11-11  Jim Meyering  <meyering@lucent.com>
97422
97423         * lib/error.c: Add a couple #includes, merging from GNU libc version.
97424
97425 2000-11-10  Jim Meyering  <meyering@lucent.com>
97426
97427         * lib/obstack.h: Update from GNU libc.
97428         * lib/obstack.c: Likewise.
97429
97430 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
97431
97432         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
97433
97434 2000-11-06  Paul Eggert  <eggert@twinsun.com>
97435
97436         * lib/getusershell.c (setusershell): Use rewind rather than
97437         fseek/fseeko, to avoid configuration hassles with fseeko.
97438         Don't bother opening SHELLS_FILE if shellstream is NULL;
97439         it's not necessary.
97440
97441 2000-11-05  Jim Meyering  <meyering@lucent.com>
97442
97443         * lib/makepath.h (make_dir): Declare.
97444         * lib/makepath.c (make_dir): Remove `static' attribute.
97445         Tweak a comment.
97446
97447 2000-11-04  Jim Meyering  <meyering@lucent.com>
97448
97449         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
97450
97451 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
97452
97453         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
97454         last one in a bucket, advance to the next bucket.
97455
97456 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
97457
97458         * lib/fnmatch.c: Do not comment out all the code if we are using
97459         the GNU C library, because in some cases we are replacing buggy
97460         code in the GNU C library itself.
97461
97462 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
97463
97464         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
97465         (regex_compile): Catch bogus \(\1\).
97466
97467 2000-10-30  Paul Eggert  <eggert@twinsun.com>
97468
97469         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
97470         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
97471         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
97472
97473 2000-10-30  Paul Eggert  <eggert@twinsun.com>
97474
97475         * lib/error.h, getline.h, modechange.h:
97476         Remove "2000" from Copyright line, as the file hasn't been
97477         changed this year other than in the copyright notice.
97478
97479         * lib/xalloc.h: Add "2000" to Copyright line, as this file
97480         was changed this year.
97481
97482 2000-10-29  Jim Meyering  <meyering@lucent.com>
97483
97484         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
97485         renaming.
97486         * m4/ls-mntd-fs.m4: Likewise
97487
97488 2000-10-29  Jim Meyering  <meyering@lucent.com>
97489
97490         * lib/xstat.in: Fix grammar in comment.
97491
97492 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
97493
97494         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
97495         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
97496         doesn't define __restrict_arr.
97497
97498 2000-10-28  Jim Meyering  <meyering@lucent.com>
97499
97500         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
97501         (jm_PREREQ_MEMCHR): New function.
97502
97503 2000-10-28  Jim Meyering  <meyering@lucent.com>
97504
97505         * lib/memchr.c: Update from libc.
97506         Adjust for portability:
97507         [HAVE_STDLIB_H]: Include stdlib.h.
97508         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
97509         Undef __memchr, too.
97510         [!weak_alias]: Define __memchr to memchr.
97511
97512         * lib/regex.c: Update from libc.
97513         * lib/regex.h: Likewise.
97514         * lib/getopt1.c: Likewise.
97515         * lib/memcmp.c: Likewise.
97516
97517         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
97518         Avoid using fseek, when possible -- it's broken by design.
97519         Patch by Ulrich Drepper.
97520
97521 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
97522
97523         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
97524         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
97525         Giving in to popular pressure to shut up the compiler with casts.
97526
97527 2000-10-26  Jim Meyering  <meyering@lucent.com>
97528
97529         * lib/strftime.c: Update from libc.
97530
97531 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
97532
97533         * regex.c: More `unsigned char' -> `re_char' changes.
97534         Also change several `int' into `re_wchar_t'.
97535         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
97536         (PUSH_FAILURE_POINTER): Don't cast any more.
97537         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
97538         We want GCC to complain, since this piece of code makes
97539         re_match non-reentrant, which *should* be fixed.
97540         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
97541         (EXTEND_BUFFER): Use RETALLOC.
97542         (SET_LIST_BIT): Don't cast.
97543         (re_wchar_t): New type.
97544         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
97545         that those two functions will always properly return.
97546         (IMMEDIATE_QUIT_CHECK): Cast to void.
97547         (analyse_first): Use recursion rather than an explicit stack.
97548         (re_compile_fastmap): Can't fail anymore.
97549         (re_search_2): Don't check re_compile_fastmap for failure.
97550         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
97551         Now also sets the new value (passed in a new argument).
97552         (re_match_2_internal): Use it.
97553         Also, use a new var `reg' of type size_t when looping through regs
97554         rather than reuse the inappropriate `mcnt'.
97555
97556 2000-10-25  Jim Meyering  <meyering@lucent.com>
97557
97558         * lib/obstack.c: Update from libc.
97559
97560 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
97561
97562         * regex.c (regex_compile): Change the way of handling a range from
97563         a char less than 256 to a char not less than 256.
97564
97565 2000-10-24  Andrew Innes  <andrewi@gnu.org>
97566
97567         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
97568         NT-Emacs only.
97569         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
97570         so that re_search functions only quit when callers expect them to.
97571
97572 2000-10-23  Jim Meyering  <meyering@lucent.com>
97573
97574         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
97575         wrong.  That set_locale call must not have any side effects.
97576         From Paul Eggert.
97577
97578 2000-10-22  Jim Meyering  <meyering@lucent.com>
97579
97580         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
97581         [CYCLIC]: Remove now-unused definition.
97582
97583         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
97584         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
97585         Suggestion from Ulrich Drepper.
97586
97587 2000-10-21  Jim Meyering  <meyering@lucent.com>
97588
97589         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
97590         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
97591         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
97592
97593 2000-10-21  Jim Meyering  <meyering@lucent.com>
97594
97595         * lib/dirname.c (memrchr): Declare if necessary.
97596         (dir_name): Remove the restriction that there be no
97597         trailing slashes.  Now, this code skips past them, effectively
97598         ignoring them.
97599         [TEST_DIRNAME] (main): New unit tests.
97600
97601         * lib/memrchr.c: New file from GNU libc.
97602         Undef __memrchr, too.
97603         [!weak_alias]: Define __memrchr to memrchr.
97604         Guard weak_alias use with `#ifdef weak_alias'.
97605
97606 2000-10-21  Jim Meyering  <meyering@lucent.com>
97607
97608         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
97609         (dir_name): Use dir_name_r.
97610         * lib/dirname.h (dir_name_r): Declare it.
97611
97612 2000-10-17  Jim Meyering  <meyering@lucent.com>
97613
97614         * lib/quote.h (PARAMS): Define and use.
97615         Reported by Akim Demaille.
97616
97617         * lib/getopt.c: Update from libc.
97618
97619 2000-10-16  Jim Meyering  <meyering@lucent.com>
97620
97621         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
97622         setlocale.
97623         From Jan Fedak.
97624
97625 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
97626
97627         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
97628
97629 2000-09-25  Jim Meyering  <meyering@lucent.com>
97630
97631         * lib/md5.h (rol): Define (from GnuPG).
97632
97633         * lib/sha.c: Give credit (GnuPG) where due.
97634         (M): Use rol rather than open-coding it.
97635         Add a FIXME comment.
97636
97637 2000-09-21  Jim Meyering  <meyering@lucent.com>
97638
97639         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
97640         Reported by Michael Stone.
97641
97642 2000-09-20  Jim Meyering  <meyering@lucent.com>
97643
97644         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
97645         (noinst_HEADERS): Add sha.h.
97646         Based on code from Scott G. Miller and from GnuPG.
97647
97648 2000-09-18  Jim Meyering  <meyering@lucent.com>
97649
97650         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
97651         LIBS. Otherwise, everyone ends up linking with -lelf for some
97652         configurations.
97653         Reported by Mike Stone.
97654
97655 2000-09-15  Jim Meyering  <meyering@lucent.com>
97656
97657         * lib/regex.c: Update from libc.
97658
97659 2000-09-10  Jim Meyering  <meyering@lucent.com>
97660
97661         * lib/getopt.c (_getopt_internal): Update from glibc.
97662
97663 2000-09-09  Jim Meyering  <meyering@lucent.com>
97664
97665         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
97666         think it should be used as a general replacement for isascii.
97667         * lib/fnmatch.c: Likewise.
97668         * lib/mbswidth.c: Likewise
97669         * lib/regex.c: Likewise.
97670
97671         Don't use atoi.
97672         * lib/userspec.c: Include sys/param.h and limits.h.
97673         Include xstrtol.h.
97674         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
97675         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
97676         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
97677         UID, GID.  Check range.
97678
97679 2000-09-06  Jim Meyering  <meyering@lucent.com>
97680
97681         * lib/getopt.c (_getopt_internal): Update from glibc.
97682
97683 2000-08-30  Jim Meyering  <meyering@lucent.com>
97684
97685         * lib/strftime.c: Merge in changes from GNU libc.
97686
97687 2000-08-26  Jim Meyering  <meyering@lucent.com>
97688
97689         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
97690         * m4/fpending.m4: New file.
97691
97692 2000-08-26  Jim Meyering  <meyering@lucent.com>
97693
97694         * lib/closeout.c: Include "__fpending.h".
97695         (close_stdout_status): Return right away if there's nothing to flush.
97696
97697         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
97698         * lib/__fpending.c: New file.
97699         * lib/__fpending.h: New file.
97700
97701 2000-08-20  Jim Meyering  <meyering@lucent.com>
97702
97703         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
97704         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
97705         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
97706
97707 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
97708
97709         Improve fileutils installation on systems where running
97710         programs (like install) can't be unlinked.
97711         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
97712         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
97713
97714 2000-08-07  Paul Eggert  <eggert@twinsun.com>
97715
97716         Standardize on "memory exhausted" instead of "Memory exhausted"
97717         or "virtual memory exhausted".
97718         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
97719         "virtual memory exhausted".
97720         * lib/same.c (same_name): Invoke xalloc_die instead of printing
97721         our own message.
97722         * lib/userspec.c (parse_user_spec): Likewise.
97723         * lib/bumpalloc.h: comment fix
97724         * lib/same.c, userspec.c: Include xalloc.h.
97725
97726         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
97727         not char *const and pointing to a constant array.
97728         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
97729         (xrealloc): Comment fix.
97730
97731         * lib/userspec.c (parse_user_spec):
97732         Don't translate a message until just before returning,
97733         to avoid unnecessary translation.
97734
97735 2000-08-07  Jim Meyering  <meyering@lucent.com>
97736
97737         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
97738         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
97739         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
97740         getgroups.c, gethostname.c, getopt.h, group-member.c,
97741         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
97742         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
97743         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
97744         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
97745         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
97746         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
97747         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
97748         yesno.c: Back out Copyright date changes for each file with no change
97749         this year.  This eases coordination with other programs using the same
97750         source code modules.  From Paul Eggert.
97751
97752 2000-08-06  Paul Eggert  <eggert@twinsun.com>
97753
97754         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
97755         not char, for compatibility with glibc 2.1.3 strftime.c.
97756
97757 2000-08-03  Greg McGary  <greg@mcgary.org>
97758
97759         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
97760         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
97761         (EXTEND_BUFFER): Use them.
97762
97763 2000-08-01  Jim Meyering  <meyering@lucent.com>
97764
97765         * lib/dirname.c (ISSLASH): Define.
97766         (BACKSLASH_IS_PATH_SEPARATOR): Define.
97767         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
97768         both `\' and `/' may be use as path separators.
97769         Based on a patch from Prashant TR.
97770
97771 2000-07-31  Paul Eggert  <eggert@twinsun.com>
97772
97773         * lib/quotearg.c (quotearg_n_options): Don't make the initial
97774         slot vector a constant, since it might get modified.
97775
97776 2000-07-31  Jim Meyering  <meyering@lucent.com>
97777
97778         * lib/xmalloc.c: Use `virtual memory exhausted', not
97779         `Memory exhausted'.
97780         * lib/obstack.c (print_and_abort): Likewise.
97781
97782 2000-07-30  Paul Eggert  <eggert@twinsun.com>
97783
97784         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
97785         buffer, so that the caller can always quote one small
97786         component of a "memory exhausted" message in slot 0.
97787         From a suggestion by Jim Meyering.
97788
97789 2000-07-30  Jim Meyering  <meyering@lucent.com>
97790
97791         * lib/makepath.c (make_path): Quote the other instance, too.
97792
97793         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
97794         (STATIC_BUF_SIZE): Define.
97795         (quotearg_n_options): Use only statically allocated storage when
97796         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
97797         than STATIC_BUF_SIZE.
97798
97799 2000-07-29  Jim Meyering  <meyering@lucent.com>
97800
97801         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
97802         * lib/dirname.c (dir_name): Likewise.
97803
97804         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
97805         `/'.
97806
97807         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
97808         (dir_name): Assert that there are no trailing slashes.
97809
97810 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
97811
97812         * lib/mbswidth.h (mbswidth): Add a flags argument.
97813         (mbswidth): New declaration.
97814         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
97815         * lib/mbswidth.c (mbswidth): Add a flags argument.
97816         (mbsnwidth): New function.
97817
97818 2000-07-24  Jim Meyering  <meyering@lucent.com>
97819
97820         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
97821
97822 2000-07-23  Paul Eggert  <eggert@twinsun.com>
97823
97824         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
97825
97826 2000-07-23  Paul Eggert  <eggert@twinsun.com>
97827
97828         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
97829         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
97830         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
97831         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
97832         invoke multibyte primitives.
97833
97834 2000-07-23  Paul Eggert  <eggert@twinsun.com>
97835
97836         * lib/quotearg.c:
97837         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
97838         so that mbstate_t is always defined.
97839
97840         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
97841         be 1 in at least one GCC installation, and this configuration
97842         error is likely to be common.  Ignoring MB_LEN_MAX hurts
97843         performance on hosts that have mbrtowc but have only unibyte
97844         locales, but I assume these hosts are rare.
97845
97846 2000-07-23  Paul Eggert  <eggert@twinsun.com>
97847
97848         * lib/mbswidth.c (_XOPEN_SOURCE):
97849         Don't define; this causes problems on Solaris 7.
97850         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
97851
97852 2000-07-23  Jim Meyering  <meyering@lucent.com>
97853
97854         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
97855         too: getgrgid, getpwuid, getuid.
97856
97857 2000-07-23  Jim Meyering  <meyering@lucent.com>
97858
97859         * lib/basename.c (base_name): Add an assertion.
97860
97861 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
97862
97863         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
97864         shadow its mbsinit function.
97865
97866 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
97867
97868         * lib/mbswidth.h: New file.
97869         * lib/mbswidth.c: New file.
97870         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
97871         (noinst_HEADERS): Add mbswidth.h.
97872
97873 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
97874
97875         * lib/config.charset: Add support for FreeBSD. Improve support for
97876         HP-UX and IRIX 6.
97877
97878 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
97879
97880         * m4/mbswidth.m4: New file.
97881         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
97882
97883 2000-07-15  Jim Meyering  <meyering@lucent.com>
97884
97885         * lib/makepath.c: Include quote.h.
97886         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
97887         corresponding argument in a `quote (...)' call.
97888         Give better diagnostics.
97889
97890         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
97891         (noinst_HEADERS): Add quote.h.
97892
97893         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
97894         from tar's src/misc.c.
97895         * lib/quote.h: New file.  Prototypes for same.
97896
97897 2000-07-14  Paul Eggert  <eggert@twinsun.com>
97898
97899         From a suggestion by Bruno Haible.
97900         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
97901         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
97902         to decide whether to define the BeOS workaround macro;
97903         this adjusts to the change to AC_MBSTATE_T.
97904
97905 2000-07-14  Jim Meyering  <meyering@lucent.com>
97906
97907         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
97908         jm_AC_TYPE_UINTMAX_T.
97909
97910 2000-07-13  Paul Eggert  <eggert@twinsun.com>
97911
97912         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
97913
97914         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
97915         quotearg_buffer_restyled): Add support for
97916         clocale_quoting_style.  Undo previous change to
97917         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
97918         and "{RIGHT QUOTATION MARK}" msgids.
97919
97920 2000-07-10  Paul Eggert  <eggert@twinsun.com>
97921
97922         From a suggestion by Bruno Haible.
97923         * m4/mbstate_t.m4 (AC_MBSTATE_T):
97924         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
97925         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
97926         and mbstate_t, to a single-part test that simply defines mbstate_t.
97927         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
97928         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
97929
97930 2000-07-10  Jim Meyering  <meyering@lucent.com>
97931
97932         * m4/strerror_r.m4: Mirror the correction made in autoconf.
97933
97934         * m4/gnu-source.m4: Output to confdefs.h directly.
97935         Suggestion from Akim Demaille.
97936
97937 2000-07-09  Paul Eggert  <eggert@twinsun.com>
97938
97939         The old behavior of quoting `like this' doesn't look good with
97940         newer, ISO-style fonts.  See:
97941         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
97942
97943         Instead, quote "like this" by default.  Let the translator
97944         tailor the locale-specific quoting behavior by providing
97945         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
97946
97947         * lib/quotearg.c (N_): New macro.
97948         (gettext_default): New function.
97949         (quotearg_buffer_restyled): Use
97950         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
97951         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
97952
97953 2000-07-09  Jim Meyering  <meyering@lucent.com>
97954
97955         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
97956         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
97957
97958         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
97959         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
97960
97961 2000-07-09  Jim Meyering  <meyering@lucent.com>
97962
97963         * lib/Most files: Update copyright dates to include 2000.
97964
97965 2000-07-08  Jim Meyering  <meyering@lucent.com>
97966
97967         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
97968         if not defined.
97969         (xgethostname): Remove now-unnecessary #ifdef.
97970         Move declaration of `err' into loop where it's used.
97971
97972 2000-07-05  Paul Eggert  <eggert@twinsun.com>
97973         and Bruno Haible  <haible@clisp.cons.org>
97974
97975         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
97976         only if the test for an object-type mbstate_t fails.  This
97977         prevents us from mistakenly reporting that mbstate_t is a
97978         system object type after we "#define mbstate_t int" to work
97979         around its lack.
97980
97981 2000-07-05  Paul Eggert  <eggert@twinsun.com>
97982         and Bruno Haible  <haible@clisp.cons.org>
97983
97984         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
97985
97986 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
97987
97988         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
97989         to strerror_r.
97990         Include <ctype.h> for use of isalpha.
97991
97992 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
97993
97994         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
97995         by allocating a larger buffer. Test the gethostname return value for
97996         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
97997         returns an error and ENAMETOOLONG isn't defined.
97998
97999 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
98000
98001         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
98002         dimension.
98003
98004 2000-07-04  Jim Meyering  <meyering@lucent.com>
98005
98006         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
98007         of the deprecated AC_CHECKING.
98008
98009 2000-07-04  Jim Meyering  <meyering@lucent.com>
98010
98011         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
98012         Reported by Bruno Haible.
98013
98014 2000-07-04  Jim Meyering  <meyering@lucent.com>
98015
98016         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
98017         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
98018         lacks mbrtowc.
98019
98020 2000-07-03  Paul Eggert  <eggert@twinsun.com>
98021
98022         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
98023         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
98024
98025 2000-07-03  Paul Eggert  <eggert@twinsun.com>
98026         and Bruno Haible  <haible@clisp.cons.org>
98027
98028         * lib/quotearg.c (mbrtowc):
98029         Assign to *pwc, and return 1 only if result is nonzero.
98030         (iswprint): Use ISPRINT when substituting our own mbrtowc.
98031
98032 2000-07-03  Jim Meyering  <meyering@lucent.com>
98033
98034         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
98035
98036 2000-07-03  Jim Meyering  <meyering@lucent.com>
98037
98038         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
98039         This is necessary to get a definition of e.g., UTMP_FILE on
98040         HP-UX 10.20.
98041         From Bob Proulx.
98042
98043 2000-07-02  Jim Meyering  <meyering@lucent.com>
98044
98045         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
98046
98047         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
98048         AC_LIBOBJ(function_name).
98049         * m4/chown.m4: Likewise.
98050         * m4/fnmatch.m4: Likewise.
98051         * m4/ftruncate.m4: Likewise.
98052         * m4/getgroups.m4: Likewise.
98053         * m4/getline.m4: Likewise.
98054         * m4/group-member.m4: Likewise.
98055         * m4/jm-macros.m4: Likewise.
98056         * m4/lstat.m4: Likewise.
98057         * m4/malloc.m4: Likewise.
98058         * m4/memcmp.m4: Likewise.
98059         * m4/nanosleep.m4: Likewise.
98060         * m4/putenv.m4: Likewise.
98061         * m4/realloc.m4: Likewise.
98062         * m4/regex.m4: Likewise.
98063         * m4/stat.m4: Likewise.
98064         * m4/strftime.m4: Likewise.
98065
98066 2000-07-02  Jim Meyering  <meyering@lucent.com>
98067
98068         * lib/quotearg.c (mbstate_t): Don't define here.
98069
98070 2000-07-02  Jim Meyering  <meyering@lucent.com>
98071
98072         * lib/nanosleep.c (SIGCONT): Define if not already defined.
98073
98074 2000-07-01  Jim Meyering  <meyering@lucent.com>
98075
98076         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
98077
98078 2000-07-01  Jim Meyering  <meyering@lucent.com>
98079
98080         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
98081         problem.
98082
98083 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
98084
98085         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
98086         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
98087
98088 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
98089
98090         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
98091         per change in ../m4/ls-mntd-fs.m4.
98092         (read_filesystem_list): Ignore symbolic links.
98093
98094 2000-06-29  Jim Meyering  <meyering@lucent.com>
98095
98096         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
98097         for declaration of strcmp.
98098
98099         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
98100
98101         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
98102         Avoid warning by casting result to `char *' to remove `const'.
98103
98104 2000-06-28  Jim Meyering  <meyering@lucent.com>
98105
98106         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
98107         included by quotearg.c, for which we perform this test.  From
98108         Bruno Haible.
98109
98110 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
98111
98112         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
98113         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
98114         <utmpx.h> exists, put readutmp.o into LIBOBJS.
98115
98116 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
98117
98118         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
98119
98120 2000-06-26  Paul Eggert  <eggert@twinsun.com>
98121
98122         savedir now sets errno on failure and invokes xmalloc to get memory.
98123         Fix a couple of other minor bugs while we're at it.
98124
98125         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
98126         (NAMLEN): Remove macro.
98127         (malloc, realloc): Remove decls.
98128         (stpcpy): Likewise.
98129         ("xalloc.h"): Include.
98130         (NAME_SIZE_DEFAULT): New macro.
98131         (savedir): Use xmalloc / xrealloc to allocate memory.
98132         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
98133         Skip "" directory entries.
98134         Use strlen to calculate directory entry length, since the old method
98135         is rarely used these days and isn't worth supporting.
98136         Don't use a pointer after freeing it.
98137         Check for integer overflow when calculating allocation size.
98138         Use memcpy to copy entries, instead of stpcpy.
98139         Set errno properly when returning NULL.
98140         Check for readdir error.
98141
98142 2000-06-26  Jim Meyering  <meyering@lucent.com>
98143
98144         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
98145
98146 2000-06-25  Jim Meyering  <meyering@lucent.com>
98147
98148         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
98149         Linux header bug when _XOPEN_SOURCE is defined to 500.
98150
98151 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
98152
98153         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
98154         deficiency.
98155
98156 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
98157
98158         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
98159         Include xalloc.h.
98160         Don't include <stdlib.h>.  Don't declare malloc, realloc.
98161
98162 2000-06-24  Jim Meyering  <meyering@lucent.com>
98163
98164         * m4/strerror_r.m4: Revive this file -- to try out an experimental
98165         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
98166         for which strerror does return char*, but which lacks a conveniently
98167         accessible declaration of the function.  If the compile-test says
98168         strerror_r doesn't work, then resort to a `run'-test that works on
98169         BeOS and segfaults on DEC Unix.
98170
98171 2000-06-24  Jim Meyering  <meyering@lucent.com>
98172
98173         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
98174
98175 2000-06-23  Paul Eggert  <eggert@twinsun.com>
98176
98177         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
98178         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
98179
98180 2000-06-23  Paul Eggert  <eggert@twinsun.com>
98181
98182         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
98183         (mbrtowc, mbstate_t): Define substitutes if
98184         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
98185         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
98186         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
98187
98188 2000-06-23  Jim Meyering  <meyering@lucent.com>
98189
98190         * m4/afs.m4: Add missing AC_MSG_RESULT.
98191         Reported by Bruno Haible.
98192
98193         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
98194         Suggestion from Bruno Haible.
98195
98196 2000-06-23  Jim Meyering  <meyering@lucent.com>
98197
98198         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
98199
98200 2000-06-21  Jim Meyering  <meyering@lucent.com>
98201
98202         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
98203
98204 2000-06-21  Jim Meyering  <meyering@lucent.com>
98205
98206         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
98207         (noinst_HEADERS): Add getstr.h.
98208
98209         * lib/getline.c (getstr): Move into a separate file.
98210         * lib/getstr.c (getstr): New file, extracted from getline.c, with
98211         the following changes: new parameter, delim2; both delim[12]
98212         parameters have type `int', not `char'.  The latter would lose
98213         with 8-bit delimiters.
98214         * lib/getstr.h: New file.
98215
98216 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
98217
98218         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
98219         than 1024, return a memory chunk of least possible size, instead
98220         of size PATH_MAX + 2. In the loop, increment the size proportionally.
98221         Use free/xmalloc instead of xrealloc to avoid copying for very long
98222         paths.
98223
98224 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
98225
98226         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
98227         the empty string.
98228
98229 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
98230
98231         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
98232         address, not strdup.  Include <stdlib.h> and don't declare free().
98233
98234 2000-06-19  Jim Meyering  <meyering@lucent.com>
98235
98236         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
98237
98238 2000-06-18  Jim Meyering  <meyering@lucent.com>
98239
98240         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
98241
98242         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
98243         `checking whether...' message to be consistent with that of the
98244         lstat test.
98245
98246 2000-06-18  Jim Meyering  <meyering@lucent.com>
98247
98248         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
98249         Besides, these days every porting target provides a mkdir function.
98250
98251         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
98252         needed. (this snippet comes from src/system.h).
98253
98254 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
98255
98256         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
98257
98258 2000-06-15  Paul Eggert  <eggert@twinsun.com>
98259
98260         * lib/human.c (adjust_value): New function.
98261         (human_readable_inexact): Apply rounding style even when
98262         printing approximate values.
98263
98264 2000-06-14  Paul Eggert  <eggert@twinsun.com>
98265
98266         * lib/human.c (human_readable_inexact): Allow an input block
98267         size that is not a multiple of the output block size, and vice versa.
98268         Reported by Piergiorgio Sartor.
98269
98270 2000-06-14  Paul Eggert  <eggert@twinsun.com>
98271
98272         * lib/getdate.y (get_date): Apply relative times after time
98273         zone indicator, not before.  Reported by Todd A. Jacobs.
98274
98275 2000-06-13  Jim Meyering  <meyering@lucent.com>
98276
98277         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
98278
98279         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
98280
98281 2000-06-12  Paul Eggert  <eggert@twinsun.com>
98282
98283         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
98284
98285 2000-06-12  Jim Meyering  <meyering@lucent.com>
98286
98287         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
98288         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
98289         optional argument.
98290         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
98291         the optional argument, `lib'.
98292
98293 2000-06-08  Jim Meyering  <meyering@lucent.com>
98294
98295         * m4/largefile.m4: Remove file (now that it's part of autoconf).
98296
98297 2000-06-04  Paul Eggert  <eggert@twinsun.com>
98298
98299         Rewrite largefile configuration so that we don't need to run
98300         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
98301         AC_CANONICAL_HOST in configure.in -- jmm]
98302
98303         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
98304         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
98305         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
98306         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
98307         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
98308         All uses changed.
98309         Instead of inspecting the output of getconf, try to compile the
98310         test program without and with the macro definition.
98311         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
98312         for getconf.  Instead, check for the needed flags by compiling
98313         test programs.
98314
98315 2000-06-04  Paul Eggert  <eggert@twinsun.com>
98316
98317         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
98318
98319 2000-06-04  Jim Meyering  <meyering@lucent.com>
98320
98321         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
98322         SunOS 4.1.4 for which gid_t is an unsigned type.
98323
98324 2000-06-03  Jim Meyering  <meyering@lucent.com>
98325
98326         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
98327         now that autoconf requires that.
98328
98329         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
98330         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
98331         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
98332
98333 2000-06-03  Jim Meyering  <meyering@lucent.com>
98334
98335         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
98336
98337 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
98338
98339         * m4/glibc21.m4: New file.
98340         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
98341
98342 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
98343
98344         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
98345         newer, don't install charset.alias.
98346         * lib/config.charset: Change the Linux/glibc rules so they become empty
98347         on glibc-2.1 or newer.
98348
98349 2000-06-02  Jim Meyering  <meyering@lucent.com>
98350
98351         * lib/mountlist.c: Back out last change.  Instead, do this...
98352         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
98353         me_dummy member using the same `ignore'-testing code.
98354         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
98355         fs_type strings.
98356         From Mark D. Roth.
98357
98358 2000-05-29  Jim Meyering  <meyering@lucent.com>
98359
98360         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
98361         mounts with the `ignore' attribute.  Based on a patch from
98362         Mark D. Roth.
98363
98364 2000-05-28  Jim Meyering  <meyering@lucent.com>
98365
98366         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
98367         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
98368         * m4/stat.m4: Likewise.
98369         * m4/lstat.m4: Likewise.
98370         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
98371
98372         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
98373         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
98374
98375 2000-05-26  Jim Meyering  <meyering@lucent.com>
98376
98377         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
98378
98379 2000-05-24  Jim Meyering  <meyering@lucent.com>
98380
98381         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
98382         autoconf requires that.
98383         * m4/lib-check.m4: Likewise.
98384         * m4/jm-macros.m4: Likewise.
98385         * m4/strftime.m4: Likewise.
98386
98387         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
98388         AC_CHECK_DECLS, now that autoconf requires that.
98389
98390 2000-05-22  Jim Meyering  <meyering@lucent.com>
98391
98392         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
98393         * m4/lstat.m4: Likewise.
98394
98395 2000-05-22  Jim Meyering  <meyering@lucent.com>
98396
98397         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
98398
98399 2000-05-20  Jim Meyering  <meyering@lucent.com>
98400
98401         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
98402         (jm_PREREQ): Use it.
98403
98404 2000-05-18  Jim Meyering  <meyering@lucent.com>
98405
98406         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
98407         back, too, since it may have been modified by allocate_entry.
98408         (hash_delete): Rewrite to use neither the assignment operator
98409         nor the comma operator in an if-expression.
98410
98411 2000-05-15  Paul Eggert  <eggert@twinsun.com>
98412
98413         * lib/closeout.c:
98414         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
98415         Remove; no longer needed.
98416         "quotearg.h": Add include.
98417         (file_name): Do not bother to explicitly initialize to NULL; it's less
98418         efficient on some hosts.
98419         (close_stdout_status): Remove test as to whether stdout was already
98420         closed; it breaks for the case "echo x | sort >&-".
98421         Quote file name colons.
98422         Do not assume that _("write error") lacks format strings.
98423
98424 2000-05-15  Jim Meyering  <meyering@lucent.com>
98425
98426         * lib/version-etc.c (version_etc_copyright): Update the copyright
98427         string used in all --version output.
98428
98429 2000-05-14  Jim Meyering  <meyering@lucent.com>
98430
98431         * lib/closeout.c (close_stdout_set_file_name): New function.
98432         (close_stdout_status): Use new file-scoped global.
98433         Return right away if fstat says the stdout file descriptor is invalid.
98434         * lib/closeout.h (close_stdout_set_file_name): Declare.
98435
98436 2000-05-10  Jim Meyering  <meyering@lucent.com>
98437
98438         * lib/closeout.c [default_exit_status]: New file-scoped variable.
98439         (close_stdout_set_status): New function.
98440         * lib/closeout.h (close_stdout_set_status): Declare.
98441
98442 2000-05-09  Jim Meyering  <meyering@lucent.com>
98443
98444         * m4/gettext.m4: Rename this...
98445         * m4/libintl.m4: ...to this.
98446
98447 2000-05-08  Jim Meyering  <meyering@lucent.com>
98448
98449         * lib/long-options.c: Don't include closeout.h.
98450         (parse_long_options): Don't call close_stdout for --version.
98451
98452 2000-05-06  Paul Eggert  <eggert@twinsun.com>
98453
98454         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
98455         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
98456         2.1.3 bug.  This avoids a clash when files like regex.c define
98457         _GNU_SOURCE.
98458
98459 2000-05-06  Jim Meyering  <meyering@lucent.com>
98460
98461         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
98462         (AC_REPLACE_FUNCS): Add strnlen.
98463
98464         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
98465         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
98466
98467         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
98468         AC_SEARCH_LIBS call for nanosleep.
98469         (LIB_NANOSLEEP): Set and AC_SUBST.
98470
98471 2000-05-06  Jim Meyering  <meyering@lucent.com>
98472
98473         * lib/strnlen.c: Undefine __strnlen and strnlen.
98474         [!weak_alias]: Define __strnlen to strnlen.
98475
98476         * lib/atexit.c: New file, from libiberty.
98477
98478 2000-05-06  Jim Meyering  <meyering@lucent.com>
98479
98480         * lib/closeout.c (close_stdout_status): Also check for errors on the
98481         stderr stream.
98482
98483 2000-05-05  Jim Meyering  <meyering@lucent.com>
98484
98485         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
98486         AC_SEARCH_LIBS call for clock_gettime.
98487         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
98488
98489         * m4/search-libs.m4: Update from autoconf.
98490
98491         su doesn't work on Solaris 2.6.
98492         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
98493         <shadow.h>.  Reported by Dragos Harabor.
98494
98495 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
98496
98497         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
98498         memcpy instead of xmalloc, xrealloc, path_concat.
98499         (locale_charset): Treat empty environment variables as absent.
98500         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
98501
98502 2000-05-04  Jim Meyering  <meyering@lucent.com>
98503
98504         * lib/getopt.c: Update from glibc.
98505         * lib/obstack.c: Likewise.
98506         * lib/obstack.h: Likewise.
98507         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
98508         file
98509
98510         * lib/regex.h: Likewise.
98511         * lib/strndup.c: Likewise.
98512         * lib/strnlen.c: New file, from glibc.
98513
98514 2000-05-03  Jim Meyering  <meyering@lucent.com>
98515
98516         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
98517
98518 2000-05-02  Paul Eggert  <eggert@twinsun.com>
98519
98520         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
98521         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
98522         compile-time test, rather than inspecting host and OS, to
98523         decide whether to define _LARGEFILE_SOURCE.
98524
98525 2000-05-01  Jim Meyering  <meyering@lucent.com>
98526
98527         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
98528
98529         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
98530         Based on a patch from Bruno Haible.
98531
98532 2000-05-01  Jim Meyering  <meyering@lucent.com>
98533
98534         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
98535
98536 2000-04-29  Jim Meyering  <meyering@lucent.com>
98537
98538         * lib/path-concat.c: Declare strdup only if it's not defined.
98539         * lib/canon-host.c: Likewise.
98540
98541 2000-04-28  Jim Meyering  <meyering@lucent.com>
98542
98543         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
98544         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
98545         is included first, then limits.h is included by locale.h by libintl.h.
98546         From John David Anglin.
98547
98548 2000-04-25  Jim Meyering  <meyering@lucent.com>
98549
98550         * lib/makepath.c (S_IRWXUGO): Define.
98551         (make_path): Always perform explicit chmod if MODE specifies any
98552         of the `special' permission bits.  Prompted by a bug report against
98553         install from Mate Wierdl and Joost van Baal.
98554
98555 2000-04-18  Jim Meyering  <meyering@lucent.com>
98556
98557         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
98558         (jm_PREREQ): Use it.
98559
98560 2000-04-18  Jim Meyering  <meyering@lucent.com>
98561
98562         * lib/README: New file.
98563
98564         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
98565         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
98566
98567 2000-04-17  Jim Meyering  <meyering@lucent.com>
98568
98569         Get it right :-)
98570         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
98571         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
98572         Suggestion from Akim Demaille.
98573
98574 2000-04-17  Jim Meyering  <meyering@lucent.com>
98575
98576         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
98577         the definition of it to rpl_strftime also defined-away the system's
98578         declaration.
98579
98580 2000-04-15  Jim Meyering  <meyering@lucent.com>
98581
98582         Use `C' to denote so-called `contiguous' files, the same way
98583         that tar does.
98584         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
98585         (ftypelet): Use S_ISCTG.
98586         From Michael Deutschmann.
98587
98588 2000-04-14  Jim Meyering  <meyering@lucent.com>
98589
98590         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
98591         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
98592         clobbered.
98593
98594 2000-04-14  Jim Meyering  <meyering@lucent.com>
98595
98596         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
98597
98598 2000-04-13  Jim Meyering  <meyering@lucent.com>
98599
98600         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
98601         AH_VERBATIM to insert required #ifndef into config.h.in.
98602         Suggestion from Akim Demaille.
98603
98604 2000-04-12  Jim Meyering  <meyering@lucent.com>
98605
98606         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
98607         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
98608         Christian Krackowizer.
98609
98610         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
98611         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
98612         (AC_SYS_LARGEFILE): Require.
98613         (AM_C_PROTOTYPES): Require.
98614
98615 2000-04-08  Jim Meyering  <meyering@lucent.com>
98616
98617         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
98618         names don't conflict.  Reported by Eli Zaretskii.
98619
98620 2000-04-07  Jim Meyering  <meyering@lucent.com>
98621
98622         * lib/putenv.c: Move inclusion of errno.h so it follows that of
98623         sys/types.h, to work around system header problems on AIX 3.2.5.
98624         From Bruno Haible.
98625
98626 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
98627
98628         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
98629         bug.  Deal with the different error behavior of Irix iconv.
98630
98631 2000-04-05  Paul Eggert  <eggert@twinsun.com>
98632
98633         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
98634         IRIX if the installer said otherwise.
98635
98636 2000-04-05  Jim Meyering  <meyering@lucent.com>
98637
98638         Portability tweaks required for ultrix4.3.
98639         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
98640         (jm_CHECK_DECLS): Add getutent to the list of functions.
98641         (_jm_DECL_HEADERS): Add utmpx.h.
98642         From John David Anglin.
98643
98644         * m4/strftime.m4: Back out the 2000-04-02 change.
98645         Instead of that change, simply undefine putenv in the test program.
98646
98647 2000-04-05  Jim Meyering  <meyering@lucent.com>
98648
98649         Portability tweaks required for ultrix4.3.
98650         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
98651         getutent.
98652         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
98653         * lib/canon-host.c: Declare strdup.
98654         * lib/path-concat.c: Likewise.
98655         From John David Anglin.
98656
98657 2000-04-04  Jim Meyering  <meyering@lucent.com>
98658
98659         Be more DOS 8.3-friendly.
98660         * lib/ref-add.sin: Renamed from ref-add.sed.in.
98661         * lib/ref-del.sin: Renamed from ref-del.sed.in.
98662         * lib/Makefile.am: Reflect renaming.
98663         Reported by Eli Zaretskii.
98664
98665         Use a temporary file name that won't clash with `charset.alias'
98666         in the DOS 8.3 name space.
98667         * lib/Makefile.am (charset_tmp): Define.
98668         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
98669         (uninstall-local): Likewise.
98670         Reported by Eli Zaretskii.
98671
98672 2000-04-03  Jim Meyering  <meyering@lucent.com>
98673
98674         * m4/gettext.m4: Fix typo in comment.
98675
98676         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
98677         textutils/configure.in).  Suggestion from Paul Eggert.
98678         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
98679
98680 2000-04-02  Paul Eggert  <eggert@twinsun.com>
98681
98682         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
98683         variable in the shell rather than using putenv, which isn't
98684         portable.  This avoids the configure-time inter-test dependency
98685         on the potentially-renamed putenv function.
98686
98687 2000-03-30  Paul Eggert  <eggert@twinsun.com>
98688
98689         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
98690         before checking struct stat.st_blksize, so that
98691         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
98692
98693 2000-03-29  Paul Eggert  <eggert@twinsun.com>
98694
98695         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
98696         since strftime.c uses HAVE_STRFTIME to decide whether to use
98697         the underlying strftime.
98698
98699 2000-03-29  Paul Eggert  <eggert@twinsun.com>
98700
98701         * lib/time/strftime.c (my_strftime): Make sure we call the system
98702         strftime, not ourselves, when invoking the underlying strftime.
98703
98704 2000-03-24  Jim Meyering  <meyering@lucent.com>
98705
98706         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
98707         (charset_alias): Define.
98708         (install-exec-local): Factor out common code.
98709         (uninstall-local): Split lines longer than 80.
98710         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
98711         (SUFFIXES): Define.
98712         (.sed.in.sed): New rule.  Don't redirect directly to $@.
98713         (CLEANFILES): Add ref-add.sed and ref-del.sed.
98714
98715 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
98716
98717         * lib/config.charset: Output a line containing "Packages using this
98718         file".
98719         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
98720         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
98721         ref-del.sed): New rules.
98722
98723 2000-03-17  Jim Meyering  <meyering@lucent.com>
98724
98725         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
98726         Otherwise, include <strings.h>
98727
98728 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
98729
98730         * lib/unicodeio.c (utf8_wctomb): New function.
98731         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
98732         format instead of in UCS-4 with platform dependent endianness.
98733
98734 2000-03-10  Jim Meyering  <meyering@lucent.com>
98735
98736         * m4/lib-check.m4: Look for getspnam in -lgen, too.
98737         From Marco Franzen.
98738
98739 2000-03-07  Paul Eggert  <eggert@twinsun.com>
98740
98741         * lib/savedir.c (savedir): Work even if directory size is
98742         negative; this can happen with some screwy NFS configurations.
98743
98744 2000-03-06  Jim Meyering  <meyering@lucent.com>
98745
98746         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
98747         if it's NULL (because we ran out of memory).  From Bruno Haible.
98748
98749 2000-03-05  Jim Meyering  <meyering@lucent.com>
98750
98751         * lib/localcharset.c ("path-concat.h"): Include.
98752         (get_charset_aliases): Use path_concat instead of ANSI string
98753         concatenation.
98754
98755         * lib/unicodeio.h (PARAMS): Define.
98756         Use it to guard prototype.
98757
98758 2000-03-04  Jim Meyering  <meyering@lucent.com>
98759
98760         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
98761         for lib/localcharset.c.
98762
98763 2000-03-04  Jim Meyering  <meyering@lucent.com>
98764
98765         * lib/Makefile.am (install-exec-local): Create $(libdir) before
98766         installing into it.
98767         (uninstall-local): Uncomment this rule so `make distcheck' works
98768         once again.
98769
98770         * lib/unicodeio.c (<errno.h>): Include it.
98771         (errno): Declare if not defined.
98772
98773         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
98774
98775         * lib/config.charset: New version, incorporating remarks from a linux
98776         i18n mailing list.  From Bruno Haible.
98777
98778 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
98779
98780         * m4/codeset.m4: New file.
98781         * m4/iconv.m4: New file.
98782         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
98783
98784 2000-03-03  Jim Meyering  <meyering@lucent.com>
98785
98786         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
98787
98788 2000-03-02  Jim Meyering  <meyering@lucent.com>
98789
98790         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
98791         the messages come out on separate lines.
98792
98793         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
98794         rather than jm_CHECK_DECLARATIONS.
98795         * m4/decl.m4: Remove now-unused file.
98796
98797         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
98798         geteuid.
98799
98800 2000-03-02  Jim Meyering  <meyering@lucent.com>
98801
98802         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
98803
98804 2000-03-01  Jim Meyering  <meyering@lucent.com>
98805
98806         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
98807         * lib/unicodeio.c: Likewise.
98808
98809 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
98810
98811         * lib/config.charset: New file.
98812         * lib/localcharset.c: New file.
98813         * lib/unicodeio.h, lib/unicodeio.c: New files.
98814         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
98815         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
98816         (noinst_HEADERS): Add unicodeio.h.
98817         (all-local, install-exec-local, charset.alias): New targets.
98818
98819 2000-02-28  Paul Eggert  <eggert@twinsun.com>
98820
98821         * lib/quotearg.c (ALERT_CHAR): New macro.
98822         (quotearg_buffer_restyled): Use it.
98823
98824 2000-02-27  Jim Meyering  <meyering@lucent.com>
98825
98826         * m4/check-decl.m4: Add getenv to the list.
98827
98828 2000-02-27  Jim Meyering  <meyering@lucent.com>
98829
98830         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
98831         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
98832
98833         * lib/backupfile.c: Guard inclusion of stdlib.h with
98834         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
98835         Declare malloc if needed.
98836
98837         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
98838         `#ifndef HAVE_DECL..'
98839         now that autoconf always defines the HAVE_DECL_ symbols.
98840         * lib/human.c: Likewise.
98841         * lib/same.c: Likewise.
98842         * lib/strtoumax.c: Likewise.
98843
98844         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
98845         declaration check was not run.
98846         * lib/hash.c: Likewise.
98847         * lib/human.c: Likewise.
98848         * lib/same.c: Likewise.
98849         * lib/strtoumax.c: Likewise.
98850
98851         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
98852         `.', then first look up the entire `.'-containing string as a login
98853         name.
98854
98855 2000-02-23  Jim Meyering  <meyering@lucent.com>
98856
98857         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
98858         in place of my hack.
98859
98860 2000-02-18  Paul Eggert  <eggert@twinsun.com>
98861
98862         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
98863         (textint): New typedef.
98864         (parser_control): Member year changed from int to textint.
98865         All uses changed.
98866         (YYSTYPE): Removed; replaced by %union with int and textint members.
98867         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
98868         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
98869         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
98870         (tSNUMBER, tUNUMBER): Now of type <textintval>.
98871         (date, number, to_year): Use width of number in digits, not its value,
98872         to determine whether it's a 2-digit year, or a 2-digit time.
98873         (yylex): Store number of digits of numeric tokens.
98874         Reported by John Kendall.
98875
98876         (parser_control): Changed from struct parser_control to typedef (for
98877         consistency).  All uses changed.
98878
98879         (tID): Removed; not used.
98880         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
98881
98882 2000-02-14  Paul Eggert  <eggert@twinsun.com>
98883
98884         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
98885         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
98886
98887 2000-02-12  Jim Meyering  <meyering@lucent.com>
98888
98889         * lib/userspec.c (ISDIGIT): Define it.
98890         (isdigit): Remove definition.
98891         (is_number): Use ISDIGIT, not isdigit.
98892         <libintl.h>: Include.
98893         (_ and N_): Define.
98894         (parse_user_spec): Mark translatable strings.
98895
98896 2000-02-10  Jim Meyering  <meyering@lucent.com>
98897
98898         With these changes, nanosleep.[ch] are finally enough like the other
98899         lib/* replacement files to compile on a few more losing systems.
98900
98901         * lib/nanosleep.h: Don't include config.h.
98902         Remove prototype from declaration of nanosleep.
98903         (PARAMS): Remove now-unneeded definition.
98904         * lib/nanosleep.c: #undef nanosleep.
98905         (rpl_nanosleep): Rename from nanosleep.
98906
98907 2000-02-10  Jim Meyering  <meyering@lucent.com>
98908
98909         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
98910         gnu_nanosleep to rpl_nanosleep.
98911
98912 2000-02-09  Jim Meyering  <meyering@lucent.com>
98913
98914         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
98915         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
98916
98917 2000-02-08  Akim Demaille  <akim@epita.fr>
98918
98919         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
98920         `[' and `]' and remove uses of `changequote'.
98921         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
98922         (AC_SYS_LARGEFILE): Likewise.
98923         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
98924         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
98925         of changequote.
98926         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
98927         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
98928         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
98929         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
98930
98931 2000-02-05  Jim Meyering  <meyering@lucent.com>
98932
98933         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
98934         Remove explicit use of AC_HEADER_TIME.  It is required by
98935         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
98936         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
98937         in autoconf whereby the expansion of the latter ended up preceding
98938         the expansion of its prerequisite, AC_HEADER_TIME.
98939         Reported by Volker Borchert.
98940
98941 2000-02-03  Jim Meyering  <meyering@lucent.com>
98942
98943         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
98944
98945 2000-02-03  Jim Meyering  <meyering@lucent.com>
98946
98947         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
98948         rather than with `#if HAVE_UTMPNAME'.
98949
98950 2000-02-02  Jim Meyering  <meyering@lucent.com>
98951
98952         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
98953         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
98954         Reported by Eli Zaretskii.
98955
98956 2000-02-01  Jim Meyering  <meyering@lucent.com>
98957
98958         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
98959
98960 2000-01-31  Jim Meyering  <meyering@lucent.com>
98961
98962         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
98963         functions.  Add the time.h and sys/time.h headers along with the
98964         AC_REQUIRE'ment of AC_HEADER_TIME.
98965
98966 2000-01-31  Jim Meyering  <meyering@lucent.com>
98967
98968         * lib/nanosleep.h (nanosleep): Guard declaration with
98969         `#if ! HAVE_DECL_NANOSLEEP'.
98970         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
98971         the declaration in that vendor's sys/timers.h.
98972         Reported by Christian Krackowizer.
98973
98974         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
98975         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
98976         (ISPRINT): Likewise.
98977         Reported by Tom Tromey.
98978
98979 2000-01-30  Jim Meyering  <meyering@lucent.com>
98980
98981         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
98982
98983         * m4/prereq.m4 (utmp_includes): Define.
98984         Check for ut_user and ut_name members in both struct utmpx
98985         and struct utmp.
98986
98987 2000-01-30  Jim Meyering  <meyering@lucent.com>
98988
98989         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
98990         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
98991         header files where only utmpx.ut_user is declared.
98992
98993         * lib/readutmp.h (UT_USER): Define.
98994
98995 2000-01-29  Jim Meyering  <meyering@lucent.com>
98996
98997         * m4/lib-check.m4: New file containing library-related checks from
98998         fileutils and sh-utils (textutils had none).
98999
99000 2000-01-28  Jim Meyering  <meyering@lucent.com>
99001
99002         * m4/perl.m4: Change format of warning message to look more like that
99003         from the missing script.  Suggestion from François Pinard.
99004
99005 2000-01-25  Jim Meyering  <meyering@lucent.com>
99006
99007         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
99008         well as time.h in the compile check.
99009         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
99010         Fix typo in cross-compiling case: s/yes/no/.
99011
99012 2000-01-23  Jim Meyering  <meyering@lucent.com>
99013
99014         * m4/jm-macros.m4: Move df-related tests here from
99015         fileutils/configure.in
99016
99017         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
99018         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
99019
99020         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
99021         s/space/ac_fsusage_space/.
99022         (jm_FILE_SYSTEM_USAGE): Take two parameters.
99023
99024         * m4/ftruncate.m4: New file (derived from part of
99025         fileutils/configure.in).
99026         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
99027         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
99028
99029         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
99030         AC_SUBST these here, rather than just in sh-util/configure.in, so
99031         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
99032         all the same.
99033         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
99034         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
99035         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
99036         (AC_SUBST(POW_LIBM)): Likewise.
99037         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
99038
99039 2000-01-23  Jim Meyering  <meyering@lucent.com>
99040
99041         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
99042         obstack.c.
99043
99044 2000-01-22  Jim Meyering  <meyering@lucent.com>
99045
99046         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
99047
99048         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
99049
99050         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
99051         configure.in
99052         (AC_CHECK_HEADERS): Likewise for sh-utils.
99053         (AC_CHECK_HEADERS): Likewise for textutils.
99054         Merge the three lists of headers.
99055
99056         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
99057         from fileutils' configure.in.
99058
99059         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
99060         code. Moved tests into their own function (_jm_DECL_HEADERS) in
99061         check-decl.m4.
99062
99063         * m4/check-decl.m4: Use #if rather than #ifdef.
99064         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
99065         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
99066         (_jm_DECL_HEADERS): Define new function.
99067         (jm_CHECK_DECLARATIONS): Require it.
99068
99069 2000-01-22  Jim Meyering  <meyering@lucent.com>
99070
99071         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
99072         [! HAVE_DECL_STRTOULL]: Declare strtoull.
99073         Required for some AIX systems.  Reported by Christian Krackowizer.
99074         [TESTING] (main): New function.
99075
99076         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
99077         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
99078         letters.
99079
99080         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
99081         iswprint.
99082
99083         * lib/strverscmp.c (ISDIGIT): Define.
99084         (strverscmp): Use ISDIGIT, not isdigit.
99085
99086 2000-01-19  Jim Meyering  <meyering@lucent.com>
99087
99088         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
99089         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
99090         defines `struct timespec' in <sys/time.h>
99091
99092         * m4/c-bs-a.m4: Remove uses of changequote altogether.
99093         Thanks to Akim for explaining.
99094
99095 2000-01-17  Paul Eggert  <eggert@twinsun.com>
99096
99097         * lib/nanosleep.c (nanosleep):
99098         Don't use SA_INTERRUPT to decide whether to call sigaction, as
99099         POSIX.1 doesn't require SA_INTERRUPT and some systems
99100         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
99101         it's been part of POSIX.1 since day 1 (in 1988).
99102
99103 2000-01-17  Jim Meyering  <meyering@lucent.com>
99104
99105         * lib/interlock: Remove unused file.  Reported by François Pinard.
99106
99107 2000-01-16  Paul Eggert  <eggert@twinsun.com>
99108
99109         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
99110         alert, backslash, formfeed, and vertical tab unnecessarily in
99111         shell quoting style.
99112
99113 2000-01-16  Jim Meyering  <meyering@lucent.com>
99114
99115         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
99116         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
99117         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
99118         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
99119
99120 2000-01-16  Jim Meyering  <meyering@lucent.com>
99121
99122         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
99123         because the latter didn't work.
99124
99125 2000-01-15  Jim Meyering  <meyering@lucent.com>
99126
99127         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
99128         (AC_REPLACE_FUNCS): Add memcpy and memset.
99129         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
99130         Add strpbrk.
99131         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
99132
99133 2000-01-12  Jim Meyering  <meyering@lucent.com>
99134
99135         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
99136         (jm_PREREQ): Use it.
99137         (jm_PREREQ_READUTMP): New macro.
99138         (jm_PREREQ): Use it.
99139
99140 2000-01-11  Paul Eggert  <eggert@twinsun.com>
99141
99142         Quote multibyte characters correctly.
99143         * m4/c-bs-a.m4: New file.
99144         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
99145         (jm_PREREQ): Use it.
99146
99147 2000-01-11  Paul Eggert  <eggert@twinsun.com>
99148
99149         * m4/uintmax_t.m4: Port to autoconf 2.13.
99150
99151 2000-01-08  Jim Meyering  <meyering@ascend.com>
99152
99153         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
99154         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
99155
99156 2000-01-04  Jim Meyering  <meyering@ascend.com>
99157
99158         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
99159         jm_STRUCT_DIRENT_D_TYPE.
99160         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
99161         jm_STRUCT_DIRENT_D_INO.
99162         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
99163         jm_STRUCT_UTIMBUF.
99164         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
99165         renamings.
99166         * m4/utime.m4: Likewise.
99167
99168         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
99169         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
99170
99171 2000-01-03  Paul Eggert  <eggert@twinsun.com>
99172
99173         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
99174         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
99175
99176 2000-01-02  Jim Meyering  <meyering@ascend.com>
99177
99178         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
99179         remember if this is necessary.
99180
99181 1999-12-26  Jim Meyering  <meyering@ascend.com>
99182
99183         * m4/jm-macros.m4: Use it here.
99184         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
99185
99186 1999-12-23  Jim Meyering  <meyering@ascend.com>
99187
99188         * m4/jm-macros.m4: Check for clock_gettime (moved from
99189         fileutils/configure.in)
99190         Check for gettimeofday.
99191
99192 1999-12-20  Jim Meyering  <meyering@ascend.com>
99193
99194         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
99195         autoconf-2.14a-1999-12-20.
99196
99197 1999-12-19  Jim Meyering  <meyering@ascend.com>
99198
99199         * m4/lstat-slash.m4: New file.
99200         * m4/jm-macros.m4: Use the new macro:
99201         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
99202
99203 1999-12-07  Jim Meyering  <meyering@ascend.com>
99204
99205         * m4/perl.m4: Require that File::Compare be available, too.
99206         Too many systems seem to lack it.
99207
99208         * m4/strftime.m4: Add checks for most of the cpp macros tested in
99209         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
99210
99211 1999-11-18  Paul Eggert  <eggert@twinsun.com>
99212
99213         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
99214         problem with the QNX 4.25 shell, which doesn't propagate exit
99215         status of failed commands inside shell assignments.
99216
99217 1999-11-17  Jim Meyering  <meyering@ascend.com>
99218
99219         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
99220
99221 1999-11-07  Jim Meyering  <meyering@ascend.com>
99222
99223         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
99224
99225 1999-11-06  Jim Meyering  <meyering@ascend.com>
99226
99227         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
99228         * m4/jm-macros.m4 (jm_MACROS): Use it here.
99229
99230 1999-11-05  Jim Meyering  <meyering@ascend.com>
99231
99232         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
99233         configure.in of textutils, fileutils, and sh-utils into this one
99234         (shared between those packages) file.
99235         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
99236         AC_STRUCT_ST_BLKSIZE.
99237
99238 1999-11-03  Jim Meyering  <meyering@ascend.com>
99239
99240         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
99241         of AC_CHECK_TYPE checks includes unistd.h.
99242         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
99243         Suggestion from Akim Demaille.
99244
99245 1999-10-30  Jim Meyering  <meyering@ascend.com>
99246
99247         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
99248         m4-quoted string.
99249         * m4/ls-mntd-fs.m4: Likewise.
99250         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
99251         * m4/jm-winsz1.m4: Likewise.
99252
99253         * m4/const.m4: Remove file, since the fix made it into the experimental
99254         version of autoconf.
99255         * m4/mktime.m4: Likewise.
99256
99257         * m4/check-type.m4: Remove file, now that the latest version of
99258         AC_CHECK_TYPE takes a third arg to specify additional #includes.
99259
99260         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
99261         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
99262         AC_CHECK_TYPE.
99263
99264 1999-10-04  Jim Meyering  <meyering@ascend.com>
99265
99266         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
99267
99268 1999-09-22  Paul Eggert  <eggert@twinsun.com>
99269
99270         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
99271         2.95.1 bug with HP-UX 10.20.
99272
99273 1999-09-17  Jim Meyering  <meyering@ascend.com>
99274
99275         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
99276         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
99277         due to missing strdup (against sh-utils-2.0).
99278
99279 1999-08-29  Jim Meyering  <meyering@ascend.com>
99280
99281         * m4/jm-macros.m4: Require jm_BISON.
99282         * m4/bison.m4: New file.
99283
99284 1999-08-17  Paul Eggert  <eggert@twinsun.com>
99285
99286         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
99287         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
99288
99289 1999-08-05  Jim Meyering  <meyering@ascend.com>
99290
99291         * m4/getline.m4: Rename test file from conftestdata to conftest.data
99292         to avoid conflicts with `conftest' on 8+3 filesystems.
99293         Suggestion from Eli Zaretskii.
99294
99295 1999-08-04  Jim Meyering  <meyering@ascend.com>
99296
99297         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
99298         fileutils and sh-utils (textutils's getline test was inadequate).
99299         (AM_FUNC_GETLINE): Run this test.
99300         (AC_CHECK_FUNCS): Check for getdelim.
99301         Reported by Bob Proulx.
99302
99303 1999-08-02  Jim Meyering  <meyering@ascend.com>
99304
99305         * m4/jm-macros.m4: Add a comment.
99306
99307 1999-08-01  Paul Eggert  <eggert@twinsun.com>
99308
99309         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
99310         <inttypes.h> defines strtoumax as a macro (and not as a
99311         function).
99312
99313 1999-08-01  Paul Eggert  <eggert@twinsun.com>
99314
99315         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
99316         that we can shift, multiply and divide unsigned long long
99317         values; Ultrix cc can't do it.
99318
99319 1999-08-01  Paul Eggert  <eggert@twinsun.com>
99320
99321         * m4/mktime.m4: New file, which is a preview of what should appear
99322         in the next public autoconf release.
99323
99324 1999-08-01  Paul Eggert  <eggert@twinsun.com>
99325
99326         * m4/lfs.m4: Remove this file.
99327         * m4/largefile.m4: New file.  It contains the old contents of
99328         lfs.m4, except that all names with prefix AC_LFS have been
99329         changed to use the prefix AC_SYS_LARGEFILE instead, to be
99330         compatible with future autoconf versions.  Also, some minor m4
99331         quoting problems have been fixed.
99332
99333 1999-08-01  Paul Eggert  <eggert@twinsun.com>
99334
99335         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
99336         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
99337         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
99338         and simplify the shell code.
99339
99340 1999-08-01  Jim Meyering  <meyering@ascend.com>
99341
99342         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
99343         m4.
99344
99345 1999-07-20  Jim Meyering  <meyering@ascend.com>
99346
99347         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
99348
99349 1999-07-15  Jim Meyering  <meyering@ascend.com>
99350
99351         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
99352
99353 1999-05-22  Jim Meyering  <meyering@ascend.com>
99354
99355         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
99356
99357 1999-05-20  Jim Meyering  <meyering@ascend.com>
99358
99359         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
99360         Add a colon after each `then' in case $4 is empty.
99361
99362 1999-05-16  Jim Meyering  <meyering@ascend.com>
99363
99364         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
99365
99366 1999-05-10  Jim Meyering  <meyering@ascend.com>
99367
99368         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
99369
99370         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
99371         AC_FUNC_MKTIME.
99372
99373 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
99374
99375         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
99376
99377 1999-05-04  Paul Eggert  <eggert@twinsun.com>
99378
99379         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
99380         not CPPFLAGS, so that linking works correctly in IRIX.
99381
99382 1999-04-30  Paul Eggert  <eggert@twinsun.com>
99383
99384         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
99385
99386 1999-04-20  Paul Eggert  <eggert@twinsun.com>
99387
99388         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
99389         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
99390         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
99391         jm_AC_TYPE_UNSIGNED_LONG_LONG.
99392         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
99393
99394         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
99395
99396 1999-04-20  Jim Meyering  <meyering@ascend.com>
99397
99398         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
99399         AC_REPLACE xstroull if necessary.  From Paul Eggert.
99400         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
99401
99402 1999-04-18  Jim Meyering  <meyering@ascend.com>
99403
99404         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
99405         * m4/jm-macros.m4: Use it.
99406
99407 1999-04-06  Jim Meyering  <meyering@ascend.com>
99408
99409         * m4/strftime.m4: Remove test for %f.
99410
99411 1999-03-29  Jim Meyering  <meyering@ascend.com>
99412
99413         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
99414         superset of the AC_TYPE_* checks in the textutils, fileutils,
99415         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
99416         AC_TYPE_PID_T.
99417
99418 1999-03-28  Jim Meyering  <meyering@ascend.com>
99419
99420         * m4/jm-macros.m4: Define GNU_PACKAGE here.
99421         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
99422         replaced e.g., in the *.sh files of the sh-utils.
99423
99424 1999-03-20  Jim Meyering  <meyering@ascend.com>
99425
99426         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
99427         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
99428         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
99429
99430 1999-03-19  Jim Meyering  <meyering@ascend.com>
99431
99432         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
99433
99434 1999-03-12  Jim Meyering  <meyering@ascend.com>
99435
99436         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
99437
99438 1999-03-07  Jim Meyering  <meyering@ascend.com>
99439
99440         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
99441         declared.
99442
99443 1999-02-17  Jim Meyering  <meyering@ascend.com>
99444
99445         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
99446         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
99447
99448 1999-02-07  Jim Meyering  <meyering@ascend.com>
99449
99450         * m4/group-member.m4: New file -- extracted from sh-utils'
99451         configure.in.
99452
99453         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
99454         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
99455
99456 1999-02-06  Jim Meyering  <meyering@ascend.com>
99457
99458         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
99459         * m4/fnmatch.m4: Likewise.
99460         * m4/getgroups.m4: Likewise.
99461         * m4/lstat.m4: Likewise.
99462         * m4/malloc.m4: Likewise.
99463         * m4/putenv.m4: Likewise.
99464         * m4/realloc.m4: Likewise.
99465         * m4/regex.m4: Likewise.
99466         * m4/stat.m4: Likewise.
99467         * m4/strftime.m4: Likewise.
99468         Suggestion from Alain Magloire.
99469
99470         * m4/chown.m4: Use `.$ac_objext', not `.o'.
99471         * m4/fnmatch.m4: Likewise.
99472         * m4/getgroups.m4: Likewise.
99473         * m4/getline.m4: Likewise.
99474         * m4/lstat.m4: Likewise.
99475         * m4/malloc.m4: Likewise.
99476         * m4/memcmp.m4: Likewise.
99477         * m4/putenv.m4: Likewise.
99478         * m4/realloc.m4: Likewise.
99479         * m4/regex.m4: Likewise.
99480         * m4/stat.m4: Likewise.
99481         * m4/strftime.m4: Likewise.
99482         Suggestion from Alain Magloire.
99483
99484         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
99485         an argument.
99486
99487         * m4/regex.m4: Add a run-time Test for proper operation of
99488         re_compile_pattern.
99489
99490 1999-01-31  Jim Meyering  <meyering@ascend.com>
99491
99492         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
99493
99494 1999-01-30  Jim Meyering  <meyering@ascend.com>
99495
99496         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
99497
99498         * m4/jm-mktime.m4: Make this a wrapper around the official
99499         AM_FUNC_MKTIME rather than my private copy, now that the official one
99500         is up to date.
99501         * m4/mktime.m4: Remove file.
99502
99503         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
99504         * m4/uptime.m4: Likewise.
99505         * m4/uintmax_t.m4: Likewise.
99506
99507 1999-01-28  Jim Meyering  <meyering@ascend.com>
99508
99509         * m4/jm-macros.m4: Use jm_AFS.
99510         * m4/afs.m4: New file (from fileutils' configure.in).
99511
99512         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
99513         * m4/chown.m4: Likewise.
99514         * m4/d-ino.m4: Likewise.
99515         * m4/d-type.m4: Likewise.
99516         * m4/fnmatch.m4: Likewise.
99517         * m4/getgroups.m4: Likewise.
99518         * m4/gettext.m4: Likewise.
99519         * m4/jm-mktime.m4: Likewise.
99520         * m4/jm-winsz2.m4: Likewise.
99521         * m4/lcmessage.m4: Likewise.
99522         * m4/ls-mntd-fs.m4: Likewise.
99523         * m4/malloc.m4: Likewise.
99524         * m4/memcmp.m4: Likewise.
99525         * m4/putenv.m4: Likewise.
99526         * m4/realloc.m4: Likewise.
99527         * m4/st_mtim.m4: Likewise.
99528         * m4/strftime.m4: Likewise.
99529
99530 1999-01-16  Jim Meyering  <meyering@ascend.com>
99531
99532         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
99533         (ARGMATCH_DIE_DECL): Define.
99534
99535 1999-01-12  Jim Meyering  <meyering@ascend.com>
99536
99537         * m4/Makefile.am.in: Rewrite to avoid using fmt.
99538         Reported by Lars Hecking.
99539
99540 1999-01-10  Jim Meyering  <meyering@ascend.com>
99541
99542         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
99543         gross kludge.
99544         * m4/inttypes_h.m4: Likewise.
99545         * m4/lstat.m4: Likewise.
99546         * m4/malloc.m4: Likewise.
99547         * m4/readdir.m4: Likewise.
99548         * m4/realloc.m4: Likewise.
99549         * m4/st_dm_mode.m4: Likewise.
99550         * m4/stat.m4: Likewise.
99551         * m4/utimbuf.m4: Likewise.
99552         * m4/utimes.m4: Likewise.
99553
99554         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
99555         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
99556         comments in config.h.in are meaningful.
99557
99558         * m4/jm-macros.m4: Require autoconf-2.13 here.
99559
99560         * m4/regex.m4: By default, don't use the included regex.c on systems
99561         with glibc 2.  Suggestion from Uli Drepper.
99562
99563 1999-01-02  Jim Meyering  <meyering@ascend.com>
99564
99565         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
99566
99567 1998-12-18  Jim Meyering  <meyering@ascend.com>
99568
99569         * m4/Makefile.am.in (Makefile.am): Simplify rule.
99570         Based on a suggestion from Lars Hecking.
99571
99572 1998-11-16  Paul Eggert  <eggert@twinsun.com>
99573
99574         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
99575
99576 1998-11-16  Jim Meyering  <meyering@ascend.com>
99577
99578         * m4/lfs.m4: Double-quote the `uname...` expression.
99579
99580 1998-11-14  Jim Meyering  <meyering@ascend.com>
99581
99582         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
99583         * m4/stat.m4: Likewise.
99584
99585 1998-11-03  Jim Meyering  <meyering@ascend.com>
99586
99587         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
99588         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
99589
99590 1998-10-18  Jim Meyering  <meyering@ascend.com>
99591
99592         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
99593
99594 1998-10-17  Jim Meyering  <meyering@ascend.com>
99595
99596         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
99597         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
99598         calls for those previously hard-coded headers.  Instead, take a new
99599         parameter.
99600         (jm_CHECK_DECLARATIONS): Reflect interface change.
99601         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
99602         (jm_CHECK_DECL_LOCALTIME_R): New macro.
99603
99604         * m4/mktime.m4: Test for spring-forward gap before long-running test.
99605
99606 1998-10-14  Jim Meyering  <meyering@ascend.com>
99607
99608         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
99609         instead of "TZ=America/Vancouver".  From Paul Eggert.
99610
99611 1998-10-11  Jim Meyering  <meyering@ascend.com>
99612
99613         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
99614         This adds a test for a recently added compatibility fix for mktime.c.
99615         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
99616
99617 1998-09-27  Jim Meyering  <meyering@ascend.com>
99618
99619         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
99620
99621         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
99622         ../configure.in, including a change from Gordon Matzigkeit to allow
99623         cross-compiling for the Hurd.
99624
99625         * m4/glibc.m4: New file/macro to test for the GNU C Library
99626         versions 1 and 2.  From Gordon Matzigkeit.
99627         Indent.
99628
99629 1998-09-21  Jim Meyering  <meyering@ascend.com>
99630
99631         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
99632
99633 1998-08-18  Paul Eggert  <eggert@twinsun.com>
99634
99635         Port nanosecond-resolution times to UnixWare 2.1.2 and
99636         pedantic Solaris 2.6.
99637
99638         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
99639         AC_STRUCT_ST_MTIM.
99640         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
99641         Generate name of ns member, instead of just 1 or undef.
99642         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
99643
99644 1998-08-15  Jim Meyering  <meyering@ascend.com>
99645
99646         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
99647         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
99648         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
99649         instead of jm_TYPE_SSIZE_T.
99650
99651 1998-08-12  Jim Meyering  <meyering@ascend.com>
99652
99653         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
99654
99655 1998-08-02  Jim Meyering  <meyering@ascend.com>
99656
99657         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
99658         in acconfig.h manually.
99659
99660 1998-07-31  Paul Eggert  <eggert@twinsun.com>
99661
99662         * m4/st_mtim.m4: New file.
99663
99664 1998-07-28  Jim Meyering  <meyering@ascend.com>
99665
99666         * m4/utimes.m4: Undef stat.
99667
99668 1998-07-25  Jim Meyering  <meyering@ascend.com>
99669
99670         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
99671         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
99672
99673 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
99674
99675         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
99676         uid and gid actually remain unchanged.
99677
99678 1998-07-07  Jim Meyering  <meyering@ascend.com>
99679
99680         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
99681
99682 1998-07-04  Jim Meyering  <meyering@ascend.com>
99683
99684         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
99685         to prove that this macro can be used in packages without regex.c.
99686
99687 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
99688
99689         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
99690         is to be used.
99691
99692 1998-07-03  Jim Meyering  <meyering@ascend.com>
99693
99694         * m4/gettext.m4: Add -lintl if it's found to be necessary.
99695
99696         * m4/gettext.m4: New file -- from gettext-0.10.35.
99697         * m4/lcmessage.m4: Likewise.
99698         * m4/progtest.m4: Likewise.
99699
99700         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
99701         * m4/jm-macros.m4: Require the new macro.
99702
99703 1998-06-29  Jim Meyering  <meyering@ascend.com>
99704
99705         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
99706         for the definition of NGROUPS (used in a system header included
99707         by sys/mount.h).
99708
99709 1998-06-28  Jim Meyering  <meyering@ascend.com>
99710
99711         * m4/ls-mntd-fs.m4: New file.
99712         * m4/fstypename.m4: New file.
99713
99714         * m4/jm-macros.m4: Require the new macro.
99715         * m4/jm-glibc-io.m4: New file.
99716
99717 1998-05-19  Jim Meyering  <meyering@ascend.com>
99718
99719         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
99720         * m4/lchown.m4: New file.
99721
99722         * m4/Makefile.am.in: New file.
99723         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
99724
99725 1998-05-14  Jim Meyering  <meyering@ascend.com>
99726
99727         * m4/Makefile.am (EXTRA_DIST): Add them.
99728         * m4/jm-macros.m4: New file.
99729         * m4/utimbuf.m4: New file.
99730
99731 1998-05-12  Jim Meyering  <meyering@ascend.com>
99732
99733         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
99734
99735 1998-05-11  Jim Meyering  <meyering@ascend.com>
99736
99737         * m4/isc-posix.m4: New file.
99738
99739 1998-05-10  Jim Meyering  <meyering@ascend.com>
99740
99741         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
99742
99743 1998-05-09  Jim Meyering  <meyering@ascend.com>
99744
99745         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
99746         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
99747         with automake.
99748
99749         * m4/ssize_t.m4: New file.
99750         * m4/mktime.m4: Remove file -- the new automake has this now.
99751
99752 1998-04-26  Jim Meyering  <meyering@ascend.com>
99753
99754         * m4/assert.m4: New file.
99755         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
99756
99757 1998-04-05  Jim Meyering  <meyering@ascend.com>
99758
99759         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
99760         (jm_PREREQ): Use it here.
99761
99762 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
99763
99764         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
99765         in acconfig.h.
99766
99767 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
99768
99769         * m4/prereq.m4: New file.
99770         * m4/error.m4: New file.
99771         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
99772
99773 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
99774
99775         * m4/getline.m4: Don't set am_cv_func_working_getline before the
99776         cache-check for the same variable -- that defeated the purpose of
99777         the test; the test program was never run.  This was a problem only
99778         on systems with losing getline functions -- HP-UX 10.20 is one.
99779         Reported by Bjorn Helgaas.
99780
99781 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
99782
99783         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
99784
99785 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
99786
99787         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
99788
99789         * m4/const.m4: New file.  Use an initializer in this declaration
99790         typedef int charset[2]; const charset x;
99791         Reported by Bob Glickstein.
99792
99793 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
99794
99795         * m4/chown.m4: Fix reversed types on -1 args to chown.
99796         From Kaveh Ghazi.
99797
99798 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
99799
99800         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
99801         Add lseek and memchr.
99802
99803         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
99804         T.E.Dickey <dickey@clark.net> said that some older preprocessors
99805         have a 20-character limit on names.
99806
99807 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
99808
99809         * m4/inttypes_h.m4: New file.
99810         * m4/uintmax_t.m4: New file.
99811         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
99812
99813
99814         -----
99815
99816         Local Variables:
99817         coding: utf-8
99818         End:
99819
99820         Copyright (C) 1997-2013 Free Software Foundation, Inc.
99821
99822         Copying and distribution of this file, with or without
99823         modification, are permitted provided the copyright notice
99824         and this notice are preserved.